<div dir="ltr">Just ":" is also valid:<div><span class="gmail-im" style="color:rgb(80,0,80)"><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">~# python3 -ic "import dbussy"</div></span><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">>>> dbussy.validate_bus_name(":")</div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">True</div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">>>> </div><div>It looks strange.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 1 февр. 2021 г. в 18:07, Igor Plastov <<a href="mailto:chetverovod@gmail.com">chetverovod@gmail.com</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"><div dir="ltr">More over:<div>rule 3: <span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">Each element must only contain the ASCII characters "[A-Z][a-z][0-9]_-", with "-" discouraged in new bus names. Only elements that are part of a unique connection name may begin with a digit, elements in other bus names must not begin with a digit.</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">Validation returns OK, for name ":.a":</span></div><div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">~# python3 -ic "import dbussy"</div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">>>> dbussy.validate_bus_name(":.a")</div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">True</div><div style="color:rgb(51,51,51);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px">>>> </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 1 февр. 2021 г. в 16:13, Igor Plastov <<a href="mailto:chetverovod@gmail.com" target="_blank">chetverovod@gmail.com</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"><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" target="_blank">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>
</blockquote></div>
</blockquote></div>