[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 787ed9b03ef9 by Ned Deily in branch '2.7': Issue #15645: Ensure 2to3 grammar pickles are properly installed. http://hg.python.org/cpython/rev/787ed9b03ef9 New changeset a377a4298b4e by Ned Deily in branch '3.2': Issue #15645: Ensure 2to3 grammar

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as c++

2012-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f27572a10ce by Ned Deily in branch 'default': Issue #14292: Ensure that the OS X installer build configures the CXX http://hg.python.org/cpython/rev/1f27572a10ce -- nosy: +python-dev ___ Python tracker

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-23 Thread Ned Deily
Ned Deily added the comment: Fixes applied for release in 2.7.4, 3.2.4, and 3.3.0. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed type: compile error - versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as c++

2012-08-23 Thread Ned Deily
Ned Deily added the comment: Fix applied for 3.3.0. All build-installer fixes will be backported for 2.7.4 and 3.2.4. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15770] _testbuffer.get_contiguous() doesn't check input arguments

2012-08-23 Thread STINNER Victor
New submission from STINNER Victor: _testbuffer.get_contiguous() abort with an assertion error if it gets invalid arguments. Attached patch adds tests for valid values. I found this bug using my fuzzer (fusil). -- components: Library (Lib) files: _testbuffer.patch keywords: patch

[issue15771] Tunple Bug?

2012-08-23 Thread zhuojun
New submission from zhuojun: def f(*agrs): print(agrs) f(1,2) (1, 2) f(1) #Is the output wrong? It should be without ','. (1,) -- components: None messages: 168929 nosy: zhuojun priority: normal severity: normal status: open title: Tunple Bug? type: behavior versions: Python

[issue15771] Tunple Bug?

2012-08-23 Thread Ezio Melotti
Ezio Melotti added the comment: Tuples with one element are defined as (x,), since the comma is what really makes the tuple. -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed

[issue15771] Tunple Bug?

2012-08-23 Thread Ezio Melotti
Ezio Melotti added the comment: See the second code block here: http://docs.python.org/py3k/tutorial/datastructures.html#tuples-and-sequences -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15771

[issue11776] Constructor signatures missing in types module documentation

2012-08-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I could verify this bug and also looks like a tricky one. Because when we are sending the cacert (the second time), we create a new HTTPSHandler and then build the opener again using that handler. I thought, we can use the existing opener object itself like

[issue11776] Constructor signatures missing in types module documentation

