[issue11771] hashlib object cannot be pickled

2011-04-07 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: heh yeah. while all hash functions do have internal state and someone could conceivably want to store such a state (it basically amounts to queued up partial block of input data if any and the current starting IV) there are not consistent APIs

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I also recommend closing this one. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11771 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The FreeBSD and Solaris bots are failing: dpkg-architecture: not found error: build/temp.freebsd-8.2-RELEASE-amd64-3.3-pydebug/multiarch: No such file or directory [62607 refs] *** Error code 1 find_executable.patch should solve the

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

2011-04-07 Thread Devin Jeanpierre
New submission from Devin Jeanpierre jeanpierr...@gmail.com: 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

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

2011-04-07 Thread ysj.ray
ysj.ray ysj@gmail.com 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 br...@sweetapp.com added the comment: Nice catch. I hadn't noticed that the docs are lying :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11777 ___

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11771 ___

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
New submission from Samuele Kaplun samuele.kap...@cern.ch: 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.

[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 ncogh...@gmail.com: 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

[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 rep...@bugs.python.org http://bugs.python.org/issue11793

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

2011-04-07 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com 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

[issue11793] raw strings

2011-04-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue11762] Ast doc: warning and version number

2011-04-07 Thread Georg Brandl
Georg Brandl ge...@python.org 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 ge...@python.org 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

[issue11792] asyncore module print to stdout

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - giampaolo.rodola nosy: +giampaolo.rodola stage: - needs patch versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11792

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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 rep...@bugs.python.org

[issue2736] datetime needs an epoch method

2011-04-07 Thread Velko Ivanov
Velko Ivanov viva...@ivanov-nest.com 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,

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
Samuele Kaplun samuele.kap...@cern.ch 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

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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,

[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 samuele.kap...@cern.ch 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

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: 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) -

[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 me...@freshfoo.com: 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

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea -Christophe Simonis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: +1 on applying the patch. I can do so on Sunday but feel to apply the patch before that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571

[issue6715] xz compressor support

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue9670] Exceed Recursion Limit in Thread

2011-04-07 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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 j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5863 ___ ___ Python-bugs-list mailing list

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10791 ___ ___ Python-bugs-list mailing list

[issue6715] xz compressor support

2011-04-07 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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?. -- ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11795 ___ ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Roundup Robot
Roundup Robot devnull@devnull 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':

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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.

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Roundup Robot
Roundup Robot devnull@devnull 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 ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Miki Tebeka
New submission from Miki Tebeka miki.teb...@gmail.com: 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

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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 fab...@users.sourceforge.net: 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

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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 invalid@example.invalid 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

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
Fabio Zadrozny fab...@users.sourceforge.net 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

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/4/7 Jean-Paul Calderone rep...@bugs.python.org: Jean-Paul Calderone invalid@example.invalid added the comment: Trial lets test cases get garbaged collected.  When we noticed this wasn't happening, we treated it as a bug and

[issue11700] mailbox.py proxy updates

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 invalid@example.invalid 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

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11795 ___ ___

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

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___ ___

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

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: While you are at it, can you also fix the same issue with python -m tkinter? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: .. and python -m turtledemo? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
Fabio Zadrozny fab...@users.sourceforge.net 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,

[issue11571] Turtle window pops under the terminal on OSX

2011-04-07 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___ ___

[issue11798] Test cases not garbage collected after run

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

[issue11751] Increase distutils.filelist test coverage

2011-04-07 Thread Justin Love
Justin Love pyt...@justinlove.name 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

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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. --

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 rep...@bugs.python.org http://bugs.python.org/issue11795

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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

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

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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:

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

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

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

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

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

2011-04-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[issue2736] datetime needs an epoch method

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Apr 7, 2011 at 6:20 AM, Velko Ivanov rep...@bugs.python.org wrote: .. Converting datetime values to float is easy.   If your dt is a naive instance representing UTC time:     timestamp = (dt - datetime(1970,

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___

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

2011-04-07 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

[issue7311] Bug on regexp of HTMLParser

2011-04-07 Thread Roundup Robot
Roundup Robot devnull@devnull 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

[issue7311] Bug on regexp of HTMLParser

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7311 ___

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-04-07 Thread Yuval Greenfield
New submission from Yuval Greenfield ubershme...@gmail.com: 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

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Laurie Clark-Michalek
Laurie Clark-Michalek bluepepp...@archlinux.us 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

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

2011-04-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: -Add aware local time support to datetime module status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475397

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-07 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com 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

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

2011-04-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue3754] cross-compilation support for python build

2011-04-07 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

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

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

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: Raymond: Sometimes I store configuration in Python files and would like to reload the configuration. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11797

[issue11700] mailbox.py proxy updates

2011-04-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Thu, Apr 07, 2011 at 04:41:52PM +, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: I don't understand what you are saying about raising a ValueError on close. f = open('x'); f.close();

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Miki: That's a really great use case. Thanks. -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11797

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

2011-04-07 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com 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 grusz...@gmail.com 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:

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

2011-04-07 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Adding that check with an exception to selectmodule.c is a good idea. i like your patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11757

[issue11797] 2to3 does not correct reload

2011-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11797 ___ ___

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: +Christophe Simonis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list

[issue6715] xz compressor support

2011-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list

[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 victor.stin...@haypocalc.com: 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

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

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11800 ___ ___ Python-bugs-list

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-04-07 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com 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:

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

2011-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You may also patch poll_poll(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11757 ___

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

2011-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

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

2011-04-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file21573/regrtest_timeout.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11800 ___

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

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

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

2011-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 pit...@free.fr 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

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

2011-04-07 Thread Roundup Robot
Roundup Robot devnull@devnull 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

  1   2   >