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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Benno Leslie be...@benno.id.au:
--
nosy: +bennoleslie
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16140
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
Changes by Ryan Leslie ryle...@gmail.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6362
___
___
Python-bugs-list mailing
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
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
Changes by Ryan Leslie ryle...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6082
___
___
Python-bugs-list
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
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
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
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
50 matches
Mail list logo