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 JDay
Recipients JDay
Date 2008-10-08.00:27:13
SpamBayes Score 2.5571572e-07
Marked as misclassified No
Message-id <1223425635.48.0.940202056696.issue4071@psf.upfronthosting.co.za>
In-reply-to
Content
On my system (Windows Server 2008 SP1 - 64-bit, Python 2.5.2 - 32-bit),
simple actions like:
>>> help(help) # Or any function
or
>>> import tempfile
>>> f = tempfile.mktemp()
result in this (rather confusing) error:
TypeError: _getfullpathname() argument 1 must be (buffer overflow), not str

Apparently, _getfullpathname() chokes on certain paths if they are not
supplied as unicode. Locally, I was able to work around the issue by
changing the call to _getfullpathname in ntpath.abspath to:
                path = str(_getfullpathname(unicode(path)))
History
Date User Action Args
2008-10-08 00:27:15JDaysetrecipients: + JDay
2008-10-08 00:27:15JDaysetmessageid: <1223425635.48.0.940202056696.issue4071@psf.upfronthosting.co.za>
2008-10-08 00:27:14JDaylinkissue4071 messages
2008-10-08 00:27:13JDaycreate