[issue11791] python -m doctest has a -v flag that it ignores

2011-04-07 Thread Devin Jeanpierre
New submission from Devin Jeanpierre : The usage string details a -v option, but python -m doctest doesn't use a -v option. The attached patch adds that. -- files: doctest_verbosity.diff keywords: patch messages: 133195 nosy: Devin Jeanpierre priority: normal severity: normal status: o

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread ysj.ray
ysj.ray added the comment: Got it. Seems the behavior is not consist with the Executor.map() function: "The returned iterator raises a TimeoutError if __next__() is called and the result isn't available after timeout seconds from ***the original call to map()***" --

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread Brian Quinlan
Brian Quinlan added the comment: Nice catch. I hadn't noticed that the docs are lying :-) -- ___ Python tracker ___ ___ Python-bugs-l

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
New submission from Samuele Kaplun : The method "log_info" of the "dispatcher" class of the asyncore.py module, uses print statement to print to stdout. This lead to conflicts when asyncore is used within e.g. mod_wsgi, as writing to stdout is not supposed to be valid. -- components:

[issue11793] raw strings

2011-04-07 Thread chaos
New submission from chaos <846909...@qq.com>: >>> print(r'\') SyntaxError: EOL while scanning string literal >>> print(r'\'') \' >>> -- messages: 133199 nosy: chaos priority: normal severity: normal status: open title: raw strings type: compile error versions: Python 3.2

[issue11794] Backport new logging docs to 2.7

2011-04-07 Thread Nick Coghlan
New submission from Nick Coghlan : Vinay did some great work on the logging documentation for 3.2 (http://docs.python.org/py3k/library/logging). However, a lot of people will currently miss it, since they land on the existing 2.7 documentation (http://docs.python.org/library/logging) instead.

[issue11793] raw strings

2011-04-07 Thread chaos
chaos <846909...@qq.com> added the comment: I think it should be >>> print(r'\') \ >>> print(r'\'') SyntaxError: EOL while scanning string literal >>> -- ___ Python tracker ___

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-04-07 Thread Torsten Becker
Torsten Becker added the comment: Hi David, thank you for polishing up the patch and committing it. :) I am glad I could help and I was actually about to ask you if you knew any follow-up issues. I'll definitely continue contributing as time allows. I did not submit the agreement yet, but I'll

[issue11793] raw strings

2011-04-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is by design and documented: http://docs.python.org/reference/lexical_analysis.html """ String quotes can be escaped with a backslash, but the backslash remains in the string; for example, r"\"" is a valid string literal consisting of two character

[issue11762] Ast doc: warning and version number

2011-04-07 Thread Georg Brandl
Georg Brandl added the comment: Sounds good to me, except for "Use *ast.__version__* to work across versions." which is not quite clear. While talking about version numbers, we should probably also document *what changed* between those versions. -- nosy: +georg.brandl __

[issue11789] Extend upon metaclass/type class documentation, here: zope.interface and usage of instances of classes as base classes

2011-04-07 Thread Georg Brandl
Georg Brandl added the comment: This doesn't work as you show. What you probably meant was something like this: class InterfaceBase(type): ... Interface = InterfaceBase('Interface', (), {}) class IFoo(Interface): ... which you can just as well do by using normal metaclass syntax.

[issue11792] asyncore module print to stdout

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> giampaolo.rodola nosy: +giampaolo.rodola stage: -> needs patch versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What change are you proposing exactly? Btw, overriding log_info() in such cases seems reasonable to me, without changing anything in asyncore. -- ___ Python tracker __

[issue2736] datetime needs an "epoch" method

