[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-10 Thread Georg Brandl
Georg Brandl added the comment: Deferring. -- priority: release blocker -> deferred blocker ___ Python tracker ___ ___ Python-bugs-lis

[issue15527] Double parens in functions references

2012-08-10 Thread Georg Brandl
Georg Brandl added the comment: Is anyone even reading my messages...? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Meador Inge
Meador Inge added the comment: Thanks for the patches! (I fixed a minor nit on the 2.7 patch where 'array_sizeof' was defined inside #ifdef Py_USING_UNICODE). -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___

[issue15576] importlib: ExtensionFileLoader not used to load packages from __init__.so files

2012-08-10 Thread Stefan Behnel
Stefan Behnel added the comment: I understand that this is not trivial to test as part of the regression test suite. However, when I try it now I get this: Traceback (most recent call last): File "", line 1, in File "__init__.py", line 8, in init my_test_package (my_test_package/__init__.

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91382d4e2dfb by Meador Inge in branch '2.7': Issue #15424: Add a __sizeof__ implementation for array objects. http://hg.python.org/cpython/rev/91382d4e2dfb New changeset 45ef9bc8739f by Meador Inge in branch '3.2': Issue #15424: Add a __sizeof__ imp

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't consider it relevant for 3.3; I may have time to review only post-3.3. -- ___ Python tracker ___ __

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: I find Stefan's proposed equality confusing. Why is it based on memcmp? Either it compares memory (i.e. internal representations), or it compares abstract values. If it compares abstract values, then it shouldn't be a requirement that the format strings are e

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15621] UnboundLocalError on simple in-place assignment of an inner scope

2012-08-10 Thread R. David Murray
R. David Murray added the comment: In t2, you assign to num. That makes it local. In t1, you don't, so num is picked up from the global scope. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue15621] UnboundLocalError on simple in-place assignment of an inner scope

2012-08-10 Thread zipher
New submission from zipher: >>> num = 1 >>> def t1(): print num >>> t1() 1 >>> def t2(): ... num+=1 ... print num >>> t2() UnboundLocalError: local variable 'num' referenced before assignment It seems num is bound in t1, but not t2, even though they are the same scope. Am I missing s

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2012-08-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I would like to know why that is the case. > > If PyUnicode_Join is not optimal, then perhaps we should > > better optimize it. > > I don't know. _PyUnicodeWriter overallocates its buffer (+25%). It may > reduce the number of realloc(), and so the number of

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2012-08-10 Thread STINNER Victor
STINNER Victor added the comment: > I would like to know why that is the case. > If PyUnicode_Join is not optimal, then perhaps we should > better optimize it. I don't know. _PyUnicodeWriter overallocates its buffer (+25%). It may reduce the number of realloc(), and so the number of times that

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: Hopefully the 3rd-party code using PyImport_ImportModuleEx will work as expected with a 'level' of 0. -- assignee: -> brett.cannon resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9804aec74d4a by Brett Cannon in branch 'default': Issue #15610: The PyImport_ImportModuleEx macro now calls http://hg.python.org/cpython/rev/9804aec74d4a -- nosy: +python-dev ___ Python tracker

[issue15620] readline.clear_history() missing in test_readline.py

2012-08-10 Thread Juancarlo Añez
Juancarlo Añez added the comment: Check if clear_history() is available before calling it. -- Added file: http://bugs.python.org/file26762/readline_clear_history_available.patch ___ Python tracker

[issue15620] readline.clear_history() missing in test_readline.py

2012-08-10 Thread Juancarlo Añez
Changes by Juancarlo Añez : Removed file: http://bugs.python.org/file26761/readline_clear_history_available.patch ___ Python tracker ___ ___

[issue15620] readline.clear_history() missing in test_readline.py

2012-08-10 Thread Juancarlo Añez
Juancarlo Añez added the comment: Check if clear_history() is available before calling it. -- keywords: +patch Added file: http://bugs.python.org/file26761/readline_clear_history_available.patch ___ Python tracker

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-10 Thread Glenn Linderman
Glenn Linderman added the comment: So the issue you perceive is that a correctly MIME-typed .mht file has a MIME type of multipart/related -- but that for the purposes of uploading the file, you don't want to treat it as that MIME type, but rather as an opaque data file. Just give it a differe

[issue15620] readline.clear_history() missing in test_readline.py

2012-08-10 Thread Juancarlo Añez
Juancarlo Añez added the comment: $ dpkg -l | grep readline ii libreadline-dev 6.2-8 GNU readline and history libraries, development files ii libreadline55.2-11

[issue15620] readline.clear_history() missing in test_readline.py

2012-08-10 Thread Juancarlo Añez
New submission from Juancarlo Añez: $ lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch Distributor ID: Ubuntu Description:Ubuntu 12.04.1 LTS Release:

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7a67f1bf604 by Brett Cannon in branch 'default': Issue #15502: Refactor some code. http://hg.python.org/cpython/rev/e7a67f1bf604 -- ___ Python tracker ___

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Vinay Sajip
Vinay Sajip added the comment: You've only shown that the YAML loading produces the correct results on 2.6. Logging changed from old-style classes in 2.6 to new-style classes in 2.7. This may be what is causing PyYAML a problem, but AFAICT PyYAML should work with new-style classes. Perhaps you

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: To protect themselves from the surprises we need working mkstringprep.py. Martin, what do you say about a patch? -- ___ Python tracker ___ __

[issue15527] Double parens in functions references

2012-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file26760/doc_dbl_parens.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue15527] Double parens in functions references

2012-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15527] Double parens in functions references

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Chris. Here's the patch. -- stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for raising this issue, Serhiy and thanks for the patch, Daniel. It is committed now. -- nosy: +orsenthil resolution: -> fixed status: open -> closed ___ Python tracker _

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4877d59613d by Senthil Kumaran in branch 'default': Fix issue #15607: Update the print builtin function docstring with the new flush keyword. http://hg.python.org/cpython/rev/e4877d59613d -- nosy: +python-dev _

