[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Ron Adam
Ron Adam added the comment: Sense these features reuse other parts of pydoc, they are are covered to some degree by the existing tests. An easy test would be to just start the server and then shut it down after a short timeout. Better than nothing. I'll try reading and writing directly to

[issue10451] memoryview can be used to write into readonly buffer

2010-11-17 Thread Evgeny Kapun
New submission from Evgeny Kapun : This code crashes Python: import io, mmap io.BytesIO(b' ').readinto(memoryview(mmap.mmap(-1, 1, prot=mmap.PROT_READ))) -- components: Interpreter Core messages: 121446 nosy: abacabadabacaba priority: normal severity: normal status: open title: memoryvi

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Ron Adam
Ron Adam added the comment: Thanks for the review Éric! The more eyes on this the better it will be. I'm not familiar with rietveld yet. But no time like the present to get started. Here's the link. http://codereview.appspot.com/3151042/ I didn't play around with the html too much. Mo

[issue4153] Unicode HOWTO up to date?

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reopening because it looks like the fix was reverted in r82301. """ This HOWTO discusses Python 2.x’s support for Unicode, and explains various problems that people commonly encounter when trying to work with Unicode. (This HOWTO has not yet been update

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Shouldn't tests for new features added to Lib/test/test_pydoc.py? -- ___ Python tracker ___ __

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: -srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching pydoc.png screenshot that shows how the new navigation bar is rendered in my browser. It looks a little bit busy and I don't like (get)/(search) buttons jumping below the text boxes when the browser window is is not wide enough. ---

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg121440 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 17, 2010 at 11:21 PM, Ron Adam wrote: .. > I noticed in your patch, the disclaimer only prints when pydoc can find a doc > location (docloc is not None). This is not a disclaimer, but an explanation of the relationship between pydoc pages an

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 17, 2010 at 11:21 PM, Ron Adam wrote: .. > I noticed in your patch, the disclaimer only prints when pydoc can find a doc > location (docloc is not None). This is not a disclaimer, but an explanation of the relationship between pydoc pages an

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: > The point of this bug report was that 3.x pydoc was sending users to > 2.7, which is clearly unacceptable. Agreed. My reply about x.y vs. x.y+1 was a reaction to your patch, not a misunderstanding of the point of this bug. > As long as documentation bug fixes

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 17, 2010 at 11:26 PM, Éric Araujo wrote: .. >> If there was say latest/X.Y, I would use that.  Wait - >> there is: docs.python.org/X.Y.  Would you prefer that? > My point was that people used 2.7 docs even when developing for 2.6. The point o

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: >> 1) I assume you have checked that this code does not produce two newlines >> (one in the string, >> one from the print function or write method): > Yes, it should be clear from the output that I presented above. Okay, I had missed that. > I think TextDoc.inde

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Ron Adam
Ron Adam added the comment: I noticed in your patch, the disclaimer only prints when pydoc can find a doc location (docloc is not None). So it may not get displayed at all depending on how python is installed. I also think having it on every page may be a bit overly cautious. (IMHO) I'm al

[issue9312] Fix usage of :option: markup in stdlib ReST docs

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

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- status: pending -> open Removed message: http://bugs.python.org/msg121259 ___ Python tracker ___ ___ Python

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Review time! Please use rietveld for big patches in the future. I had started with a list of remarks in same order than the code and minor remarks grouped at the end, but I see now that all my remarks are minor, since I have found no real code problem (I don’t

[issue9173] logger statement not guarded in shutil._make_tarball

2010-11-17 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: > By the way, the logger argument is not documented in shutil.rst. This documentation issue is distinct from this; this bug affects applications that *don't* use the logger argument. -- ___ Python tracker

[issue10448] Add Mako template benchmark to Python Benchmark Suite

2010-11-17 Thread Bobby Impollonia
Bobby Impollonia added the comment: It's working okay for me using a python binary that I just built off the the py3k branch on 64-bit linux. FWIW, in the crashing line util.SetLikeDict(**parent.topleveldefs) , util.SetLikeDict is a subclass of dict defined in python that just adds an extra m

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: > A call to PyObject_Repr() (w/ proper error checking) should be all > that is needed. Sadly out of reach for me. > And no, I don't make any "you do the Python, I'll do the C" deals > because the Python part is the fun part. =) I understand :) FTR, case inconsist

[issue1353344] python.desktop

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Let me change my +0 to a +1 then :) For reference, the file used in Debuntu for Pythonx.y.desktop: http://bazaar.launchpad.net/~doko/python/pkg3.1-debian/annotate/head%3A/PVER.desktop.in idle.desktop: http://bazaar.launchpad.net/~doko/python/pkg3.1-debian/annota

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Brett Cannon
Brett Cannon added the comment: PyErr_Format doesn't need to change, just it's argument. A call to PyObject_Repr() (w/ proper error checking) should be all that is needed. And no, I don't make any "you do the Python, I'll do the C" deals because the Python part is the fun part. =) --

[issue1353344] python.desktop

2010-11-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am past beginner stage and I still open with the Start mene ;-) If/when I install Ubuntu or other Linux, I would like to still be able to do whatever is the equivalent, as with other stuff, rather than have to open a command window and type a command. -

[issue10450] Fix markup in Misc/NEWS

2010-11-17 Thread Éric Araujo
New submission from Éric Araujo : Misc/NEWS is supposed to be in reST, but there are at present markup errors. Not sure if 3.1 and 2.7 should be fixed too. -- keywords: easy messages: 121428 nosy: eric.araujo priority: normal severity: normal stage: needs patch status: open title: Fix

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: I should have included only the one line that’s different: Lib/importlib/_bootstrap.py:811:raise ImportError("no (lower-case n) -- ___ Python tracker _

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the reply. Funny thing, grep revealed a small inconsistency in this error message: Python/pythonrun.c:415: * XXX Exception exceptions.ImportError: 'No module named sha' Python/import.c:1821: "No module named %.200s", name);

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: -urllib(2) should allow automatic decoding by charset ___ Python tracker ___ ___ Python-bugs

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: I think the patch should be updated to benefit from new facilities in the io module instead of monkey-patching methods. The doc and tests are still good. -- nosy: +eric.araujo ___ Python tracker

[issue444582] Finding programs in PATH, adding shutil.which

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Adding people from the duplicate bug to nosy. Alternate implementation, which looks more thorough: http://code.google.com/p/which/ (from Trent Mick, added to nosy, who’s already agreed to contribute his code). -- dependencies: -replace dist/src/Tools/s

[issue1599329] urllib(2) should allow automatic decoding by charset

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: -Add a "decode to declared encoding" version of urlopen to urllib nosy: +eric.araujo resolution: -> duplicate stage: unit test needed -> committed/rejected status: open -> closed superseder: -> Add a "decode to declared encoding" version of ur

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reopening to consider changing just the link (not other changes) in 2.7. At some point http://docs.python.org/library will point to 3.x and we get a bug in 2.7. -- status: closed -> open versions: +Python 2.7 -Python 3.1, Python 3.2 __

[issue1353344] python.desktop

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Don’t we expect beginners to start IDLE from their menu, and middle to advanced users to type “python” in their terminal? +0. IDLE does have a .desktop file in my Debian, so +1 on integrating that in our source tree. -- nosy: +eric.araujo

[issue8886] zipfile.ZipExtFile is a context manager, but that is not documented

2010-11-17 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r86506 for py3k. The maintenance branches recently had an RC in preparation for a release -- I'll backport once they go out. -- assignee: -> brian.curtin nosy: +brian.curtin resolution: -> accepted type: feature request -> resource usage versi

[issue832159] Bad value for Mingw32Compiler.compiler_cxx

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: The suggestion in the first message has to be turned into a patch. A test has to be written too. -- assignee: tarek -> eric.araujo components: +Distutils2 nosy: +eric.araujo title: C++ extensions using SWIG and MinGW -> Bad value for Mingw32Compiler.com

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Brett Cannon
Brett Cannon added the comment: I think everyone knows that importlib is there and might need to be patched. Plus I run importlib against the entire test suite already on occasion so changes which has a proper test will eventually get caught. So just file it against core. -- ___

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Ron, I added a header to the text documentation clarifying that pydoc-generated documentation is not authoritative. See issue 10446. I did add it to the HTML page because it was not obvious where to put it and I knew that you are changing layout anywa

[issue834840] Unhelpful error message from cgi module

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue4113] Add custom __repr__ to functools.partial

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: One function in inspect can do everything we want, only not in C. How hard/inefficient would it be to have 99% of partial coded in C and one stub in functools.py? -- nosy: +eric.araujo, rhettinger ___ Python tracker

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg121412 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg121414 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86504 (3.2) and r86505 (3.1). -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue8754] ImportError: quote bad module name in message

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: A question about process: Should every import bug be reported against core and library, so that importlib gets patched too? -- nosy: +eric.araujo versions: -Python 2.7 ___ Python tracker

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: s/r86504 (3.1)/r86505 (3.1)/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5033] setup.py crashes if sqlite version contains 'beta'

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: The regex is still the same. I’ll try changing the version string in sqlite and trigger the bug. -- assignee: ghaering -> nosy: +eric.araujo, tarek versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86504 (3.2) and r86504 (3.1). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue6138] './configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home'

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: See #4655. (Not sure which one is the superseder.) -- nosy: +eric.araujo ___ Python tracker ___ ___ Py

[issue7677] improve error message for setup.py upload --sign without --identity

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 keywords: +easy title: distutils, better error message for setup.py upload -sign without identity. -> improve error message for setup.py upload --sign without --identity versions: +3rd party -Python 2.6 ___

[issue7713] implement ability to disable automatic search path additions

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo stage: unit test needed -> needs patch versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___

[issue8406] Make some setup.py paths exclude-able

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6166] encoding error for 'setup.py --author' when read via subprocess pipe

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Sridhar, can you test with the envvar PYTHONIOENCODING set to UTF-8? -- nosy: +eric.araujo versions: +Python 2.7 -Python 2.6 ___ Python tracker ___

[issue7202] "python setup.py cmd --verbose" does not set verbosity

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 keywords: +easy resolution: accepted -> title: "python setup.py MYCOMMAND --verbose" does not yield an unrecognized option error but also does not set the verbosity -> "python setup.py cmd --verbose" does not set verbosity type: ->

[issue4010] configure options don't trickle down to distutils

2010-11-17 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Nov 17, 2010 at 17:19, Éric Araujo wrote: > > Éric Araujo added the comment: > > I don’t think there can be a unit test for that, so do we agree on just > removing the reversed call? As long as the person removing it verifies it and keeps an eye on the

[issue4655] during Python installation, setup.py should not use .pydistutils.cfg

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Not reading .pydistutils.cfg during CPython’s build seems a good idea to me. I would like confirming opinions. -- components: +Build nosy: +barry, eric.araujo, loewis versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue1479255] Fix building with SWIG's -c++ option set in setup.py

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: We need to add a test for this behavior, to make sure it is fixed and to prevent regressions. -- components: +Distutils2 nosy: +eric.araujo versions: +3rd party ___ Python tracker

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: (Side note: Specifying optional/required extensions from the command line may be an interesting new feature in distutils2.) -- nosy: +eric.araujo versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker

[issue10374] setup.py caches outdated scripts in the build tree

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: For this particular bug, we could add a check for the shebang line in distutils1’ build_scripts, so that a second run can detect it should rebuild the scripts even though the source has not changed. Or is there a rule that says build_* command only look at time

[issue1109602] Need some setup.py sanity

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: The bug reported by Skip looks like something to be done with ./configure. When this is solved, I think this bug with its original title should be kept open. Let’s refactor setup.py into something manageable and testable. -- __

[issue4010] configure options don't trickle down to distutils

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: I don’t think there can be a unit test for that, so do we agree on just removing the reversed call? -- ___ Python tracker ___

[issue8384] Better error message for executables not found

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Anatoly: Please open a feature request for distutils2. Thanks in advance. Craig: This seems to have fallen out of the radar, sorry. Someone may propose a patch during the upcoming bug week-end, or we’ll do it. -- nosy: +eric.araujo title: Distutils C e

[issue4010] configure options don't trickle down to distutils

2010-11-17 Thread Brett Cannon
Brett Cannon added the comment: When I did the patch they were coming in reversed, so I reversed the reversal. Obviously something changed so now the manual reversal is not necessary anymore. -- ___ Python tracker

[issue1509798] replace dist/src/Tools/scripts/which.py with tmick's which

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: I think Tools/scripts/which.py is obsoleted by the upcoming shutil.which function. -- nosy: +eric.araujo resolution: -> duplicate stage: unit test needed -> committed/rejected status: open -> closed superseder: -> Finding programs in PATH, adding shutil

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 17, 2010 at 7:28 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Looks good.  Some remarks: > > 1) I assume you have checked that this code does not produce two newlines > (one in the string, > one from the print function or wr

[issue444582] Finding programs in PATH, adding shutil.which

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Hello Jan. Can you give us a status update on this one? Iztok: There is a lot of code out there, written in anything from Python to awk to shell, that splits on “:”. Perhaps it’s okay to just not support “:” in directory names. -- ___

[issue4010] configure options don't trickle down to distutils

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4010] configure options don't trickle down to distutils

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: The reversed call was added by Brett in r60537. Brett, can you comment? -- nosy: +brett.cannon ___ Python tracker ___

[issue5717] os.defpath includes unix /bin on windows

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Adding our esteemed Windows experts for review. -- components: +Windows nosy: +brian.curtin, eric.araujo, tim.golden ___ Python tracker ___ ___

[issue2775] Implement PEP 3108

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: -easy versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2001] Pydoc interactive browsing enhancement

2010-11-17 Thread Ron Adam
Ron Adam added the comment: I just noticed I used "depreciated" in place of "deprecated" in one of the doc strings. I can upload a new patch with that fixed. Before I do that, is there any thing else I can do? Do you agree that the browse function should be public? If not, what do we tell

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Looks good. Some remarks: 1) I assume you have checked that this code does not produce two newlines (one in the string, one from the print function or write method): +[snip], consult the module reference at the location listed above. +""") 2) “If you can sugges

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7828] chr() and ord() documentation for wide characters

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: d...@python -> belopolsky nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list

