[issue3080] Full unicode import system

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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) + PyUnicode_GET_SIZE(name); result = P

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

2011-03-10 Thread Charles-Francois Natali
Charles-Francois Natali 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 python's object buffer.

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

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

[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' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11460] Attribute Error

2011-03-10 Thread saradayerramalle
New submission from saradayerramalle : 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 importing ABC.py to XYZ.

[issue11460] Attribute Error

2011-03-10 Thread Ezio Melotti
Ezio Melotti 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/ -- nosy: +ezio.m

[issue11458] tarfile with socket incompatability

2011-03-10 Thread Alex Leach
Alex Leach added the comment: Thanks! =D On Thu, Mar 10, 2011 at 3:46 AM, R. David Murray wrote: > > R. David Murray added the comment: > > I believe you are looking for mode 'r|'. > > -- > nosy: +r.david.murray > resolution: -> works for me > stage: -> committed/rejected > status:

[issue11369] Add caching for the isEnabledFor() computation

2011-03-10 Thread Vinay Sajip
Vinay Sajip 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 the patch as it stands

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

2011-03-10 Thread Yuriy Pilgun
New submission from Yuriy Pilgun : 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 data The reason i

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

2011-03-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11452] Test suite not symlink-install clean

2011-03-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 thought about providing the

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith
Eric Smith 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 they're case insensi

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Giampaolo Rodola'
Giampaolo Rodola' 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') +_name, facts = next(s

[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith
Eric Smith 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 ___

[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: The tables and several other doc changes went in 3.1 in cb3a925de1bd. -- ___ Python tracker ___ ___ Py

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

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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: +amaury.forgeotdarc Add

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

2011-03-10 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11454] urllib.request import time

2011-03-10 Thread Ross Lagerwall
Ross Lagerwall 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 warnings import warnin

[issue9584] Allow curly brace expansion

2011-03-10 Thread Eric Smith
Eric Smith added the comment: I removed the unused import (mostly as a simple test of mercurial, it's my first commit there). -- ___ Python tracker ___ _

[issue3080] Full unicode import system

2011-03-10 Thread STINNER Victor
STINNER Victor 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 and all implementations have

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Martin v . Löwis
Martin v. Löwis 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 API changes are

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

2011-03-10 Thread Novimir Pablant
Novimir Pablant 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 now)") does not a

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

2011-03-10 Thread Daniel Stutzbach
Daniel Stutzbach 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 : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11454] urllib.request import time

2011-03-10 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox
uptimebox 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 "/usr/lib/python2.6/multiprocessing

[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 added the comment: Can somebody propose a patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 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 API changes

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

2011-03-10 Thread Daniel Urban
Daniel Urban 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 SyntaxError instance will be crea

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Mads Kiilerich
Mads Kiilerich 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 it is made clear in

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

2011-03-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'd choose solution 3, but instead of calling SyntaxError.__init__, call PyErr_NormalizeException(). -- ___ Python tracker ___ _

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

2011-03-10 Thread Daniel Urban
Daniel Urban 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 PyErr_NormalizeException(), with: a)

[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou 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 warning if

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

2011-03-10 Thread Daniel Urban
Daniel Urban 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 ___ Python tracker <

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

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Python tracker

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

2011-03-10 Thread Alex
Alex 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 ... >>> A._

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

2011-03-10 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński
Filip Gruszczyński 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 __

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Éric Araujo
Éric Araujo 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: +Python 3.3 __

[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Sure :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11454] urllib.request import time

2011-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti
Ezio Melotti 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: open -> closed ___

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

2011-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: This can be closed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11244] Negative tuple elements produce inefficient code.

2011-03-10 Thread Eugene Toder
Eugene Toder 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, along with a test

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

2011-03-10 Thread Vetoshkin Nikita
Vetoshkin Nikita 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 : -- nosy: +giampaolo.rodola status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti
Ezio Melotti 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 other things, followed by l

[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 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': Merge #10999 fix

[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 added the comment: Thanks for the patch! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Terry J. Reedy
Terry J. Reedy 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 (like with built-in

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti
Ezio Melotti 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 this case I don't think

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

2011-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10665] Expand unicodedata module documentation

2011-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: The patch contains non-ascii chars that should be avoided (they break `make pdf`). -- ___ Python tracker ___ ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
New submission from Eugene Toder : 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 times. 2) It does

[issue11462] Peephole creates duplicate and unused constants

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

[issue11462] Peephole creates duplicate and unused constants

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

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Changes by Eugene Toder : Added file: http://bugs.python.org/file21076/unused_consts.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11462] Peephole creates duplicate and unused constants

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

[issue3591] elementtree tests do not include bytes handling

2011-03-10 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-lis

[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 : 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 browser and the resp

[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 : -- nosy: +hdiogenes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2011-03-10 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list maili

[issue8754] ImportError: quote bad module name in message

2011-03-10 Thread Éric Araujo
Éric Araujo added the comment: Victor: Should I close this bug as superseded by yours? -- priority: high -> normal ___ Python tracker ___

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Humberto Diogenes
Humberto Diogenes 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 -> behavior

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Raymond Hettinger
Raymond Hettinger 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 more extensive optimizations and t

[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder
Eugene Toder 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 are only about 25 l

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

2011-03-10 Thread Марк Коренберг
Марк Коренберг 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 about locking in linux

[issue11464] Call Mac API Crash via ctypes

2011-03-10 Thread yufun
New submission from yufun : 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: theller components: c

[issue11426] CSV examples can't close their files

2011-03-10 Thread Eli Bendersky
Eli Bendersky 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. -- keywords

[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox
uptimebox 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 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 ___ Python tracker