Re: [Python-Dev] Add e (close and exec) mode to open()

2013-01-07 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jan 07, 2013 at 06:03:54PM -0600, Benjamin Peterson wrote: 2013/1/7 Victor Stinner victor.stin...@gmail.com: Hi, I would like add a new flag to open() mode to close the file on exec: e. This feature exists using different APIs depending on the OS and OS version: O_CLOEXEC,

Re: [Python-Dev] Open PEPs and large-scale changes for 3.3

2012-05-15 Thread Zbigniew Jędrzejewski-Szmek
On 05/02/2012 02:24 AM, Ben Finney wrote: Georg Brandl g.bra...@gmx.net writes: list of possible features for 3.3 as specified by PEP 398: Candidate PEPs: […] * PEP 3143: Standard daemon process library I think that http://0pointer.de/public/systemd-man/daemon.html would a good addition

Re: [Python-Dev] PEP 414 updated

2012-03-04 Thread Zbigniew Jędrzejewski-Szmek
On 03/04/2012 10:34 AM, Vinay Sajip wrote: https://bitbucket.org/vinay.sajip/uprefix/ import uprefix; uprefix.register_hook() import frob.subwob.subsubwob frob.subwob.subsubwob.w Hi, it's pretty cool that 150 lines is enough to have this functionality. This guard: if sys.version_info[0]

Re: [Python-Dev] ImportError: No module named multiarray (is back)

2011-11-26 Thread Zbigniew Jędrzejewski-Szmek
Hi, I apologize in advance for the length of this mail. sys.path When a script or a module is executed by invoking python with proper arguments, sys.path is extended. When a path to script is given, the directory containing the script is prepended. When '-m' or '-c' is used, $CWD is

Re: [Python-Dev] Persistent Python - a la Smalltalk

2011-09-18 Thread Zbigniew Jędrzejewski-Szmek
Guido van Rossum wrote: [BCC python-dev, +python-ideas] Funny you should mention this. ABC, Python's predecessor, worked like this. However, it didn't work out very well. So, I'd say you're about 30 years too late with your idea... :-( Well, the newly developed IPython notebook [1] is