[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: No, it's not logical that there should be an exception. The result looks right to me. You are incorrectly assuming that it would always invoke __getitem__ in this case, which is not true: py> "a string with a single placeholder: %s" % c 'a string with a singl

[issue6397] Implementing Solaris "poll" in the "select" module

2009-07-01 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Solaris 10 introduced "The Event Completion Framework". I am not particularly familiar with Solaris, so I couldn't say whether it would be better to target this or the older /dev/poll. Some documentation suggests that "The Event Completion Framework" is s

[issue4758] Python 3.0 internet documentation needs work

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: David, I think that a list of notes posted here is ok, can you still provide them? -- nosy: +ezio.melotti ___ Python tracker ___ _

[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-b

[issue5555] optparse: clarify option concatenation in docs

2009-07-01 Thread Aaron Sherman
Aaron Sherman added the comment: I'm closing this out, as the previous poster was correct: the module does the right thing, and I misread the documentation. Thanks! -- status: open -> closed ___ Python tracker

[issue6392] IDLE 3.1 will not open

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is a duplicate of issue5528. The fix is to remove the TCL_LIBRARY environment variable. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed superseder: -> Unable to launch IDLE on Windows __

[issue3810] os.chdir() et al: is the path str or bytes?

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low ___ Python tracker ___ ___ Py

[issue1314572] Trailing slash redirection for SimpleHTTPServer

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The same problem was fixed with issue827559. But the patch here is different: - it returns a code 302 instead of 301 - it uses the header "Content-Location" instead of "Location" to set the new path with the slash - it sets "Content-type: text/html" and

[issue5388] Green-box doc glitch: winhelp version only

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: I uploaded a few more screenshots. I was able to reproduce the issue on Vista with HTML Help Version 6.0 and on Windows 2003 Server whit HTML Help Control Version 5.2.3790.3959. I also tried on another Windows XP SP2 machine with HTML Help Control Version 5.2.3790

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Also, the new syntax breaks the symmetry between the function definition and the function call. In any case, the issue tracker is the wrong place for such discussions. This should be done on the python-ideas mailing list. -- nosy: +amaury.forgeot

[issue5388] Green-box doc glitch: winhelp version only

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file14417/py31doc-winxpsp2.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5388] Green-box doc glitch: winhelp version only

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file14415/py31doc-vista.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue900092] hotshot.stats.load fails with AssertionError

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I added some prints in the hotshot.stats.load function, this lead to interesting things: - first, the program seems to spawn subprocesses which trace themselves in the same file. - however, there is real issue when fork() is called on a traced program: c

[issue6398] README typo

2009-07-01 Thread Nathan Michaels
New submission from Nathan Michaels : There's a typo in the README in the 2.6 source root. "versio" on line 942 should be "version". -- assignee: georg.brandl components: Documentation files: fix.diff keywords: patch messages: 89998 nosy: georg.brandl, nmichaels severity: normal status:

[issue6394] getppid support in os module on Windows

2009-07-01 Thread Jon Anglin
Jon Anglin added the comment: Implements getppid in the os module on Windows systems. The getppid function was only available on Unix like systems, this diff patch brings this functionality to Windows systems. This function will return the parent process Id, upon error it raises a WindowsErr

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-07-01 Thread Erik Antelman
Erik Antelman added the comment: The really annoying this about handle inheritance is that even if a subprocess is never referencing or using logging there can be an open file handle conflict due to the default inheratence. Another tack from modifying Popen, I looked at the forking.py of mu

[issue3955] maybe doctest doesn't understand unicode_literals?

2009-07-01 Thread Christoph Burgmer
Christoph Burgmer added the comment: JFTR: To yield the results of my last comment, you need to apply the patch posted in http://bugs.python.org/issue1293741 -- ___ Python tracker __

[issue1293741] doctest runner cannot handle non-ascii characters

2009-07-01 Thread Christoph Burgmer
Christoph Burgmer added the comment: My last patch only changed the encoding used in DocTestRunner.run(). This new patch will apply the same to DocTestCase.runTest(). -- Added file: http://bugs.python.org/file14422/doctest.unicode.patch ___ Python tr

[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: I tried also with the final release of Python 3.1, but when zlib is missing only test_zlib is skipped, test_zipfile, test_zipimport, test_gzip and test_distutils fail. These tests should check if zlib is available too. --

[issue1262856] fcntl.ioctl have a bit problem.

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This was fixed in 2.5 with issue1231069. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed ___ Python tracker _

[issue4278] optparse quirks

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - For the -h option, you may add "add_help_option=False" when creating the Optparse object - concerning the error message: every parser that tries to give meaningful error messages has to guess what the user really meant. The exact text is really an imple

[issue4711] Wide literals in the table of contents overflow in documentation

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti priority: -> low stage: -> needs patch versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 ___ Python tracker _

[issue4965] Can doc index of html version be separately scrollable?

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: "overflow: auto" should fix #4711 too (adding an horizontal scroll bar at the bottom of the sidebar). -- assignee: ezio.melotti -> georg.brandl stage: needs patch -> superseder: -> Wide literals in the table of contents overflow in documentation __

[issue6397] Implementing Solaris "poll" in the "select" module

2009-07-01 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : In Python 2.6 we added support for Linux "epoll" and *BSD "kqueue" in the select module. I think we should add support for Solaris "poll" interface too. What do you think?. I volunteer to do the work, if you agree this is a feature we want to have. I think

[issue4965] Can doc index of html version be separately scrollable?

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: See also #3143. I'll try to do a proper patch to fix this issue. -- assignee: georg.brandl -> ezio.melotti stage: -> needs patch ___ Python tracker _

[issue4711] Wide literals in the table of contents overflow in documentation

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: I can see 5 possible solutions here: 1) use "overflow: auto" - an horizontal scrollbar will appear at the bottom of the sidebar; 2) use "overflow: hidden" - no scrollbar and the content that doesn't fit in the sidebar won't be visible; 3) allow the sidebar to chan