2011-04-07 Thread Velko Ivanov
Velko Ivanov added the comment: On 04/05/2011 18:22, Alexander Belopolsky wrote: > """ > The datetime module intended to be an island of relative sanity. > ... """ - Tim Peters Refusing to cooperate with the rest of the world is not sane by my books. On 04/05/2011 21:06, Alexander Belopols

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
Samuele Kaplun added the comment: Thanks for looking into it. Indeed that's the workaround I implemented in our application. On the other hand it would be nice if either: * the log_info method would print to stderr, * would use warning.warn() * would use the logging module to allow for fine g

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: asyncore is a minimalistic and generic framework; as such it should not "privilege" a specific application such as mod_wsgi or make any other assumption. I'd say it's fine to let user decide what to do in its own subclass. Furthermore, log_info() is used

[issue11793] raw strings

2011-04-07 Thread chaos
chaos <846909...@qq.com> added the comment: Sorry for my poor english and thank you for the answer. Since I'm a perler, I think this is counterintuitive. (In perl: print '\'; #print \ print '\''; #error print "\""; #print " print "\"; #error ) -- __

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
Samuele Kaplun added the comment: Hi Giampaolo, shouldn't then the 2nd option I was proposing (i.e. to call warning.warn) the best behavior, given your explanation? [...] Warning messages are typically issued in situations where it is useful to alert the user of some condition in a program,

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Nick Coghlan
New submission from Nick Coghlan : Based on a core-mentoring thread, a couple more points for: http://docs.python.org/devguide/committing.html#handling-other-s-code Attribution: - add to Misc/ACKS if they aren't already there (and didn't add themselves in their patch) - mention "Patch by " in t

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-07 Thread Menno Smits
New submission from Menno Smits : A list comprehension or generator expression in a class definition fails with NameError if it has a condition that refers to another class variable. This doesn't occur if the class variable is used the "in" part of the expression. The following works: class F

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea -Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Having "Christophe Simonis" in the nosy list is precluding NOSY changes. I guess the space is causing problems. Should we forbid spaces in usernames (maybe provided by OpenID, who knows)??? What do we need to progress in this issue?. A rewrite to use Python

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: +1 on applying the patch. I can do so on Sunday but feel to apply the patch before that. -- ___ Python tracker ___ _

[issue6715] xz compressor support

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Having "Christophe Simonis" in the nosy list is precluding NOSY > changes. I guess the space is causing problems. Should we forbid > spaces in usernames (maybe provided by OpenID, who knows)??? Please report this in the meta-tracker (link on the left). > Wha

[issue9670] Exceed Recursion Limit in Thread

2011-04-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Running the test in a separate process is a good idea. The patch should be fine and fixes a problem on OSX, if the buildbot for FreeBSD starts to complain we can always removing the #if that tests for that platform. -- _

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

2011-04-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Reported to metatracker. Thanks for the kick :-). As a reference, I think you are refering to #5863 and #10791. Pretty fine job, I must say. Nadeem, what do you think?. Is xz in your list?. -- ___ Python tracker

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Stefan, thanks for the patch. The problem is that on FreeBSD and Solaris, if the command fails, I/O redirection does not create the file, whereas on Linux and OS X it does. So I was going to wrap the os.remove() of the temp file in a try/except. But I lik

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8738114b962 by Barry Warsaw in branch '3.1': Refinement by Stefan Krah (see issue 11715, msg133194) to exit early if the http://hg.python.org/cpython/rev/c8738114b962 New changeset 3d7c9b38fbfd by Barry Warsaw in branch '3.2': Refinement by Stefan

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, Apr 07, 2011 at 01:12:46AM +, R. David Murray wrote: > [...] should be sufficient. It is sufficient to fix the resource warning. Having a completely dynamic language is a nice thing. I would not do it like that. Instead i would even conside

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd0f73a9538e by Barry Warsaw in branch '2.7': Backport for Python 2.7 of issue 11715 support for building Python on http://hg.python.org/cpython/rev/bd0f73a9538e -- ___ Python tracker

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Miki Tebeka
New submission from Miki Tebeka : The following code is not changed by 2to3:: import os reload(os) reload has moved to the imp module. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 133223 nosy: tebeka priority: normal severity: normal status: open title: 2to3 d

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: This should get fixed, but I'm *really* curious about what kind of code actually needs to do this ;-) -- keywords: +easy nosy: +rhettinger type: -> behavior ___ Python tracker

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : Right now, when doing a test case, one must clear all the variables created in the test class, and I believe this shouldn't be needed... E.g.: class Test(TestCase): def setUp(self): self.obj1 = MyObject() ... def tearDown(self): del self.obj

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: You don't have to clear them; you just have to finalize them. Anyway, this is essentially impossible to do in a backward compatible way given that TestCases are expected to stay around. -- nosy: +benjamin.peterson _

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Trial lets test cases get garbaged collected. When we noticed this wasn't happening, we treated it as a bug and fixed it. No one ever complained about the change. I don't see any obvious way in which an application would even be able to tell the diffe

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: I do get the idea of the backward incompatibility, although I think it's really minor in this case. Just for some data, the pydev test runner has had a fix to clear those test cases for quite a while already and no one has complained about it (it actually ma

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/7 Jean-Paul Calderone : > > Jean-Paul Calderone added the comment: > > Trial lets test cases get garbaged collected.  When we noticed this wasn't > happening, we treated it as a bug and fixed it.  No one ever complained about > the change.  I don't

