Message111844
| Author |
vstinner |
| Recipients |
boya, loewis, pitrou, skrah, terry.reedy, vstinner |
| Date |
2010年07月28日.20:48:09 |
| SpamBayes Score |
0.065757394 |
| Marked as misclassified |
No |
| Message-id |
<1280350091.15.0.0272403370444.issue9246@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月28日 20:48:11 | vstinner | set | recipients:
+ vstinner, loewis, terry.reedy, pitrou, skrah, boya |
| 2010年07月28日 20:48:11 | vstinner | set | messageid: <1280350091.15.0.0272403370444.issue9246@psf.upfronthosting.co.za> |
| 2010年07月28日 20:48:10 | vstinner | link | issue9246 messages |
| 2010年07月28日 20:48:09 | vstinner | create |
|