[issue3143] development docs waste a lot of horizontal space on left nav bar

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5388] Green-box doc glitch: winhelp version only

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file14415/py31doc-vista.png ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: committed to py3k in revision 73742 -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue3143] development docs waste a lot of horizontal space on left nav bar

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: Using "position: fixed" was requested in #4965 too and I posted a proof of concept. I'll try to do a proper patch in the next days. It might also be possible to make the sidebar collapsible using Javascript (something similar to the sidebar of Google maps). I'll

[issue3154] "Quick search" box renders too wide if font size is large

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1314572] Trailing slash redirection for SimpleHTTPServer

2009-07-01 Thread Josiah Carlson
Josiah Carlson added the comment: The other patch is more correct. Closing. -- resolution: -> duplicate status: open -> closed superseder: -> SimpleHTTPServer directory-indexing "bug" fix ___ Python tracker _

[issue5388] Green-box doc glitch: winhelp version only

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file14414/py31doc-vista.png ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4965] Can doc index of html version be separately scrollable?

2009-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list ma

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-01 Thread Mark Dickinson
New submission from Mark Dickinson : There was a report[1] on c.l.p. that python3 from the OS X Python 3.1 dmg download at www.python.org/download/releases/3.1/ crashes on startup. I can reproduce this with the python.org download (using the OS X Terminal) only with a bad locale setting: new

[issue6394] getppid support in os module on Windows

2009-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not qualified to comment on Windows-specific code, but two things: - you should raise an appropriate exception on failure, not return -1 - the file is intended with tabs, not spaces -- nosy: +pitrou ___ Python tr

[issue6353] "L" integer suffix in Python 3.1 tutorial

2009-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: This is already fixed in r71994. Thanks anyway. -- nosy: +ezio.melotti resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue1284496] traceback module can return undecodable byte strings

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Python 3.0 switched to unicode precisely for this kind of issues. There, you get 'Traceback (most recent call last):\n File "", line 3, in \nValueError: Invalid value b\'\\xff\\xfeh\\x00e\\x00l\\x00l\\x00o\\x00\'\n' For python 2.x, it's up to the applica

[issue6331] Add unicode script info to the unicode database

2009-07-01 Thread Walter Dörwald
Walter Dörwald added the comment: Here is a new version that includes a new function scriptl() that returns the script name in lowercase. -- Added file: http://bugs.python.org/file14418/unicode-script-3.diff ___ Python tracker

[issue6395] Add Pickle Support to the codecs Module

2009-07-01 Thread ThomasH
New submission from ThomasH : I recently ran into an infinite recursion trying to unpickle a codecs.StreamWriter object (I presume the issue would be the same for a StreamReader). Here is the end of the stack trace:   File "/sw/lib/python2.5/codecs.py", line 330, in __getattr__        return g

[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-01 Thread Mahmoud
New submission from Mahmoud : When using a class instance as a mapping for the right hand value in a sting format expression without conversion specifier, it seems logical that the class has a __getitem__ method. Therefore following format expression should raise an exception. >>> class AClass(o

[issue6395] Add Pickle Support to the codecs Module

2009-07-01 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- type: crash -> feature request versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker ___ _

[issue6326] Add a "swap" method to list

2009-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Even if C++ decides it's an useful feature, it's not a sufficient reason to add it to Python! Based on previous discussion and the converging advice of others, this bug can IMO be closed. -- resolution: -> rejected status: open -> closed _

[issue6394] getppid support in os module on Windows

2009-07-01 Thread Jon Anglin
New submission from Jon Anglin : Implements getppid in the os module on Windows systems. The getppid function was only available on Unix like systems, this diff patch brings this functionality to Windows systems. This function will return the parent process Id, upon error it will return -1.

[issue6369] binhex buggy in py3k

2009-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r73747 and r73748. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6394] getppid support in os module on Windows

2009-07-01 Thread Jon Anglin
Jon Anglin added the comment: I didn't raise an exception because the Unix version never fails (or raises) so I thought to maintain compatibility I would always return a value. Do you advise that I should change it? As for the tabs... This entire process is new to me and I am learning, it w

[issue1303673] traceback on trying to load a hotshot stats file

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It was indeed fixed with 2.4.2, but this does not correct the invalid statistics generated with 2.4.1. Running hotshotmain.py with a newer version should generate a correct file. -- dependencies: -hotshot.stats.load fails with AssertionError nosy

[issue5415] uuid module generates incorrect values for uuid3 (and possibly uuid5)

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I also found several threads saying that the RFC is wrong; the current uuid.py module returns the correct result. -- nosy: +amaury.forgeotdarc resolution: -> works for me status: open -> closed ___ Python trac