[issue11700] mailbox.py proxy updates

2011-04-07 Thread R. David Murray
R. David Murray added the comment: I don't understand what you are saying about raising a ValueError on close. f = open('x'); f.close(); f.close() does not raise any error, as Amaury pointed out. So I still don't understand the motivation for a more complex fix. --

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > I thought unittest was just handed a bunch of TestCase instances and couldn't > do much about insuring they were garbage collected. True. But unittest could ensure that it doesn't keep a reference to each TestCase instance after it finishes running it

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
Michael Foord added the comment: A TestSuite (which is how tests are collected to run) holds all the tests and therefore keeps them all alive for the duration of the test run. (I presume this is the issue anyway.) How would you solve this - by having calling a TestSuite (which is how a test

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11734] Add half-float (16-bit) support to struct module

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11492] email.header.Header doesn't fold headers at spaces if value contains '; 's

2011-04-07 Thread R. David Murray
R. David Murray added the comment: OK, it looks like the wrapping problem arises when the line contains runs of blank delimited tokens longer than maxlinelen *and* the line also contains ';'s. The line is then split at the ';' and the remaining overlong pieces are not split. I'll work on a

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: While you are at it, can you also fix the same issue with "python -m tkinter"? -- ___ Python tracker ___

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: .. and "python -m turtledemo"? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: The current code I use in PyDev is below -- another option could be not adding the None to the list of tests, but removing it, but I find that a bit worse because in the current way if someone tries to access it after it's ran, it'll become clear it was remov

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Here's Trial's implementation: http://twistedmatrix.com/trac/browser/trunk/twisted/trial/runner.py#L138 -- ___ Python tracker ___ ___

[issue11751] Increase distutils.filelist test coverage

