Martin v. Löwis added the comment:
Ah ok. I guess tuples.py then indeed demonstrates a saving. I'll apply the
patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13483
___
Martin v. Löwis added the comment:
I'm still skeptical that a new exception should be introduced in 2.7.x, or 3.3
(might this break existing setups?). I suggest to ask the release manager for a
decision.
But if this is done, then I propose to add the following text to ServerProxy:
Roundup Robot added the comment:
New changeset ef037ad304c1 by Raymond Hettinger in branch '2.7':
Issue #18031: %-formatting isn't dead yet and might pull through.
http://hg.python.org/cpython/rev/ef037ad304c1
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset e1d6140b02f0 by Raymond Hettinger in branch '3.3':
Issue #18031: %-formatting isn't dead yet and might pull through.
http://hg.python.org/cpython/rev/e1d6140b02f0
--
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18031
___
New submission from Nick Coghlan:
Another attempt at tackling the but I want to ensure my enum values are
unique problem that PEP 435 deliberately chose not to handle. My previous
suggestion (in issue 17959) was rightly rejected due to the other problems it
caused, but this idea is much
Changes by Nick Coghlan ncogh...@gmail.com:
--
dependencies: +Code, test, and doc review for PEP-0435 Enum
nosy: +eli.bendersky, ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
Charles-François Natali added the comment:
I'm not familiar with windows, but if I understand the patch
correctly, you can only select from a single subprocess at a time,
which is IMO an important limitation.
Also, the fact that close() can fail with BlockingIOError is really a
pain, and makes
Roundup Robot added the comment:
New changeset 85e8414060b4 by Nick Coghlan in branch '3.3':
Issue 17844: Clarify meaning of different codec tables
http://hg.python.org/cpython/rev/85e8414060b4
New changeset 801567d6302c by Nick Coghlan in branch 'default':
Merge issue 17844 from 3.3
Nick Coghlan added the comment:
Thanks for initiating this Serhiy :)
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17844
Nick Coghlan added the comment:
We now also need to update the new footnote that I added for issue 17844 in
http://hg.python.org/cpython/rev/801567d6302c
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17839
New submission from Ram Rachum:
There's no mention of `match.regs` in the documentation of the `re` module.
--
assignee: docs@python
components: Documentation
messages: 189859
nosy: cool-RR, docs@python
priority: normal
severity: normal
status: open
title: No mention of `match.regs` in
Nick Coghlan added the comment:
The codec uses the old API that breaks the encoded output up into multiple
lines.
The new patch:
1. Also changes the behaviour of the older de/encodebytes API
2. Checks that all the defined binary transform codecs actually support
memoryview as input for both
Nick Coghlan added the comment:
Just adding a note for easier cross-referencing: the old behaviour of these
functions was one of the culprits that led to the removal of the codec aliases
as discussed in issue 7475
--
___
Python tracker
New submission from Tim Rawlinson:
In Python 3.3 decoding of headers to unicode is supposed to be automatic but
fails in several cases, including one shown as successful in the documentation:
msg = message_from_string('Subject: =?utf-8?q?=C3=89ric?=\n\n',
policy=default)
Roundup Robot added the comment:
New changeset 26ac5b9cffda by Senthil Kumaran in branch '3.3':
Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in
3.3
http://hg.python.org/cpython/rev/26ac5b9cffda
New changeset f7992397e98d by Senthil Kumaran in branch 'default':
Senthil Kumaran added the comment:
This change is documented. Thanks for the report.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18007
___
Eli Bendersky added the comment:
How about this patch (not tested it too much - just as a proof of concept).
We're pretty free in the C API exported by pyexpat through a capsule to
_elementtree, so we can also add a default handler there. This API already has
some general utilities like
Delhallt added the comment:
proposed patch
--
keywords: +patch
nosy: +delhallt
Added file: http://bugs.python.org/file30348/Python-2.7.5-linkso.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17454
paul j3 added the comment:
Here's another approach to the problem, using an iterative localized search.
For simple cases it produces the same thing, but in complex cases it is more
robust.
It is based on two ideas:
- if the action in consume_optional() is being 'greedy', use
slots =
Changes by paul j3 ajipa...@gmail.com:
Removed file: http://bugs.python.org/file30349/argparse_7.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
paul j3 added the comment:
Oops, I attached the wrong file. Here's the correct one.
--
Added file: http://bugs.python.org/file30350/issue9338_7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
Changes by James Socol me+pyb...@jamessocol.com:
--
nosy: +jamessocol
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9883
___
___
Python-bugs-list
Charles-François Natali added the comment:
Shouldn't the surrogateescape error handler (PEP 383) prevent this?
Yes, it shoud (I just read PEP 383, I told you I didn't know anything
about encoding :-).
So basically, for the test failure, the issue is simply that the
platform's default encoding
Brett Cannon added the comment:
If someone wants to submit a patch to make the change that's fine, but they are
going to have the same issue when they simply execute an import that
byte-compiles as a side-effect so you will have to decide if you are only
worried about py_compile.
--
Oscar Benjamin added the comment:
I have written a function that can be used to determine if the gcc
that distutils will use is from Cygwin or MinGW:
def is_cygwingcc():
'''Try to determine if the gcc that would be used is from cygwin.'''
out = Popen(['gcc', '-dumpmachine'], shell=True,
Brett Cannon added the comment:
The line raising the exception is
http://hg.python.org/cpython/file/f7992397e98d/Lib/importlib/_bootstrap.py#l1518
.
If you're sure it's a regression feel free to change what exception is raised.
--
assignee: - flox
Thom Nichols added the comment:
Is there any chance of this being backported to Python 2.7? Given NIST's
complete deprecation of SHA1 and TLS 1.0 by end of 2013, I imagine there are at
least a few folks who can't upgrade to Python 3.x, but need TLS 1.2 support. I
think Ruby just recently
Roumen Petrov added the comment:
Oscar Benjamin wrote:
Oscar Benjamin added the comment:
I have written a function that can be used to determine if the gcc
that distutils will use is from Cygwin or MinGW:
def is_cygwingcc():
'''Try to determine if the gcc that would be used is from
Zachary Ware added the comment:
Here's a new version of the patch, which is a major rewrite. Among the changes:
- Switch from using 'goto' to execute the right subroutine to 'call' and end
every subroutine with 'exit /B' (thank you Richard for making me aware of that
possibility). This
STINNER Victor added the comment:
Set also issue #3329 which proposes an API to define memory allocators.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13483
___
Zachary Ware added the comment:
Here's a simple patch to clear up the first paragraph of PCbuild/readme.txt,
applicable to 3.3 and default.
--
keywords: +patch
nosy: +zach.ware
Added file: http://bugs.python.org/file30352/issue17326.diff
___
Python
Paul Moore added the comment:
On 23 May 2013 20:11, Roumen Petrov rep...@bugs.python.org wrote:
Is this approach acceptable?
It is not enough.
Support for compilers other than gcc (including cross-compilers) is a
separate issue, and one which is much less likely to get accepted.
Antoine Pitrou added the comment:
Is there any chance of this being backported to Python 2.7? Given
NIST's complete deprecation of SHA1 and TLS 1.0 by end of 2013, I
imagine there are at least a few folks who can't upgrade to Python
3.x, but need TLS 1.2 support. I think Ruby just recently
Zachary Ware added the comment:
Terry, I just tested your 2.7 patch, and it does work, but the workaround that
(I think) we have both been using on 3.x to find the Tcl/Tk .dlls (copying them
into PCbuild) doesn't work on 2.7 for some reason. However, if you add
..\tcltk\bin to PATH, which
Changes by David Wolever wole...@cs.toronto.edu:
Added file: http://bugs.python.org/file30353/102b3e257dca.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17701
___
Changes by David Wolever wole...@cs.toronto.edu:
Removed file: http://bugs.python.org/file30353/102b3e257dca.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17701
___
Changes by David Wolever wole...@cs.toronto.edu:
Added file: http://bugs.python.org/file30354/0f4d971b0cee.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17701
___
Mark Lawrence added the comment:
Has this been fixed in the regex module?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7940
___
Ethan Furman added the comment:
This is certainly an effective method, but it places safety off by default. I
would rather have a system that was from duplicates by default but had an easy
override.
The method I had in place in my original code was something like:
class Color(Enum,
Nick Coghlan added the comment:
I take Guido's acceptance of the PEP (and the discussion in the previous
issue) as meaning the default behaviour (allowing aliases) is no longer up
for debate. Hence this suggestion to offer a self-documenting way to opt in
to the more restrictive variant.
Ethan Furman added the comment:
I'm not giving up hope yet. Plenty of Python features no longer work the way
they did when their PEP was accepted. ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
Matthew Barnett added the comment:
Yes. As msg99456 suggests, I fixed it the my source code before posting.
Compare re in Python 3.3.2:
re.compile('x').findall('', 1, 3)
['x', 'x']
re.compile('x').findall('', 1, -1)
[]
with regex:
regex.compile('x').findall('', 1, 3)
['x',
Nikolaus Rath added the comment:
Matt, I believe in that case it's still a documentation issue, because then the
documentation probably should say that using absolute paths to libraries is a
bad idea in general.
--
___
Python tracker
Renato Silva added the comment:
I must note that GCC 4.x *does* support -mno-cygwin, at least until 4.4, and at
least the MinGW version. I have used it myself for building Pidgin under
Windows, which requires that option. See [1] where a Pidgin developer confirms
that.
[1]
New submission from Matt Mao:
Python version : 2.7.5
OS : CentOS 6.3
When I tried to build a rpm with python ./setup.py bdist_rpm, I get the
following error :
Traceback (most recent call last):
File setup.py, line 221, in module
... and much more ;)
File
New submission from Alex Gaynor:
This patch splits a dictionary that maps integer and string representations of
levels to each other out into two dictionaries, one which goes int - string,
and the other which is string - int. This makes it easier to reason about what
a variable contains.
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18046
___
___
Python-bugs-list
Nick Coghlan added the comment:
You don't generally see reversals of decisions where Guido has made an explicit
choice based on consistency with the rest of the language. The fact that
aliases are permitted in enumerations by default is consistent with the normal
behaviour of namespaces and
Eric Snow added the comment:
It's worth noting that issue10977 is pretty closely related to this isssue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
Ethan Furman added the comment:
Oh. Well, I like your decorator. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
___
___
Eric Snow added the comment:
I just looked at the test-collections patch and don't want it
committed. It is full of trivial edits that make it hard to
review and doesn't make the test suite better.
Thanks for the feedback, Raymond. I agree that there are a number of trivial
edits there
Nick Coghlan added the comment:
Don't worry, compared to some of the ideas I've had (and rightfully had shot
down) over the years, that one was positively sensible :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
Eric Snow added the comment:
Raymond, do you have any objections to splitting the OrderedDict-related tests
into their own module. Doing so allows for testing all the those test classes
at once, which is handy when working on OrderedDict. This is more relevant now
with the extra
New submission from Arnaud Porterie:
In the Data Model section of the documentation regarding descriptors
invokations
(http://docs.python.org/2/reference/datamodel.html#invoking-descriptors), it is
said:
Note that descriptors are only invoked for new style objects or classes
(ones that
Eric Snow added the comment:
I finally had some time so here's an updated patch (including O(1) deletions).
I've also added a bunch of notes at the top of odictobject.c. Some notable
things left to do:
* address two recently failing tests due to r83881 (issue 17900)
* check for any
Changes by Eric Snow ericsnowcurren...@gmail.com:
Removed file: http://bugs.python.org/file29077/cleanup-test-collections.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
Removed file: http://bugs.python.org/file29078/odict.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
58 matches
Mail list logo