[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2020-02-07 Thread Leslie
Leslie added the comment: I just can say that sorting this issue (and PEP-0432) out would be great! I run into this issue when embedding CPython in a Windows app, and want to use some pre-installed Python, which is not part of the install package... So beside pyenv venvs, please keep Windows

[issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

2019-09-11 Thread Leslie
Leslie added the comment: Some history and explanation of this problem: - Qt extends C++ with the following keywords: "slots", "signals", "emit" - This extension is compiled with a Meta-Object-Compiler (MOC) into standard C++. - Since code using Qt extensions

[issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

2019-09-02 Thread Leslie
Change by Leslie : -- keywords: +patch pull_requests: +15309 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15644 ___ Python tracker <https://bugs.python.org/issu

[issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

2019-09-02 Thread Leslie
New submission from Leslie : In Feb 20, 2006, in commit https://github.com/python/cpython/commit/c255c7bef7621596869f56d887ac3ccd5b536708 the bug https://bugs.python.org/issue1086854 had been fixed. In Dec 3, 2010, in commit https://github.com/python/cpython/commit

[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

[issue21164] print unicode in Windows console

2014-04-11 Thread Leslie Klein
Leslie Klein added the comment: I start ipython in Windows PowerShell. The console I am referring to is ipython running in WindowsPowerShell. I do not use the DOS cmd.exe When running ipython notebook from WindowsPowerShell -- no problem printing unicode. When running in PTVS (Python Tools

[issue21164] print unicode in Windows console

2014-04-06 Thread Leslie Klein
New submission from Leslie Klein: The console behaves by encoding a str (using the sys.getdefaultencoding()) and then decodes the bytes to a glyph for rendering. The decoder used is 'cp437'. Apparently, there is no way to override that! See ipython notebook for summary and example

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-26 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Sounds reasonable, I will propose a patch soon. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19679

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-25 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Sorry for the confusion, the second comment (#msg203622) should actually have been a separate ticket. Since you'd like to preserve conn I will just change the title of this ticket. -- title: smtpd.py (SMTPChannel): get rid of conn attribute

[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-25 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: I am indeed referring to the enhanced status codes proposed in RFC 3463. This would just entail adding information to the status codes, converting them from the format simple status code human-readable string to simple status code enhanced status code human

[issue19678] smtpd.py: channel should be passed to process_message

2013-11-21 Thread Leslie P. Polzer
New submission from Leslie P. Polzer: process_message needs to have access to the channel state since it needs to make decisions based on the authentication or transport associated with the channel. It should be either the first or the last arg. I can provide a patch for this. Should

[issue19679] smtpd.py: implement ESMTP status messages

2013-11-21 Thread Leslie P. Polzer
New submission from Leslie P. Polzer: ESMTP status messages (of the form xab x.y.z test) can be added easily to the current status message strings emitted by the SMTP server and channel classes. They are not harmful if the user's server only intends to support plain HELO-SMTP I will provide

[issue19679] smtpd.py (SMTPChannel): get rid of conn attribute

2013-11-21 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: The contents of conn are already stored by asyncore's socket attribute, so there doesn't seem to be a need to keep it around. We should deprecate its usage and refer the user to the socket attribute. Furthermore I suggest renaming the conn argument

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
New submission from Leslie P. Polzer: http://hg.python.org/cpython/file/3.3/Lib/smtpd.py#l289 as of now decodes incoming bytes as UTF-8. An SMTP server must not attempt to interpret characters beyond ASCII, however. Originally mail servers were not 8-bit clean, meaning they would only

[issue12816] smtpd uses library outside of the standard libraries

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12816 ___ ___ Python-bugs-list

[issue16462] smtpd should return greeting

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16462 ___ ___ Python-bugs-list

[issue8503] smtpd SMTPServer does not allow domain filtering

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list

[issue3802] smtpd.py __getaddr insufficient handling

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3802 ___ ___ Python-bugs-list

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Patch attached. This also adds some more charset clarification to the docs and corrects a minor spelling issue. It is also conceivable that we add a charset attribute to the class. This should have the safe default of latin1, and some notes in the docs

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
Leslie P. Polzer added the comment: Since this is my first contribution I'm not entirely sure about the fine details of backwards compatibility in Python, so please forgive me if I'm totally missing the mark here. There are facilities in smtpd's parent class asynchat that perform

[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

[issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6

2009-11-01 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: py StringIO.StringIO(foo).read(long(1)) 'f' py io.BytesIO(foo).read(long(1)) Traceback (most recent call last): File stdin, line 1, in module TypeError: integer argument expected, got 'long' This is known to cause problems when reading zip

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-28 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: Yes, I think this fix should have been included in the 2.6 branch. I subscribed Amaury to look into that when I last updated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-26 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: I expect this should already be fixed by the commit in http://bugs.python.org/issue6511 BadZipFile will now be raised for empty files rather than IOError, and so ZipFile._GetContents() should now also close the file. The fix was committed

[issue7157] Fix Download Current Documentation link

2009-10-16 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: http://docs.python.org/download.html shows this: Download Python 2.6.4c1 Documentation We don't package the documentation for development releases for download. Downloads will be available for the final release. This is not really

[issue7052] from logging import * causes an error under Ubuntu Karmic

2009-10-04 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: Looks like a merge has gone bad. NullHandler has existed for a while on trunk but is not present in the 2.6.3 tag (__all__ was updated to include it, however): /python/tags/r263/Lib/logging/__init__.py -- nosy: +ryles

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2009-08-25 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: Hi Art, Thanks for working on this. I've taken a look at the patch. The fix to read_test looks correct. Of course, I would consider a more descriptive variable name than 'b'. The changes to read() are an improvement, but I think we need

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2009-08-22 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: The zipfile.ZipFile.open() behavior with mode 'U' or 'rU' is not quite as advertised in http://docs.python.org/library/zipfile.html#zipfile.ZipFile.open Here is an example: $ echo -ne This is an example\r\nWhich demonstrates a problem\r\nwith

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2009-06-28 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: While developing an application, an inconsistency was noted where, depending on the particular signal handler in use, multiprocessing.Queue.put() may (or may not) raise OSError() after sys.exit() was called by the handler. The following example

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2009-06-28 Thread Ryan Leslie
Changes by Ryan Leslie ryle...@gmail.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6362 ___ ___ Python-bugs-list mailing

[issue6082] os.path.sameopenfile reports that standard streams are the same

2009-05-21 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: Python 2.6.1 (r261:67515, Apr 2 2009, 18:25:55) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type help, copyright, credits or license for more information. import sys, os os.path.sameopenfile(sys.stdin.fileno(), sys.stdout.fileno()) True

[issue6082] os.path.sameopenfile reports that standard streams are the same

2009-05-21 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: Thanks for the quick response, Philip. Makes even more sense now that I see: Python 2.6.1 (r261:67515, Apr 2 2009, 18:25:55) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type help, copyright, credits or license for more information. open

[issue6082] os.path.sameopenfile reports that standard streams are the same

2009-05-21 Thread Ryan Leslie
Changes by Ryan Leslie ryle...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6082 ___ ___ Python-bugs-list

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: Terminal 1: Python 2.6.1 (r261:67515, Apr 2 2009, 18:25:55) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type help, copyright, credits or license for more information. from multiprocessing.managers import SyncManager manager

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-18 Thread Ryan Leslie
Ryan Leslie ryle...@gmail.com added the comment: Yeah, storing pickled queues in the file system makes for some easy IPC :) It wasn't a very original idea, I took the pickling comments in the documentation at face value: http://docs.python.org/library/multiprocessing.html#proxy-objects So, from

[issue5979] strptime() gives inconsistent exceptions

2009-05-09 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: e.g. from datetime import datetime datetime.strptime(19951001, %Y%m%d) datetime.datetime(1995, 10, 1, 0, 0) datetime.strptime(19951000, %Y%m%d) # day = 0, month 11 ... ValueError: time data '19951000' does not match format '%Y%m%d

[issue5971] logging.Handler.handlerError() may raise IOError in traceback.print_exception()

2009-05-08 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: When using the logging package, if a StreamHandler is configured with stderr and stderr is redirected to a pipe which no longer has readers, then StreamHandler.emit() will result in an IOError for Broken pipe. The exception will be handled