[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Bohuslav Slavek Kabrda
New submission from Bohuslav Slavek Kabrda: ModuleFinder.load_module currently only skips 8 bytes before trying to marshal.load the rest of the file, but it should skip 12 since 3.3 (magic, date, file size). I'm attaching a patch with test case. BTW this was very painful to find out, since I

[issue20779] Add pathlib.chown method

2014-02-26 Thread Vajrasky Kok
New submission from Vajrasky Kok: For pragmatic and philosophical reasons, I would argue that we should add chown to pathlib library. -- components: Library (Lib) files: add_chown_to_pathlib.patch keywords: patch messages: 212245 nosy: pitrou, vajrasky priority: normal severity: normal

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Poll: http://comments.gmane.org/gmane.comp.python.devel/145974 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20440 ___

[issue9232] Allow trailing comma in any function argument list.

2014-02-26 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9232 ___ ___ Python-bugs-list

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 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/issue20440 ___

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 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/issue20778 ___

[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok
New submission from Vajrasky Kok: Line 994 of Lib/test/test_statistics.py: def test_decimal_mismatched_infs_to_nan(self): # Test adding Decimal INFs with opposite sign returns NAN. inf = Decimal('inf') data = [1, 2, inf, 3, -inf, 4] with

[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Added file: http://bugs.python.org/file34229/fix_shadowed_test_in_test_statistics.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20780 ___

[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file34228/fix_shadowed_test_in_test_statistics.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20780 ___

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-26 Thread Peter Funk
Peter Funk added the comment: A recently posted proof of concept exploit got a lot of attention: https://www.trustedsec.com/february-2014/python-remote-code-execution-socket-recvfrom_into/ I suggest some Python core developer should clarify here whether people running some publically

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: recvfrom_into() is hardly ever used, including in the stdlib itself. People using third-party software should check that the software itself doesn't call this method (chances are it doesn't). -- ___ Python tracker

[issue20781] BZ2File does decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
New submission from James Dominy: bz2.BZ2File does not decompress a file (see attached) correctly. This file can be decompressed and compressed via stadard unix tools (bzip2 and bunzip2) without change. Consider ... $ python Python 2.7.6 (default, Dec 7 2013, 22:49:16) [GCC 4.8.2] on

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
Changes by James Dominy jgdom...@gmail.com: -- title: BZ2File does decompress some .bz2 files correctly - BZ2File doesn't decompress some .bz2 files correctly ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20781

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
James Dominy added the comment: Whoops, forget to add the output from the standard binutils $ bzcat example-file.csv.bz2 | wc -c 909602 $ bzcat example-file.csv.bz2 | md5sum 48f4b69b2b8bb0b171ebc36313eb6616 - As you can see file sizes and hashes do not match --

[issue1508475] transparent gzip compression in urllib

2014-02-26 Thread Martin Panter
Martin Panter added the comment: I have code that already handles an “gzip” encoded response from urlopen(). All three patches leave the Content-Encoding header intact, so I suspect my code would try to decompress the body a second time. Deleting this header (as already suggested) would work

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Yukihiro Nakadaira
Yukihiro Nakadaira added the comment: It works fine. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___ Python-bugs-list

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-02-26 Thread anuj0990
anuj0990 added the comment: This is very useful information shared here. I am really thankful for this. a href=http://www.99th.co.in 99th.co.in/a -- nosy: +anuj0990 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon
Brett Cannon added the comment: It's not documented because the format of .pyc files is considered an internal implementation detail. -- nosy: +georg.brandl, larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20778 ___ ___

[issue14576] IDLE: resolving home directory for configuration uses HOMEDRIVE, HOMEPATH, and USERPROFILE inconsistently on Windows.

2014-02-26 Thread Divyanshu Sharma
Divyanshu Sharma added the comment: I found a weird solution for the problem. Exchange the names of python and pythonw in the python33 folder. This makes the IDLE to call both and as a result python opens in both modes simultaneosly, and the subprocess connection error don't shows up.

[issue20782] base64 module docs do not use the terms 'bytes' and 'string' consistently.

2014-02-26 Thread R. David Murray
New submission from R. David Murray: The base64 documentation (http://docs.python.org/3/library/base64.html) does not use the new python3 byte/string terminology consistently (sometimes not even within the same paragraph). -- assignee: docs@python components: Documentation messages:

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon
Brett Cannon added the comment: Probably want to make sure that modulefinder uses importlib._bootstrap._validate_bytecode_header() to do the parsing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20778

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray
R. David Murray added the comment: Since modulefinder is used by freeze tools (notably cx_Freeze, which seems to be the most popular currently), should this be considered a release blocker? -- nosy: +r.david.murray ___ Python tracker

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon
Brett Cannon added the comment: It's been broken since Python 3.3 so this is not a 3.3 regression. -- keywords: +3.2regression -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20778 ___

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Zachary Ware
Zachary Ware added the comment: Output attached. -- Added file: http://bugs.python.org/file34231/20501.output ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20501 ___

[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem is that it would be deserialized as a list; this breaks the general expectation that serialization formats should round-trip. (yes, tuple already does this; but I think it is less of a problem for tuples, since the list API is a superset of the

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray
R. David Murray added the comment: Right. I'm asking if it should be a release blocker for the next 3.3, too :) I'm not saying it should be, just raising the question. It's in my mind because I'm currently using cx_Freeze in a project for a client. It could have affected me, since I was

[issue20759] unittest.mock documentation typos

2014-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 045f048cc116 by Zachary Ware in branch '3.3': Issue #20759: Fix some typos in the mock docs. http://hg.python.org/cpython/rev/045f048cc116 New changeset 42ef1c82d645 by Zachary Ware in branch 'default': Close #20759: Fix some typos in the mock

[issue20759] unittest.mock documentation typos

2014-02-26 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report! -- assignee: docs@python - zach.ware nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20759 ___

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray
R. David Murray added the comment: Oops, didn't mean to remove the keyword. -- keywords: +3.2regression ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20778 ___

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the super

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the super

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Paul Tunison
Paul Tunison added the comment: I can confirm that this is still an issue with python 2.7.5. My method of resolving this locally is similar to xhantu's. I created a sub-class of BaseProxy, overriding the __reduce__ method and injecting the authkey into the appropriate spot in the super

[issue20777] PyArg_ParseTupleAndKeywords does not respect arguments format.

2014-02-26 Thread Carlos Ferreira
Carlos Ferreira added the comment: Solved. This issue had nothing to do with Python API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20777 ___

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Dhanannjay Deo
Dhanannjay Deo added the comment: Confirmed for python 2.7.3 on ubuntu 12.04 lts. Why this issue is still open after 4 years ? -- nosy: +Dhanannjay.Deo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7503

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon
Brett Cannon added the comment: Don't know why this is any more special of a bug because it influences cx_freeze compared to any other bug that influences a popular project. I mean I'm not going to stop you from making it a blocker but I'm also not going to rush to fix it myself either.

[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-26 Thread Gareth Rees
Gareth Rees added the comment: The JSON implementation uses these tests to determine how to serialize a Python object: isinstance(o, (list, tuple)) isinstance(o, dict) So any subclasses of list and tuple are serialized as a list, and any subclass of dict is serialized as an object.

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray
R. David Murray added the comment: Well, because of the fact that freeze tools are used to distribute programs on the Windows platform. But, given that it hasn't been reported before and has been a problem since 3.3, it seems like there is no rush. --

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Same as on Linux (and differs from 3.x). Thank you Zachary. Here is corrected patch. Added also a test which tests that readline() doesn't read whole file. -- Added file: http://bugs.python.org/file34232/fileinput_hook_encoded_3.patch

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file33934/fileinput_hook_encoded.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20501 ___

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- nosy: -larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20778 ___ ___ Python-bugs-list

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Barring c++, are we using any C compilers that don't support inlines? Imho these macros should be functions proper. Then we could do Py_Assign(target, Py_IncRef(obj)) It's 2014 already. -- ___ Python

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file34222/fileinput_hook_encoded_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20501 ___

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Stefan Krah
Stefan Krah added the comment: Barring c++, are we using any C compilers that don't support inlines? Not that I know of. libmpdec is C99, which seems to be supported by all obscure commercial compilers on snakebite. Also there have been no 3.x bug reports due to compilers choking on inline

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Zachary Ware
Zachary Ware added the comment: New patch passes on Windows. Without the patch to fileinput.py, the new hook_encoded tests pass and the new test_readline test fails (as expected). -- ___ Python tracker rep...@bugs.python.org

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.
New submission from Andrew P. Lentvorski, Jr.: The byte array init fails when \x00 is present This fails: ggRAM = bytearray(RAM_SIZE_BYTES, '\x00'*RAM_SIZE_BYTES) However, this works: ggRAM = bytearray(RAM_SIZE_BYTES) ggRAM[:] = '\x00'*RAM_SIZE_BYTES -- components: Interpreter Core

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2014-02-26 Thread R. David Murray
R. David Murray added the comment: For backward compatibility, shouldn't import _collections_abc in the __init__ file be import _collections_abc as abc ? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: Barring c++, are we using any C compilers that don't support inlines? CPython advertises itself as C89 compliant, and C89 doesn't have inlines. You need to go to C99 to get inlines. And before you ask--yes, we support a compiler that is not C99 compliant:

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray
New submission from R. David Murray: collections.abc was renamed _collections_abc in issue 19218. The __init__ file was modified to load all the abc into the collections namespace, but the 'abc' name itself is no longer defined: Python 3.3.2 (default, Dec 17 2013, 17:24:42) [GCC 4.7.3] on

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2014-02-26 Thread R. David Murray
R. David Murray added the comment: Opened issue 20784 to address the above. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19218 ___ ___

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: I'm pretty sure that if you import x, there are zero guarantees that x.y will work. The offical line is that you must explicitly import all the deepest submodules you use. So I don't think this is even a bug. --

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread R. David Murray
R. David Murray added the comment: That isn't a valid bytearray initialization call. The two argument form is (string, encoding), not (size, string). The error message you get is a bit funky and not particularly informative, though. Maybe someone will want to try to improve that.

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray
R. David Murray added the comment: It is a backward compatibility bug. Something that used to work doesn't any more. And it was explicitly *made* to work previously (the original __init__ statement was 'import collections.abc'). And it is is an implementation bug in the original patch

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: committed/rejected - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20783 ___ ___

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray
R. David Murray added the comment: If we decide we want this (small) backward compatibility break, to make collections.abc consistent with the other modules (except os.path), then I should mention it in the whatsnew porting section for 3.4, which is really why I opened this issue :) I that

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a1a9d6fb278 by Serhiy Storchaka in branch '2.7': Issue #20501: fileinput module no longer reads whole file into memory when using http://hg.python.org/cpython/rev/1a1a9d6fb278 New changeset b4a139713b3b by Serhiy Storchaka in branch '3.3': Added

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm pretty sure that if you import x, there are zero guarantees that x.y will work. The offical line is that you must explicitly import all the deepest submodules you use. I'm not sure why you're saying that. I think it's quite common to only import os and

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20501 ___

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zachary that ran tests for me. Thank you Gunnar for your report. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: A quick grep indicates at least the following modules use os.path but only import os: bdb, binhex, cgitb, compileall, cProfile, doctest, filecmp, fileinput, fnmatch, ftplib, gettext, glob, imghdr, imp, inspect, linecache, mailbox, mimetypes, modulefinder,

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be add temporary replacement for collections.abc? class _AbcModulePlaceholder(type(_collections_abc)): def __warn(self): import warnings warnings.warn('collections.abc used without importing', DeprecationWarning,

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +nadeem.vawda, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20781 ___

[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Westley Martínez
Westley Martínez added the comment: I understand this is an old issue. Sorry if it is no longer relevant. I have usually have at least two versions of Python installed on Windows: 2.x and 3.x. In Windows 7, if you pin a certain shortcut to the start menu, you can't tell what version of

[issue17390] display python version on idle title bar

2014-02-26 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +westley.martinez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17390 ___ ___

[issue14576] IDLE: resolving home directory for configuration uses HOMEDRIVE, HOMEPATH, and USERPROFILE inconsistently on Windows.

2014-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not understand what you mean by Exchange the names of python and pythonw in the python33 folder.. In any case, idle.bat cannot run both simultaneously. Perhaps idle.bat should have an option to start with python instead of pythonw. --

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Sean Rodman added the comment: Here is a working patch for python 2.7. all it does is lowercase the module name, but once I did that and clicked the link it worked correctly. -- keywords: +patch Added file: http://bugs.python.org/file34233/issue16484.patch

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Sean Rodman added the comment: Note: It doesn't change the actual module name. Just how it is represented in the link. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-02-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg212255 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All works on 3.4, but on 3.3 and 2.7 it looks hanged. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20781 ___

[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-02-26 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +westley.martinez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122 ___ ___

[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Mark Lawrence
Mark Lawrence added the comment: Makes sense to me. Can someone please add mvl to the nosy list, I don't dare :) FYI https://mail.python.org/pipermail/python-dev/2010-December/106942.html -- nosy: +BreamoreBoy ___ Python tracker

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, no, I just not pressed Enter after copying long testing command line. ;) All works on 3.3 too, but on 2.7 I got incomplete result. $ ./python -c 'import bz2, hashlib; d = bz2.BZ2File(../example-file.csv.bz2).read(); print len(d),

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: So, it's a very common idiom. Common doesn't imply correct or supported. There are plenty of other packages/modules who don't import their subpackages/submodules during initialization. Unless explicitly supported by the module, using a submodule without

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Ned Deily
Ned Deily added the comment: [Note, due to a bug tracker error now fixed, s couple of comments made to this issue earlier today were dropped. I'm manually adding them here on behalf of the original submitters.] At Wed Feb 26 17:05:01 CET 2014, Paul Tunison added the comment: I can confirm

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2014-02-26 Thread Ned Deily
Ned Deily added the comment: At Wed Feb 26 17:09:49 CET 2014, Dhanannjay Deo added the comment: Confirmed for python 2.7.3 on ubuntu 12.04 lts. Why this issue is still open after 4 years ? -- nosy: +Dhanannjay.Deo versions: -Python 2.6 ___ Python

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, it's a very common idiom. Common doesn't imply correct or supported. There are plenty of other packages/modules who don't import their subpackages/submodules during initialization. Unless explicitly supported by the module, using a submodule

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this file is composed of two bzip2 streams. Python 2.7 doesn't support decompressing of multi-stream inputs, this feature was added in 3.3. So this is not a bug. -- resolution: - invalid stage: - committed/rejected status: open - closed

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Nadeem Vawda
Nadeem Vawda added the comment: As Serhiy said, multi-stream support was only added to the bz2 module in 3.3, and there is no plan to backport functionality this to 2.7. However, the bz2file package on PyPI [1] does support multi-stream inputs, and you can use its BZ2File class as a drop-in

[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-02-26 Thread Victor Lazzarini
New submission from Victor Lazzarini: It appears various symbols are missing from Python27.lib, 64bit build. Here is a list of undefined symbols (from link errors): /debug/Opcodes /c/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/gcc.exe -Wl,--add-stdcall-alias -shared -o ../py.dll

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Sean Rodman added the comment: Here is the patch for python 3.2. It implements the same fix that the 2.7 patch does. -- Added file: http://bugs.python.org/file34234/issue16484_python3.2.patch ___ Python tracker rep...@bugs.python.org

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2014-02-26 Thread Nikolay Bryskin
Changes by Nikolay Bryskin devel.n...@gmail.com: -- nosy: +nikicat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18748 ___ ___ Python-bugs-list

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-02-26 Thread Sebastian Rittau
Changes by Sebastian Rittau srit...@jroger.in-berlin.de: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20504 ___ ___

[issue13582] IDLE and pythonw.exe stderr problem

2014-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle start up seems unnecessarily fragmented into multiple files. idlelib/__main__.py idlelib/idle.py idlelib/idlew.py can all be started from the command line by name with either python or pythonw or run once by import. idlelib/__main__.py can also be

[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, I forgot to assign this to MvL for a yes/no decision as the maintainer of the Windows installer when I first created it years ago. It's too late for 3.4.0 now, so marking this as one for 3.5. However, if Larry and Martin are amenable, it might also be

[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Nick Coghlan
Nick Coghlan added the comment: One suggestion I like from the thread (thanks for digging up that reference Mark) is to drop the GUI from the IDLE shortcut. The other suggestions I don't think are worth worrying about - these names have been as they are for quite some time, and it's mainly

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
New submission from mike bayer: The Python builtin property() historically does not allow inspect.getargspec to be called on any of __get__(), __set__(), or __delete__(). As of 3.4, it seems that this call now succeeds. However the answer it gives for __delete__() seems to be incorrect.

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
Changes by mike bayer mike...@zzzcomputing.com: -- components: +Library (Lib) type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20786 ___

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer
mike bayer added the comment: for context, we are currently creating wrappers around these methods in SQLAlchemy, and in the case of property dunders, we expect that exception and catch it. So when the exception doesn't happen, we assume the answer is correct, but in this case it's not -

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +larry, ncoghlan, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20786 ___

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, I think the problem is that property.__delete__.__text_signature__ '(instance, /)' but should be something like '($self, instance, /)'. What do you think? -- ___ Python tracker

[issue20787] typo in asyncio docs for subprocess_exec()

2014-02-26 Thread akira
New submission from akira: subprocess' stdout pipe is open for *reading* but its value is documented as an argument for `BaseEventLoop.connect_write_pipe`. It should be `BaseEventLoop.connect_read_pipe` instead. As it currently is for subprocess' stderr. The patch is attached. --

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20786 ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Changes by Sean Rodman srodman7...@gmail.com: Removed file: http://bugs.python.org/file34234/issue16484_python3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Changes by Sean Rodman srodman7...@gmail.com: Removed file: http://bugs.python.org/file34233/issue16484.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Sean Rodman added the comment: Sorry guys, I missed a place I needed to add the lower() fuction to the module.__name__. Here is a fixed patch for python2.7. -- Added file: http://bugs.python.org/file34236/issue16484_python2.7.patch ___ Python

[issue20788] distutils.msvccompiler - flags are hidden inside initialize()

2014-02-26 Thread Matt Goodman
New submission from Matt Goodman: The flags that you need to compile against libpythonXX.lib are hidden inside of the distutils.msvccompiler class. This is ok if you want to use distutils to compile extensions against the binary, but other build systems need to run initialize() to get access

[issue1222585] C++ compilation support for distutils

2014-02-26 Thread Michael Crusoe
Changes by Michael Crusoe michael.cru...@gmail.com: -- nosy: +Michael.Crusoe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585 ___ ___

[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2014-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The last installation I did now said to reboot to finish the installation, but I forget which it was. Since that was my alternative fix, this could perhaps be closed. I will try to check the coming installs. -- ___

[issue20429] 3.3.4rc1 install deleted Windows taskbar icons

2014-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3.4 installed without incident. So closing as presumed 'unique glitch'. -- resolution: - works for me stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman
Changes by Sean Rodman srodman7...@gmail.com: Added file: http://bugs.python.org/file34238/issue16484_python3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___

  1   2   >