2012-08-23 Thread Mike Hoy
Mike Hoy added the comment: I used the following for: CodeType FunctionType LambdaType SimpleNamespace MethodType print(CodeType.__doc__) code(argcount, kwonlyargcount, nlocals, stacksize, flags, codestring, constants, names, varnames, filename, name, firstlineno,

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-23 Thread Brian Turek
Brian Turek added the comment: I was actually going to come up with a patch that does the same thing orsenthil mentioned until I too was stymied by the use of bisect.insort Does anyone know why bisect.insort was used instead of just list.append? I don't see an obvious reason so I think just

[issue14674] Link to explain deviations from RFC 4627 in json module docs

2012-08-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Using the word scalar sounds wrong to me. Are strings really considered scalars in Python? At least RFC 4627 doesn't talk about scalars. +Since the RFC permits RFC-compliant parsers to accept input texts that are not +RFC-compliant, this module's deserializer

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-08-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: I think skipping preceding whitespace in raw_decode() wouldn't hurt, but skipping following whitespace would be wrong. David: Any examples of how this could break backwards compatibility? -- nosy: +petri.lehtinen

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-23 Thread R. David Murray
R. David Murray added the comment: It has been a while since I looked at the code, but if I remember correctly there is a (somewhat non-obvious) mechanism for assigning priority to handlers, so that you can control the order of application. If I'm right the insort is about that priority, and

[issue10436] tarfile.extractfile in r| stream mode fails with filenames or members from getmembers()

2012-08-23 Thread Wichert Akkerman
Wichert Akkerman added the comment: You could also look for the first matching file and extract that. That way you can at least implement something similar to what standard tar can do: [fog;/tmp]-10 tar tf x.tar docs/ docs/index.rst docs/glossary.rst docs/Makefile docs/conf.py

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-08-23 Thread R. David Murray
R. David Murray added the comment: I didn't have anything specific in mind, just making a general comment about the care that needs to be taken in crafting the fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15393

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: -opener = build_opener(https_handler) +if _opener is None: +opener = build_opener(https_handler) +else: +opener = _opener +opener.add_handler(https_handler) Well, isn't it a bad idea to mutate the

[issue13212] json library is decoding/encoding when it should not

2012-08-23 Thread Tomasz Buchert
Tomasz Buchert added the comment: Take a look at http://bugs.python.org/issue14674. A proposed documentation patch specifically discusses this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212

[issue15770] _testbuffer.get_contiguous() doesn't check input arguments

2012-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa745ed89b7a by Stefan Krah in branch 'default': Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner. http://hg.python.org/cpython/rev/fa745ed89b7a -- nosy: +python-dev ___

[issue15770] _testbuffer.get_contiguous() doesn't check input arguments

2012-08-23 Thread Stefan Krah
Stefan Krah added the comment: Thanks, fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15770

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-23 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Removed file: http://bugs.python.org/file26953/popen_communicate.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-23 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Removed file: http://bugs.python.org/file26960/readall-chunks.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-23 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Removed file: http://bugs.python.org/file26959/readall-resize.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-23 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Removed file: http://bugs.python.org/file26963/readall-combined.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___

[issue15758] FileIO.readall() has worst case O(n^2) complexity

2012-08-23 Thread Richard Oudkerk
Richard Oudkerk added the comment: Here is the patch (with the old ones removed). Note that the old code mishandled the case where _PyBytes_Resize() failed by assuming that the old bytes object would still be valid. I have assumed that stream psuedo-files will never claim to have a size

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue626452] Support RFC 2111 in email package

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing

[issue1660009] continuing problem with httplib multiple set-cookie headers

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660009 ___ ___ Python-bugs-list mailing

[issue11664] Add patch method to unittest.TestCase

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue724459] Add documentation about line endings in email messages.

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue724459 ___ ___ Python-bugs-list mailing

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2380 ___ ___ Python-bugs-list mailing

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15442 ___ ___ Python-bugs-list mailing

[issue15758] FileIO.readall() has worst case O(n^2) complexity

2012-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the patch (with the old ones removed). Note that the old code mishandled the case where _PyBytes_Resize() failed by assuming that the old bytes object would still be valid. I have assumed that stream psuedo-files will never claim to have a size

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-23 Thread Stefan Mihaila
Stefan Mihaila added the comment: Are there also some known techniques on tracking down memory leaks? I've played around with sys.gettotalrefcount to narrow down the place where the leaks occur, but they seem to only occur in v4, i.e. pickle.dumps(3.0+1j, 4) leaks but pickle.dumps(3.0+1j, 3)

[issue11776] Constructor signatures missing in types module documentation

2012-08-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: LambdaType is a synonym for FunctionType. There should be just one entry, as currently, but perhaps make that a bit clearer, as one could misread the current line as saying that FunctionType is the type of def statements and LambdaType is the type of lambda

[issue15765] test_getcwd_long_pathnames (in test_posix) kills NetBSD

2012-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo, neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15765 ___ ___

[issue11880] add a {dist-info} category to distutils2

2012-08-23 Thread Daniel Holth
Daniel Holth added the comment: Sorry, I won't be able to get around to this any time soon. The patch to fix this bug (in the CPython3 source code) is too intertwined with the other distutils2 fixes. Anyone is welcome to fish for it in my bitbucket. -- status: open - languishing

