[issue9123] insecure os.urandom on VMS

2010-06-30 Thread Antoine Pitrou
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

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2010-06-30 Thread S Arrowsmith
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

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Antoine Pitrou
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

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
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

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: r82044 reverted in r82389. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9011 ___ ___

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
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. --

[issue1643370] recursive urlparse

2010-06-30 Thread R. David Murray
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

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
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

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
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

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
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

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Nick Coghlan
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)

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
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: -

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
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

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
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 ___

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
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 ___

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
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 ___

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
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

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +josiah.carlson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6589 ___ ___

[issue7830] Flatten nested functools.partial

2010-06-30 Thread Alexander Belopolsky
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__.

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___ ___

[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Vojtech Fried
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

[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Tim Golden
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

[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-06-30 Thread Vojtech Fried
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 ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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:

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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 ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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 ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9126] errors='replace' does not work at Windows command line

2010-06-30 Thread John Van Praag
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:

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9029] errors='replace' works in IDLE, fails at Windows command line.

2010-06-30 Thread John Van Praag
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:

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9125 ___ ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9125 ___ ___

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2010-06-30 Thread Benjamin Ryzman
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

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2010-06-30 Thread Benjamin Ryzman
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

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2010-06-30 Thread Jean-Paul Calderone
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

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2010-06-30 Thread Benjamin Ryzman
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

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Benjamin Peterson
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 ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
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

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Raymond Hettinger
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

[issue9029] errors='replace' works in IDLE, fails at Windows command line.

2010-06-30 Thread Benjamin Peterson
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

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Antoine Pitrou
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

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
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

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Raymond Hettinger
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, ...

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-30 Thread Giampaolo Rodola'
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

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Antoine Pitrou
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

[issue4384] Add a warnings.showwarning replacement for logging

2010-06-30 Thread Éric Araujo
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 ___

[issue9128] Parser module fails to validate class decorators correctly.

2010-06-30 Thread Mark Dickinson
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():

[issue9129] DoS smtpd module vulnerability

2010-06-30 Thread Giampaolo Rodola'
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):

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Alexander Belopolsky
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

[issue9129] DoS smtpd module vulnerability

2010-06-30 Thread Giampaolo Rodola'
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

[issue9130] Parser module fails on short relative imports

2010-06-30 Thread Mark Dickinson
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

[issue9130] Parser module fails on short relative imports

2010-06-30 Thread Mark Dickinson
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

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Daniel Stutzbach
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,

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Daniel Stutzbach
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

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9132 ___ ___

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Mike Lewis
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.

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Mike Lewis
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 -- ___

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Ezio Melotti
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

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2010-06-30 Thread Conrad.Irwin
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 ___

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-06-30 Thread Ezio Melotti
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 ___

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Marc-Andre Lemburg
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 ___

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Mark Dickinson
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

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Marc-Andre Lemburg
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

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Raymond Hettinger
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 ___

[issue9134] sre bug: lastmark_save/restore

2010-06-30 Thread Armin Rigo
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)

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Raymond Hettinger
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 ___

[issue9135] XMLRPC documentation binary file example does not execute.

2010-06-30 Thread Delaney Gillilan
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

[issue9135] XMLRPC documentation binary file example does not execute.

2010-06-30 Thread Ezio Melotti
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

[issue9134] sre bug: lastmark_save/restore

2010-06-30 Thread Ezio Melotti
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

[issue9133] Invalid UTF8 Byte sequence not raising exception/being substituted

2010-06-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9133 ___ ___

[issue9136] RuntimeError when profiling Decimal

2010-06-30 Thread Yuv Gre
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 =

[issue9136] RuntimeError when profiling Decimal

2010-06-30 Thread Ezio Melotti
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 ___

[issue9126] errors='replace' does not work at Windows command line

2010-06-30 Thread Ezio Melotti
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:

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-06-30 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #3080. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___ ___

[issue3080] Full unicode import system

2010-06-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-30 Thread Alexander Belopolsky
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

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-30 Thread Alexander Belopolsky
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

[issue7673] audioop: check that length is a multiple of the size

2010-06-30 Thread STINNER Victor
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

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-06-30 Thread STINNER Victor
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

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Alexander Belopolsky
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

[issue9118] help() on a property descriptor launches interactive help

2010-06-30 Thread Alexander Belopolsky
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. --

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Alexandre Vassalotti
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

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-30 Thread Alexandre Vassalotti
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