[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2
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 pickles are properly installed. http://hg.python.org/cpython/rev/a377a4298b4e New changeset b48cd7045909 by Ned Deily in branch 'default': issue #15645: null merge http://hg.python.org/cpython/rev/b48cd7045909 New changeset 995e58439b59 by Ned Deily in branch 'default': Issue #15645: Ensure 2to3 grammar pickles are properly installed. http://hg.python.org/cpython/rev/995e58439b59 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14292] OS X installer build script doesn't set $CXX, so it ends up as c++
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 rep...@bugs.python.org http://bugs.python.org/issue14292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2
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 rep...@bugs.python.org http://bugs.python.org/issue15645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14292] OS X installer build script doesn't set $CXX, so it ends up as c++
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 http://bugs.python.org/issue14292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15770] _testbuffer.get_contiguous() doesn't check input arguments
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 messages: 168928 nosy: haypo, skrah priority: normal severity: normal status: open title: _testbuffer.get_contiguous() doesn't check input arguments versions: Python 3.3 Added file: http://bugs.python.org/file26968/_testbuffer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15770 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15771] Tunple Bug?
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 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15771] Tunple Bug?
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15771] Tunple Bug?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11776] Constructor signatures missing in types module documentation
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers
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 this - -opener = build_opener(https_handler) +if _opener is None: +opener = build_opener(https_handler) +else: +opener = _opener +opener.add_handler(https_handler) But even then the problem is, the existing default HTTPSHandler will be invoked before the newly added one, as add_handler does a bisect.insert to add new handlers. Thinking what's the best way to insert this new updated HTTPS handler in front of the existing ones (without resorting to any hacks). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11776] Constructor signatures missing in types module documentation
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, lnotab[, freevars[, cellvars]]) Create a code object. Not for the faint of heart. print(FunctionType.__doc__) function(code, globals[, name[, argdefs[, closure]]]) Create a function object from a code object and a dictionary. The optional name string overrides the name from the code object. The optional argdefs tuple specifies the default argument values. The optional closure tuple supplies the bindings for free variables. print(LambdaType.__doc__) function(code, globals[, name[, argdefs[, closure]]]) Create a function object from a code object and a dictionary. The optional name string overrides the name from the code object. The optional argdefs tuple specifies the default argument values. The optional closure tuple supplies the bindings for free variables. print(SimpleNamespace.__doc__) A simple attribute-based namespace. namespace(**kwargs) print(MethodType.__doc__) method(function, instance) Create a bound instance method object. I left out the [] arguments. I've stopped here and uploaded a patch for the 'first easy part'. Despite that name I suspect I will have to change quite a few things. Once this part is done then I will move on the the 'second easy part' -- keywords: +patch versions: -Python 2.7, Python 3.2 Added file: http://bugs.python.org/file26969/issue11776-sigs-docs-first.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers
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 having add_handler insert new handlers at the beginning of all the respective lists would be an easy fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14674] Link to explain deviations from RFC 4627 in json module docs
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 is technically RFC-compliant under +default settings. This might scare users. Maybe it should note that there are parameters that can be used to turn off the most harmful extra features (namely the Inf and NaN support). Otherwise, the additions look very good and important. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15393] JSONDecoder.raw_decode breaks on leading whitespace
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers
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 it also ought to be possible to use that priority to fix the problem. But I remember whatever it was I was looking at as being a bit hard to understand, so I could be way off base (or thinking of some other part of the code base). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10436] tarfile.extractfile in r| stream mode fails with filenames or members from getmembers()
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 docs/changes.rst [fog;/tmp]-12 cat x.tar| tar xf - docs/index.rst [fog;/tmp]-13 ls docs index.rst -- nosy: +wichert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15393] JSONDecoder.raw_decode breaks on leading whitespace
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers
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 global opener? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13212] json library is decoding/encoding when it should not
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15770] _testbuffer.get_contiguous() doesn't check input arguments
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15770 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15770] _testbuffer.get_contiguous() doesn't check input arguments
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] 500x speed up for Popen.communicate() on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] 500x speed up for Popen.communicate() on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] 500x speed up for Popen.communicate() on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] 500x speed up for Popen.communicate() on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] FileIO.readall() has worst case O(n^2) complexity
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 greater than zero. The code will still work if this assumption is false. -- title: 500x speed up for Popen.communicate() on Windows - FileIO.readall() has worst case O(n^2) complexity Added file: http://bugs.python.org/file26970/readall-combined.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11698] Improve repr for structseq objects to show named, but unindexed fields
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2111 in email package
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1660009] continuing problem with httplib multiple set-cookie headers
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11664] Add patch method to unittest.TestCase
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11698] Improve repr for structseq objects to show named, but unindexed fields
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue724459] Add documentation about line endings in email messages.
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue724459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15442] Expand the list of default dirs filecmp.dircmp ignores
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15442 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15758] FileIO.readall() has worst case O(n^2) complexity
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 greater than zero. The code will still work if this assumption is false. I haven't measured under Windows, but this looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15758 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15642] Integrate pickle protocol version 4 GSoC work by 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) does not. However, there appears to be no difference in the code that gets executed in v3 to the one executed in v4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15642 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11776] Constructor signatures missing in types module documentation
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 expressions. This misunderstanding appears in python-list discussions occasionally. So I think I would write types.FunctionType(sig) types.LambdaType synonym for FunctionType Create a function -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15765] test_getcwd_long_pathnames (in test_posix) kills NetBSD
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo, neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15765 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11880] add a {dist-info} category to distutils2
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14674] Link to explain deviations from RFC 4627 in json module docs
Éric Araujo added the comment: See also #13212. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15442] Expand the list of default dirs filecmp.dircmp ignores
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions
Changes by moijes12 moije...@gmail.com: -- nosy: -moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13370] test_ctypes fails when building python with clang
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 ___ smime.p7s Description: S/MIME cryptographic signature ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13518] configparser can’t read file objects from urlopen
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present
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: http://bugs.python.org/file26973/issue15249.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15249 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14674] Link to explain deviations from RFC 4627 in json module docs
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 http://bugs.python.org/issue14674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present
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 rep...@bugs.python.org http://bugs.python.org/issue15249 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15136] Decimal accepting Fraction
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 (or seems to be, I am pretty new at this and may well have missed something obvious :-)) pretty easy. The attached patch is pretty self-explanatory, I think. I figure if the user wants something specific from their fraction-as-a-decimal, they're probably working with other decimals already and will be able to supply a context. Otherwise, if they just want to see a decimal representation, they'll probably be fine with the default context and don't have to worry about it. The __format__ part, though, seems kind of daunting. For one thing, Decimal's implementation looks pretty hairy and scary from my perspective; duplicating it for Fraction would be quite a feat. For another, the standard format spec doesn't seem to me to cleanly apply to fractional representations--what should be filled, how should alignment work, how would width be divided up, what exactly does precision mean? I've had a thought, though; what if Fraction.__format__ simply looks for a 'D' at the end of format_spec? If it's found, just return format(self.as_decimal(), format_spec[:-1]. Otherwise, format using to-be-determined rules specific to fractions, including rules for, say, mixed fractions or denominator of a certain size. Thoughts? -- keywords: +patch nosy: +zach.ware Added file: http://bugs.python.org/file26975/issue15136_as_decimal.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2111 in email package
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2392 in email package
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 rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2392 in email package
moijes12 added the comment: Whoa cool. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2392 in email package
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 http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15753] No-argument super in method with variable arguments raises SystemError
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 code object, super(): bad __class__ cell, and super(): empty __class__ cell - can they only be caused by internal bugs? -- keywords: +patch Added file: http://bugs.python.org/file26976/issue15753_varargsuper.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13212] json library is decoding/encoding when it should not
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()). How about encode_any and decode_any or any_value? Deprecation doesn't sound good to me. If the feature is already there, it probably has its users and use cases. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15249] email.generator.BytesGenerator doesn't mangle From lines when non-ASCII bytes are present
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 rep...@bugs.python.org http://bugs.python.org/issue15249 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15442] Expand the list of default dirs filecmp.dircmp ignores
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 type comments about your patch in the Comment text field in addition to the File Description text field. You can do this in the same Submit Changes operation that you use to choose and upload your file. -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15442 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11664] Add patch method to unittest.TestCase
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15351] Add to unittest.TestCase support for using context managers
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15772] Unresolved symbols in Windows 64-bit python
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 correspondent informs me that it cam be built on linux with 64-bit python. I have listed the exports from python32.lib with dumpbin, and in every case, the symbol after the __imp__ appears in the library without a leading underscore. For example, for the first unresolved symbol, __imp__PyBytes_AsStringAndSize, I find that PyBytes_AsStringAndSize appears in the library. Of 1074 exports in the library, 891 do not have leading underscores, and the remainder do. In the 32-bit library, every export starts with an underscore. This is obviously related to issues 15165 and 14286, but I hope this additional information will help locate the trouble. I am running windows 7 professional, and I installed python by downloading and running the installer with all the defaults. 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyBytes_AsStringAndSize referenced in function _SWIG_Python_str_AsChar 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_AsUTF8String referenced in function _SWIG_Python_str_AsChar 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromString referenced in function _SWIG_Python_str_FromChar 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_AttributeError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_SystemError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_ValueError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_SyntaxError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_OverflowError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_ZeroDivisionError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_TypeError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_IndexError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_IOError 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyExc_MemoryError 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyInstanceMethod_New referenced in function _SWIG_PyInstanceMethod_New 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetString referenced in function _SWIG_Python_SetErrorMsg 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__Py_BuildValue referenced in function __SWIG_Py_None 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyLong_FromVoidPtr referenced in function _SwigPyObject_long 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__Py_DecRef referenced in function _SwigPyObject_repr 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_Concat referenced in function _SwigPyObject_repr 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromFormat referenced in function _SwigPyObject_repr 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyBool_FromLong referenced in function _SwigPyObject_richcompare 1example_wrap.obj : error LNK2001: unresolved external symbol __imp___Py_NotImplementedStruct 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_Free referenced in function _SwigPyObject_dealloc 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_CallFunctionObjArgs referenced in function _SwigPyObject_dealloc 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_IsTrue referenced in function _SwigPyObject_own 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyArg_UnpackTuple referenced in function _SwigPyObject_own 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyType_Ready referenced in function _SwigPyObject_TypeOnce 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_GenericGetAttr referenced in function _SwigPyObject_TypeOnce 1example_wrap.obj : error LNK2001: unresolved external symbol __imp__PyBaseObject_Type 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_SetAttr referenced in function _SWIG_Python_NewShadowInstance 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyObject_Call referenced in function _SWIG_Python_NewShadowInstance 1example_wrap.obj : error LNK2019: unresolved external symbol __imp__PyErr_Clear referenced in function _SWIG_Python_GetModule 1example_wrap.obj : error LNK2019: unresolved external symbol
[issue15772] Unresolved symbols in Windows 64-bit python
Changes by Brian Curtin br...@python.org: -- components: +Build nosy: +brian.curtin, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15772 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13592] repr(regex) doesn't include actual regex
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15773] `is' operator returns False on classmethods
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 x=dict.fromkeys; y=dict.fromkeys; id(x),id(y),id(dict.fromkeys) (3924, 39064632, 39065144) a=id(dict.fromkeys); x=dict.fromkeys; b=id(dict.fromkeys); a,b (3924, 39480568) Attached is a failing test. -- files: is_on_classmethods.py messages: 168967 nosy: mstefanro priority: normal severity: normal status: open title: `is' operator returns False on classmethods versions: Python 3.3 Added file: http://bugs.python.org/file26978/is_on_classmethods.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15773] `is' operator returns False on classmethods
Changes by Stefan Mihaila mstefa...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15773] `is' operator returns False on classmethods
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. There's not a lot we can do about that - it's a genuinely surprising moment in people's understanding of the way methods (and descriptors in general) work. -- nosy: +ncoghlan resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2051] PYO file permission problem
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15774] String method title() produces incorrect resutls
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 method title() produces incorrect resutls versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15774 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15774] String method title() produces incorrect resutls
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15748] Various symlink test failures in test_shutil on FreeBSD
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 http://bugs.python.org/issue15748 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15774] String method title() produces incorrect resutls
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 superseder: - str.title() misbehaves with apostrophes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15774 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15352] importlib.h should be regenerated when the marshaling code changes
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
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 lists with their own apis then we shouldn't worry about supporting it? see: https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSPropertyListSerialization_Class/Reference/Reference.html enum { NSPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat, NSPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0, NSPropertyListBinaryFormat_v1_0 = kCFPropertyListBinaryFormat_v1_0 }; NSPropertyListFormat; typedef NSUInteger NSPropertyListFormat; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2051] PYO file permission problem
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 tracker rep...@bugs.python.org http://bugs.python.org/issue2051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com