[issue10584] Bad links in doc of zipfile.open

2010-11-29 Thread Georg Brandl
Georg Brandl added the comment: Fixed in 86881. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6703] cross platform failure and silly test in doctest

2010-11-29 Thread Chris Withers
Chris Withers added the comment: What this patch doesn't appear to address is that there doesn't appear to be any point to module_relative. Can anyone clarify what the intention of this option is? (it doesn't appear to have any meaningful point from my experience...) --

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: New patch which addresses my last two comments (i.e. some basic explicit tests of the encode/decode methods on result objects, and urldefrag returns a named tuple like urlsplit and urlparse already did). A natural consequence of this patch is that mixed argumen

[issue5088] optparse: inconsistent default value for append actions

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10220] Make generator state easier to introspect

2010-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: Switched to strings in r86879. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thx -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9508] python3.2 reversal of distutils reintrocud macos9 support

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: On python-dev, Martin commented that if it was unnecessary to remove an unused function in 2.7, then I shouldn’t have done it. I agreed, planned to revert that removal, however unlikely it was that someone depended on it, and then I couldn’t make up my mind in

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: -> committed/rejected status: open -> closed type: -> feature request ___ Python tracker ___ ___

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: Committed in r86878. I put a XXX note in the relevant part of the 3.2 What's New rather than updating it directly. -- ___ Python tracker ___ __

[issue10587] Document the meaning of str methods

2010-11-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ezio.melotti, haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10587] Document the meaning of str methods

2010-11-29 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : On Mon, Nov 29, 2010 at 4:13 PM, "Martin v. Löwis" wrote: >> - How specific should library reference manual be in defining methods >> affected by UCD such as str.upper()? > > It should specify what this actually does in Unicode terminology > (probably i

[issue7183] did 2.6.3 regress for some uses of the __doc__ property?

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +r.david.murray versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6703] cross platform failure and silly test in doctest

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good. One error and style suggestions on rietveld. -- components: +Library (Lib) nosy: +eric.araujo stage: -> patch review versions: +Python 3.1 -Python 2.6 ___ Python tracker

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: The policy for distutils is: no changes, only bug fixes. We cannot remove a function, even useless. Deprecating does not seem useful if we aren’t going to remove. Changing the docstring, the docs or the output of the code is okay. Therefore, initfunc2.patch

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, go ahead with the second patch. With the following changes: _CacheInfo = namedtuple("CacheInfo", "maxsize size hits misses") Change the variable names: cache_hits --> hits cache_misses --> misses Add a "with lock:" to the cache_in

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond suggested a simple cache_info() method that returns a named tuple as a possible alternative. I like that idea, as it makes displaying debugging information (the intended use case for these attributes) absolutely trivial: >>> import functools >>> @funct

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-29 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101130.zip is a new version of the regex module. Added 'special_only' keyword parameter (default False) to regex.escape. When True, regex.escape escapes only 'special' characters, such as '?'. -- Added file: http://bugs.python.org/file198

[issue10586] Enhanced cache access API for functools.lru_cache

2010-11-29 Thread Nick Coghlan
New submission from Nick Coghlan : As per private email to Raymond, I would like to move the lru_cache access attributes and methods into a CacheInfo class, exposed as a "cache" attribute with several methods and read-only properties. Read-only properties: hits, misses, maxsize Methods: clear(

[issue3243] Support iterable bodies in httplib

2010-11-29 Thread Xuanji Li
Xuanji Li added the comment: pitrou: that sounds good. I attached another patch. -- Added file: http://bugs.python.org/file19879/issue_3243_py3k_3.patch ___ Python tracker ___ __

[issue10323] Final state of underlying sequence in islice

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r86874. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86872 (3.1) and r86873 (2.7). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue10585] 2.6 maintenance branch erroneously uses unittest.TestCase.assertListEqual (added in 2.7)

