[issue2248] quit() method of SMTP instance (of smtplib) doesn't return it's result

2008-03-06 Thread Kei Funagayama
New submission from Kei Funagayama: Hi, I've found that the quit() method of SMTP instance (of smtplib) doesn't return it's result (such as '221 2.0.0 Bye') . Other methods such as helo(), ehlo(), verify() etc.. returns it's result correctly so I suppose it's a kind of bug. I've made a small pa

[issue1193577] add server.shutdown() method to SocketServer

2008-03-06 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Hearing no objections, I've submitted this as r61289. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list

[issue1533486] long -> Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think it should be changed to "because sizeof(Py_ssize_t) == sizeof(void*)" -- nosy: +belopolsky _ Tracker <[EMAIL PROTECTED]> _ _

[issue1095784] exclude CVS conflict files in sdist command

2008-03-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: related issue: http://bugs.python.org/issue1725737 -- nosy: +schmir _ Tracker <[EMAIL PROTECTED]> _ _

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: then close this one and also http://bugs.python.org/issue1095784 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bu

[issue2245] aifc cannot handle unrecognised chunk type "CHAN"

2008-03-06 Thread Benjamin Peterson
Changes by Benjamin Peterson: -- nosy: +sjoerd __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2196] Fix hasattr's exception problems

2008-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suppose another way we could do this is propagate any exception which doesn't inherit Exception. I, however, like just having just those 2 specific exceptions continue. -- assignee: -> georg.brandl __ Tracker <[EMAI

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: r61286. Applied a patch substantially similar to Alexanders. Thanks for the test case and the report. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Paul Pogonyshev
Paul Pogonyshev added the comment: Damn, I wrote a patch too ;) -- nosy: +_doublep __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailin

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Oops. Here is my patch anyways. -- keywords: +patch Added file: http://bugs.python.org/file9625/groupby-leak.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: No need. I'm already working on adding GC to the grouper. -- assignee: -> rhettinger __ Tracker <[EMAIL PROTECTED]> __ __

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like the problem is that the internal grouper object becomes a part of a cycle: keyfunc -> grouper(x) -> keyfunc(tgtkey), but its type does not support GC. I will try to come up with a patch. __ Tracker <[EMAIL PRO

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Armin Ronacher
Changes by Armin Ronacher: -- nosy: +aronacher __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: With the following patch: === --- Lib/test/test_itertools.py (revision 61284) +++ Lib/test/test_itertools.py (working copy) @@ -707,6 +707,12 @@ a = [] self.makecycle(takew

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Steve Purcell
Steve Purcell added the comment: Hi Brian - thanks for going into some details of your rationale! You might be surprised to hear that it's indeed possible to make all of your unit tests mutually independent; check out the area of 'mock objects'. It turns out to be possible, and indeed desirab

[issue2247] Test auto-assignment

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue2247] Test auto-assignment

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- assignee: georg.brandl components: Documentation tools (Sphinx) nosy: georg.brandl, loewis severity: normal status: open title: Test auto-assignment __ Tracker <[EMAIL PROTECTED]> _

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Brian White
Brian White added the comment: Having tests run independently of each other is not the same as having tests be completely independent. I'd argue that the latter is impossible. You're never going to test the entire system in a single test case and thus the tests work together (i.e. not independe

[issue1533486] long -> Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- components: -None _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1533486] long -> Py_ssize_t (C/API 1.2.1)

2008-03-06 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- assignee: -> georg.brandl components: +None nosy: +georg.brandl _ Tracker <[EMAIL PROTECTED]> _ ___ P

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Jeroen Ruigrok van der Werven
New submission from Jeroen Ruigrok van der Werven: Quoting from my email to Raymond: In the Trac/Genshi community we've been tracking a bit obscure memory leak that causes us a lot of problems. Please see http://trac.edgewall.org/ticket/6614 and then http://genshi.edgewall.org/ticket/190 for b

[issue2211] Cookie.Morsel interface needs update

2008-03-06 Thread Jamie Bliss
Jamie Bliss added the comment: * Should be backwards compatible with people who actually use Morsel * Didn't even attempt to document it * Instead of having the Morsel dict being filled initially, unset attributes are, well, unset * .key, .value, and .coded_value are now property()s * .value is c

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-03-06 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda: -- nosy: +draghuram _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-03-06 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda: -- nosy: +draghuram __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1227748] subprocess: inheritance of std descriptors inconsistent

2008-03-06 Thread Mads Kiilerich
Mads Kiilerich added the comment: Note to others searching for a solution to this and similar problems: http://svn.python.org/view/python/trunk/Lib/subprocess.py?rev=60115&view=auto shows that this now (for 2.6?) has been changed so that close_fds now controls inheritance through the CreateProce

