[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: Committed in r86504 (3.2) and r86505 (3.1). -- ___ Python tracker ___ ___ Python-bugs-list ma

[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
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg121412 ___ Python tracker ___ ___ Python-bugs-list mai

[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

[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

[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

[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. -- ___

[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

[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

[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

[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 __

[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

[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

[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

[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

[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);

[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 _

[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

[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. -

[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 É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 É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

[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

[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

[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

[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

[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.

[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

[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 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: > 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: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 Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg121440 ___ Python tracker ___ ___ Python-bugs-list mai

[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. ---

[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: Shouldn't tests for new features added to Lib/test/test_pydoc.py? -- ___ Python tracker ___ __

[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 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

[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: 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

<    1   2