[issue25687] Error during test case and tearDown

2015-11-20 Thread Benno Leslie
New submission from Benno Leslie: I'm not sure if this should be considered a bug, but the behaviour is surprising and not clearly documented. I a have a very simple test that has an error during both the test case, and during tearDown. """ import unittest class Test(un

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-18 Thread Benno Leslie
Benno Leslie added the comment: I've tried to address all the issues raised in the review of the first patch. -- Added file: http://bugs.python.org/file39725/gi_yieldfrom.v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-14 Thread Benno Leslie
New submission from Benno Leslie: When a co-routine has delegated computation to another co-routine via yield from, it is useful to be able to access the delegated-to co-routine. This proposed enhancement would add a new calculated property to the generator object called gi_yieldfrom, which

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-14 Thread Benno Leslie
Benno Leslie added the comment: Attached is my first attempt at implementing this feature. It includes to implementation, updates to documentation, and added test cases. I'm not a regular contributor so look forward to any feedback on improving the patch. -- keywords: +patch Added

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-07 Thread Benno Leslie
Benno Leslie added the comment: In a similar manner the bininstall target relies on $(LIBPC), but does not create that. This makes me consider if the libainstall target should be installing pkg-config sciprt at all (and whether bininstall should be installing the .pc files). It is hard

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-05 Thread Benno Leslie
Benno Leslie added the comment: I was using this in the case where I just want to link against libpython.a and for me it is a limited case where I don't really need the functionality of python-config; so for me this is certainly the best approach. But I concede this use case is probably

[issue16869] makesetup should support .S source files

2013-01-05 Thread Benno Leslie
Benno Leslie added the comment: Thanks for the comments Senthil. I'll improve the patch fixing the bug, adding support for .s and updating the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16869

[issue16866] libainstall doesn't create all directories

2013-01-04 Thread Benno Leslie
New submission from Benno Leslie: make libainstall fails when $(BINDIR) does not exist. -- components: Build files: ainstall.diff keywords: patch messages: 179103 nosy: bennoleslie priority: normal severity: normal status: open title: libainstall doesn't create all directories type

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-04 Thread Benno Leslie
Changes by Benno Leslie be...@benno.id.au: -- title: libainstall doesn't create all directories - libainstall doesn't create $(BINDIR) directory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16866

[issue16867] setup.py fails if there are no extensions

2013-01-04 Thread Benno Leslie
New submission from Benno Leslie: When building if there are zero extensions setup.py fails (max of a zero length list is undefined.) Although not a very common case, there are potential speciality cases where there will be zero extensions. -- components: Build files

[issue16869] makesetup should support .S source files

2013-01-04 Thread Benno Leslie
New submission from Benno Leslie: It is useful to be able to build .S files as built-in modules (in particular if you want ctypes as a built-in you need .S files) The patch enables .S files to be specified in Setup.dist files. -- components: Build files: makesetup-asm.diff keywords

[issue16833] httpc.lient delayed ack / Nagle algorithm optimisation performs badly for large messages

2013-01-01 Thread Benno Leslie
New submission from Benno Leslie: he http.client HTTPConnection._send_output method has an optimization for avoiding bad interactions between delayed-ack and the Nagle algorithm: http://hg.python.org/cpython/file/f32f67d26035/Lib/http/client.py#l884 Unfortunately this interacts rather poorly

[issue16833] httpc.lient delayed ack / Nagle algorithm optimisation performs badly for large messages

2013-01-01 Thread Benno Leslie
Benno Leslie added the comment: I've updated the patch based on Charles-François and Antoine's feedback. Primarily this increase the estimated MSS value to 16KiB. Additionally tests are added and comments improved. Thanks for the feedback. -- Added file: http://bugs.python.org

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Benno Leslie
Changes by Benno Leslie be...@benno.id.au: -- nosy: +bennoleslie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16140 ___ ___ Python-bugs-list

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Benno Leslie
Benno Leslie added the comment: Regarding #2 my understanding is that the FDs are already always wrapped. E.g: at line http://hg.python.org/cpython/file/b9ac3c44a4eb/Lib/subprocess.py#l798 it shows these always being wrapped (assuming the file descriptor is not -1). For my test case on 3.2.3