<div dir="ltr"><div style="box-sizing:border-box;padding:8px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:rgb(51,51,51);border-radius:4px;background-color:rgb(251,250,248);border:1px solid rgba(0,0,0,0.15)"><div>~# python3 -ic "import dbussy"</div><div>>>> dbussy.validate_bus_name(":a")</div><div>True</div><div>>>> </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 1 февр. 2021 г. в 02:56, Lawrence D'Oliveiro <<a href="mailto:ldo@geek-central.gen.nz">ldo@geek-central.gen.nz</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 31 Jan 2021 23:11:07 +0100, Bogdan Lotko wrote:<br>
<br>
> Much more interesting question is are the "a." or ".a" legal?<br>
<br>
>>> dbussy.validate_bus_name("a.")<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
File "/home/ldo/projects/dbussy/dbussy.py", line 5826, in validate_bus_name<br>
my_error.raise_if_set()<br>
File "/home/ldo/projects/dbussy/dbussy.py", line 5035, in raise_if_set<br>
raise DBusError(<a href="http://self.name" rel="noreferrer" target="_blank">self.name</a>, self.message)<br>
dbussy.DBusError: org.freedesktop.DBus.Error.InvalidArgs -- Bus name was not valid: 'a.'<br>
>>> dbussy.validate_bus_name(".b")<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
File "/home/ldo/projects/dbussy/dbussy.py", line 5826, in validate_bus_name<br>
my_error.raise_if_set()<br>
File "/home/ldo/projects/dbussy/dbussy.py", line 5035, in raise_if_set<br>
raise DBusError(<a href="http://self.name" rel="noreferrer" target="_blank">self.name</a>, self.message)<br>
dbussy.DBusError: org.freedesktop.DBus.Error.InvalidArgs -- Bus name was not valid: '.b'<br>
<br>
Nope.<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/dbus" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</blockquote></div>