[issue10384] SyntaxError should contain exact location of the invalid character in identifier

2010-11-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10449] “os.environ was modified by test_h ttpservers”

2010-11-17 Thread Éric Araujo
New submission from Éric Araujo : Bug title is a warning I get when running test_httpservers under regrtest with 3.1. -- components: Tests messages: 121393 nosy: eric.araujo, orsenthil priority: low severity: normal stage: needs patch status: open title: “os.environ was modified by test

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think you did the right thing already. The choice of which errors to catch and which ones to let throw really depends on the usage (what about permission or lock errors? other limitations due to a USB stick? why is "disk full" different? and so on) I

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The attached patch, issue10446.diff, makes help(sys) look as follows: NAME sys MODULE REFERENCE http://docs.python.org/release/3.2/library/sys The following documentation is automatically generated from the Python source files. It

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: > How would you implement this? And would you turn a "disk full" error, for > example, into a ZipError as well? I see your point. I am not sure what a reliable way to do this would be. For the record, this is how I workaround it: https://github.com/Active

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: How would you implement this? And would you turn a "disk full" error, for example, into a ZipError as well? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-17 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue9173] logger statement not guarded in shutil._make_tarball

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good. By the way, the logger argument is not documented in shutil.rst. -- nosy: +eric.araujo stage: -> patch review versions: -Python 2.6, Python 3.3 ___ Python tracker

