[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide programming errors. -- nosy: +lemburg title: Some "trivial" python 2.x pickles fails to load in Python 3.2 -> So

[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread Duncan Booth
Duncan Booth added the comment: > If anyone knows how to reproduce the two bugs with a short Python > script, I can try to convert it into a test. If you don't mind kicking off some sub-processes then here's a script that shows the bugs. I couldn't figure out how to do a script that would wor

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : Attaching a documentation patch. -- assignee: rhettinger files: chainmap.diff keywords: patch messages: 129161 nosy: rhettinger priority: low severity: normal status: open title: Make ChainMap() public in the collections module. type: feature reque

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is nice, but IMO there is some information lacking, e.g.: - when an underlying mapping is mutated, does the ChainMap get updated too? - does it work with arbitrary mappings or only with dicts or dicts subclasses? I think new_child() isn't very useful. It s

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: ("too specialized", sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I am not sure PyUnicode_Decode() should treat NULL as an empty string. > > Definitely not. That would hide programming errors. Well, this could break some third-party code. -- title: Some "trivial" python 2.x pickles fails to load in Python

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Stefan Krah
Stefan Krah added the comment: Works fine for me (Windows 7, 64-bit, 32-bit Python-3.2). I do have the plain US English version. Do you have localized versions? -- nosy: +skrah ___ Python tracker _

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >>> I am not sure PyUnicode_Decode() should treat NULL as an empty string. >> >> Definitely not. That would hide programming errors. > > Well, this could break some third-party code. If that

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine Pitrou wrote: > > > > Antoine Pitrou added the comment: > > > >>> I am not sure PyUnicode_Decode() should treat NULL as an empty string. > >> > >> Definitely not. That would hide programming errors. > > > > Well, this could break some third-party c

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> Antoine Pitrou wrote: >>> >>> Antoine Pitrou added the comment: >>> > I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide pr

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Hmm. Note that this problem does *not* occur if i don't install Python but run it in place, e.g. 'cd Lib/test; ../../python.exe -m test -v -uall test_iter' works just perfect. -- ___ Python tracker

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: ... and the problem is all gone with 8c2935f180fa/r88525. So i'm faitful now and close this early alpha-stage problem. One of the nosy ones may add a nice description, re-open it or so. -- ___ Python tracker

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (.. should close it, then.) -- status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > PyUnicode_Decode() et al. are conversion functions and these > require valid content to work on. Passing in a NULL pointer > does not fit that specification and so allowing for this > would hide programming errors. "Valid content" doesn't mean a lot when the

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record: > e.g. 'cd Lib/test; ../../python.exe -m test -v -uall test_iter' works > just perfect. You don't need to "cd". Just "./python -m test (etc.)". See http://docs.python.org/devguide/runtests.html for more information. -- ___

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> PyUnicode_Decode() et al. are conversion functions and these >> require valid content to work on. Passing in a NULL pointer >> does not fit that specification and so allowing for this >> wou

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > So, IMO, practicality beats purity here. Especially since it is bound to > > land in a bugfix release (3.2.1), which users don't expect to produce > > regressions in their own code. > > Nope. Your suggestion would be a new feature and those are not > allowe

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
New submission from blokeley : `python -m unittest discover` caught me out. I had a test module called `test-foo.py` and no test was loaded. When I renamed to `test_foo.py` it worked. The documentation says "For a project’s tests to be compatible with test discovery they must all be importab

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I append a doc_lib_mmap.patch which may be helpful for those poor creatures who plan to write Python scripts for Mac OS X. (It may be a useful add-on anyway.) -- Added file: http://bugs.python.org/file20859/doc_lib_mmap.patch

[issue11224] 3.2: tarfile.getmembers causes 100% cpu usage on Windows

2011-02-23 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for your great report. This is fixed now in r88528 (py3k) and r88529 (release32-maint). -- keywords: +3.2regression resolution: -> accepted stage: -> committed/rejected status: open -> closed versions: +Python 3.3 _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Sounds like a good change to the docs. Care to provide a patch? -- nosy: +michael.foord ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread STINNER Victor
STINNER Victor added the comment: Fixed in 3.3 (r88530) and 3.2 (r88531). Others versions are not affected. Thanks Duncan Booth, I added tests based on your stdintests.py script. I used directly stdin argument of Popen() instead of using cmd.exe to create the pipe (which is not portable). --

[issue10830] PyUnicode_FromFormatV("%c") doesn't support non-BMP characters on narrow build

2011-02-23 Thread STINNER Victor
STINNER Victor added the comment: Fixed in 3.2 too (r88532). -- resolution: -> fixed status: pending -> closed ___ Python tracker ___ __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file20859/doc_lib_mmap.patch ___ Python tracker ___ ___ Python-bugs-l

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: What if we commit Antoine patch for 3.2.x, and the "correct" patch for py3k trunk?. I am actually +1 to Marc-Andre. I feel in my guts that the provided patch is hidding a deeper issue. But avoiding surprises for third parties in 3.2.1 is a good idea. -

[issue2650] re.escape should not escape underscore

2011-02-23 Thread SilentGhost
Changes by SilentGhost : Added file: http://bugs.python.org/file20860/test_re.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue2650] re.escape should not escape underscore

2011-02-23 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20389/test_re.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Nope. Your suggestion would be a new feature and those are not > > allowed in patch level releases. > > What new feature are you talking about? I think you misunderstood the > actual issue: NULL as an empty string *worked* in 3.1 And, with a very high like

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Sorry, i've got that kid running around which sometimes doesn't know what it is doing. But this documentation patch may really be a help. It's my first doc-patch, so it surely needs to be revised, if interest exists in such a patch for mmap at all,

[issue3080] Full unicode import system

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: This new failure is perhaps related: http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x/builds/572/steps/test/logs/stdio == FAIL: test_module (test.test_rep

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please go with Alexander's solution of fixing the higher level code rather than silently trying to introduce a new feature in PyUnicode_Decode() that hides programming errors. Thanks. -- ___ Python tracker

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
David Beazley added the comment: Bump. This is still broken in Python 3.2. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please go with Alexander's solution of fixing the higher level code > rather than silently trying to introduce a new feature in > PyUnicode_Decode() that hides programming errors. I'm sorry, I'm perfectly fine with my own patch, so someone else will have to p

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Will do but I haven't submitted a patch before and it's impossible to tell from python.org/dev whether to use the svn or hg repositories. If possible, please just let me know the URL of the hg repository against which I should make the patch (I don't currently have

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Ezio Melotti added the comment: http://code.python.org/hg/branches/py3k/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Bartosz
Bartosz added the comment: I've got English version too. Python is 32 bit and operating system is also 32 bit. -- ___ Python tracker ___ ___

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Jesús Cea Avión wrote: > > Jesús Cea Avión added the comment: > > What if we commit Antoine patch for 3.2.x, and the "correct" patch for py3k > trunk?. > > I am actually +1 to Marc-Andre. I feel in my guts that the provided patch is > hidding a deeper

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, I hadn't seen Alexander's patch. Sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Bartosz
Bartosz added the comment: I have found a problem and sollution: previously I have used Python 2.x and when I removed that version and next installed Python32, PYTHONPATH in system variabled indicated still to Python2.x. Removing all python paths to old version solved the problem. -

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, about Alexander's patch: - it lacks a test - it doesn't solve the issue with PyUnicode_Decode's confusing error message when a NULL is passed ("ValueError: operation forbidden on released memoryview object"); if we want to disallow NULL, we should have a c

[issue3080] Full unicode import system

2011-02-23 Thread STINNER Victor
STINNER Victor added the comment: > This new failure is perhaps related: (...) test_reprlib Ah yes, yesterday, I tried to remember which test was impacted by the module change, but all tests passed on Linux. Anyway, it's now fixed by r88533. -- ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : -- keywords: +patch Added file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker ___ __

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Added file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Thanks blokely, looks good. Needs applying to 2.7 / 3.2 and 3.3 branches. -- ___ Python tracker ___

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread R. David Murray
R. David Murray added the comment: If a patch had been proposed it probably would have gotten in to 3.2. Maybe someone (perhaps you?) will find the time before 3.2.1. Someone has decided to work on the bz2 rewrite, by the way (issue 5863). -- ___

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
David Beazley added the comment: If I can find some time, I may took a look at this. I just noticed that similar problems arise trying to wrap TextIOWrapper around the file-like objects returned by urllib.request.urlopen as well. In the big picture, some discussion of what it means to be "f

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2011-02-23 Thread Ram Rachum
Changes by Ram Rachum : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread STINNER Victor
STINNER Victor added the comment: What is the problem with Python 3.2? It works correctly here: $ cat bla.txt bli blo bla $ gzip bla.txt $ ./python Python 3.3a0 (unknown, Feb 23 2011, 13:03:50) >>> import gzip, io >>> f = io.TextIOWrapper(gzip.open("bla.txt.gz"),encoding='ascii') >>> f.read(

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
David Beazley added the comment: Python 3.2 (r32:88445, Feb 20 2011, 21:51:21) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import gzip >>> import io >>> f = io.TextIOWrapper(gzip.open("file.gz"),encoding='latin-1') >>>

[issue9276] pickle should support methods

2011-02-23 Thread Ram Rachum
Ram Rachum added the comment: I also miss being able to pickle unbound methods on Python 3. I don't think there's an interest in pickling the actual code objects. In my opinion, unbound methods should be pickled exactly like all the other Python definitions, such as bound methods, top-level f

[issue9276] pickle should support methods

2011-02-23 Thread Ram Rachum
Changes by Ram Rachum : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread R. David Murray
R. David Murray added the comment: Yes, a clear definition of the minimum requirements for being wrapped by TextIOWrapper sounds like a necessary thing to have (and I'd be inclined to agree with your assertion, but I didn't work on the IO library :). It would be best to open a new issue for

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Matthew Funke
Matthew Funke added the comment: Changing the environment variables did the trick! Thank you very much! -- ___ Python tracker ___ __

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread STINNER Victor
STINNER Victor added the comment: > Yes, a clear definition of the minimum requirements for being wrapped > by TextIOWrapper sounds like a necessary thing to have About that: is read1() argument mandatory or not? In _pyio, BufferedIOBase.read1() argument is optional (default: None); BytesIO.r

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Antoine is right, my patch is only of "discussion" quality and if my approach gets support, I will produce a more polished patch. While I am fairly certain that this bug should be fixed where it was introduced, namely in the _pickle module, I am not sur

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It may be better to modify _Unpickler_Read() so that it returns > self->input_buffer (or even self->input_buffer + self->next_read_idx) > for zero n. I agree this would be better for readability and maintainability. > On the other hand, my patch also elimina

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Feb 23, 2011 at 10:22 AM, Antoine Pitrou wrote: .. > Well, a theoretical argument could be made that some codec could return > a non-empty string when asked to decode an empty bytestring, but I'm not > sure it has much practical worth :) I was th

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ ___ Python-

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release3.2-maint patch. I created the patches by cloning the corresponding hg repo from http://code.python.org/hg If this is the wrong thing to do, let me know. I have no idea where the 3.3 branch is. Please advise. -- Added file: http://bugs.python

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Hey, blokeley the same patch will apply cleanly against 3.2 / 3.3 so no worries. -- ___ Python tracker ___ _

[issue11299] Allow deepcopying and pickling paused generators

2011-02-23 Thread Ram Rachum
New submission from Ram Rachum : Please allow to deepcopy and to pickle paused generators, including all their state. This is implemented in Pypy: Python 2.5.2 (335e875cb0fe, Dec 28 2010, 20:31:56) [PyPy 1.4.1] on win32 Type "copyright", "credits" or "license()" for mor

[issue11299] Allow deepcopying and pickling paused generators

2011-02-23 Thread Ram Rachum
Ram Rachum added the comment: P.S. I'm willing to write a test-case if it will help. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would probably be ok to fallback on read() when read1() isn't implemented. read1() is supposed to be implemented by all BufferedIO-compliant classes, but in all honesty I don't think it's very useful in practice. It's supposed to be an optimization, and I

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread R. David Murray
R. David Murray added the comment: I don't think that new_child and parents are too specialized at all, indeed they are essential to one of the primary use cases for the construct. I find Django's push and pop much more intuitive than new_child and parents, however, and would prefer those me

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Alex
Alex added the comment: An important distinction with Django's push/pop is that they mutate the Context (ChainMap) rather than return a fresh instance. -- nosy: +alex ___ Python tracker __

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread Alex
Changes by Alex : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread R. David Murray
R. David Murray added the comment: Yes, that's part of what I find more intuitive about it. I think of the chainmap as a stack. Perhaps if I had a different application (I would use it for either configuration or namespace management) I'd want a different API, but for those two the stack ap

[issue11227] [DOC] asyncore - use 'Host' header in HTTP example

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11239] regexp-howto - add missing } to metachars

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11232] asyncore - don't throw a traceback when a client disconnects in echo server example

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11292] Curses - add A_REVERSE to attributes table

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11293] Distutils - read the file when using it in long_description

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11294] Locale - update & uniform ERA_*_FMT doc

