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 draghuram
Recipients draghuram
Date 2008-01-10.17:09:47
SpamBayes Score 0.0031378274
Marked as misclassified No
Message-id <1199984992.34.0.280732186134.issue1784@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry for the generic title but I couldn't think of a better one. My
attempt to do "svn up && make" failed with the following exception from
setup.py:

----------------------
File "./setup.py", line 314, in detect_modules
    if options.dirs:
AttributeError: Values instance has no attribute 'dirs'
----------------------

I isolated the problem to a small script.

----------------------
import optparse

parser = optparse.OptionParser()
parser.add_option("-I", dest="dirs", action="append")
options = parser.parse_args(['-I.', '-IInclude', '-I./Include'])[0]
if options.dirs:
    print "opt = ", options.dirs
----------------------

When run with 2.5.1, the script prints "opt =  ['.', 'Include',
'./Include']" but python from trunk gives the error:

Traceback (most recent call last):
  File "../opttest.py", line 6, in <module>
    if options.dirs:
AttributeError: Values instance has no attribute 'dirs'
History
Date User Action Args
2008-01-10 17:09:52draghuramsetspambayes_score: 0.00313783 -> 0.0031378274
recipients: + draghuram
2008-01-10 17:09:52draghuramsetspambayes_score: 0.00313783 -> 0.00313783
messageid: <1199984992.34.0.280732186134.issue1784@psf.upfronthosting.co.za>
2008-01-10 17:09:47draghuramlinkissue1784 messages
2008-01-10 17:09:47draghuramcreate