[issue5831] Doc mistake : threading.Timer is *not* a class

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: Nearly all classes in threading uses this function/class indirection, which I don’t understand (except for RLock, which is a factory function). -- assignee: d...@python -> nosy: +eric.araujo versions: +Python 3.2 -Python 2.6, Python 3.0

[issue10435] Document unicode C-API in reST

2010-11-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks for your work on this. Please see my comments below: --- Include/unicodeobject.h (revision 86478) +++ Include/unicodeobject.h (working copy) @@ -737,7 +737,7 @@ const char *errors /* error handling */ ); -/* Encodes a Un

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-11-17 Thread Dave Malcolm
Dave Malcolm added the comment: Fix committed to py3k as r86499 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Éric Araujo
Éric Araujo added the comment: +1 to Georg. Note that there are people that feel uncomfortable with calling packages modules, but not me. -- nosy: +eric.araujo ___ Python tracker

[issue10448] Add Mako template benchmark to Python Benchmark Suite

2010-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Did you convert the project using make_perf3.sh? Yes. But given the error (SystemError) I guess this is a regression in py3k. I'll apply your patch and open a separate issue to try and make sense of the regression. -- ___

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks ok to me. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10448] Add Mako template benchmark to Python Benchmark Suite

2010-11-17 Thread Bobby Impollonia
Bobby Impollonia added the comment: Did you convert the project using make_perf3.sh? This benchmark is in the 2to3 group and not the 2n3 group because it won't work without conversion. Using the attached patch, the following sequence of commands works for me to run the benchmark with python 3

[issue10443] add wrapper for SSL_CTX_set_default_verify_paths

2010-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86498. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10448] Add Mako template benchmark to Python Benchmark Suite

2010-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, after translation I get a SystemError when trying to run the Mako bench under the current py3k SVN: $ PYTHONPATH=lib/mako/ /home/antoine/py3k/py3k/python ./performance/bm_mako.py -n 25 Traceback (most recent call last): File "./performance/bm_mako.py",

[issue10448] Add Mako template benchmark to Python Benchmark Suite

2010-11-17 Thread Bobby Impollonia
New submission from Bobby Impollonia : The Benchmark Suite currently contains two template benchmarks (Django and Spitfire) for Python 2.x, but none that support 3.x. The attached patch adds a benchmark using Mako (http://www.makotemplates.org/), a popular, pure-Python, performance-oriented te

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: It appears that there is no base class (zipfile.ZipError) for zipfile errors. Maybe there should be? At the moment, I do: try: [...] except zipfile.BadZipFile, zipfile.LargeZipFile: [...] .. which is of course unreliable. There is no guarantee that

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-17 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : When extracting a zip file containing deep hierarchy files, `extractall` throws IOError on Windows - perhaps due to limitation in Windows max path length. Ideally it should be throwing an instance of zipfile.ZipError - so that application can handle it

[issue10356] decimal.py: hash of -1

2010-11-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you mean this: if self._is_special: if self.is_snan(): -raise TypeError('Cannot hash a signaling NaN value.') +raise ValueError('Cannot hash a signaling NaN value.') My understanding is that while

[issue4111] Add Systemtap/DTrace probes

2010-11-17 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Dave, we need some kind of documentation, if we expect to ship this in Python 3.2. The deadline is only 10-15 days away. Could you write something able to be in the standard documentation?. -- ___ Python tracker

[issue10446] pydoc3 links to 2.x library reference

2010-11-17 Thread Georg Brandl
Georg Brandl added the comment: +1 to all. What about the best of both worlds: "MODULE REFERENCE"? -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-11-17 Thread Stefan Behnel
Stefan Behnel added the comment: I agree that this is annoying, we get the same thing in Cython's test suite all over the place. Any foreign warning that doesn't get triggered helps in debugging your own code. And this one is easy to avoid. -- nosy: +scoder __

[issue4111] Add Systemtap/DTrace probes

2010-11-17 Thread Kapil Thangavelu
Changes by Kapil Thangavelu : -- nosy: +hazmat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10435] Document unicode C-API in reST

2010-11-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > If you have time, please take a look at > PyUnicode_As{En,De}codedObject() and > PyUnicode_As{En,De}DecodedUnicode() documentation in the attached > patch. Thanks. I'll try to have a look later tonight. --

  1   2   >