[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Daniel Molkentin
New submission from Daniel Molkentin dan...@molkentin.de: from PC/getpathp.c:538 if (pythonhome != NULL) { char *p; bufsz = 1; for (p = PYTHONPATH; *p; p++) { if (*p == DELIM) bufsz++; /* number of DELIM plus one */ }

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hmm, not sure. Try with set PYTHONPATH=.\a;.\b sys.path will contains the entries: current_dir\a current_dir\b a multiplication seems necessary. -- nosy: +amaury.forgeotdarc ___

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Before the multiplication, bufsz is not aptly named: as your snippet shows it's counting the number of delimiters in the PYTHONPATH. -- nosy: +georg.brandl resolution: - invalid status: open - closed