[issue6546] [Distutils][PATCH] Add bdist_rpm option to select the name of the resulting package

2009-09-07 Thread OG7
OG7 added the comment: In most cases, a distribution named "foo" becomes and rpm named "python-foo", so it can't be the same name for both. I'm using bdist_rpm to generate rpms from eggs I didn't write myself, so an option

[issue6615] multiprocessing logging support test

2009-08-01 Thread OG7
New submission from OG7 : There is an additional test for multiprocessing's logging support here: http://code.google.com/p/python-multiprocessing/issues/detail?id=18 (disregard the fix, it is only needed for the backport). -- components: Library (Lib) messages: 91163 nosy: OG7, jn

[issue6546] [Distutils][PATCH] Add bdist_rpm option to select the name of the resulting package

2009-07-22 Thread OG7
New submission from OG7 : This simple Distutils patch allows choosing the name of the rpm built by bdist_rpm. It leaves the name of the source tarball alone, and changes the name of the resulting spec file and rpm. It was tested with distutils nightlies, and applies to at least python 2.5

[issue6445] Add check parameter to subprocess.Popen.communicate

2009-07-09 Thread OG7
New submission from OG7 : communicate is often used in one-liners, but becomes a four-liner if you want to check the process exit status. Adding a check parameter would make it more convenient to get things right and write non-buggy code. The CalledProcessError requires a cmd argument, which

[issue5870] subprocess.DEVNULL

2009-07-09 Thread OG7
Changes by OG7 : -- nosy: +OG7 ___ Python tracker <http://bugs.python.org/issue5870> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-19 Thread OG7
OG7 added the comment: Please do this: --- a/multiprocessing/process.py +++ b/multiprocessing/process.py @@ -225,7 +225,8 @@ class Process(object): self._children = set() self._counter = itertools.count(1) try: -os.close(sys.stdin.fileno

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-10 Thread OG7
OG7 added the comment: Closing the stdin fd without closing the stdin file is very dangerous. It means that stdin will now access some random resource, for example, a pipe created with os.pipe(). Closing stdin is useful to let the parent be alone in reading from it. It can be achieved by

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-06-10 Thread OG7
OG7 added the comment: Issue 5313 seems to be the culprit. -- nosy: +OG7 ___ Python tracker <http://bugs.python.org/issue5155> ___ ___ Python-bugs-list mailin

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-10 Thread OG7
OG7 added the comment: Using sys.stdin.close() fixes issues 5155 and 5331. -- nosy: +OG7 ___ Python tracker <http://bugs.python.org/issue5313> ___ ___ Python-bug

[issue5331] multiprocessing hangs when Pool used within Process

2009-06-10 Thread OG7
OG7 added the comment: It seems the root cause is at http://bugs.python.org/issue5155 . A workaround is to use a duplex Pipe in SimpleQueue. -- ___ Python tracker <http://bugs.python.org/issue5