This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Claudiu.Popa, ezio.melotti, roger.serwy, serhiy.storchaka
Date 2015-03-10.09:44:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425980663.72.0.256423945015.issue16200@psf.upfronthosting.co.za>
In-reply-to
Content
There are 18 public writable attributes in shlex object, and unthinking setting some of them can make shlex to produce incorrect results or create an infinite loop. For example there is nothing to prevent your from setting the eof attribute. Only 14 of 18 attributes is documented and posix is not in this set.

One of solutions is just does nothing. We are all consenting adults here.

More protective solution is to make undocumented attributes (filestack, posix, pushback, state) private. For backward compatibility we can temporary add properties that will emit deprecation warnings.
History
Date User Action Args
2015-03-10 09:44:23serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, roger.serwy, Claudiu.Popa
2015-03-10 09:44:23serhiy.storchakasetmessageid: <1425980663.72.0.256423945015.issue16200@psf.upfronthosting.co.za>
2015-03-10 09:44:23serhiy.storchakalinkissue16200 messages
2015-03-10 09:44:23serhiy.storchakacreate