[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Georg Brandl
Georg Brandl 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 ___ Python t

[issue10604] Allocating too much memory for pathes

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

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Daniel Molkentin
New submission from Daniel Molkentin : 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 */ } bufsz *= strlen(pythonho