2010-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: TBH, the fact that this test only runs under sudo is more troublesome. It's clearly a test that doesn't get run much. E.g. it sneaked through pre-release testing and doesn't affect the buildbots. But I agree that this shouldn't be applied to the 2.6 tree.

[issue10585] 2.6 maintenance branch erroneously uses unittest.TestCase.assertListEqual (added in 2.7)

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: I’m afraid tests are no exception to the rule “only security fixes in stable branches”. -- nosy: +barry, eric.araujo ___ Python tracker ___ _

[issue10262] Add --soabi option to `configure`

2010-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a first patch that adds the "--with-soabi" option. --with-soabi=yes or --with-soabi sets SOABI to the computed value (cpython-32m when I tried it). This is the default behavior on Linux. --with-soabi=no or --without-soabi sets SOABI to t

[issue10585] 2.6 maintenance branch erroneously uses unittest.TestCase.assertListEqual (added in 2.7)

2010-11-29 Thread Dave Malcolm
New submission from Dave Malcolm : 2.6.6 has an erronenous use of a unittest method that was added in 2.7, but it's only seen when running as root. More specificially, with this guard: if posix.getuid() == 0 and hasattr(posix, 'getgroups') and sys.platform != 'darwin': [da...@surprise 2.6

[issue10584] Bad links in doc of zipfile.open

2010-11-29 Thread Éric Araujo
New submission from Éric Araujo : There is this note in the doc of zipfile.open: “The file-like object [ZipExtFile, internal class] is read-only and provides the following methods: read(), readline(), readlines(), __iter__(), __next__().” The :meth: construct gives interesting results here: li

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-29 Thread Vil
Vil added the comment: I sent the file I downloaded to total virus and it say, Result: 0/ 36 (0.0%) I'm not sure what that means, but I am guessing a Result of "-" means it did not find a virus, I have 2.7.1 installed and it scanned the installer and was clean, so though I do not know what the

[issue8743] set() operators don't work with collections.Set instances

2010-11-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg117005 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10576] Add a progress callback to gcmodule

2010-11-29 Thread Jim Jewett
Jim Jewett added the comment: I like the idea, but I do quibble with the signature. As nearly as I can tell, you're assuming (a) Only one callback. I would prefer a sequence of callbacks, to make cooperation easier. (This does mean you would need a callback removal, instead of just setti

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Thanks for the explanation. I wrongly assumed that "make all" is the > way to regenerate both unicodedata and the encodings and that the two > are interdependent. Ah. I never use the Makefile. -- ___ Python trac

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > This is not a bug, see > > http://www.unicode.org/reports/tr44/#Numeric_Value > > Characters have a Numeric_Type property of either null, Decimal, Digit, or > Numeric. For non-Unihan cha

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I fail to see the relevance of gencodec to this issue ... Thanks for the explanation. I wrongly assumed that "make all" is the way to regenerate both unicodedata and the encodings and that the two are interdependent. -- dependencies: -Tools

[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: ok -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10583] Encoding issue with chm help in 2.7.1

2010-11-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ah ok, then removing the option sounds fine to me (not for 2.6, though). -- versions: -Python 2.6 ___ Python tracker ___ _

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Mon, Nov 29, 2010 at 1:29 PM, Marc-Andre Lemburg > wrote: > .. >> >> I consider this a bug (which is why I added Python 2.7 to the list >> of versions), since those code point

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not a bug, see http://www.unicode.org/reports/tr44/#Numeric_Value Characters have a Numeric_Type property of either null, Decimal, Digit, or Numeric. For non-Unihan characters, this is denoted by filling out either no column, or (6,7,and 8), or (7 a

