Nick Coghlan added the comment:

This actually came up on the core-mentorship list (someone was trying to 
translate old mod-formatting code that used a colon in the lookup names and 
discovered this odd behaviour)

My own preference is to let this quote from PEP 3101 dominate the behaviour: 
"The rules for parsing an item key are very simple. If it starts with a digit, 
then it is treated as a number, otherwise it is used as a string."

That means Petri's suggested solution (allowing any character except a closing 
square bracket and braces in the item key) sounds good to me.

----------
nosy: +ncoghlan

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12014>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to