[issue13405] Add DTrace probes

2012-08-10 Thread Francois Dion
Changes by Francois Dion : -- nosy: +Francois.Dion ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Stefan Krah
Stefan Krah added the comment: Martin v. Loewis wrote: > Sure: someone would have to make a proposal what exactly that is. > IMO, the 3.2 definition *was* simple, but apparently it was considered > too simple. It was simply broken in multiple ways. Example: >>> from numpy import * >>> x = arra

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-10 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Stefan Krah
Stefan Krah added the comment: The ideal specification is: 1) Arrays v and w are equal iff format and shape are equal and for all valid indices allowed by shape memcmp((char *)PyBuffer_GetPointer(v, indices), (char *)PyBuffer_GetPointer(w, indices), itemsize) ==

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-10 Thread Glenn Linderman
Changes by Glenn Linderman : -- nosy: +v+python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15527] Double parens in functions references

2012-08-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: - a distinct non-*NULL* pointer if possible, as if :c:func:`PyMem_Malloc(1)` had + a distinct non-*NULL* pointer if possible, as if ``PyMem_Malloc(1)`` had > From my perspective sphinx doesn't allow notations like > :c:func:`PyMem_Malloc(1)` I believe tha

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2012-08-10 Thread Eric Snow
Eric Snow added the comment: I have just the thing for this, but haven't had a chance to put a patch together. I might be able to get to it in the next week if Dave "bitey" Beazley isn't too much of a distraction. :) -- ___ Python tracker

[issue15365] Traceback reporting can fail if IO cannot be imported

2012-08-10 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15594] test_copyfile_named_pipe() fails on Mac OS X Snow Leopard: OSError: [Errno 22] Invalid argument

