Author Joe.Borg
Recipients Joe.Borg
Date 2014-05-12.16:08:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399910902.34.0.399069985077.issue21481@psf.upfronthosting.co.za>
In-reply-to
Content
See example:

>>> import argparse
>>> a = argparse.ArgumentParser()
>>> b = a.parse_args([])
>>> if b != None:
...     print "hey"
  File "<stdin>", line 2
    print "hey"
              ^
SyntaxError: invalid syntax
>>> 
>>> if b != None:           
... 	print("hey")
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/cfd/software/Python/340/lib/python3.4/argparse.py", line 1202, in __ne__
    return not (self == other)
  File "/cfd/software/Python/340/lib/python3.4/argparse.py", line 1199, in __eq__
    return vars(self) == vars(other)
TypeError: vars() argument must have __dict__ attribute
History
Date User Action Args
2014-05-12 16:08:22Joe.Borgsetrecipients: + Joe.Borg
2014-05-12 16:08:22Joe.Borgsetmessageid: <1399910902.34.0.399069985077.issue21481@psf.upfronthosting.co.za>
2014-05-12 16:08:22Joe.Borglinkissue21481 messages
2014-05-12 16:08:21Joe.Borgcreate