[issue11015] Bring test.support docs up to date

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: The divmod() part of the patch is wrong: assertAlmostEqual does not support tuple arguments. The test succeeds because it first does an exact equality check, which apparently is true on your platform. But if it wasn't, you'd get TypeErrors. Also, fcmp() has a

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Reading "clear and copy are not supported by bytearray": shouldn't they be? ("sort" probably really makes no sense on bytearrays.) -- ___ Python tracker __

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Thu, Feb 24, 2011 at 3:54 PM, Antoine Pitrou > wrote: > .. >> I've committed the part of the patch which disallows a NULL data pointer >> with PyMemoryView_FromBuffer in r885

[issue11313] Speed up default encode()/decode()

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > New submission from Alexander Belopolsky : > > In Python 3.x default encoding is always utf-8, but encode()/decode() still > try to look it up. Attached patch eliminates a call to normalize_encoding > and several strcmp()

[issue11015] Bring test.support docs up to date

2011-02-25 Thread Eli Bendersky
Eli Bendersky added the comment: Georg, Good catch on the tuples in assertAlmostEqual, thanks! I see three methods of resolution: 1. Since the floats in this case are powers of 1/2, they could be tested for exact equality, or do you figure there are platforms where this is not guaranteed? 2

[issue11015] Bring test.support docs up to date

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: (2) would be my choice. (1) *should* be true, but this is a change in the test semantics. (3) would be feature creep and I don't think it's a good idea. -- ___ Python tracker ___

[issue11015] Bring test.support docs up to date

2011-02-25 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a revised patch with (2) implemented. -- Added file: http://bugs.python.org/file20885/issue11015.py3k.remove_fcmp.2.patch ___ Python tracker _

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, Feb 25, 2011 at 10:11, Georg Brandl wrote: > > Georg Brandl added the comment: > > Reading "clear and copy are not supported by bytearray": shouldn't they be? Perhaps they should, and it's not a big deal to implement. But I'm not 100% clear on the poli

[issue11015] Bring test.support docs up to date

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Yes, that looks good now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless someone raises a controversial and non-trivial issue about adding clear() and copy() to bytearray, there is no need for a python-dev discussion on the subject. Just post a patch to the tracker. -- ___ Py

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Yes, it should be discussed on python-dev. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11015] Bring test.support docs up to date

2011-02-25 Thread Eli Bendersky
Eli Bendersky added the comment: > Georg Brandl added the comment: > > Yes, that looks good now. > Thanks. fcmp & FUZZ removal committed in revision 88558 -- ___ Python tracker __

[issue11222] Python3.2rc3 fails to build on Mac OS X with a non-framework build

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Does this need to be backported? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
New submission from Georges Martin : Both httplib.HTTPMessage and email.message.Message classes[1] implements methods for RFC822 headers parsing. Unfortunately, they have different implementations and they do not provide the same level of functionality. One example that is bugging me is that:

[issue11222] Python3.2rc3 fails to build on Mac OS X with a non-framework build

2011-02-25 Thread Ned Deily
Ned Deily added the comment: No backport is needed. The problem was introduced during the 3.2 development cycle by the ABI Version Tagged .so Files feature (PEP 3149). -- ___ Python tracker __

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > If you stop to think about it, though, this is actually a shockingly huge > percent increase. In any process creation scenario I'm familiar with, its > overhead should be so small that you could bump it up several orders of > magnitude and still no

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Backported to 3.1 in r88556, and 2.7 in r88564. -- status: open -> closed ___ Python tracker ___ ___

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: In any case, this issue can be closed. -- status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue11317] Documentation not updated to show string exceptions have been deprecated

2011-02-25 Thread Laurence Rowe
New submission from Laurence Rowe : The documentation at http://docs.python.org/c-api/exceptions.html#deprecation-of-string-exceptions states that "String exceptions are still supported in the interpreter to allow existing code to run unmodified, but this will also change in a future release.

[issue11317] Documentation not updated to show string exceptions have been deprecated

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r88571. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue941346] AIX shared library fix

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Backported to 3.1 in r88560, 2.7 in r88568. -- status: open -> closed ___ Python tracker ___ ___ Pyt