2011-02-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- assignee: sandro.tosi -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, closing this as "invalid" then - it's not a bug in the installer, but a misconfiguration of the local system. Thanks to Bartosz for the analysis! -- resolution: -> invalid status: open -> closed ___ Python tra

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the new_child() and parents() part of the API was modeled after contexts in ANLTR where they are needed to overcome the limitations of Django's push/pop style which precludes a context from having multiple, independent children at the same time. The

[issue11300] mmap() large file failures on Mac OS X docfix

2011-02-23 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : Issue 11277 was closed upon the generally accepted conclusion that the failure is that mmap(2) on Mac OS X has a long time known bug (see msg129107, or directly http://lists.apple.com/archives/darwin-development/2003/Jun/msg00141.html). Issue 11277

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-23 Thread Łukasz Langa
Łukasz Langa added the comment: OK, now I know more about glob than I ever wanted to! :) Basically it comes down to this: unix>>> os.path.split('\\') ('', '\\') win32>>> os.path.split('\\') ('\\', '') This is why \ is recognized as the root directory on Win32 and as a non-existent file on U

[issue11301] cookielib.LWPCookieJar.save() doesn't save cookies

2011-02-23 Thread Mike Cencula
New submission from Mike Cencula : I'm trying to use cookielib.LWPCookieJar.save() to save cookies from a website. The cookie file is created with a header line, but the cookies are not stored. Example program attached. Python version: 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) Running on De