[issue2211] Cookie.Morsel interface needs update

2008-03-06 Thread Jamie Bliss
Jamie Bliss added the comment: Sure, I'll do that. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue2242] Decoding UTF-7 with "ignore warnings" crashes Python on Windows Vista

2008-03-06 Thread Chris Palmer
Chris Palmer added the comment: You could also fix the problem by using iswalnum function instead of isalnum. Sorry I didn't mention this in the original report. http://msdn2.microsoft.com/en-us/library/k84c0490(VS.71).aspx __ Tracker <[EMAIL PROTECTED]>

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: -1 on including anything that is a temporary file of some program. It's the job of the packager to clean the directory before packaging. I personally don't want to spend any more time on this issue. _ Tracker <[EMAIL PROTECTE

[issue2245] aifc cannot handle unrecognised chunk type "CHAN"

2008-03-06 Thread Oki Mikito
New submission from Oki Mikito: When aifc tries to open an AIFF audio file, it collects the file's chunk information. Apparently some AIFF files contain a chunk type string "CHAN", and the module just won't open the files... Here's a captured error message: >>> import os >>> os.ge

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: I've done some tests for getitimer/setitimer, diff is attached. Added file: http://bugs.python.org/file9623/setitimer_getitimer_wrapper_test.diff __ Tracker <[EMAIL PROTECTED]>

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Changes by Guilherme Polo: Added file: http://bugs.python.org/file9622/setitimer_getitimer_wrapper_doc_update.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue2244] urllib and urllib2 decode userinfo multiple times

2008-03-06 Thread Carl Meyer
New submission from Carl Meyer: Both urllib and urllib2 call urllib.unquote() multiple times on data in the userinfo section of an FTP URL. One call occurs at the end of the urllib.splituser() function. In urllib, the other call appears in URLOpener.open_ftp(). In urllib2, the other two occur

[issue2179] with should be as fast as try/finally

2008-03-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > What's strange is that calling __enter__ and __exit__ in a > try/finally block brings the speed back to the faster 'with' speed, > even though they call the same C functions Looking carefully at the code, there are two reasons for this: - LockType has

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Steve Purcell
Steve Purcell added the comment: I guess I don't completely agree with the rationale, because I've never wanted this feature; when running tests en-masse after refactoring, I want an overview of what was broken. If the codebase is in good shape, the test failures will be few and close togethe

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Actually, py.test and nose both have the -x option for this purpose. I use it very often during development, mostly during a refactoring phase: failures are easy to correct, and I don't want to wait for the complete suite to complete and display tons of tra

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: Updated Doc/library/signal.rst, follows a patch. Added file: http://bugs.python.org/file9620/setitimer_getitimer_wrapper_doc.diff __ Tracker <[EMAIL PROTECTED]> _

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching another patch, this should be applied after the other ones have been applied. It fixes what Georg mentioned. I have chosen to let ItimerError inherit from IOError, and improved the docstring of setitimer. Added file: http://bugs.python.org/file96

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-06 Thread Martin Wilck
Martin Wilck added the comment: I think this is a major issue because urllib2 is widely used, and any application using it is useless behind a HTTPS proxy. A Prominent example in the Linux world is yum, the Fedora Linux package management tool. HTTPS proxies are a extermely common in the corporat

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-06 Thread Martin Wilck
Martin Wilck added the comment: The recipe in its current form doesn't work with urllib2 in python 2.5 The reason it fails is that the HTTPConnection.request() method isn't passed the request itself (with the proxy host and port info). No easy solution to be seen. -- nosy: +mwilck

[issue2243] urllib2. strange behavior for getting chuncked transfer-ecnoded data

2008-03-06 Thread begemoth
New submission from begemoth: Through urllib2 open web pages from some sites (www.rbc.ru, www.rambler.ru, www.yandex.ru). Their servers send data in chuncked transfer-encoding. httplib (which is used by urllib2) "unchunk" data but I recieve "transfer-encoding: chuncked" in response header neve

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: Thanks for the review, corrections and suggestions Georg. For the first three items: I will be working on this later today. For the last item: "which" is one of those three new constants added. I believe if you pass something else setitimer/getitimer might rais

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: _svn might also be a candidate. it is used on windows when SVN_ASP_DOT_NET_HACK is set. (see http://svn.collab.net/repos/svn/trunk/notes/asp-dot-net-hack.txt). But, I don't care enough to provide a patch. What do you thinkm about excluding *~ and .*# ? __

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Steve Purcell
Steve Purcell added the comment: Hi Brian; The module is intended for test suites where the unit tests are written to be independent of each other, which is the "standard" way to do things. Note, for instance, that there is no convenient support for changing the order in which tests run. W