[issue11184] Broken large file support on AIX

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Backported to 3.1 in r88562, 2.7 in r88569. -- status: open -> closed ___ Python tracker ___ ___ Pyth

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
New submission from Boštjan Mejak : I have found a possible typo in an example code of Python 3.2. It's located on page 32 in the PDF version of the FAQ document. The code is: class C: count = 0 # number of times C.__init__ called def __init__(self): C.count = C.count + 1 def getcount

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: I have installed Python 3.2 final on my Windows machine and I get an exception when doing list.copy or list.clear in the interpreter. Why is that so? -- Added file: http://bugs.python.org/file20886/unnamed ___ Python

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Because they got added *after* 3.2 was released? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Not issue related) Ezio and Alexander: after reading your posts and looking back on my code: you're absolutely right. Doing resize(31) is pointless: it doesn't save space (mempool serves [8],16,24,32 there; and: dynamic, normalized coded names don't

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread R. David Murray
Changes by R. David Murray : -- type: behavior -> feature request versions: +Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Palm Kevin
Palm Kevin added the comment: I think that this issue needs to be reopened... since it never has been resolved... I just downloaded the new version of Python 3.2 and tried to compile, install and use it on Redhat Linux. Installation went fine (configure with --prefix=/usr/mysoft/python32)...

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread R. David Murray
R. David Murray added the comment: Read a little further: Caution: within a method of C, an assignment like ``self.count = 42`` creates a new and unrelated instance named "count" in ``self``'s own dict. That is, c.count refers to C.count right up until the point where c.count is assigned

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread R. David Murray
R. David Murray added the comment: Hmm. Rereading your message, is seems like you just didn't understand the statement "c.count refers to C.count for any...". That is a statement about how the language behaves. If there is not yet an instance variable 'count', but a class variable 'count'

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: Hello, David. According to issue4773, httplib.HTTPMessage in Python 3.x is using email.message.Message underneath, so my issue is only with 2.6 (I've not checked 2.7). Georges -- ___ Python tracker

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: Right, right. My bad. Can't wait for Python 3.3! ;) -- Added file: http://bugs.python.org/file20887/unnamed ___ Python tracker ___Right, right.

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: > > Caution: within a method of C, an assignment like ``self.count = 42`` > creates a new and unrelated instance named "count" in ``self``'s own dict. More clear is to say *Caution: within a method of class C, an assignment like ``self.count = 42`` creates a ne

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Palm Kevin
Palm Kevin added the comment: Please find here a small C app embedding python that shows how to reproduce the problem (It turned out that the problem is caused by the new method "Py_SetPath"): #include "Python.h" main(int argc, char **argv) { Py_SetPath(Py_GetPath()); printf("Init\n");

[issue11319] Command line option -t (and -tt) does not work for a particular case

2011-02-25 Thread Jérôme Radix
New submission from Jérôme Radix : The attached example mixes tabs and spaces but python does not report any warning when used with -t. Line 4 contains 1 tab. Lines after line 4 contains spaces. Tested using : Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread R. David Murray
R. David Murray added the comment: Ah, yes, you are correct. We must reject this, then, since 2.7 is now feature frozen and this is a feature request. -- resolution: -> out of date stage: -> committed/rejected ___ Python tracker

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 25 février 2011 à 13:58 +, Palm Kevin a écrit : > Palm Kevin added the comment: > > Please find here a small C app embedding python that shows how to > reproduce the problem (It turned out that the problem is caused by the > new method "Py_Set

[issue11253] autodocument first appearance of ctypes.wintypes constants

2011-02-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you provide a patch, or show how to do it concretely? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-02-25 Thread Palm Kevin
New submission from Palm Kevin : The new API method Py_SetPath seems bugged. When executing the following code, then the application crashes on Py_Initialize()-call: #include "Python.h" main(int argc, char **argv) { Py_SetPath(Py_GetPath()); printf("Init\n"); Py_Initialize(); printf("--

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Palm Kevin
Palm Kevin added the comment: Done: #11320 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry, tarek priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10882] Add os.sendfile()

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r88580. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11232] asyncore - don't throw a traceback when a client disconnects in echo server example

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: No problem. I thought important that the issue and a workaround were documented somehow... :-) -- ___ Python tracker ___ __

[issue11259] asynchat does not check if terminator is negative integer

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Can you provide a patch including a test case? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11314] Subprocess suffers 40% process creation overhead penalty

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

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > But in the two scenarios I mentioned (monitoring and Web services such > as CGI, neither of which is particularly rare), this is going to make > quite a lot of difference That's why I asked for absolute numbers for the overhead difference. A percentage does

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Okay, thanks to Charles-François' measurements, we can deduce that each subprocess launch is at most 0.3ms of user CPU time and 1.2ms of system CPU time. IMO that's not a real problem. -- ___ Python tracker

[issue11232] asyncore - don't throw a traceback when a client disconnects in echo server example

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Please add the revision number when fixing. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-

[issue10882] Add os.sendfile()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Three comments: * When changing configure.in, you also should regenerate configure. (Now done in r88584). * PyParse_off_t is a bad name for this function. It is not a new C API, so it should be static, and therefore there is no need for the Py prefix. Change

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread R. David Murray
R. David Murray added the comment: Yes, thanks for that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: r88586: Normalized the encoding names for Latin-1 and UTF-8 to 'latin-1' and 'utf-8' in the stdlib. -- ___ Python tracker ___ _

[issue11321] 9th import of module _pickle always crashes

