[issue9123] insecure os.urandom on VMS

2010-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +loewis type: -> security versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

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

2010-06-30 Thread S Arrowsmith
S Arrowsmith 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 would be to use OrderedDicts. Al

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: A further version of the pickle protocol could have a dedicated opcode for sets instead... -- ___ Python tracker ___ __

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 28 2010, 22:25

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: r82044 reverted in r82389. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9011] ast_for_factor unary minus optimization changes AST

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

[issue1643370] recursive urlparse

2010-06-30 Thread R. David Murray
R. David Murray 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 model for the IRI, whic

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 earlier. (Including 3.

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

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 time, some garbage r

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
Michael Foord 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 added the comment: On Wed, Jun 30, 2010 at 9:51 PM, Michael Foord 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) The example use in the docs should call

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
Michael Foord 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: -> accepted stage: patch rev

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
New submission from Steve Holden : 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 the mailbox toc. The d

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden : Added file: http://bugs.python.org/file17810/test.mailbox ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden : Added file: http://bugs.python.org/file17811/test2.5.out ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden : Added file: http://bugs.python.org/file17812/test3.1.out ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9124] Mailbox module demonstrates infeasibly slow performance

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

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

2010-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +josiah.carlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7830] Flatten nested functools.partial

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

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-06-30 Thread Vojtech Fried
Vojtech Fried 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 apparently it does. ".py" f

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

2010-06-30 Thread Tim Golden
Tim Golden 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 Fried added the comment: > > I hav

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

2010-06-30 Thread Vojtech Fried
Vojtech Fried added the comment: Thanks, the registry change proposed in the article fixed it. -- ___ Python tracker ___ ___ Python-bu

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

2010-06-30 Thread Mark Dickinson
New submission from Mark Dickinson : 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: == FAIL

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

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Library (Lib) stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-b

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

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the correct test patch. -- Added file: http://bugs.python.org/file17815/parser_except_as_bug.patch ___ Python tracker ___ ___

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

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file17814/parser_except_as_bug.patch ___ Python tracker ___ ___ Python-bugs-li

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

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 >>> parser.sequence2st(parser.suite("try: pa

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

2010-06-30 Thread John Van Praag
New submission from John Van Praag : 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: C:\Users\John\Documents\Python\bug_r

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

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 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: The text file t

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

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2010-06-30 Thread Benjamin Ryzman
New submission from Benjamin Ryzman : 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 processes spawned in the backgrou

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

2010-06-30 Thread Benjamin Ryzman
Changes by Benjamin Ryzman : -- assignee: -> d...@python components: +Documentation, Library (Lib) nosy: +d...@python ___ Python tracker ___ _

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

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

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

2010-06-30 Thread Benjamin Ryzman
Benjamin Ryzman 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 >>> signal.signal(signal.SIGCHLD,signal.SIG_IGN)

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

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

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

2010-06-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Go ahead. -- stage: commit review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mail

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

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 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 miniscule (because you still ne

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

2010-06-30 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> errors='replace' does not work at Windows command line ___ Python tracker ___ __

[issue9120] Reduce pickle size for an empty set

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

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

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17819/smtpd.patch ___ Python tracker ___

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Raymond Hettinger
Raymond Hettinger 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, ... Wanted to reply here s

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

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r82404, r82406, r82407 and r82408. -- resolution: -> fixed stage: unit test needed -> status: open -> closed ___ Python tracker __

[issue9120] Reduce pickle size for an empty set

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

[issue4384] Add a warnings.showwarning replacement for logging

2010-06-30 Thread Éric Araujo
Changes by Éric Araujo : -- stage: needs patch -> committed/rejected versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pytho

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

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

[issue9129] DoS smtpd module vulnerability

2010-06-30 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : 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): giampa...@ubuntu:~/svn/python-2.7$ ./

[issue9120] Reduce pickle size for an empty set

2010-06-30 Thread Alexander Belopolsky
Alexander Belopolsky 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 begs a question, however: why not

[issue9129] DoS smtpd module vulnerability

2010-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 SMTPServer.handle_accept() can be fixed i

[issue9130] Parser module fails on short relative imports

2010-06-30 Thread Mark Dickinson
New submission from Mark Dickinson : 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 me").to

[issue9130] Parser module fails on short relative imports

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 ./python.exe Demo/parser/tes

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 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, "Since sets only define partial o

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 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 defined. [5]" However, the last

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-06-30 Thread Mike Lewis
New submission from Mike Lewis : 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. http://tools.ietf.org/html/rfc3629#section-

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

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

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

2010-06-30 Thread Ezio Melotti
Ezio Melotti 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 http://bugs.python.org/issue8271#msg102209 I think this

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

2010-06-30 Thread Conrad.Irwin
Conrad.Irwin added the comment: Shouldn't this fix be back-ported to the 2.6 branch too? -- nosy: +Conrad.Irwin ___ Python tracker ___ ___

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

2010-06-30 Thread Ezio Melotti
Ezio Melotti added the comment: The issue about invalid surrogates in UTF-8 has been raised in #9133. -- ___ Python tracker ___ ___ Py

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

2010-06-30 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Mark Dickinson
Mark Dickinson 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 added the comment: Ezio Melotti wrote: > > I think this can be closed as wontfix. Agreed. I've already closed the ticket. -- ___ Python tracker ___ _

[issue9131] test_set_reprs in test_pprint is fragile

2010-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes, it's a fragile and crummy test. Feel free to delete it. -- ___ Python tracker ___ ___ Python

[issue9134] sre bug: lastmark_save/restore

2010-06-30 Thread Armin Rigo
New submission from Armin Rigo : 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) {mark_save()/mark_restore()}. The bug appears by

[issue9131] test_set_reprs in test_pprint is fragile

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

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

2010-06-30 Thread Delaney Gillilan
New submission from Delaney Gillilan : 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 print(handle.read().format('utf-8')) Fi

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

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

[issue9134] sre bug: lastmark_save/restore

2010-06-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Regular Expressions nosy: +ezio.melotti stage: -> unit test needed type: -> behavior ___ Python tracker ___ ___

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

2010-06-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9136] RuntimeError when profiling Decimal

2010-06-30 Thread Yuv Gre
New submission from Yuv Gre : 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 = decimal.Decimal.from_float(math.e)**(-2**31

[issue9136] RuntimeError when profiling Decimal

2010-06-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, mark.dickinson stage: -> unit test needed ___ Python tracker ___ ___ Python-bugs-lis

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

2010-06-30 Thread Ezio Melotti
Ezio Melotti 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: +ezio.melotti resolut

[issue9136] RuntimeError when profiling Decimal

2010-06-30 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2010-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also #3080. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3080] Full unicode import system

2010-06-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-06-30 Thread Alexander Belopolsky
Alexander Belopolsky 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 test cases, no code is changed. --

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

2010-06-30 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> accepted stage: patch review -> commit review ___ Python tracker ___

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

2010-06-30 Thread STINNER Victor
STINNER Victor 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 version field. -- versio

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

2010-06-30 Thread STINNER Victor
STINNER Victor 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 arguments are no longe

[issue9132] Documentation for comparing dictionaries is out of date

2010-06-30 Thread Alexander Belopolsky
Alexander Belopolsky 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 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. -- keywords: +patch nosy: +belopolsky

[issue9120] Reduce pickle size for an empty set

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

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

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

[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-06-30 Thread Brett Cannon
Brett Cannon added the comment: Turns out that an ImportError should be raised when a bytecode object contains a non-code object. My next patch which makes SourceLoader the primary loader will have the fix. -- components: +Library (Lib) resolution: -> accepted type: -> behavior vers