2012-08-10 Thread Łukasz Langa
Łukasz Langa added the comment: I will be able to look at this on Monday (currently on vacation). The only unusual thing that comes to mind is that this is a virtual machine. Oh, and it's Snow Leopard *Server* (unfortunately I don't have any desktop licenses handy, and I'm not sure if I could

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Can't we start with something simple (for ptyhon 3.3?), and elaborate > later? Sure: someone would have to make a proposal what exactly that is. IMO, the 3.2 definition *was* simple, but apparently it was considered too simple. So either Stefan gets to define

[issue15604] PyObject_IsTrue failure checks

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I shall try to do this, but it will take a lot of time. Besides, now in the code there are a lot of *correct* checked usage of PyObject_IsTrue without test cases. So I'm not sure that the tests are needed here, and that they are worth the effort. --

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-10 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15527] Double parens in functions references

2012-08-10 Thread Georg Brandl
Georg Brandl added the comment: 1) is correct. (And cmacro works because it's only for non-function macros anyway.) -- ___ Python tracker ___ ___

[issue15527] Double parens in functions references

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I don't know anything about the Sphinx, therefore, I do not know what is the problem and what the solution should be. 1) If this is the improper use of markup (the arguments are not supported and must not), we need to remove markup from other doc file

[issue15618] turtle.pencolor() chokes on unicode

2012-08-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread STINNER Victor
STINNER Victor added the comment: Can't we start with something simple (for ptyhon 3.3?), and elaborate later? In my specific example, both object have the same format string and the same content. So i expect that they are equal. Le 10 août 2012 19:47, "Martin v. Löwis" a écrit : > > Martin v.

[issue15444] Incorrectly written contributor's names

2012-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file26504/doc-nonascii-names.patch ___ Python tracker ___ ___ Python-bugs-l

[issue15444] Incorrectly written contributor's names

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about patch review? -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list ma

[issue15576] importlib: ExtensionFileLoader not used to load packages from __init__.so files

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1db6553f3f8c by Brett Cannon in branch 'default': Issue #15576: Allow extension modules to be a package's __init__ http://hg.python.org/cpython/rev/1db6553f3f8c -- nosy: +python-dev ___ Python tracker

[issue15576] importlib: ExtensionFileLoader not used to load packages from __init__.so files

2012-08-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: > So v.format must equal w.format, where format is a format string in > struct module syntax. The topic of this issue is to determine under > what circumstances two strings in struct module syntax are considered > equal. And that is exactly my question: We don'

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Eli Bendersky
Eli Bendersky added the comment: I agree with Georg. As far as I understand the word "arbitrary" - it describes the situation exactly. -- nosy: +eli.bendersky ___ Python tracker __

[issue15577] Real argc and argv in embedded interpreter

2012-08-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: I will go back and steal the FileFinder.find_module implementation after I finish the current patch I'm working on. -- ___ Python tracker ___ ___

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Georg Brandl
Georg Brandl added the comment: Sorry, I don't see how "arbitrary" implies "random". So I'm -1 on making the docs more verbose for no apparent gain. -- nosy: +georg.brandl ___ Python tracker _

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Stefan Krah
Changes by Stefan Krah : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Anton Barkovsky
New submission from Anton Barkovsky: I've seen people being confused by the documentation for set.pop() method. It makes it look like the element is selected randomly while it's just unspecified. I'm attaching a patch that clarifies the doc, tested on 3.3, 3.2 and 2.7 -- assignee: docs

[issue15618] turtle.pencolor() chokes on unicode

2012-08-10 Thread Juancarlo Añez
Juancarlo Añez added the comment: The bug showed up in a script that used: from __future__ import unicode_literals -- ___ Python tracker ___

[issue15618] turtle.pencolor() chokes on unicode

2012-08-10 Thread Juancarlo Añez
Juancarlo Añez added the comment: This patch solves the problem by making turtle check for string against basestring insted of str. -- keywords: +patch Added file: http://bugs.python.org/file26758/turtle_unicode.patch ___ Python tracker

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Stefan Krah
Stefan Krah added the comment: > 1. what does it mean that the formats of v and w are equal? I'm using array and Py_buffer interchangeably since a Py_buffer struct actually describes a multi-dimensional array. v and w are Py_buffer structs. So v.format must equal w.format, where format is a for

[issue15576] importlib: ExtensionFileLoader not used to load packages from __init__.so files

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: To add a nice wrinkle to all of this, Windows debug builds use _d.pyd as the extension suffix. Notice how that doesn't start with a nice '.' to make finding the suffix easy? Yeah, that complicates ExtensionLoader.is_package() as I will have to now directly refer

[issue15606] re.VERBOSE doesn't ignore certain whitespace

2012-08-10 Thread Matthew Barnett
Matthew Barnett added the comment: Ideally, yes, that whitespace should be ignored. The question is whether it's worth fixing the code for the small case of when there's whitespace within "tokens", such as within "(?:". Usually those who use verbose mode use whitespace as in the first example

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches look good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a75ce232f56 by Brett Cannon in branch 'default': Issue #15502: Finish bringing importlib.abc in line with the current http://hg.python.org/cpython/rev/0a75ce232f56 -- ___ Python tracker

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Nick Coghlan
Nick Coghlan added the comment: Sounds good. Perhaps steal the impl from FileFinder.find_module (i.e. the one with the ImportWarning). -- ___ Python tracker ___

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Jordi Puigsegur
Jordi Puigsegur added the comment: This is the output of your script when run in python 2.6 and the exact same PyYaml version: C:\>test.py RotatingFileHandler using code: {'backupCount': 3, 'baseFilename': 'C:\\test.log', 'encoding': None, 'filters': [], 'formatter': None, 'level': 0, 'l

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Jordi Puigsegur
Jordi Puigsegur added the comment: Thanks for your answer. I am not sure it is a PyYaml bug. Did you notice that the same code works perfectly (with the same version of PyYaml) using python 2.6 and python 2.5? Could it be that the issue lies in some change in the way the pickle protocol is i

[issue15573] Support unknown formats in memoryview comparisons

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please elaborate on the specification: 1. what does it mean that the formats of v and w are equal? 2. Victor's clarification about this issue isn't about comparing two arrays, but an array with a string object. So: when is an array equal to some other

[issue15618] turtle.pencolor() chokes on unicode

2012-08-10 Thread Juancarlo Añez
New submission from Juancarlo Añez: >>> t.pencolor(u'red') Traceback (most recent call last): File "", line 1, in File "", line 1, in pencolor File "/usr/lib/python2.7/lib-tk/turtle.py", line 2166, in pencolor color = self._colorstr(args) File "/usr/lib/python2.7/lib-tk/turtle.py", l

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread R. David Murray
R. David Murray added the comment: I see our previous messages crossed, I'm glad you investigated this more throughly than I did, since clearly just adding the flag could break things. I'm using gentoo linux (gentoo stable on that particular machine). I don't guarantee my /etc/hosts file is s

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: Actually there is one issue with PathEntryFinder inheriting from Finder; it doesn't need to implement find_module() if it doesn't want to in Python 3.3. So I will need to stick in a dummy find_module() on the class that calls find_loader() and then returns any f

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Vinay Sajip
Vinay Sajip added the comment: The problem appears to be in PyYAML, not logging. Note the content of the attribute dictionaries in the following script: import logging import logging.handlers from pprint import pprint import yaml # Option 1 - OK h1 = logging.handlers.RotatingFileHandler(filena

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: David: I get the same on Linux as you, however, in the standard Debian installation, ::1 is *not* an address for "localhost", only for "ip6-localhost" and "ip6-loopback". Likewise, on Redhat, it seems that only "localhost6" gives you ::1. What Linux distribut

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the review, Nick! I will get this patch committed sometime today with your comments integrated. -- ___ Python tracker ___

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, and +1 for Eric's "path-based finder". States clearly that it is a finder that *uses* import paths, rather than finding them. -- ___ Python tracker _

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Nick Coghlan
Nick Coghlan added the comment: Done. Only substantive comment was that Finder should be registered with both of the more specific metaclasses, but there were a couple of docs comments as well. -- ___ Python tracker

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: I still need a core committer to double-check me on Eric's patch to make sure the ABC changes are acceptable. I can handle the commit if someone will just sign off. -- ___ Python tracker

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-10 Thread Brett Cannon
Brett Cannon added the comment: OK, the macro expansion should get fixed, a versionchanged should probably be added to the C API docs (for PyImport_ImportModuleLevel()), and a line in What's New for porting C code should be added. We can't go back to -1, as Eric said, because it makes no sense

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread R. David Murray
R. David Murray added the comment: Hmm. I wonder what is different on my (linux) box. I have ::1 in /etc/hosts for localhost. Regardless, it certainly wouldn't hurt to add the flag to the test. -- ___ Python tracker

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: I was about to say that I agree that AI_ADDRCONFIG should be used in create_connection. However, RFC 3493 deviates from RFC 2553 by stating """If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be returned only if an IPv4 address is configured on

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: I think this is influenced by what you have in /etc/hosts. On my laptop I also have IPv6 loopback as well as an IPv6 link-local on eth0. But I have both 127.0.0.1 and ::1 in /etc/hosts as locahost. With that configuration I get the same getaddrinfo results

[issue15365] Traceback reporting can fail if IO cannot be imported

2012-08-10 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread R. David Murray
R. David Murray added the comment: That sounds reasonable. However, on my box that has an IPv6 address configured on lo, I get the same result with or without that flag: loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host

[issue15528] Better support for finalization with weakrefs

2012-08-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: It was my understanding that this is what the AI_ADDRCONFIG flag is for, if you don't use it you have no such guarantee. -- ___ Python tracker __

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread R. David Murray
R. David Murray added the comment: But if getaddrinfo returns an IPv6 address, shouldn't a localhost connection on that address work? It seems to me that a localhost connection failing when an IPv6 localhost address is returned is an OS configuration bug. -- nosy: +r.david.murray ___

[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2012-08-10 Thread Floris Bruynooghe
New submission from Floris Bruynooghe: The SPARC Solaris 10 OpenCSW 3.x builder fails with == FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Removed file: http://bugs.python.org/file26479/array_sizeof.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Removed file: http://bugs.python.org/file26510/array_sizeof_v3.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Ludwig Hähne added the comment: Meador, Serhiy, I've add patches for Python 2.7 and Python 3.2 following Serhiy suggestions. -- ___ Python tracker ___ __

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Removed file: http://bugs.python.org/file26480/array_sizeof_v2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Removed file: http://bugs.python.org/file26713/array_sizeof_v4.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Added file: http://bugs.python.org/file26757/array_sizeof_3.2.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue15424] __sizeof__ of array should include size of items

2012-08-10 Thread Ludwig Hähne
Changes by Ludwig Hähne : Added file: http://bugs.python.org/file26756/array_sizeof_2.7.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Jordi Puigsegur
Jordi Puigsegur added the comment: import logging import logging.handlers import yaml logger = logging.getLogger() # root logger # Option 1 - OK ##handler = logging.handlers.RotatingFileHandler(filename = "test.log", maxBytes = 262144, backupCount = 3) # Option 2 - RotatingFileHandler fails w

[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

2012-08-10 Thread Jordi Puigsegur
New submission from Jordi Puigsegur: logging.FileHandler and logging.RotatingFileHandler (haven't tried other handlers) do not get correctly initialized in python 2.7 when loaded using PyYaml. Therefore I suspect that there is some problem with the implementation of the pickle protocol of the

[issue15615] More tests for JSON decoder to test Exceptions

2012-08-10 Thread Kushal Das
New submission from Kushal Das: Added two more tests in json module to test exception cases. test_extra_data: this test checks the error condition when we have extra data in the stream. test_invalid_escape: this test checks for the invalid escape sequence in the stream -- components

  1   2   >