2011-04-07 Thread Justin Love
Justin Love added the comment: Removed NO COVER Combined test_translate_pattern Added on to some test names to make them more descriptive -- Added file: http://bugs.python.org/file21562/increase_distutils_filelist_test_coverage_v2.patch ___ Python

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
Michael Foord added the comment: Not keeping tests alive for the whole run seems like a good thing and either implementation seems fine to me. I'd be interested to hear if anyone else had any backwards compatibility concerns though. -- ___ Python t

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had some of the same questions, so I agree this would be a good addition. -- nosy: +terry.reedy stage: -> needs patch ___ Python tracker ___

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Not keeping tests alive for the whole run seems like a > good thing +1 > and either implementation seems fine to me. I slightly prefer Fabio;s assignment to None approach (for subtle reasons that I can't articulate at the moment). -- nosy: +rh

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-07 Thread R. David Murray
R. David Murray added the comment: Here is a patch containing three test cases that demonstrate three different failings of the header folding algorithm. I'm working on the fix, but it is non-trivial. -- components: +Library (Lib) -None keywords: +patch title: email.header.Header doe

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-07 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21563/header_folding_tests.patch ___ Python tracker ___ ___ Python-bugs-

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-07 Thread R. David Murray
R. David Murray added the comment: Note that 2.7 fails two of these tests as well, but for different reasons. I'm not currently planning to fix 2.7, as its behavior at least (a) doesn't lose non-whitespace information and (b) doesn't exceed the maxheaderlen. -- Added file: http://bug

[issue6040] bdist_msi does not deal with pre-release version

2011-04-07 Thread Éric Araujo
Éric Araujo added the comment: To keep this focused, we should first try to make a test and patch for the stdlib, then discuss a recipe to work around the bug in unfixed versions. -- ___ Python tracker ___

[issue2736] datetime needs an "epoch" method

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Apr 7, 2011 at 6:20 AM, Velko Ivanov wrote: .. >> Converting datetime values to float is easy.   If your dt is a naive >> instance representing UTC time: >> >>     timestamp = (dt - datetime(1970, 1, 1)) / timedelta(seconds=1) >> >> If your dt

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-07 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: It seems to have fixed the failure, no ? I don't know what's the policy regarding syscall parameters check, but I think it'd be better to check that the timeout passed to select is not negative, and raise an exception otherwise, instead of silently stor

[issue7311] Bug on regexp of HTMLParser

2011-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 225400cb6e84 by Ezio Melotti in branch '3.2': #7311: fix html.parser to accept non-ASCII attribute values. http://hg.python.org/cpython/rev/225400cb6e84 New changeset a1dea7cde58f by Ezio Melotti in branch 'default': #7311: merge with 3.2. http://h

[issue7311] Bug on regexp of HTMLParser

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-04-07 Thread Yuval Greenfield
New submission from Yuval Greenfield : When trying to use urllib to open a page from a server with NTLM authentication python raises urllib.error.HTTPError: HTTP Error 401: Unauthorized A python 3 code example: http://codepad.org/axPomYHw This was a bit confusing for me as I had to debug urlli

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Laurie Clark-Michalek
Laurie Clark-Michalek added the comment: Find a fixer for this attached. I really just did sed 's/intern/reload' fix_intern.py >fix_reload.py, but it seems to work. I didn't write any tests (I couldn't seem to find any for any other fixers). -- keywords: +patch nosy: +BluePeppers Adde

[issue1475397] time.asctime_tz, time.strftime %z %C

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: -Add aware local time support to datetime module status: pending -> closed ___ Python tracker ___ __

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-07 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Here is a new patch, that uses with in __getitem__. I wonder, if we shouldn't check for an AttributeError in case object returned by get_file doesn't have __exit__ method, but does have close and use close instead of with. But it's for you to decide, as I

[issue11791] python -m doctest has a -v flag that it ignores

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Why do you say "doctest doesn't use a -v option"? Compare $ python -m doctest Lib/doctest.py and $ python -m doctest -v Lib/doctest.py Trying: runner = DebugRunner(verbose=False) Expecting nothing ok ... 66 tests in 112 items. 66 passed and 0 fai

[issue3754] cross-compilation support for python build

2011-04-07 Thread Roumen Petrov
Roumen Petrov added the comment: Uhh after some pseudo multiarch improvements previous patch fail. So new one is uploaded. Also with this version cross-build won't build pgen$(EXEEXT). -- Added file: http://bugs.python.org/file21570/python-py3k-20110407-CROSS.

[issue3871] cross and native build of python for mingw32 with distutils

