[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Why wouldn't they? A standard way to extend the command line options seems useful in all environments. Now the interpretation of these options are subject to variations of course... -- nosy: +amaury.forgeotdarc __

Re: [issue10089] Add support for arbitrary -X options

2010-10-15 Thread Senthil Kumaran
On Wed, Oct 13, 2010 at 07:01:40PM +, Antoine Pitrou wrote: > $ ./python -Xa,b=c,d -Xe,f=g=h -c "import sys; print(sys.xoptions)" > {'a': True, 'b': 'c', 'e': True, 'd': True, 'f': 'g=h'} Docs should be updated too. I see that the values could either be True or a string? Would this be perceive

[issue10098] intermittent failure in test_os

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: _kill_with_event() does not wait for the subprocess to be ready. It seems to me that the following test is wrong: if m[0] == 0: It should be "if m[0] == 1", since we want to check that the subprocess updated the shared memory. -- nosy: +amaur

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Well, the syntax allows to pass either a string value (because it's a substring of the command line), or nothing. When no value is passed, True seems better than None, because this allows the usage of the get() method:: x = sys.xoptions.get('a') or:

[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger stage: -> patch review versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-15 Thread Florent Xicluna
Florent Xicluna added the comment: +1 to merge simplejson 2.1+ before 3.2 beta 1 (mid-november) -- nosy: +flox resolution: -> accepted stage: -> patch review type: -> behavior versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, the original docs *is* pretty intuitive. It says "Duplicate the file descriptor fd and build a socket object". No one will think that the this method will close the original fd. Person using this method might of course, explicitly close the origina

[issue10100] fromfd is now available on all platforms

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Docs changed committed in revision 85514. -- nosy: +orsenthil resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: I suggest using sys._xoptions to make it clearer that this is for CPython specific internal implementation runtime tweaks. We're putting it in sys so *we* can get at it, not applications. (It also makes it clear that other implementations aren't obliged to impl

[issue10106] missing packages

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I would suggest to OP, to take it with python-help for the problem to be fixed. It's raised on python26 as well. Highly unlikely that anything is wrong with Python installation here. Marking it invalid and closing it. -- nosy: +orsenthil resolution:

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Gergely Kálmán
Gergely Kálmán added the comment: You are perfectly right, the docs are pretty clear. Although fromfd means (or at least to me) to "attach object to fd" and not "duplicate then attach to the duplicate". If someone forgets this particular behaviour and thinks that the function works as the nam

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: So, I assume that we just leave it as such and close the issue. I was thinking if anything needs to be updated for function __doc__ but even there 'the duplicate' word is explained. -- resolution: -> invalid stage: -> committed/rejected status: open

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2010-10-15 Thread Jan Kratochvil
New submission from Jan Kratochvil : FSF GDB (and future Fedora GDBs) became 250KB smaller than before. Python recently disabled this GDB build optimization so GDB is 250KB larger again. -rwxr-xr-x 1 4524488 gdb-7.1-19.fc13.x86_64/usr/bin/gdb -rwxr-xr-x 1 4266728 gdb-7.1-19dynamiclist.fc13.x86

[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > (It also makes it clear that other implementations aren't obliged to > implement *any* particular interface to the -X options. Requiring that > would go against the whole spirit of -X) Agreed. I'll update the patch to use sys._xoptions. --

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev
Changes by Vladimir Dmitriev : -- components: Library (Lib), Windows files: mime content types.reg nosy: vldmit priority: normal severity: normal status: open title: UnicodeDecodeError in mimetypes.guess_type on Windows type: behavior versions: Python 2.7 Added file: http://bugs.python.o

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev
New submission from Vladimir Dmitriev : Windows 7, Python 2.7 Some windows applications (QuickTime) add content-types to Windows registry with non-ascii names. mimetypes in unaware of that and fails with UnicodeDecodeError: >>> mimetypes.guess_type('test.js') Traceback (most recent call last)

[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Paul Bolle
Changes by Paul Bolle : -- nosy: +pebolle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc() I just got caught by this in PyPy because some pipe handle relies on reference counting to be closed. This ad-hoc fix would suppress the warning: http://codespeak.net/pipermail/pypy

[issue9980] str(float) failure

2010-10-15 Thread Kiriakos Vlahos
Kiriakos Vlahos added the comment: I would like to say that these are two separate issues. One is about the precision flag and the second about the exception masking flags of the FPU control words. Both issues affect a wider number of users than Python embedders using Delphi. For example C#

[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc() > I just got caught by this in PyPy because some pipe handle relies on > reference counting to be closed. Do you want to provide a patch? -- _

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread STINNER Victor
New submission from STINNER Victor : Example: $ ./python Python 3.2a3+ (py3k, Oct 15 2010, 14:31:59) >>> compile('', 'abc\uDC80', 'exec') ... UnicodeEncodeError: 'utf-8' codec can't encode character '\udc80' in position 3: surrogates not allowed Attached patch encodes manually the filename to

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread R. David Murray
R. David Murray added the comment: If I'm reading this thread correctly, this bug should be closed and a new one opened about SSL socket close. Antoine, does that sound correct? -- nosy: +r.david.murray ___ Python tracker

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #9291. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> mimetypes initialization fails on Windows because of non-Latin characters in registry __

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-10-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vldmit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably, yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9980] str(float) failure

2010-10-15 Thread Muhammad Alkarouri
Muhammad Alkarouri added the comment: On 15 October 2010 06:52, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > Interesting. I'd like to propose than that this is resolved as "won't fix", > i.e. embedding Python into Delphi is declared as just not supported (or using > floa

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : When a machine has a newer glibc and an old kernel, accept4 can fail and then Python accept() is unusable. For example: Traceback (most recent call last): File "/home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/threading.py", line 525, in _boots

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or perhaps we should back out the accept4 change and live with the fact that SOCK_CLOEXEC and SOCK_NONBLOCK can't be inherited by calling accept(). -- ___ Python tracker

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Falling back on result 90 is not that difficult, I think I can submit a patch today. What should be checked ENOSYS or 90? -- ___ Python tracker

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Kevin Walzer
Kevin Walzer added the comment: Try something like this: root.createcommand('::tk::mac::Quit', ) This will map whatever function IDLE calls to prompt the user to save data before closing, to the Apple quit event. -- nosy: +wordtech ___ Python tra

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Falling back on result 90 is not that difficult, I think I can submit > a patch today. What should be checked ENOSYS or 90? That's a rather good question. I will enable some debug printout on the buildbot. -- ___

[issue10114] compile() doesn't support the PEP 383 (surrogates)

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

[issue10116] Sporadic failures in test_urllibnet

2010-10-15 Thread Stephen Hansen
New submission from Stephen Hansen : Ever since running the snow leopard buildslave, I've had sporadic failures in test_urllibnet. At first I thought it was just a net glitch on my machine or something, as immediately re-running the tests made it go away: but this most recent one: http://www.

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

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

[issue9980] str(float) failure

2010-10-15 Thread Mark Dickinson
Mark Dickinson added the comment: > For example C# uses 80 bit precision No, I don't think that's true. It uses the x87, with its 64-bit internal precision, but I'm fairly sure that (as is almost always true in a Windows environment, except if you're using Delphi, apparently) the FPU precisi

[issue10116] Sporadic failures in test_urllibnet

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than the hand-made _open_with_retry, I think it would be better to use support.transient_internet() (it's already used in other tests). Retrying is not very helpful if the other end is down. Also, EBADF (bad file descriptor) looks like a bug. httplib s

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, 90 is ENOSYS on that buildbot :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10108] ExpatError not property wrapped

2010-10-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Py

[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: invalid -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Kevin, which versions of Tk does this work with? IDLE should at least work with the versions of Tk 8.4 and 8.5 that Apple ships with OSX 10.4, 10.5 and 10.6 (the last one being the only one with built-in support for Tk 8.5) -- ___

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Kevin Walzer
Kevin Walzer added the comment: Ronald--I think it works with both 8.4 and 8.5. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10109] itertools.product with infinite iterator cause MemoryError.

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

[issue10110] Queue doesn't recognize it is full after shrinking maxsize

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

[issue10098] intermittent failure in test_os

2010-10-15 Thread Brian Curtin
Brian Curtin added the comment: That works for me locally. Checked in that 0 to 1 change in r85525 - waiting to see if it works on the slower buildbots. -- stage: -> commit review ___ Python tracker

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2010-10-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r85526. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please, add a tiny unit test for the presence of this feature. This is the only way for vm implementers to follow CPython development. -- nosy: +amaury.forgeotdarc stage: -> unit test needed status: closed -> open ___

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: What about exposing accept4() to python level? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: You're completely correct, added one in r85528. Thanks! -- status: open -> closed ___ Python tracker ___ _

[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: d...@python -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8267] Tutorial section on dictionary keys recommends sort instead of sorted

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r85529. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What about exposing accept4() to python level? That's another possibility, in which case we would first remove the current accept4-calling code in order to fix the buildbot failure. -- nosy: +loewis ___ Python tr

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching an updated patch, issue9308b.diff. Compared to the "a" patch, I added test/encoded_modules to the makefile so that it gets installed and removed cookies from some more test and Tools files. -- Added file: http://bugs.python.org/f

[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2830] Copy cgi.escape() to html

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Refined and applied the patch in r85531. Thanks all! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Weekend is coming, so I can lend a hand in implementing whatever you choose. Summary: * remove accept4() as default and expose it as separate method * add runtime fallback if accept4() returns ENOSYS -- ___ Py

[issue7771] dict view comparison methods are not documented

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Applied in r85532. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9683] Dead code in py3k inspect module

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed both in r85533. Thanks! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue9344] please add posix.getgrouplist()

2010-10-15 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Did a bit of digging and found that getgrouplist signature differs on (at least) Linux and Mac OS: - http://www.kernel.org/doc/man-pages/online/pages/man3/getgrouplist.3.html -http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Tal Einat
Tal Einat added the comment: Note that some discussion about this issue is taking place on the idle-dev mailing list. Bruce Sherwood found the line "root.bind('<>', flist.close_all_callback)", which seems to be an unsuccessful attempt to achieve the wanted behavior. Kevin Walzer mentioned t

[issue1699594] shlex fails to parse strings correctly

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: That particular commit can't be the reason, but some other must be. Closing as wfm. -- dependencies: -shlex.split() does not tokenize like the shell resolution: -> works for me status: open -> closed ___ Python tra

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: For now, documented the current behavior in r85534. If a different solution is desired, a new issue can be opened. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue9054] pyexpat configured with "--with-system-expat" is incompatible with expat 2.0.1

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Applied in r85536, will backport to other branches as well. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85537. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue7303] pkgutil lacks documentation for useful functions

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed markup a bit and committed in r85538. Thanks! -- status: open -> closed ___ Python tracker ___

[issue6798] Argument for sys.settrace() callbacks documented incorrectly

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Should be fixed in r85540. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8954] wininst regression: errors when building on linux

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Raising priority. -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ned Deily
Ned Deily added the comment: It looks like the '::tk::mac::Quit' callback does not exist in the Apple-supplied Tk 8.4.7 in OS X 10.5 and 10.4, although it does work with the Apple-supplied Tk 8.4.19(?) and 8.5 in 10.6 and with a current ActiveState 8.4.19 on 10.4 through 10.6. However, inste

[issue4968] Clarify inspect.is method docs

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Committed suggestions with a few changes in r85541. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue5729] Allows tabs for indenting JSON output

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Bob, any chance you get to that merge before 3.2b1? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Tools/scripts/reindent.py -d Lib/test/encoded_modules/module_koi8_r.py Traceback (most recent call last): File "Tools/scripts/reindent.py", line 310, in main() File "Tools/scripts/reindent.py", line 93, in main check(arg) File "Tools/scrip

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +christian.heimes, flox, tim_one ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7790] struct_time documentation entry should point to the table defining the tuple

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, moved the table down in r85542. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue4785] json.JSONDecoder() strict argument undocumented and potentially confusing

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r85543 and r85544. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7450] document that os.chmod accepts an octal digit mode

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: We now have the S_IXXX constants documented explicitly, so I don't think this change is needed. -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue5150] IDLE to support reindent.py