[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Alexander, do you want to take care of the backport? -- assignee: rhettinger -> belopolsky nosy: +belopolsky ___ Python tracker ___

[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Robin Dunn
Robin Dunn added the comment: No, MSVC does not behave that way any longer. Now it simply creates a file named "None", so I expect that the newer versions simply do not support writing the "old-style" debug info written to the DLL or EXE. If a setup script creates more than one extension mod

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I am adding #10552 as a dependency because I think we should fix > unicode data generation in 3.x before adding new features to the > scripts. > > I am also not sure whether this is a bug or a feature request. > Martin? I fail to see the relevance of gencod

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > These changes don't affect gencodec.py, but it may be inconvenient to > run makeunicodedata.py and gencodec.py using different versions of > Python. As MAL explains: these are completely unrelated, independent tools, and gencodec isn't run more than once per

[issue10583] Encoding issue with chm help in 2.7.1

2010-11-29 Thread flashk
New submission from flashk : I just updated to Python 2.7.1 and noticed a small issue with the chm help file. The search results tab displays incorrect characters for various topic titles. It seems to be an encoding issue. For example, searching for 'json' yields the following results: - 18.

[issue10580] Installer sentence in bold

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd like a native speaker (of English) to confirm this request. The report is about Tools/msi/msi.py. -- ___ Python tracker ___ _

[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: /pdb:None initially did *not* mean "no debug information", but "no pdb file", see http://msdn.microsoft.com/en-us/library/aa278542(VS.60).aspx Debug information would be embedded to the DLL. Later versions of the VS documentation fail to mention "None" as a

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2010-11-29 Thread Duncan Findlay
Changes by Duncan Findlay : -- nosy: +duncf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was closed as a duplicate of #9227. Please direct further comments there. In any case, all issues wait until a person with the requisite knowledge volunteers a fix and a core developer commits the fix. -- ___

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-11-29 Thread Alex Rodriguez
Alex Rodriguez added the comment: I didn't see this issue resolved in the changelog for 2.7.1 release. Are we going to wait until 2.7.2 now?? -- nosy: +Alex.Rodriguez ___ Python tracker ___

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Brett Cannon
Brett Cannon added the comment: I have no issue with moving importlib into Lib/test as long as I can still run the tests with ``python3 -m test.importlib``. I actually only put the tests in importlib.tests because that was common practice amongst newer packages in the stdlib. And just to pre

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 29, 2010 at 1:29 PM, Marc-Andre Lemburg wrote: .. > > I consider this a bug (which is why I added Python 2.7 to the list > of versions), since those code points need to be mapped to decimal > and digit as well (see the references I posted; and

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 29, 2010 at 1:38 PM, Marc-Andre Lemburg wrote: .. > Sure, we won't need that script anytime soon and if we do, we > can just as well use the Python2 version. That may not be true. I compared 2.7 and py3k versions and the later has some new f

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

2010-11-29 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Without a patch and compelling use cases, this has no chance. Recommend closing. -- nosy: +rhettinger ___ Python tracker ___ __

[issue10478] Ctrl-C locks up the interpreter

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would avoiding PyErr_CheckSignals() while the file object is in > inconsistent state be a reasonable alternative? No, because we'd like IO operations to be interruptible by the user (e.g. pressing Ctrl-C) when they would otherwise block indefinitely. > I am

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Of those, it makes the most sense to move the json tests to Lib/tests. Bob is not externally maintaining the 3.x version. It's all our now. Also, it looks like importlib is in a maintenance mode now. There is merit to keeping 2to3, ctypes, sqlite tests s

[issue10582] PyErr_PrintEx exits silently when passed SystemExit exception

2010-11-29 Thread Marc Horowitz
New submission from Marc Horowitz : I discovered this bug working with panda3d. I've attached a short python script which demonstrates the problem. After installing panda3d, run the script, and then hit q in the window which appears. You'll see that none of the cleanup code after the 'run()' ma

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

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, this will need a comprehensive rewrite of bz2module, since it uses FILE pointers right now. -- nosy: +pitrou ___ Python tracker ___

[issue10580] Installer sentence in bold

2010-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10576] Add a progress callback to gcmodule

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, as you point out, it would make more sense to have two separate callbacks. Also, PyErr_WriteUnraisable() is better than PyErr_Clear(). Finally, you accidentally recoded the file; it should be kept utf-8, not latin-whatever. -- nosy: +pitrou __

[issue10580] Installer sentence in bold

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Windows nosy: +eric.araujo versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Mon, Nov 29, 2010 at 1:21 PM, Marc-Andre Lemburg > wrote: > .. >> BTW: You appear to have a comma appended to the constant, that doesn't >> belong there: >> >> +# Placeholder

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19843/issue10552a.diff ___ Python tracker ___ ___ Python-bugs-list

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 29, 2010 at 1:21 PM, Marc-Andre Lemburg wrote: .. > BTW: You appear to have a comma appended to the constant, that doesn't > belong there: > > +# Placeholder for a missing codepoint > +MISSING_CODE = -1, > + > > Perhaps that's causing the seco

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: For distutils tests, I’m ±0. I don’t see any major drawback nor any major benefit. Tarek will decide. -- ___ Python tracker ___ ___

[issue10576] Add a progress callback to gcmodule

2010-11-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: These functions will be very useful for any long-running program. Thank you for the patch. Would you be willing to write tests and documentation? Would it make more sense for the callback to take a boolean instead of an integer as the first argument? ---

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > I am adding #10552 as a dependency because I think we should fix unicode data > generation in 3.x before adding new features to the scripts. > > I am also not sure whether this

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread R. David Murray
R. David Murray added the comment: Yes, a cheeseshop package is definitely part of the plan, I didn't mean to imply otherwise. It won't be hard to automate the packaging, and indeed I'll wind up doing that anyway even if the tests stay inside Lib/email. I will say that that I'm probably only

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: gencodec.py is only rarely used, namely when adding new codecs based on Unicode mapping files. It is not run regularly on the files from ftp.unicode.org and only updated on demand. AFAIK, it was last used on Python2 and never on Python3, hence the errors y

[issue10541] regrtest.py -T broken

2010-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: haypo -> resolution: invalid -> ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: That line of code (`void = fp.read()`) dates back to a commit by Guido in 1995, and isn't motivated by any comment or message. HTTP servers probably have evolved till then :) -- ___ Python tracker

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread SilentGhost
Changes by SilentGhost : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10581] Review and document string format accepted in numeric data type constructors

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also issue 9574 for a somewhat related discussion. -- ___ Python tracker ___ ___ Python-b

[issue10581] Review and document string format accepted in numeric data type constructors

2010-11-29 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : I am opening a new report to continue work on the issues raised in #10557 that are either feature requests or documentation bugs. The rest is my reply to the relevant portions of Marc's comment at msg122785. On Mon, Nov 29, 2010 at 4:41 AM, Marc-Andre

[issue10580] Installer sentence in bold

2010-11-29 Thread Brian Curtin
Brian Curtin added the comment: What installer? Please provide a patch. -- nosy: +brian.curtin priority: normal -> low stage: -> needs patch ___ Python tracker ___ ___

[issue10580] Installer sentence in bold

2010-11-29 Thread Boštjan Mejak
New submission from Boštjan Mejak : The installer of Python should have consistent sentences, the ones in bold. There's one sentence that needs fixing. The sentence "Completing the Python x.x.x Installer" should be "Complete the Python x.x.x Installer", because other sentences are in the form

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can reproduce the issue with 3.2 here. Using Wireshark, I see that the request to http://www.ihnez.cz is satisfied, but the second request (to http://ihnez.cz) is never issued. Here is the Wireshark dump for the TCP session (request, then response): """GET

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: grepping the code without the tests doesn't seem that compelling a use case to me, given that grep and find both provide options to prune directories. I do think that moving the tests out of the email package will make it harder to maintain and distribute a

[issue10552] Tools/unicode/gencodec.py error

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Martin, I believe you were the last to update the unicode database. (See r85371.) Did you use python2.x to generate it or you have your own private copy of these tools? I noticed that genwincodecs.bat refers to c:\python26\python in 2.7 branch and c:

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread R. David Murray
R. David Murray added the comment: For the email package I would be in favor of moving the tests to Lib/test. I've always found it a bit inconvenient that they are in Lib/email. After hearing of Michael's intent with unittest, and given the evolution of email5 into email5.1, I am also consi

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10575] makeunicodedata.py does not support Unihan digit data

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am adding #10552 as a dependency because I think we should fix unicode data generation in 3.x before adding new features to the scripts. I am also not sure whether this is a bug or a feature request. Martin? -- dependencies: +Tools/unicode/gen

[issue10578] Add mock PyPI server to test distutils

2010-11-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: I don't think this will be a huge problem, given the low amount of bugs we have for all code involving PyPI. Other bugfix can be backported w/ their tests most of the time. -- ___ Python tracker

[issue6886] cgi.py runs python, not python3

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> "make altinstall" installs many files with incorrect shebangs ___ Python tracker ___

[issue2876] Write UserDict fixer for 2to3

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: patch to fix_import: UserDict -> collections -> ___ Python tracker ___ ___ Python-bugs-list ma

[issue2046] patch to fix_import: UserDict -> collections

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: -> Write UserDict fixer for 2to3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue2876] Write UserDict fixer for 2to3

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10579] Is ``o[key]`` equivalent to PyMapping_HasKeyString?

