Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
nosy: +loewis
type: - security
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9123
S Arrowsmith si...@chiark.greenend.org.uk added the comment:
That solution looks sound to me, in particular documenting the semantics of
repeated init() calls!
As for the underlying problem, it seems to me that an alternative to copying
the existing structures rather than rebuilding them
Antoine Pitrou pit...@free.fr added the comment:
A further version of the pickle protocol could have a dedicated opcode for sets
instead...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9120
Mark Dickinson dicki...@gmail.com added the comment:
It turns out that removing this code from py3k wasn't a no-op. It changed the
semantics for complex literals. In Python 3.1.2:
-7j
-7j
(-7j).real
0.0
But in current release31-maint branch, and in 3.2a0:
Python 3.2a0 (py3k:82347M, Jun
Mark Dickinson dicki...@gmail.com added the comment:
r82044 reverted in r82389.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9011
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Added tests for the current Python 3.2 treatment of imaginary literals in
r82390 (release31-maint). These tests should be backported to trunk, but I'll
wait until after the release of 2.7 for that.
--
R. David Murray rdmur...@bitdance.com added the comment:
Since no patch has been proposed since 2007, I think it is time to close this
feature request for lack of interest.
In any case I think this functionality would be better situated in a Python3
URI/IRI parsing module with a full object
Mark Dickinson dicki...@gmail.com added the comment:
Added tests for Python 3.2's corrected treatment of negated imaginary literals
in r82391, along with a Misc/NEWS entry indicating the changed behaviour.
Restored version numbers for this issue, which I seem to have accidentally
deleted
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Although the use case is pretty uncommon and somewhat twisted (take a look at
Lib/test/test_ftplib.py for a nicer approach on wrapping asyncore.loop() in a
thread) it is true that if SMTPServer class raise an exception at instantiation
Michael Foord mich...@voidspace.org.uk added the comment:
New patch uploaded with (I think) all suggested changes made. I left some text
in the .. versionchanged:: tag for contextmanager as I think this is normal.
--
Added file: http://bugs.python.org/file17808/contextdecorator.2.patch
Nick Coghlan ncogh...@gmail.com added the comment:
On Wed, Jun 30, 2010 at 9:51 PM, Michael Foord rep...@bugs.python.org wrote:
I left some text in the .. versionchanged:: tag for contextmanager as I think
this is normal.
Yeah, what you did was what I meant (I just didn't say it very well)
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 82394.
I left examples of using ContextDecorator with a decorated *and* in a with
statement in the documentation. Feel free to trim the with statement example if
you feel it is redundant.
--
resolution: -
New submission from Steve Holden st...@holdenweb.com:
The attached program completes in less than half a second under Python 2.5.
Under Python 3 it takes almost three minutes on the same system. The issue
appears to be heavy use of decoding, at least in a Windows system, during
creation of
Changes by Steve Holden st...@holdenweb.com:
Added file: http://bugs.python.org/file17810/test.mailbox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
Changes by Steve Holden st...@holdenweb.com:
Added file: http://bugs.python.org/file17811/test2.5.out
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
Changes by Steve Holden st...@holdenweb.com:
Added file: http://bugs.python.org/file17812/test3.1.out
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
Steve Holden st...@holdenweb.com added the comment:
Thread at http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3873005
refers to this issue. Posted files are already attached herewith.
--
___
Python tracker rep...@bugs.python.org
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +josiah.carlson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6589
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a patch, issue7830.diff, that takes an ultra-concervative
approach: partials are only flattened if both outer and inner are of exact
functools.partial type and the inner partial does not have __dict__.
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
___
Vojtech Fried vojtech.fr...@gmail.com added the comment:
I have the same problem. Not only for piping but also when using redirection,
e.g. 'stdout.py log.txt'.
Interesting thing is that when I run it like 'python.exe stdout.py log.txt'
it works. I don't see why this should matter but
Tim Golden m...@timgolden.me.uk added the comment:
That's (still...) a known issue with Windows file associations and
redirects:
http://support.microsoft.com/kb/321788
In theory it was fixed way back when. In practise...
On 30/06/2010 15:04, Vojtech Fried wrote:
Vojtech
Vojtech Fried vojtech.fr...@gmail.com added the comment:
Thanks, the registry change proposed in the article fixed it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8056
___
New submission from Mark Dickinson dicki...@gmail.com:
There seems to be a parser module bug for the except-as syntax in Python 2.7.
After applying the attached patch (which adds a test to test_parser), and
running test_parser, I get:
Changes by Mark Dickinson dicki...@gmail.com:
--
components: +Library (Lib)
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
Mark Dickinson dicki...@gmail.com added the comment:
Here's the correct test patch.
--
Added file: http://bugs.python.org/file17815/parser_except_as_bug.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file17814/parser_except_as_bug.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
Mark Dickinson dicki...@gmail.com added the comment:
Minimal steps to reproduce:
Python 2.7rc2+ (trunk:82378M, Jun 29 2010, 19:43:46)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type help, copyright, credits or license for more information.
import parser
New submission from John Van Praag j...@jvp247.com:
The declaration errors='replace' works from within IDLE but not at the Windows
command line. I am attaching a program and text file that demonstrate the
problem. The error shows up at the Windows command line as follows:
Mark Dickinson dicki...@gmail.com added the comment:
Here's a fix.
Benjamin, is this okay for 2.7, or should it wait for 2.7.1?
--
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file17817/issue9125.patch
___
Python tracker
John Van Praag j...@jvp247.com added the comment:
I just now resubmitted, with a text file and program demonstrating the
problem: Issue9126.
I am new to submitting Python bug reports and I would like to do it
right. I found I could only attach 1 file to the bug report. However, I
had two files:
Changes by Mark Dickinson dicki...@gmail.com:
--
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
___
Python-bugs-list
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
___
Changes by Mark Dickinson dicki...@gmail.com:
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
___
New submission from Benjamin Ryzman benjamin+pyt...@ryzman.fr:
http://pastie.org/1025197
Is it deemed acceptable that setting up one's own SIGCHLD handler breaks
communicate()?
I did not find it in the documentation.
With the above workaround one can mix communicate() processes with
Changes by Benjamin Ryzman benjamin+pyt...@ryzman.fr:
--
assignee: - d...@python
components: +Documentation, Library (Lib)
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9127
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
You should include all relevant issue materials here, in the Python issue
tracker. This ticket will be useless as soon as pastie.org decides to forget
about your paste.
--
nosy: +exarkun
Benjamin Ryzman benjamin+pyt...@ryzman.fr added the comment:
Content of the above pastie:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
import signal
import subprocess
Mark Dickinson dicki...@gmail.com added the comment:
Updated patch, LBYL instead of EAFP flavour.
Oh, and this one actually compiles, too.
--
Added file: http://bugs.python.org/file17818/issue9125_v2.patch
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
Go ahead.
--
stage: commit review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9125
___
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, Benjamin. Applied in r82400 (trunk) and r82401 (release26-maint).
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
A further version of the pickle protocol could
have a dedicated opcode for sets instead...
-1 We don't have to introduce a new (and backwards incompatible) opcode for
every possible container type. The space savings is
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - errors='replace' does not work at Windows command line
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9029
Antoine Pitrou pit...@free.fr added the comment:
A further version of the pickle protocol could
have a dedicated opcode for sets instead...
-1 We don't have to introduce a new (and backwards incompatible)
opcode for every possible container type.
What I was implying is that someone
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Patch in attachment.
--
keywords: +patch
Added file: http://bugs.python.org/file17819/smtpd.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6589
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
People concerned about pickle size would be much better off investing
time into a more generic solution (such as adding a code to
automatically run zip/gzip/bzip/xz etc).
That's at the expense of (un)pickling speed, ...
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Fixed in r82404, r82406, r82407 and r82408.
--
resolution: - fixed
stage: unit test needed -
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6589
Antoine Pitrou pit...@free.fr added the comment:
When talking about pickle speed performance, we need to take into
account that most use cases for pickle are i/o bound. IOW, the time
to pickle and unpickle is dominated by the time needed to read/write
the pickle to/from disk or to send it
Changes by Éric Araujo mer...@netwok.org:
--
stage: needs patch - committed/rejected
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4384
___
New submission from Mark Dickinson dicki...@gmail.com:
Python 2.7rc2+ (trunk:82399M, Jun 30 2010, 17:10:13)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type help, copyright, credits or license for more information.
import parser
[35303 refs]
parser.sequence2st(parser.suite(@deco\nclass A():
New submission from Giampaolo Rodola' g.rod...@gmail.com:
Steps to reproduce the issue:
- in one shell run: python -m smtpd -n
- in another one run: for i in {1..1000};do nmap -sT -p 8025 localhost;done
The server will print out the following output and just quit (DoS):
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
We don't have to introduce a new (and backwards incompatible)
opcode for every possible container type.
I would draw the line at containers that have literal syntax (and necessarily
have dedicated .pyc opcode).
This
Giampaolo Rodola' g.rod...@gmail.com added the comment:
It would be ideal to solve this issue in asyncore.py by fixing
dispatcher.accept() once and for all, but I'm not sure whether this can be done
in a fully retro-compatible way in terms of asyncore API.
Alternatively
New submission from Mark Dickinson dicki...@gmail.com:
Python 2.7rc2+ (trunk:82399M, Jun 30 2010, 17:10:13)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type help, copyright, credits or license for more information.
import parser
[35303 refs]
parser.sequence2st(parser.suite(from . import
Mark Dickinson dicki...@gmail.com added the comment:
With this patch, and the one in issue 9128, the parser module roundtrips
correctly on all Lib/*.py and all Lib/test/*.py files (except for
Lib/test/bad*.py). Tested by doing:
./python.exe Demo/parser/test_parser.py Lib/*.py
and
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com:
test_set_reprs in test_pprint creates a complex arrangement of frozensets and
tests the pretty-printed repr against a string hard-coded in the test. The
hard-coded repr depends on the sort order of frozensets.
However,
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com:
reference/expressions.html#notin reads:
Mappings (dictionaries) compare equal if and only if their sorted (key, value)
lists compare equal. [4] Outcomes other than equality are resolved
consistently, but are not otherwise
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9132
___
___
New submission from Mike Lewis mikelikes...@gmail.com:
When I do
codecs.encode(codecs.decode('\xed\xbc\xad', 'utf8'), 'utf8')
its not throwing an exception. '\xed\xbc\xad' is an invalid UTF8 byte sequence.
It maps to the value U+DF2D which is a surrogate pair it seems.
Mike Lewis mikelikes...@gmail.com added the comment:
Sorry, meant to add this part to the quote from the rfc:
This leads to different results for character
numbers above 0x; the CESU-8 encoding of those characters is NOT
valid UTF-8
--
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is already fixed in Python 3.
However I think that for backward compatibility reasons it can't be fixed in
Python 2, where it is possible to encode and decode every codepoint to/from
UTF-8.
See also
Conrad.Irwin conrad.ir...@gmail.com added the comment:
Shouldn't this fix be back-ported to the 2.6 branch too?
--
nosy: +Conrad.Irwin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5006
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The issue about invalid surrogates in UTF-8 has been raised in #9133.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8271
___
Changes by Marc-Andre Lemburg m...@egenix.com:
--
resolution: - wont fix
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9133
___
Mark Dickinson dicki...@gmail.com added the comment:
I agree that this looks a bit suspicious.
Adding Raymond to the nosy list, since it looks like this is his code (r60264).
--
nosy: +mark.dickinson, rhettinger
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Ezio Melotti wrote:
I think this can be closed as wontfix.
Agreed. I've already closed the ticket.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9133
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Yes, it's a fragile and crummy test.
Feel free to delete it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9131
___
New submission from Armin Rigo ar...@users.sourceforge.net:
The re module is buggy is rare cases; see attached example script.
The bug is caused by the macros LASTMARK_SAVE and LASTMARK_RESTORE which are
sometimes used without the extra code that does if (state-repeat)
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
After discussion on #python-dev, have decided to mark the test as
implementation specific and add a comment about why the test is fragile.
--
assignee: stutzbach - rhettinger
___
New submission from Delaney Gillilan delaneygilli...@gmail.com:
Documentation available at
http://docs.python.org/release/3.0.1/library/xmlrpc.client.html#binary-objects
produced incorrect results ...
Traceback (most recent call last):
File test_server.py, line 28, in module
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is already fixed in the latest version of the doc:
http://docs.python.org/py3k/library/xmlrpc.client.html#binary-objects
--
nosy: +ezio.melotti
resolution: - out of date
stage: - committed/rejected
status: open - closed
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Regular Expressions
nosy: +ezio.melotti
stage: - unit test needed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9134
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9133
___
___
New submission from Yuv Gre ubershme...@gmail.com:
I'm using Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit
(Intel)] on win32. Running the following code:
import profile
import math
import decimal
def show_bug():
x =
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, mark.dickinson
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9136
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The problem is not in the reading part, but in the print().
Since the default encoding of your terminal is cp437 and cp437 is not able to
encode the bad character (U+2019 RIGHT SINGLE QUOTATION MARK), an error is
raised.
--
nosy:
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #3080.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8611
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3080
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I would like to commit this as written. If a better mechanism for associating
native implementation with a pure python module is found, it can easily be
added in the future. Any objections? The patch only adds more
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: - belopolsky
resolution: - accepted
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9104
STINNER Victor victor.stin...@haypocalc.com added the comment:
@Mark: Here is the updated version of the patch including all of your remarks.
I fixed 3 bugs in my patch: the checks of adpcm2lin(), alaw2lin() and
audioop.ulaw2lin() were incomplete (len was not checked).
I added 3.1 to the
STINNER Victor victor.stin...@haypocalc.com added the comment:
array2.diff:
- can you reindent the line Py_ssize_t old_size = Py_SIZE(self);?(even if
it's not part of your patch)
- you can avoid the char *str; variable (use directly buffer.buf)
--
I changed s# to y*. This means that str
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Reference to sorted (key, value) lists is a bit misleading as well. Dicts'
equality is defined even if key or values are not orderable.
--
nosy: +belopolsky
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This is simply because X.foo.fset is None and help(None) is the same as help().
Now, I think help(None) should print help on None object rather than start
interactive help. Please consider attached patch.
--
Alexandre Vassalotti alexan...@peadrop.com added the comment:
This begs a question, however: why not use regular python bytecode in pickles?
Unlike pickle protocols, the bytecode is not required to be compatible across
Python versions. Furthermore, Python bytecode is designed has a general
Alexandre Vassalotti alexan...@peadrop.com added the comment:
It works for pickle/_pickle and heapq/_heapq, but won't work for io/_io/_pyio.
You can make the dictionary values as lists for the 'blocked' argument for
import_fresh_module(). That would work.
And, can you add documentation for
86 matches
Mail list logo