[issue14674] Link to explain deviations from RFC 4627 in json module docs

2012-08-23 Thread Éric Araujo
Éric Araujo added the comment: See also #13212. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___ ___ Python-bugs-list mailing list

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file26971/15442.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15442 ___

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2380 ___ ___ Python-bugs-list mailing

[issue13370] test_ctypes fails when building python with clang

2012-08-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I didn't have time to look into this today and will look into this tomorrow. -- Added file: http://bugs.python.org/file26972/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13370

[issue13518] configparser can’t read file objects from urlopen

2012-08-23 Thread moijes12
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13518 ___ ___ Python-bugs-list mailing

[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present

2012-08-23 Thread LittleQ
LittleQ added the comment: when ByteGenerator entered _has_surrogates() will write the payload directly by not-enter into the super class Generator, which has the replace action. my solution is just do it also in BytesGenerator. -- nosy: +littleq0903 Added file:

[issue14674] Link to explain deviations from RFC 4627 in json module docs

2012-08-23 Thread Georg Brandl
Georg Brandl added the comment: Neither json.org nor RFC 4627 mention scalar. I don't think we should introduce that term, with the necessary ambiguity given the context, needlessly. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present

2012-08-23 Thread LittleQ
LittleQ added the comment: Sorry, forgot removing the debugging __init__ method. the attachment is the patch without the __init__ changes. -- Added file: http://bugs.python.org/file26974/issue15249_fixed.patch ___ Python tracker

[issue15136] Decimal accepting Fraction

2012-08-23 Thread Zachary Ware
Zachary Ware added the comment: I came across this issue and thought it might be within my means to attempt a patch, so here's the first step towards one. I liked Terry's suggestion of implementing __format__ using .as_decimal, so that's what I'm working towards with this. The first part is

[issue626452] Support RFC 2111 in email package

2012-08-23 Thread Christian Heimes
Christian Heimes added the comment: Guess the feature didn't make it into Python 2.4 ... :) -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___

[issue626452] Support RFC 2392 in email package

2012-08-23 Thread R. David Murray
R. David Murray added the comment: And in the meantime that RFC has been obsoleted by rfc 2392. -- components: +email stage: test needed - needs patch title: Support RFC 2111 in email package - Support RFC 2392 in email package ___ Python tracker

[issue626452] Support RFC 2392 in email package

2012-08-23 Thread moijes12
moijes12 added the comment: Whoa cool. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue626452] Support RFC 2392 in email package

2012-08-23 Thread R. David Murray
R. David Murray added the comment: moijes12: do you want to work on it? I haven't even read the RFC yet to find out what support it means; too many other issues on my plate first. -- ___ Python tracker rep...@bugs.python.org

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-23 Thread James
James added the comment: I've attached a patch that I think fixes the variable arguments problem, and changes the SystemErrors that can be obtained by misusing super() into RuntimeErrors (I assume that's more appropriate?). There are three more SystemErrors I'm not sure about: super(): no

[issue13212] json library is decoding/encoding when it should not

2012-08-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: The strict flag sounds good to me, too. I don't think it should be called strict though, as that would imply that we comply with RFC 4627 strictly (which is not true without passing allow_nan=False for dump() or passing a parse_constant function for load()).

[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present

2012-08-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: The patch looks good to me and seems to fix my test case. I find the email code somewhat complicated, so I'll let David decide whether it's the correct fix :) -- stage: needs patch - patch review ___ Python tracker

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-08-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Hi moijes12, for instructions on compiling and submitting patches, etc., see the Python Developer's Guide (aka the devguide). You may also be interested in the Python Mentors Group: http://pythonmentors.com/ Lastly (a small point), in the future you can also

[issue11664] Add patch method to unittest.TestCase

2012-08-23 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___

[issue15351] Add to unittest.TestCase support for using context managers

2012-08-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Adding Éric because of the interest in test setup and tear down in issue 11664. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15351

