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 vstinner
Recipients boya, loewis, pitrou, skrah, terry.reedy, vstinner
Date 2010-07-28.20:48:09
SpamBayes Score 0.0657574
Marked as misclassified No
Message-id <>
Antoine asked me why not using a buffer of MAX_PATH+1 (instead of a dynamic buffer size). I don't know, I just copied/pasted the code from Python2. Extract of getcwd() manpage:

   Note that on some systems, PATH_MAX may not be a compile-time
   constant; furthermore, its value may depend  on  the file system,
   see pathconf(3).

It's maybe to support strange OS like Hurd :-) (Hurd has no hardcoded limits).

Most of the time, the first realloc() should be enough.
Date User Action Args
2010-07-28 20:48:11vstinnersetrecipients: + vstinner, loewis, terry.reedy, pitrou, skrah, boya
2010-07-28 20:48:11vstinnersetmessageid: <>
2010-07-28 20:48:10vstinnerlinkissue9246 messages
2010-07-28 20:48:09vstinnercreate