[issue11301] cookielib.LWPCookieJar.save() doesn't save cookies

2011-02-23 Thread Mike Cencula
Mike Cencula added the comment: User error indeed. Adding ignore_discard=True, ignore_expires=True cured the issue. Thank you. -- status: open -> closed ___ Python tracker __

[issue11302] Add more tests to test_ast.py

2011-02-23 Thread Vincent Legoll
New submission from Vincent Legoll : While working to improve pypy's compliance with cpython2.7 I added more tests to the ast module test suite. They may be of interest here too... -- components: Tests files: add-more-tests-for-ast_py.patch keywords: patch messages: 129225 nosy: vincele

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a new version of issue11286.diff which fixes the issue by removing special handling of n == 0 case from _Unpickler_Read(). Note that _Unpickler_Read() (formerly known as unpickler_read()) only started to return null pointer instead of a

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file20856/issue11286.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-02-23 Thread Jake
Changes by Jake : -- nosy: +Jake.Coffman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-23 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ ./python.exe -m timeit "b'x'.decode('latin1')" 10 loops, best of 3: 2.57 usec per loop $ ./python.exe -m timeit "b'x'.decode('latin-1')" 100 loops, best of 3: 0.336 usec per loop The reason for this behavior is that 'latin-1' is short-circuite

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-January/002974.html here's a patch to fix it. -- assignee: docs@python components: Documentation keywords: patch messages: 129228 nosy: docs@python, sandro.tosi priority: low severity: normal stage

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-02-23 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Alright, it's normal behaviour, but since it doesn't seem to be documented, it can be quite surprising. A queue works like this: - when you call queue.put(data), the data is added to a deque, which can grow and shrink forever - then a thread pops elem

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread SilentGhost
SilentGhost added the comment: Sandro, you didn't attach anything. -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r88356, r88537, and r88538. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg129230 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11304] Input/output tutorial - PI is rounded not truncated

2011-02-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In issue11303.diff, I add similar optimization for encode('latin1') and for 'utf8' variant of utf-8. I don't think dash-less variants of utf-16 and utf-32 are common enough to justify special-casing. -- Added file: http://bugs.python.org/file20

  1   2   >