[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (>16-bit) characters

2011-12-16 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to decode this with utf-8 and I got '...\U0001f384\U0001f385\U0001f381\U0001f384\U0001f385\U0001f381 if you haven't checked this out yet please do. download APP TRAILERS and go to videos use promo code FREE4U and enjoy free apps courtesy of apple MERRY

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-16 Thread Marco Scataglini
Marco Scataglini added the comment: Win 7 Pro 32bit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue13619] Add a new codec: "locale", the current locale encoding

2011-12-16 Thread STINNER Victor
STINNER Victor added the comment: # On FreeBSD, Solaris and Mac OS X, b'\xff' can be decoded in # the C locale. The C locale is something like ISO-8859-1, not # 7-bit ASCII. On FreeBSD, it *is* the ISO-8859-1 encoding. -- ___ Python tracker

[issue13619] Add a new codec: "locale", the current locale encoding

2011-12-16 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file23985/locale_encoding.patch ___ Python tracker ___

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, I think that the current code is good enough to close the issue. I opened a more global issue about the Python codec: #13619. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue13619] Add a new codec: "locale", the current locale encoding

2011-12-16 Thread STINNER Victor
New submission from STINNER Victor : To factorize the code and to fix encoding issues in the time module, I added functions to decode/encode from/to the locale encoding: PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() (issue #13560). During tests, I reali

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (>16-bit) characters

2011-12-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (>16-bit) characters

2011-12-16 Thread Silverback Networks
Changes by Silverback Networks : -- title: bytes.deocde() UnicodeEncodeError on Apple iOS characters -> bytes.decode() UnicodeEncodeError on Apple iOS (>16-bit) characters ___ Python tracker __

[issue13618] bytes.deocde() UnicodeEncodeError on Apple iOS characters

2011-12-16 Thread Silverback Networks
New submission from Silverback Networks : I've searched high and low to find a way to make Python accept Apple's iOS characters, but it looks like Python is not supporting greater than 16-bit characters correctly. If you look at the leading character of each group, it's \xf0, indicating a 4-ch

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07802351ccad by Victor Stinner in branch 'default': Issue #13560: Locale codec functions use the classic "errors" parameter, http://hg.python.org/cpython/rev/07802351ccad -- ___ Python tracker

[issue13617] Reject embedded null characters in wchar* strings

2011-12-16 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_AsWideCharString() documentation should also warn about this issue. -- ___ Python tracker ___ ___

[issue13617] Reject embedded null characters in wchar* strings

2011-12-16 Thread STINNER Victor
New submission from STINNER Victor : The curses module (only since Python 3.3), locale.strcoll(), locale.strxfrm(), time.strftime() and imp.NullImporter() (only on Windows) accept embedded null characters, whereas they convert the Unicode string to a wide character (wchar_t*) string. The prob

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88198b93ff2f by Victor Stinner in branch 'default': Issue #13560: Add PyUnicode_EncodeLocale() http://hg.python.org/cpython/rev/88198b93ff2f New changeset 51412b4b81ae by Victor Stinner in branch 'default': Issue #13560: os.strerror() now uses the

[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize

2011-12-16 Thread STINNER Victor
STINNER Victor added the comment: changeset: 74002:279b0aee0cfb user:Victor Stinner date:Fri Dec 16 23:56:01 2011 +0100 files: Doc/c-api/unicode.rst Include/unicodeobject.h Modules/_localemodule.c Modules/main.c Modules/timemodule.c description: Add PyUnicode_DecodeLoca

[issue1294232] Error in metaclass search order

2011-12-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Here's updated version: termsize.diff.1 > Ok, a couple of general comments: > - there is no point having a separate module for a single function; I > think > the os module (and posixmodule.c for the C side) is a > reasonable place where to put this Done. (But p

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2, Win7 (a narrow build) it indeed works and returns -- nosy: +terry.reedy versions: +Python 2.7 -3rd party, Python 2.6 ___ Python tracker _

[issue13610] On Python parsing numbers.

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The proposal is to change the definition of numbers literals from X to one that is context-sensitive: X followed by whitespace or a syntactic symbol but not anything else, in particular, not by an identifier_start character. I am +-0 at the moment. > 1 and@

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Seems mostly fine to me. -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bu

[issue13607] Move generator specific sections out of ceval.

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

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: > but if #11957 is fixed, the result will look like re.Regex('abc', re.I|re.S) That is what I would like to see. -- nosy: +terry.reedy ___ Python tracker __

[issue13590] Prebuilt python-2.7.2 binaries for macosx can not compile c extensions

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Error is in 3.2 docs as well. 2.6/3.1 only get security patches. 3.4 is for future enhancements what will not even go into 3.3. -- nosy: +terry.reedy ___ Python tracker

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Replace selected not working/consistent with find -> IDLE: Replace selected not working/consistent with find ___ Python tracker ___ ___

[issue13586] Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2 on Win 7, selected text *is* put in the 'find' field of Replace boxes, just as with Find boxes, just as it should be. So there is something specific either to 2.7 (which is unusual, since the code base in mostly the same, but possible) or to your OS. W

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: The code is fixed. Am leaving this open until I have a chance to see if anything in the docs need to be updated. -- ___ Python tracker ___

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ghaering versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13582] IDLE and pythonw.exe stderr problem

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

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: At line 237 of string.py: def convert_field(self, value, conversion): # do any conversion on the resulting object if conversion == 'r': return repr(value) elif conversion == 's': return str(value) elif

[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Are you sure that the program is really stuck in the gc module? The loop you mention has to go through all objects of the process. It's possible that it allocated many objects, that one garbage collection takes a few seconds, and even that most of the t

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this complete and ready to close, or does the doc need a note? -- nosy: +terry.reedy ___ Python tracker ___

[issue13571] Backup files support in IDLE

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Roger that developing an extension elsewhere is the proper first step. I suspect that you will want to experiment with the exact behavior and interface. So I am closing this for now, though you can reopen later if there is a renewed proposal to c

[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

2011-12-16 Thread David Butler
New submission from David Butler : CPU will sit a 100% indefinitely, this is also pretty tough (takes several hours) to reproduce if you step through the program it is stuck between 290 and 292 Modules/gcmodule.c: /* Set all gc_refs = ob_refcnt. After this, gc_refs is > 0 for all objects *

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 766a21ebf82e by Ezio Melotti in branch '2.7': #13613: fix example in re doc. http://hg.python.org/cpython/rev/766a21ebf82e New changeset 0b86da9d6964 by Ezio Melotti in branch '3.2': #13613: fix example in re doc. http://hg.python.org/cpython/rev/0

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
anatoly techtonik added the comment: Ubuntu 11.10 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
New submission from anatoly techtonik : $ python setup.py sdist register -r https://pypi.python.org/pypi upload ... Creating tar archive removing 'pager-0.2' (and everything under it) running register Traceback (most recent call last): File "setup.py", line 17, in 'Operating System :: OS

[issue13614] `setup.py register` fails with traceback

2011-12-16 Thread anatoly techtonik
New submission from anatoly techtonik : It seems that invalid ReST in long_description causes traceback in distutils `register` command. See attached log. More details: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/905500 -- assignee: tarek components: Distutils files: trace

[issue11379] Remove "lightweight" from minidom description

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: > "If you have to work with XML, ElementTree is usually the best > choice, because it has a simple API and it's efficient [or whatever]. I still object such a wording, for many reasons. -- ___ Python tracker

[issue5424] Packed IPaddr conversion tests should be extended

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree with Antoine: a single test testing that we actually raise exceptions properly should be sufficient. OTOH, the patch doesn't hurt (AFAICT), so I wouldn't mind if it was applied as-is. -- ___ Python tracke

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Code added to the standard library should be contributed by its author, with an explicit statement of plans to support it in an ongoing manner, and preferably also with plans to stop providing standalone releases over time. -- nosy: +loewis

[issue818201] distutils: clean does not use build_base option from build

2011-12-16 Thread Josh
Josh added the comment: Where was this fixed? It is still a problem in Python 2.6.6. For example, if I do: python setup.py build_ext --compiler=mingw32 build --build-platlib=build\win64 Then follow it up with: python setup.py clean --build-base=build\win64 -a This is what it does: running

[issue13610] On Python parsing numbers.

2011-12-16 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.

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, a couple of general comments: - there is no point having a separate module for a single function; I think the os module (and posixmodule.c for the C side) is a reasonable place where to put this - C code should be indented with 4 spaces increments and no t

[issue1785] "inspect" gets broken by some descriptors

2011-12-16 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13607] Move generator specific sections out of ceval.

2011-12-16 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.

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Don't forget the Windows platform... here is an implementation: https://bitbucket.org/hpk42/py/src/980c8d526463/py/_io/terminalwriter.py#cl-284 But it would be better written in C, of course. -- nosy: +amaury.forgeotdarc ___

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: This is proof-of-concept implementation. This adds two modules: termsize (python) and _termsize (C). The first one contains the get_terminal_size user-facing function and namedtuple definition. The second on contains the function query_terminal_size which does

[issue13604] update PEP 393 (match implementation)

2011-12-16 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.

[issue1559549] ImportError needs attributes for module and file name

2011-12-16 Thread Brian Curtin
Brian Curtin added the comment: I think I'm going to stick with name unless anyone is super opposed. If we can eventually import something else (sausages?), then setting module_name with a sausage name will seem weird. I'll work up a more complete patch. The private helper is a good idea. --

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > The docstring for shutil says: Utility functions for copying and > archiving files and directory trees. So it doesn't seem to fit at all. Well... shutil should stand for "shell utilities" and it already contains stuff which is not strictly related to fil

[issue13610] On Python parsing numbers.

2011-12-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think it's fairly harmless. Perhaps Python 4. -- priority: normal -> low ___ Python tracker ___ __

[issue13610] On Python parsing numbers.

2011-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: > Can this be fixed? Not without breaking backwards compatibility, I would think. -- nosy: +mark.dickinson ___ Python tracker ___

[issue13604] update PEP 393 (match implementation)

2011-12-16 Thread Jim Jewett
Changes by Jim Jewett : Added file: http://bugs.python.org/file23980/pep-0393_20111216.txt.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles
Edmund Eyles added the comment: Changes proposed in file 23978 look good to me! On 16/12/2011 13:28, Ezio Melotti wrote: > > Changes by Ezio Melotti: > > > Added file: http://bugs.python.org/file23978/issue13613.diff > > ___ > Python tracker >

[issue13604] update PEP 393 (match implementation)

2011-12-16 Thread Jim Jewett
Jim Jewett added the comment: >> Why is the utf-8 representation not cached when it is generated for >> ParseTuple et alia? My error -- I read something backwards. >> When a string is created from a wchar_t array, who is responsible for >> releasing the original wchar_t array? > The caller.

[issue8373] socket: AF_UNIX socket paths not handled according to PEP 383

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in 3.3 (default branch), thank you! -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 3.1, Python 3.2 ___ Python tra

[issue8373] socket: AF_UNIX socket paths not handled according to PEP 383

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f23bb74f4bc by Antoine Pitrou in branch 'default': Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem http://hg.python.org/cpython/rev/1f23bb74f4bc -- nosy: +python-dev ___ Pyth

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: One reply to three comments: [To myself]: > I'll post an updated version here in a moment. Hm, it's not so simple. The implementation is simple, but the configure defines are harder than I thought. But I'm getting there :) > Zbyszek, I just looked at [1] and I

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23978/issue13613.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file23977/issue13613.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> ezio.melotti keywords: +patch nosy: +ezio.melotti stage: -> commit review type: behavior -> enhancement versions: +Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23977/issue13613.diff _

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles
New submission from Edmund Eyles : The documentation for Python 2.7.2 has a section of examples for the regular expression match() function, based on a poker hand, at section 7.2.6.1. These examples show a suit of cards as having 14 cards! The ace is counted twice, as '1' and 'a'. Remind me

[issue13584] argparse doesn't respect double quotes

2011-12-16 Thread Steven Bethard
Steven Bethard added the comment: Closing then. Thanks for checking it again! -- assignee: -> bethard resolution: -> works for me stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue13229] Improve tools for iterating over filesystem directories

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Plus, you should provide also heigth, not only width, possibly as a namedtuple: >>> import shutil >>> shutil.get_terminal_size() size(width=80, heigth=170) >>> -- ___ Python tracker

[issue13041] argparse: terminal width is not detected properly

2011-12-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- dependencies: +Add "os.get_terminal_size()" function versions: -Python 2.7, Python 3.2 ___ Python tracker ___ _

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: http://bugs.python.org/file23241/patch1.1.diff This looks like something which would fit better into shutil module rather than os. Also, the Windows implementation should not rely on ctypes. -- nosy: +giampaolo.rodola __

[issue9975] Incorrect use of flowinfo and scope_id in IPv6 sockaddr tuple

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10350] errno is read too late

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in 3.x. I won't bother backporting to 2.x. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python track

[issue10350] errno is read too late

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a966179c73a by Antoine Pitrou in branch '3.2': Issue #10350: Read and save errno before calling a function which might overwrite it. http://hg.python.org/cpython/rev/6a966179c73a New changeset 8e0b2e75ca7a by Antoine Pitrou in branch 'default': I

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá added the comment: Zbyszek, I just looked at [1] and I disagree that the environment variable should have higher precedence. In fact, I believe it should have lower precedence, and should be used as a fallback. [1]: http://bugs.python.org/file23241/patch1.1.diff Rea

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Actually, this fails on 2.6 and 2.7 on wide unicode builds, and passes with narrow unicode builds (on my 64bit Linux box). In pyexpat.c, PyUnknownEncodingHandler accesses 256 characters of a unicode buffer, without checking its length... which happens t

[issue5424] Packed IPaddr conversion tests should be extended

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11379] Remove "lightweight" from minidom description

2011-12-16 Thread Ezio Melotti
Ezio Melotti added the comment: > xml.dom.minidom is a [-XXX: light-weight] implementation of the Document > Object Model interface. This is ok. > It is intended to be simpler than the full DOM and also > [+XXX: provide a] significantly smaller [+XXX: API]. Doesn't "simpler" here refer to th

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The clearing the dict and list freelists has been added independently, so I committed the part of the patch pertaining to sets. Thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 3.2

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2011-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57f0af61da53 by Antoine Pitrou in branch 'default': Issue #6695: Full garbage collection runs now clear the freelist of set objects. http://hg.python.org/cpython/rev/57f0af61da53 -- nosy: +python-dev ___

[issue13610] On Python parsing numbers.

2011-12-16 Thread Charles-François Natali
Charles-François Natali added the comment: > Can this be fixed? More or less. The following patch does the trick, but is not really elegant: """ --- a/Parser/tokenizer.c2011-06-01 02:39:38.0 + +++ b/Parser/tokenizer.c2011-12-16 08:48:45.0 + @@ -1574,6 +15

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1785] "inspect" gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file23976/inspect-and-pydoc-bug3.patch ___ Python tracker ___ ___ Python-bugs-li

[issue1785] "inspect" gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch that adds a test for classifying builtin types (checks that ``inspect.classify_class_attrs(type)`` does not throw as in issue13581). -- ___ Python tracker __

[issue1785] "inspect" gets broken by some descriptors

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch for 3.2. -- stage: -> patch review versions: +Python 3.2 -Python 2.6 Added file: http://bugs.python.org/file23975/inspect-and-pydoc-bug2.patch ___ Python tracker ___

[issue6715] xz compressor support

2011-12-16 Thread Nadeem Vawda
Nadeem Vawda added the comment: Yes, almost half of the buildbots still don't have the xz-utils headers installed, and thus are not building/testing the lzma module. I've kept the issue open as a reminder to myself to follow up on this. -- ___ Python

[issue11379] Remove "lightweight" from minidom description

2011-12-16 Thread Stefan Behnel
Stefan Behnel added the comment: I started a mailing list thread on the same topic: http://thread.gmane.org/gmane.comp.python.devel/127963 Especially see http://thread.gmane.org/gmane.comp.python.devel/127963/focus=128162 where I extract a proposal from the discussion. Basically, there shoul

[issue1559549] ImportError needs attributes for module and file name

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: "fullname" is technically wrong: >>> import logging.bar Traceback (most recent call last): File "", line 1, in ImportError: No module named 'bar' "module_name" sounds fine and explicit enough to me. Also, as Eric points out, there are many places where an

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang : -- versions: +3rd party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
New submission from Dongying Zhang : I've been trying to parse xml string using python, codes following: #-*- coding: utf-8 -*- import xml.etree.ElementTree as xmlet s = '' xmlet.fromstring(s) Then: $ python2.6 test.py or: $ pypy test.py Traceback message came out like

[issue6715] xz compressor support

2011-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is there any reason why this issue is still open? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue7652] Merge C version of decimal into py3k.

2011-12-16 Thread Stefan Krah
Stefan Krah added the comment: > For my part, a two-lines description of the purpose of file is enough. OK, I'll go for small comments in the files themselves and put big ones in separate files. -- ___ Python tracker

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > However, it is a real change from 2.6 to 2.7 that breaks code. John, this issue is not the same as the one above. The difference between Python 2.6 and Python 2.7.2 you mention only applies to % formatting. The change is clearly documented in http://d

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13611] Integrate ElementC14N module into xml.etree package

2011-12-16 Thread Stefan Behnel
New submission from Stefan Behnel : The ElementC14N.py module by Fredrik Lundh implements XML canonicalisation for the ElementTree serialiser. Given that the required API hooks to use it are already in xml.etree.ElementTree, this would make a nice, simple and straight forward addition to the e

[issue13609] Add "os.get_terminal_size()" function

2011-12-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: The patch is already almost there (in #13041). I'll post an updated version here in a moment. -- nosy: +zbysz ___ Python tracker ___ __