2010-11-29 Thread INADA Naoki
INADA Naoki added the comment: I'm sorry, I've misreaded. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue7885] test_distutils fails if Python built in separate directory

2010-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo nosy: +dmalcolm, eric.araujo versions: +Python 3.1 -Python 2.6 ___ Python tracker ___ __

[issue10579] Is ``o[key]`` equivalent to PyMapping_HasKeyString?

2010-11-29 Thread INADA Naoki
New submission from INADA Naoki : http://docs.python.org/c-api/mapping.html#PyMapping_HasKeyString and http://docs.python.org/c-api/mapping.html#PyMapping_HasKey says: > This is equivalent to ``o[key]`` I think it should be ``key in o``. -- assignee: d...@python components: Documentatio

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: I applied the diff to test_codecs in py3k, removed the u prefixes and ran: failure. I applied the fix and the test passed. -- nosy: +eric.araujo title: When I use codecs.open(...) and f.readline() follow up by f.read() return bad result -> When I

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue3243] Support iterable bodies in httplib

2010-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. First, you don't need to support str, since sockets only accept binary strings (not unicode). Second, I think it's simpler and more generic to do something like: try: self.sock.sendall(data) except TypeError: try:

[issue10578] Add mock PyPI server to test distutils

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: The more the codebases become different, the more difficult it will be to be sure some fix in d2 also fixes d1. I’ll live with it or use pypi_server on my own machine :) Thanks for the pronouncement. -- stage: -> committed/rejected status: open -> clo

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Michael Foord
Michael Foord added the comment: That list of examples was non-exhaustive, there is also tkinter. -- ___ Python tracker ___ ___ Pytho

[issue3243] Support iterable bodies in httplib

2010-11-29 Thread Xuanji Li
Xuanji Li added the comment: Changed according to Raymond's suggestion. I realized that there are some classes (str, bytes, array.array) that are iterable but should not be handled by the iteration logic provided by catlee. eg: if we iterate through b'a message' we'd get a bunch of ints and s

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +0, and I think we should hear from the maintainers of the affected packages first. For packages that are also externally maintained moving tests out may cause inconvenience to the maintainer. -- nosy: +barry, belopolsky, brett.cannon, ghaering

[issue10572] Move unittest test package to Lib/test

2010-11-29 Thread Michael Foord
Michael Foord added the comment: The same is true for 2.7 though, and that is getting bug fixes. svnmerge would no longer work (and to making the change would mean moving the tests in a point release). -- ___ Python tracker

[issue10557] Malformed error message from float()

2010-11-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 29, 2010 at 4:41 AM, Marc-Andre Lemburg wrote: .. > It would be better to copy and iterate over the Unicode string first, > replacing any decimal code points with ASCII ones and then call the > UTF-8 encoder. > Good idea. > The code as it st

  1   2   >