2011-02-25 Thread Palm Kevin
New submission from Palm Kevin : Please have a look to the following app: #include "Python.h" main(int argc, char **argv) { int i; printf("START\n"); for(i = 0; i < 20; i++){ Py_Initialize(); printf("Try import #%i ...", i); PyRun_SimpleString("import _pickle\n"); printf

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think we should reset this whole discussion and just go with Alexander's original patch issue11303.diff. I don't know who changed the encoding's package normalize_encoding() function (wasn't me), but it's a really slow implementation. The original vers

[issue11321] 9th import of module _pickle always crashes

2011-02-25 Thread Palm Kevin
Changes by Palm Kevin : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-25 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : I don't know who changed the encoding's package normalize_encoding() function (wasn't me), but it's a really slow implementation. The original version used the .translate() method which is a lot faster and can be adapted to work with the Unicode variant

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > I don't know who changed the encoding's package normalize_encoding() function > (wasn't me), but it's a really slow implementation. > > The original version used the .translate() method which is a lot faster. I guess that's

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 25, 2011, at 01:16 PM, Palm Kevin wrote: >I think that this issue needs to be reopened... since it never has been >resolved... I just downloaded the new version of Python 3.2 and tried to >compile, install and use it on Redhat Linux. > >Installation we

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think the normalize_encoding() function was the culprit for issue11303 because I measured timings with timeit which averages multiple runs while normalize_encoding() is called only the one time per encoding spelling due to caching. --

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: So you're saying that if a class' name is C, then c.count is the same as C.count? I thought Python is case-sensitive. You know: c (small letter c) is not equal to C (big letter C) in Python. I don't understand what you mean by c.count because my intepreter alway

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-25 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Could you try with this:  def setUp(self):           with open(support.TESTFN, "wb+") as f:               f.seek(_4G)               f.write(b"asdf")               f.flush() +            os.fsync(f.fileno())               self.mapping = mmap.mmap(f.file

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Now it's clear that David is right -- what "c" refers to is defined in this very sentence. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: I don't understand it. My bad. Please explain to me exactly what "c" refers to. -- Added file: http://bugs.python.org/file20891/unnamed ___ Python tracker

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread R. David Murray
R. David Murray added the comment: Please consult the python tutor's list, the bug tracker is not the place to get introductory help with Python. -- ___ Python tracker ___

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-02-25 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: This issue is potentially breaking virtualenv5, http://code.google.com/p/virtualenv5/issues/detail?id=6 -- nosy: +srid ___ Python tracker _

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you explain why this is a problem in Python? Can't lib/python3.2/config-3.2m/Makefile simply be provided by virtualenv (by copying it, I guess)? -- nosy: +pitrou ___ Python tracker

[issue5421] Irritating error message by socket's sendto method

2011-02-25 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - while I still need to update it now that 3.2 final has been released, the http://code.google.com/p/python-subprocess32/ project has a backport of the _posixsubprocess stuff from python 3.2 for use on Python 2.x. -- ___

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-25 Thread Glenn Linderman
Glenn Linderman added the comment: Just some comments for the historical record: During the discussion of issue 4953 research and testing revealed that browsers send back their cgi data using the same charset as the page that they are responding to. So the only way that quoting would be neces

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2011-02-25 Thread Palm Kevin
Palm Kevin added the comment: @Barry: Yes python runs correctly. The problem arises when you embed python in a C application when calling the Py_SetPath-method (see the follow up issue #11320) -- ___ Python tracker

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-25 Thread Sergey Schetinin
Sergey Schetinin added the comment: It does work (Python 2.7.1 here): >>> import cgi >>> cgi.parse_header('Content-Disposition: form-data; name=""%22"') ('Content-Disposition: form-data', {'name': '"%22'}) >>> cgi.parse_header('Content-Disposition: form-data; name="\\"%22"') ('Content-Dispositi

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-25 Thread Sergey Schetinin
Sergey Schetinin added the comment: I wanted to add that the fact that browsers encode the field names in the page encoding does not change that they should escape the header according to RFC 2047. The percent-encoding used in the field name has nothing to do with multipart/form-data or head

[issue10882] Add os.sendfile()

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks Georg. It seems we have a failure on Leopard: http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%203.x/builds/1411/steps/test/logs/stdio Also, I think I can add support for AIX if someone gives me SSH access over an AIX box. I'm maintaini

[issue11232] asyncore - don't throw a traceback when a client disconnects in echo server example

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry: fixed in r88581. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed issue11303.diff and doc change in revision 88602. I think the remaining ideas are best addressed in issue11322. > Given that we are starting to have a whole set of such aliases > in the C code, I wonder whether it would be better to make the >

[issue11245] Implementation of IMAP IDLE in imaplib?

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: imaplib has no particular maintainer and I know little about it. Doc says it implements 'a large subset of the IMAP4rev1 client protocol as defined in RFC 2060." I do not remember any discussion on pydev, over the last several years, about imaplib. I presume j

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Georg, what is the issue? Is there some reason that bytearrays should not be copied or cleared? Is there some reason to prefer the current: dup = b[:] # copy del b[:] # clear -- ___ Python tracker

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-02-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +loewis stage: -> patch review title: slow close file descriptors in subprocess, popen2, os.pepen* -> slow close file descriptors in subprocess, popen2, os.popen* versions: -Python 2.5, Python 2.6 ___ Python tra

[issue11245] Implementation of IMAP IDLE in imaplib?

2011-02-25 Thread R. David Murray
R. David Murray added the comment: I just wound up doing a bit of research on this for other reasons. Piers Lauder was the original author of the imaplib module, and he is (as far as I can tell) currently maintaining an imaplib2 module that does support IDLE (but not, I think, python3). But

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-02-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +pitrou stage: -> patch review versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Pyt

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: No -- but the question is if copy() and clear() mightn't be added to the (mutable) sequence ABC if we make all builtin such sequences implement them. -- ___ Python tracker

[issue11282] 3.3 unittest document not kept consist with code

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg, what is policy on removed features? Remove doc or leave and state removed? "Deprecated in version 3.2 and removed in 3.3." or just "Removed in version 3.3" (Once removed, does it really matter when deprecated?) If left, should they be moved to separate

[issue11282] 3.3 unittest document not kept consist with code

2011-02-25 Thread Michael Foord
Michael Foord added the comment: Actually I think these methods are going back in and staying deprecated, so hold off for a bit. -- ___ Python tracker ___ _

[issue11323] os.sendfile() bo failure on solaris

2011-02-25 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : http://www.python.org/dev/buildbot/all/builders/sparc%20solaris10%20gcc%203.x/builds/2658/steps/test/logs/stdio Patch in attachment. -- files: sendfile-test.patch keywords: patch messages: 129411 nosy: giampaolo.rodola, loewis priority: normal sev

[issue11275] Linking to gcc's gomp causes crash later.

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is in security-fix only mode (though this might qualify as a security issue). Can you test with a current version (2.7.1, 3.2.0)? That said, most problems with extensions crashing are with the extension, though hard to determine sometimes. -- nosy

[issue11282] 3.3 unittest document not kept consist with code

2011-02-25 Thread Michael Foord
Changes by Michael Foord : -- assignee: docs@python -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11282] 3.3 unittest document not kept consist with code

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Removed things are also removed from the doc. I just committed as much as was necessary to stop buildbot breakage, and notified Michael to take care of the rest (which he did, by explaining I removed the wrong thing :) -- _

[issue11214] test_asyncore fails on AIX

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r88604, r88605, r88606 -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-25 Thread Glenn Linderman
Glenn Linderman added the comment: Sergey says: I wanted to add that the fact that browsers encode the field names in the page encoding does not change that they should escape the header according to RFC 2047. I respond: True, but RFC 2047 is _so_ weird, that it seems that browsers have a bet

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: How awful! A little pointer to the tutorial where this is explained would be also quite smashing. -- Added file: http://bugs.python.org/file20893/unnamed ___ Python tracker __

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.2, (Winxp) I get combobox with first line, input as r'C:\Python31\Lib\tkinter\test\test_ttk', displayed as "C:Python31Lib kinter est est_ttk" Something either deleted \ or converted \t to tab. Indeed, adding a space to the end of the string or enclo

[issue11114] TextIOWrapper.tell extremely slow

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88607 (3.3). -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11299] Allow deepcopying and pickling paused generators

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Test cases always help when appropriate. A link to the Pypy code that does this might also help. Or perhaps ask them to submit a patch to this issue. -- nosy: +alexandre.vassalotti, pitrou, terry.reedy stage: -> test needed ___

[issue9795] nntplib.NNTP should support the context protocol

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch versions: +Python 3.3 -Python 3.2 Added file: http://bugs.python.org/file20894/nntplib-context-manager.patch ___ Python tracker

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-25 Thread Tobias Brink
New submission from Tobias Brink : The docs for Python 3.2 say that p = configparser.ConfigParser(interpolation=None) disables interpolation. Instead it gives this traceback when calling p.read(): Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/configparse

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-25 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-25 Thread Clayton Darwin
Clayton Darwin added the comment: This is a simple work around. def fix_tcl_error(s): if '\\' in s and not ' ' in s: s = '{'+s+'}' return s You can get the text from the Combobox with no issues. The error is in posting it to the Combobox when you have backslashes and no s

[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another example from #11307 import re r = re.compile(r'(\w+)*=.*') r.match("abcdefghijklmnopqrstuvwxyz") -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7 ___ Python tracker

  1   2   >