homepage

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 pitrou
Recipients loewis, pitrou, skrah, vstinner
Date 2010年07月13日.12:10:56
SpamBayes Score 4.7534057e-09
Marked as misclassified No
Message-id <1279023059.26.0.245683093399.issue9246@psf.upfronthosting.co.za>
In-reply-to
Content
In 2.x, os.getcwd() uses a dynamic allocation scheme to accomodate whatever buffer size the current path needs to be represented.
In 3.x, the max path length is hardcoded to 1026 bytes or characters, and an error is raised if the current path length is larger than that. Even on systems where MAX_PATH is 1024 (a common value), it is still valid to create paths larger than that (using e.g. os.mkdir()).
The attached script shows that os.getcwd() works with a 1032-character path in 2.x, but fails in 3.x.
History
Date User Action Args
2010年07月13日 12:10:59pitrousetrecipients: + pitrou, loewis, vstinner, skrah
2010年07月13日 12:10:59pitrousetmessageid: <1279023059.26.0.245683093399.issue9246@psf.upfronthosting.co.za>
2010年07月13日 12:10:57pitroulinkissue9246 messages
2010年07月13日 12:10:57pitroucreate

AltStyle によって変換されたページ (->オリジナル) /