os.putenv() has no effect

Johannes Bauer dfnsonfsduifb at gmx.de
Tue Jun 18 14:16:24 EDT 2013


On 18.06.2013 20:12, Johannes Bauer wrote:

> I am extremely certain that I found that passage, but can't find it
> right now anymore (probably staring right at it and can't find it still) :-/

Obviously, yes:

Note
On some platforms, including FreeBSD and Mac OS X, setting environ may
cause memory leaks. Refer to the system documentation for putenv.

But still, setting os.environ works, so I'll go with that. Weird that I
read the memory leak part but missed the obvious "so it is actually
preferable to assign to items of os.environ".

Thanks again,
Best regards,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list