2011-04-07 Thread Roumen Petrov
Roumen Petrov added the comment: Follow up updated patch to #3754 -- Added file: http://bugs.python.org/file21571/python-py3k-20110407-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Miki Tebeka
Miki Tebeka added the comment: Raymond: Sometimes I store configuration in Python files and would like to reload the configuration. -- ___ Python tracker ___ __

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, Apr 07, 2011 at 04:41:52PM +, R. David Murray wrote: > > R. David Murray added the comment: > > I don't understand what you are saying about raising a ValueError on close. > f = open('x'); f.close(); f.close() does not raise any error, as

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-07 Thread R. David Murray
R. David Murray added the comment: Ah, that's exactly why I suggested using the 'closing' context manager from contextlib. That context manager returns the object passed to it, and then when its __exit__ method is called, calls the close method of that object that was passed to it.

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: The failure occurs also on Leopard: -- [159/354] test_threadsignals Thread 0x7fff7080f700: File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/test/test_threadsignals.py", line 53 in test_signals File "/Users/pytho

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Miki: That's a really great use case. Thanks. -- priority: normal -> high ___ Python tracker ___ _

[issue11791] python -m doctest has a -v flag that it ignores

2011-04-07 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: *Sigh*, I'm just confused. Sorry, must have screwed up what I passed as verbose somewhere, so that it didn't check sys.argv. -- resolution: -> invalid status: open -> closed versions: +Python 3.3 -Python 3.2 ___

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-07 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I am sorry. This is the first time I see contextlib and haven't understood, that I should use a function from it. Here is a version with mock object having close method and __getitem__ using contextlib.closing. -- Added file: http://bugs.python.or

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Adding that check with an exception to selectmodule.c is a good idea. i like your patch. -- ___ Python tracker ___ __

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
New submission from STINNER Victor : I added recently a --timeout option to regrtest.py: dump the traceback of all threads and exit if a test takes more than TIMEOUT seconds (issue #11727). But my implementation was not correct: the timeout is applied on the whole file, not on a single functio

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-04-07 Thread Yuval Greenfield
Yuval Greenfield added the comment: I noticed it's not only that python doesn't support NTLM, it's that I used Basic Auth which isn't NTLM. So I modified the patch to pertain to basic auth and digest as well. -- Added file: http://bugs.python.org/file21574/urllib.auth2.patch

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: You may also patch poll_poll(). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: I forgot to patch some calls to runtest(): new patch. -- Added file: http://bugs.python.org/file21575/regrtest_timeout-2.patch ___ Python tracker _

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21573/regrtest_timeout.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-07 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21564/header_folding_tests.patch ___ Python tracker ___ ___ Python-bugs-

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-07 Thread R. David Murray
R. David Murray added the comment: Here is an updated test patch that brings the test coverage of the relevant code much closer to 100%. There are still three lines and one branch uncovered, but it appears as though one of the bugs is preventing the test case that would produce full coverage

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: jseutter reproduced it after 112 and 49 runs on Snow Leopard using "regrtest.py -F -v --timeout=60 test_threadsignals" command: --- [ 49] test_threadsignals test_interrupted_timed_acquire (test.test_threadsignals.ThreadSignals) ... ok test_lock_acquire_

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, the traceback only contains one thread, so send_signals() thread was not created or failed very quickly (before its first print instruction). -- ___ Python tracker __

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The question is: what's the point? Having an individual test timeout is not more "correct" than having a timeout for a test file. Both are arbitrary. Therefore, I'd prefer we choose the simplest solution and this patch brings complication. I'm -0.5 on it. --

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 126353bc7e94 by Brian Quinlan in branch 'default': Issue #11777: Executor.map does not submit futures until iter.next() is called http://hg.python.org/cpython/rev/126353bc7e94 -- nosy: +python-dev ___ Py

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread Brian Quinlan
Changes by Brian Quinlan : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the whole file approach. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-b

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread STINNER Victor
STINNER Victor added the comment: I would like a timeout per function call because some files contain many slow tests: the duration of a file depends on the number of tests. Imagine that all functions takes 1 second: a file with 200 functions takes 200 seconds, whereas a file with 1 test take

  1   2   >