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 brett.cannon
Recipients brett.cannon, docs@python, techtonik
Date 2013-06-20.14:55:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371740129.41.0.421821107444.issue18269@psf.upfronthosting.co.za>
In-reply-to
Content
os.chmod is implemented in posixmodule.c and the argument parsing code can be found at http://hg.python.org/cpython/file/3acbb23c73bc/Modules/posixmodule.c#l2605 . You will notice that the argument parsing is specified as "O&i|$O&p". That means the first argument is parsed as a Python object which is passed through a converter function and the second argument is required to be an integer. That converter function can be found at http://hg.python.org/cpython/file/3acbb23c73bc/Modules/posixmodule.c#l681. Looking at that code doesn't suggest that TypeError is raised with that message.

What were the exact arguments you passed into os.chmod() that triggered the exception?
History
Date User Action Args
2013-06-20 14:55:29brett.cannonsetrecipients: + brett.cannon, techtonik, docs@python
2013-06-20 14:55:29brett.cannonsetmessageid: <1371740129.41.0.421821107444.issue18269@psf.upfronthosting.co.za>
2013-06-20 14:55:29brett.cannonlinkissue18269 messages
2013-06-20 14:55:29brett.cannoncreate