2010-10-15 Thread Éric Araujo
Éric Araujo added the comment: reindent.py is very much a script: It lacks a nice, full programmatic API, I mean standalone functions to check a file object or a filename and functions implementing the command-line interface. As it is now, you see for example print calls in the middle of fun

[issue5150] IDLE to support reindent.py

2010-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no need to go to python-dev or python-ideas with this one. If someone wants to figure-out a way to add reindent functionality to IDLE, patches are welcome. -- ___ Python tracker

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Éric Araujo
Éric Araujo added the comment: +1. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Committed in r85545. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue4086] support %z format in time.strftime and _strptime?

2010-10-15 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the test case, committed the fix and the new test in r85546. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have verified that the original issue is still present. I will try to narrow it down to a smaller test case. -- ___ Python tracker ___

[issue6098] xml.dom.minidom incorrectly claims DOM Level 3 conformance

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Applied in r85547. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-15 Thread David Watson
David Watson added the comment: > As a further note: I think socket.gethostname() is a special case, since this > is just about a local setting (i.e. not related to DNS). But the hostname *is* commonly intended to be looked up in the DNS or whatever name resolution mechanisms are used locally

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-10-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm afraid this can't be fixed in 2.6. -- versions: -3rd party, Python 2.6 ___ Python tracker ___

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have found the cause of at least part of the issue. Apparently, module level statements for some of the modules such as pickle do not show up in trace because they are imported by trace itself. In other words, by the time traced script gets executed

[issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since that revision only touched py3k, I am guessing that it only broke 3.2. -- nosy: +terry.reedy versions: +Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Skip Montanaro
Skip Montanaro added the comment: Not that anybody needs my input on this, but... Given the range of people advocating for this change, this looks to me like it should be a release blocker for 3.2. Raymond's comment about performance seems especially important, and since the world seems to be

[issue10058] Unclear PyString_AsStringAndSize return value

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not much familiar with the C api but I presume that all functions return -1 on error and that this is documented somewhere in the beginning. I also presume that functions that return values thru passed in pointers and that are documented as returning an

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file19192/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The unnamed quasi-html file loaded with msg118397 was a unless, essentially unreadable duplicate of that message, hence removed. -- nosy: +terry.reedy ___ Python tracker

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Given the range of people advocating for this change, this looks to me > like it should be a release blocker for 3.2. Raymond's comment about > performance seems especially important, and since the world seems to > be moving toward 64-bit operating systems (c

[issue10058] Unclear PyString_AsStringAndSize return value

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: Same here. There is only ever one return value on error unless documented otherwise, since the type of error is already contained in the exception that is set on return. -- nosy: +georg.brandl resolution: -> works for me status: open -> closed __

  1   2   >