[issue3080] Full unicode import system

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Nice work! Is there a specific place for comments? Here are some of them already: - Modules/zipimport.c::make_filename: remove the limit buffer, the code could look like: pathsize = PyUnicode_GET_SIZE(prefix) +

[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Could you try with the attached patch ? The problem is that subprocess silently replaces bufsize=0, so child.stdout is actually buffered, and when you read just one byte, everything that's available for reading is read into the

[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___ ___

[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-03-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11453 ___ ___

[issue11460] Attribute Error

2011-03-10 Thread saradayerramalle
New submission from saradayerramalle saradasr...@yahoo.co.in: Hi. I am new to Python. I have an ABC.py file in which it has a checkbox. An instance of the wx.CheckBox is created with name chkbox1. Initial value is set and its binded to the wx.EVT_CHECKBOX with a function xxx(). Now, I am

[issue11460] Attribute Error

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Hi, if you need help with Python try the Python mailing list[0] or ask on IRC[1]. This bug tracker is used only to report bugs in the Python language. [0]: http://www.python.org/community/lists/ [1]: http://www.python.org/community/irc/

[issue11458] tarfile with socket incompatability

2011-03-10 Thread Alex Leach
Alex Leach beamesle...@gmail.com added the comment: Thanks! =D On Thu, Mar 10, 2011 at 3:46 AM, R. David Murray rep...@bugs.python.orgwrote: R. David Murray rdmur...@bitdance.com added the comment: I believe you are looking for mode 'r|'. -- nosy: +r.david.murray resolution: -

[issue11369] Add caching for the isEnabledFor() computation

2011-03-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Bill, I was looking at this patch again, and I'm not sure about thread safety. The correctness of the caching depends on manager.status, which is state which is potentially shared across threads. There are no interlocks around it, so with

[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Yuriy Pilgun
New submission from Yuriy Pilgun p...@ukrpost.net: Reading UTF-16 text file with module 'codecs' fails, if surrogate pair is located at 72-character boundary. Attached python script fails with message: UnicodeDecodeError: 'utf16' codec can't decode bytes in position 70-71: unexpected end of

[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11461 ___

[issue11452] Test suite not symlink-install clean

2011-03-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: So, nobody. I still can't find a way to reproduce the errors, so. I also get occasional errors when building _multiprocessor, which disappear when (removing _multiprocessor_failed.so and) simply running make all once again. I

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'll give this a proper review in the next day or so (busy at PyCon). Despite the fact that I typically hate changing values returned by the server, I agree on case-folding the fact names to lowercase upon reading them. The RFC clearly states

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: You should have the facts in MLSD_DATA be mixed case, to ensure they're being lowercased correctly. This is already tested by: +# case sensitiveness +set_data('Type=type;TyPe=perm;UNIQUE=unique; name\r\n') +

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: So it is. I told you I hadn't done a proper review! I was mainly trying to say I agree with lowercasing. I'll shut up until I can read the whole patch. -- ___ Python tracker rep...@bugs.python.org

[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The tables and several other doc changes went in 3.1 in cb3a925de1bd. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9796 ___

[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The utf16 incremental codec does not like incomplete surrogate pairs. Patch attached. I also plan to refactor all the test_partial() functions of test_codecs, to give them a common implementation. -- keywords: +patch nosy:

[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___ ___

[issue11454] urllib.request import time

2011-03-10 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: OK, running this: import base64 import bisect import hashlib import io import os import posixpath import random import re import socket import sys import time import collections import io import os import socket import collections import

[issue9584] Allow curly brace expansion

2011-03-10 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I removed the unused import (mostly as a simple test of mercurial, it's my first commit there). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584

[issue3080] Full unicode import system

2011-03-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is there a specific place for comments? Yes, but my work is not done. I still have parts to commit. _PyImport_GetDynLoadFunc still takes char* arguments. Oh. This one is not easy because this function has many implementations

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd rather recommend a different approach, where the set of CAs doesn't need to be specified for every module that directly or indirectly uses SSL. Instead, there should be support for a thread-local setting of the allowable CAs, and then

[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Novimir Pablant
Novimir Pablant amici...@gmail.com added the comment: Applying the patch appears to fix this problem. Thanks! I am definitely confused about why the buffer was changed to line buffered in the first place, especially since the default is bufsize=0 and the comment (# Nearly unbuffered (XXX for

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: For what it's worth, I believe this could be implemented easily by calling _PyDict_HasOnlyStringKeys at the end of the class creation process. -- nosy: +stutzbach ___ Python tracker

[issue11457] Expose nanosecond precision from system calls

2011-03-10 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457 ___ ___ Python-bugs-list

[issue11454] urllib.request import time

2011-03-10 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11454 ___ ___ Python-bugs-list

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox
uptimebox m...@uptimebox.ru added the comment: The bug still exists in 2.6.6 Process PoolWorker-2: Traceback (most recent call last): Process PoolWorker-1: Traceback (most recent call last): File /usr/lib/python2.6/multiprocessing/process.py, line 232, in _bootstrap File

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can somebody propose a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11455 ___ ___

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The bug was fixed in 2.7, and not backported to 2.6. 2.6 is now in security-fix-only mode, if possible you should upgrade to 2.7. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'd rather recommend a different approach, where the set of CAs doesn't need to be specified for every module that directly or indirectly uses SSL. Instead, there should be support for a thread-local setting of the allowable CAs, and then no

[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: So, I see four possible solutions: 1. If we get a tuple, create the new tuple, normalize the exception, and store it. If we get a SyntaxError instance, use its args, create the new tuple, normalize, and store. (In this case a

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: The response I got to this issue hinted that it was a lame issue I filed. I haven't had time/focus to investigate further and give constructive feedback. I think it is kind of OK to require explicit specification of the ca_certs as long as

[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'd choose solution 3, but instead of calling SyntaxError.__init__, call PyErr_NormalizeException(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11441

[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Err... sorry, I don't understand again: If we get a tuple, create a new, store it without normalization. That's okay, I understand. If we get a SyntaxError instance, then take its args field, create the new tuple. Then call

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it is kind of OK to require explicit specification of the ca_certs as long as it is made clear in all the relevant places that it _has_ to be done. I think it would be a good idea to deprecate the default value for ca_certs and issue a

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Can somebody propose a patch? Yes, here it is. (I'm not sure if the test is in the correct file.) -- keywords: +patch nosy: +durban Added file: http://bugs.python.org/file21072/issue11455.patch

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How about the case where non-string keys are added after the class is created? (I think I've heard some third-party lib does this, perhaps a generic functions implementation?) -- nosy: +pitrou ___

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Alex
Alex alex.gay...@gmail.com added the comment: How can they be set afterwords? alex@alex-laptop:~/projects/pypy$ python3.1 Python 3.1.2 (release31-maint, Sep 17 2010, 20:34:23) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. class A(object): ... pass

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, that's true (although there's a trick using gc.get_referers(), IIRC). I was probably thinking about instance dicts rather than type dicts, then. -- ___ Python tracker rep...@bugs.python.org

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Bump! How about applying this patch, Eric? Or maybe there is something else, that needs to be done. If so, I'll be happy to do it. -- ___ Python tracker rep...@bugs.python.org

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you port the patch to distutils2? I should have told so sooner, it’s the process we follow (more info on http://wiki.python.org/moin/Distutils/FixingBugs). -- keywords: +needs review stage: needs patch - patch review versions:

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Sure :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___ ___ Python-bugs-list

[issue11454] urllib.request import time

2011-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11454 ___ ___ Python-bugs-list mailing

[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: And in 2.7 in 6e5b5d1b6714. There's some more refactoring that could be done on unittest.rst but it's out of the scope of this issue, so I'm closing this. -- resolution: - fixed stage: commit review - committed/rejected status:

[issue11435] Links to source code should now point to hg repo

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This can be closed. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435

[issue11244] Negative tuple elements produce inefficient code.

2011-03-10 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: As discussed on the list, peephole refuses to fold -0. The reasons for this are unclear. Folding was disabled with this commit: http://hg.python.org/cpython/diff/660419bdb4ae/Python/compile.c Here's a trivial patch to enable the folding again,

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-10 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: BTW, can you publish your xlistdir implementation somewhere? http://pastebin.com/Qnni5HBa Tests show 10 times smaller memory footprint during directory listing - 25Mb against 286Mb on directory with 800K entries. --

[issue4758] Python 3.x internet documentation needs work

2011-03-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +giampaolo.rodola status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4758 ___

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is maybe out of the scope of this issue, but I would like to see all the basic data types on single page on their own. The current page[0] has some section about data types mixed with sections about operations, comparisons, and

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-03-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4f9213d3858b by R David Murray in branch '3.1': #10999: Add missing documentation for chflags constants to stat module docs http://hg.python.org/cpython/rev/4f9213d3858b New changeset de5d0b4f81c3 by R David Murray in branch '3.2':

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-03-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10999

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have started learning .rst, so I hope to work on this in the not too distant future. Ezio -- I have also noticed that some chapters are too long to be easily scrolled around in (unittest is another), and either need an index at the top

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The advantage of having one big page is that you can ctrl+f easily without having to go back and forth from different pages On the other hand, the page is not easy to browse (especially on small screens, mobile devices, old/slow pcs). In

[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11461 ___ ___ Python-bugs-list mailing

[issue10665] Expand unicodedata module documentation

2011-03-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The patch contains non-ascii chars that should be avoided (they break `make pdf`). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10665

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
New submission from Eugene Toder elto...@gmail.com: Peephole optimizer performs constant folding, however 1) When it replaces operation with LOAD_CONST it always adds a new constant to co_consts, even if constant with the same value is already there. It also can add the same constant multiple

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file21074/dedup_const_plana.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11462 ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: (either plana or planb should be applied) -- Added file: http://bugs.python.org/file21075/dedup_const_planb.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11462

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: Added file: http://bugs.python.org/file21076/unused_consts.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11462 ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: (test case) -- nosy: +pitrou Added file: http://bugs.python.org/file21077/consts_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11462

[issue3591] elementtree tests do not include bytes handling

2011-03-10 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3591 ___

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Luís Antônio Araújo de Brito
New submission from Luís Antônio Araújo de Brito l...@multmeio.com.br: Hi folks, I have an app that talk with cPanel for create/suspend/unsuspend/kill domaind.. So when I use the urllib2 to get response for cPanel and read it. It show the IncompleteRead except. I get the same URL in a

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Luís Antônio Araújo de Brito
Changes by Luís Antônio Araújo de Brito l...@multmeio.com.br: -- nosy: +hdiogenes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11463 ___ ___

[issue9850] obsolete macpath module dangerously broken and should be removed

2011-03-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9850 ___

[issue8754] ImportError: quote bad module name in message

2011-03-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Victor: Should I close this bug as superseded by yours? -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Humberto Diogenes
Humberto Diogenes humbe...@digi.com.br added the comment: Luís, please analyse the response from the web server to see if it really is a valid HTTP response - AFAIK CPanel web services do not always give valid HTTP responses. -- components: +Library (Lib) type: resource usage -

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Sorry Eugene, but I'm not willing to add that much complexity to save a few bytes. This was a known issue and long ago we choose to leave it as-is. In the future when constant folding is done at the AST level, we'll get

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: I think the changes are fairly trivial. dedup_const_planb.patch is about 10 lines of new code with all the rest being trivial plubming. unused_consts.patch may look big, but only because I factored out fix ups into a separate function; there

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-10 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: http://lwn.net/Articles/216948/ Why kernel.org is slow To proove that readdir is bad thing on large number of items in a directory. Well, EXT4 has fixed some issues (http://ext2.sourceforge.net/2005-ols/paper-html/node3.html) But what

[issue11464] Call Mac API Crash via ctypes

2011-03-10 Thread yufun
New submission from yufun heyt1...@gmail.com: appsLib =cdll.LoadLibrary(util.find_library('ApplicationServices')) event = appsLib.CGEventCreate(None); pt = appsLib.CGEventGetLocation(event); Crash after execute above python code. But these code works well in python3.13. -- assignee:

[issue11426] CSV examples can't close their files

2011-03-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: The attached patch tries to be true to the convention in other documentation pages, by using with in complete code samples (examples), but not using it in prompt () samples, where usage of with unnecessarily complicates interaction.

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox
uptimebox m...@uptimebox.ru added the comment: Unfortunately, upgrading to 2.7 is not an option for me, since my application works on Debian stable which only includes 2.6. For now I'm settled with the following workaround: http://paste.pocoo.org/show/351774/ --

[issue8995] Performance issue with multiprocessing queue (3.1 VS 2.6)

2011-03-10 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Could you try with Python 3.2 ? In 3.1, the only available pickle implementation was in pure python: with cPickle (2.7) or _pickle (3.2), it should be much faster. -- nosy: +neologix ___