[issue15772] Unresolved symbols in Windows 64-bit python

2012-08-23 Thread Saul Spatz
New submission from Saul Spatz: In trying to build a SWING module on Windows with 64-bit python, I get the linker errors listed at the bottom of this message. I have this problem with both python 2.7 and 3.2. I have built the project without problems on Windows with 32-bit python, and a

[issue15772] Unresolved symbols in Windows 64-bit python

2012-08-23 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- components: +Build nosy: +brian.curtin, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15772 ___

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-23 Thread Brian Turek
Brian Turek added the comment: So I'm not saying the attached patch is the *best* solution but it doesn't mangle the existing urllib.request._opener too much. -- keywords: +patch Added file: http://bugs.python.org/file26977/request.patch ___ Python

[issue13592] repr(regex) doesn't include actual regex

2012-08-23 Thread Hugo Lopes Tavares
Hugo Lopes Tavares added the comment: Any news about this patch? Is it going to be merged? When is next CPython release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13592 ___

[issue15773] `is' operator returns False on classmethods

2012-08-23 Thread Stefan Mihaila
New submission from Stefan Mihaila: Here are a few counter-intuitive outputs: dict.fromkeys is dict.fromkeys False id(dict.fromkeys) == id(dict.fromkeys) True x=dict.fromkeys; id(x) == id(x) True x=dict.fromkeys; id(x) == id(dict.fromkeys) False

[issue15773] `is' operator returns False on classmethods

2012-08-23 Thread Stefan Mihaila
Changes by Stefan Mihaila mstefa...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15773 ___ ___ Python-bugs-list

[issue15773] `is' operator returns False on classmethods

2012-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: Bound methods are created dynamically on lookup, while object ids may be reused after the original object is destroyed. There's no bug here - just a combination of those two language behaviours that is frequently surprising to users that have just noticed it.

[issue2051] PYO file permission problem

2012-08-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2051 ___ ___ Python-bugs-list

[issue15774] String method title() produces incorrect resutls

2012-08-23 Thread mesheb82
New submission from mesheb82: I got unexpected results when working with a string that has an apostrophe in it. Joe's.title() Joe'S 'Joes'.title() 'JoeS' -- components: Interpreter Core messages: 168969 nosy: mesheb82 priority: normal severity: normal status: open title: String

[issue15774] String method title() produces incorrect resutls

2012-08-23 Thread Ezio Melotti
Ezio Melotti added the comment: This is a known issue, see http://docs.python.org/library/stdtypes.html#str.title -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15774

[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-23 Thread Trent Nelson
Trent Nelson added the comment: Reproduced behaviour with test_readlink.sh. Sending an e-mail to freebsd-fs to see what they think. -- Added file: http://bugs.python.org/file26979/test_readlink.sh ___ Python tracker rep...@bugs.python.org

[issue15774] String method title() produces incorrect resutls

2012-08-23 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 7008. See also issue 6412, which offers some small hope that some day there may be an algorithm that can fix this. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed

[issue15352] importlib.h should be regenerated when the marshaling code changes

2012-08-23 Thread Eric Snow
Eric Snow added the comment: FWIW, the patch looks good to me. This is probably the last week to get this in for 3.3.0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15352 ___

[issue14455] plistlib unable to read json and binary plist files

2012-08-23 Thread Mark Grandi
Mark Grandi added the comment: Where are you even seeing these json property lists? I just checked the most recent documentation for NSPropertyListSerialization, and they have not updated the enum for NSPropertyListFormat. It seems that if even Apple doesn't support writing json property

[issue2051] PYO file permission problem

2012-08-23 Thread Eric Snow
Eric Snow added the comment: here's a test. I'll work on a patch when I get a chance (and no one's beaten me to it :). -- keywords: +patch nosy: +eric.snow Added file: http://bugs.python.org/file26980/issue2051_test.eric.snow.diff ___ Python