what does 'a=b=c=[]' do
Chris Angelico
rosuav at gmail.com
Thu Dec 22 23:25:51 EST 2011
On Fri, Dec 23, 2011 at 2:40 PM, alex23 <wuwei23 at gmail.com> wrote:
> I'm sorry, but I'm not going to modify my coding style for the sake of
> bad programmers.
And there, folks, you have one of the eternal dilemmas. The correct
decision depends on myriad factors; if you're writing code to go into
the documentation as an example, you want it to be able to handle
idiots hacking on it - but on the other hand, that same situation
demands simplicity, which is why a lot of examples omit huge slabs of
error checking.
ChrisA
More information about the Python-list
mailing list