[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : In Python 3(both 3.0.1 and SVN repo), if I set PYTHONIOENCODING=ShiftJIS:backslashreplace, print() outputs wrong result. >>> print("\xff") \xff\xff Obviously, '\xff' should be printed instead of '\xff\xff'. Following is what io module does to print string.

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-04-01 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: My proposal to make backslashreplace a default error handler for interactive session was rejected by Guido [1]. Does something like PYTHONIOENCODING=ascii:backslashreplace work for you? With PYTHONIOENCODING, you can effectively make backslashreplace a defau

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik
anatoly techtonik added the comment: The point is not in generating .bat files. The point is to make scripts executable with exactly the same version of Python the script was installed. It works well on POSIX, but doesn't work on windows at all. There is no other way to fix this on windows than

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-01 Thread Glin
New submission from Glin : Situation: You have a while cycle. inside of it a try-except block and in this try-except block calling a function. Inside of this function raises an exception, with is caught in the try-except block. What happens: Local variables of the function are not freed. (OK, th

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-04-01 Thread Attila Soki
Attila Soki added the comment: no luck. output for t.py: Traceback (most recent call last): File "t.py", line 3, in f = urllib.urlopen("http://www.musi-cal.com/cgi-bin/query";, params) File "/var/root/pytest/python/lib/python2.6/urllib.py", line 82, in urlopen opener = FancyURLopen

[issue5642] multiprocessing.Pool.map() docs slightly misleading

2009-04-01 Thread James McDermott
New submission from James McDermott : I found the documentation for the multiprocessing.Pool.map() method to be a little misleading, because it claims to be equivalent to the built- in map(), but it's not quite. When the function to be applied takes just one argument, both map()s behave the s

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Jean-Michel Fauth
Jean-Michel Fauth added the comment: It is true, that on Windows the "mime types", .py, .pyw point to a specific version of Python. Having Python 2.4, 2.5, 2.6, 3.0, 3.1 installed on my hd and applications using these (different) versions, I am *very glad* on that system, all versions, includin

[issue992389] attribute error after non-from import

2009-04-01 Thread Nick Coghlan
Nick Coghlan added the comment: No argument from me that my suggestion is a mere glimmering of an idea, rather than a fully worked out definitely viable solution. It was just an angle of attack I hadn't seen suggested before, so I figured it was worth mentioning - the fact that a module is allo

[issue5311] bdist_msi generates version number for pure Python packages

2009-04-01 Thread Steven Bethard
Steven Bethard added the comment: Thanks for the link. I did play around with that code for quite a while, and while I'm convinced there's a way to get it to work, I'm still struggling with it. I believe the attached .vbs file does about what we need to do, but I think I'm attaching it at the wr

[issue5631] Distutils "upload" command does not show up in--help-commands output.

2009-04-01 Thread Maksim Kozyarchuk
Maksim Kozyarchuk added the comment: Thanks georg. Do you mind adding my name to the contrib file? Sent via BlackBerry by AT&T -- title: Distutils "upload" command does not show up in --help-commands output. -> Distutils "upload" command does not show up in--help-commands output. __

[issue5640] Wrong print() result when unicode error handler is not 'strict'

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

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > on Windows the "mime types", .py, .pyw point to a > specific version of Python. It could also point to a "python launcher", which reads the first line of the file and starts the corresponding version of the interpreter. Visual Studio does this for .sln

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Mark Hammond
Mark Hammond added the comment: > It could also point to a "python launcher", which reads the first line What would that first line look like on Windows? o:\src\python-2.6-svn\PCBuild\python.exe would be appropriate for my machine, but I wouldn't really be happy with installed scripts embeddin

[issue5311] bdist_msi generates version number for pure Python packages

2009-04-01 Thread Steven Bethard
Steven Bethard added the comment: My OpenView bug was just a missing "Set". The CustomAction does seem to be correctly gathering the Python paths from the registry and filling the ListView now. I've still got a couple of errors showing up later in the process, but I expect I'll probably have a p

[issue5620] The attribute's action of an object is not correct.

2009-04-01 Thread edmundy
edmundy added the comment: Thanks a lot! Kozyarchuk. I have thought the self.myurl should be the object variable, not class variable. The class variable really is confusing. Why do they like that? -- status: open -> closed ___ Python tracker

[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-04-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'll install 10.5 server on my PPC test machine when I'm back from PyCon, this seem to need some serious debugging. -- ___ Python tracker ___

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I found a correction using the _msize() function, which returns the size of a malloc'ed block. It is used to compute sizeof(ioinfo) at runtime. The exact definition of the structure is no longer important; only the first two fields are needed, which is a

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : The current MutableSet.__iand__ implementation calls self.discard while iterating on self. This creates strange problems while implementing MutableSet with simple choices. For example, consider the attached file which implements set by delegating either to

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Walter Dörwald
Walter Dörwald added the comment: I can confirm this problem in the current version in the py3k branch. This seems to be a problem in the CJK codecs. Assigning to Hye Shik Chang. -- assignee: -> hyeshik.chang nosy: +doerwalter, hyeshik.chang stage: -> needs patch ___

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: I suggest solving the problem by changing the implementation to: def __iand__(self, c): self -= self - c: or to def __iand__(self, c): for item in self - c: self.discard(item) -- ___ Python trac

[issue5578] unqualified exec in class body

2009-04-01 Thread Jeremy Hylton
Jeremy Hylton added the comment: Why did it change from 2.5 to 2.6? I'm not sure that the change makes any sense. (Dreading the answer that I changed it...) -- ___ Python tracker _

[issue1544102] ctypes unit test fails (test_macholib.py) under MacOS 10.4.7

2009-04-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Setting issue back to "open". I'm going to install a 10.4 PPC test machine over the weekend to try to reproduce the problem there. Issue5413 might be related to this one, that one also seems to be about some ctypes code that doesn't work on a PPC system (1

[issue5631] Distutils "upload" command does not show up in--help-commands output.

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: Done! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-04-01 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: The hooks for the IP address will be needed if we add remote debugging to IDLE, so I'd like to keep them. Otherwise, David Scherer's idea re using an ephemeral port assignment looks very promising. I'll check something in. -- assignee: rhettinger ->

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue5601] webbrowser doesn't just open browsers

2009-04-01 Thread Mitchell Model
Mitchell Model added the comment: Never mind about the garbage -- I was looking at weird HTML in the copy of the message I received but it didn't make it into the entry on this page. I should have looked first. -- -- --- Mitchell -- Added file: http://bugs.python.org/file1

[issue1664] nntplib is not IPv6-capable

2009-04-01 Thread Chris Morrow
Chris Morrow added the comment: This is a little silly and painful... it's utterly broken to hardcode the AF type in this way, could we please apply a patch (something like the proposed seems to work fine) and get this rolled into the next release? It seems really lame to not be able to suppor

[issue5648] OS X Installer: do not install obsolete documentation within Python.app bundle

2009-04-01 Thread Ned Deily
New submission from Ned Deily : Prevent "hidden" obsolete and unused MacPython documentation files from being installed within framework Python.app bundle. (The current documentation continues to be installed elsewhere.) -- components: Build files: patch-nad0010-py3k-30.txt messages: 850

[issue5648] OS X Installer: do not install obsolete documentation within Python.app bundle

2009-04-01 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file13541/patch-nad0010-trunk-26.txt ___ Python tracker ___ ___ Python-bugs-list mail

[issue5637] 2to3 does not convert urllib.urlopen to urllib.request.urlopen

2009-04-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list maili

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I agree. In any case, double-clicking on a .py file should start an "installed" interpreter, that is one listed in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\X.Y\InstallPath Today starting a .py file only open the last installed Python in

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Oops, that's right. This second patch removes the check with _get_osfhandle(). It was not really necessary: when the trick does not work, python will tell it loudly enough. -- Added file: http://bugs.python.org/file13542/verify_fd-2.patch __

[issue1161031] Neverending warnings from asyncore

2009-04-01 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5613] test_posix.py and test_wait4.py having missing import on win32

2009-04-01 Thread R. David Murray
R. David Murray added the comment: Fixed in trunk as part of the change to the way regrtest handles ImportErrors. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue1664] nntplib is not IPv6-capable

2009-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Assuming the patch does work, +1 for applying it. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe also let's look on setuptools solution.It can make windows executable for 'entry point scripts'. Also there are family scripts for single entry point: * easy_install.exe * easy_install-2.5.exe * easy_install-2.5-script.py * easy_install-script.py I like

[issue5649] OS X Installer: only include PythonSystemFixes package if target includes 10.3

2009-04-01 Thread Ned Deily
New submission from Ned Deily : The PythonSystemFixes package of the OS X installer fixes a specific compatibility problem with the Apple-supplied Python 2.3 on OS X 10.3. The attached patches changes the build installer script to include that package in the installer only if the installer ima

[issue5649] OS X Installer: only include PythonSystemFixes package if target includes 10.3

2009-04-01 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file13544/patch-nad0008-trunk-26.txt ___ Python tracker ___ ___ Python-bugs-list mail

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: This is not a question of "correct" behavior, but of documented semantics. We can't change that semantics in 2.x, like we did for 3.x, because many people rely on the exception variable being available after the except clause finishes. Closing as "won't fix." -

[issue5636] csv.reader next() method missing

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: Fixed docs in r70955. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller
Changes by Jesse Noller : -- nosy: +ocean-city ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller
Jesse Noller added the comment: Note Hiro added r70953 as well to wrap the include in an ifdef -- ___ Python tracker ___ ___ Python-bu

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller
Jesse Noller added the comment: I'll reopen, but I am going to defer to Martin on this -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-01 Thread Mitchell Model
New submission from Mitchell Model : The documentation of urlparse in Python2 and urllib.urlparse in Python3 refers to three RFC's, the last of which (RFC 2396) says that it supersedes the other two and, in fact, clicking on the links to the other two doesn't work; the link and description for

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2009-04-01 Thread Ned Deily
New submission from Ned Deily : Because OS X 10.4 and 10.5 ship with an old 8.4 version of Aqua Tcl and Tk frameworks, current practice is to build the installer image on a machine with user-installed newer 8.4 Tcl/Tk frameworks in /Library. This ensures the correct dylib search sequence is b

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, but for the moment the only internet access I have is behind a firewall and I cannot use SVN. Could you do it instead? -- ___ Python tracker __

[issue1360221] telnetlib expect() and read_until() do not time out properly

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: We absolutely must turn off GUI notifications if this runs on the buildbot. If this means to turn off GUI notications for non-buildbot usage also, so be it. -- ___ Python tracker

[issue1252001] Issue with telnetlib read_until not timing out

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue708007] TelnetPopen3, TelnetBase, Expect split

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___

[issue1049450] Solaris: EINTR exception in select/socket calls in telnetlib

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue1772788] chr(128) in u'only ascii' -> TypeError with misleading msg

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- nosy: +jackdied ___ Python tracker ___ ___ Python

[issue1737737] telnetlib.Telnet does not process DATA MARK (DM)

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue1772794] Telnetlib dosn't accept u'only ascii'

2009-04-01 Thread Jack Diederich
Jack Diederich added the comment: assigning all open telnetlib items to myself -- assignee: -> jackdied nosy: +jackdied ___ Python tracker ___ ___

[issue1741130] struct.pack("I", "foo"); struct.pack("L", "foo") should fail

2009-04-01 Thread Virgil Dupras
Virgil Dupras added the comment: While the behavior cannot be reproduced in the trunk, in can be reproduced in the 2.6 release: $ python -W ignore Python 2.6.1 (r261:67515, Dec 6 2008, 16:42:21) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "l

[issue5652] OS X Installer: remove references to Mac/Tools which no longer exists

2009-04-01 Thread Ned Deily
New submission from Ned Deily : The OS X Installer postflight script still tries to compileall scripts in the framework Mac/Tools directory even though it no longer exists. -- components: Installation files: patch-nad0009-trunk-26.txt messages: 85044 nosy: nad, ronaldoussoren severity:

[issue5652] OS X Installer: remove references to Mac/Tools which no longer exists

2009-04-01 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file13547/patch-nad0009-py3k-30.txt ___ Python tracker ___ ___ Python-bugs-list maili

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread Jesse Noller
Jesse Noller added the comment: I've been thinking about this a bit, and I think raising an exception and returning the amount of bytes read makes more sense then just hiding it/eating the errors. Explicit > Implicit in this case, at lease doing this gives the controller a method of reacting.

[issue3270] test_multiprocessing: test_listener_client flakiness

2009-04-01 Thread Jesse Noller
Jesse Noller added the comment: documented in r70960 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue2578] additional unittest type equality methods

2009-04-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: sounds good. This is done for 2.7. I will make sure it gets merged into 3.1 properly before closing. -- versions: -Python 2.7 ___ Python tracker __

[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's good if it allowed passing in a binary file and an encoding, but I think it would be crazy if it wouldn't also take a text file. After all the primary purpose of a CSV file, edge cases notwithstanding, is to look like text to the end user in a te

[issue5653] OS X Installer: by default install versioned-only links in /usr/local/bin for 3.x

2009-04-01 Thread Ned Deily
New submission from Ned Deily : For 3.0, the OS X installer was changed to disable the default installation of the Unix Command Line Tools package, the package that installs links in /usr/local/bin to the corresponding entries in the framework bin directory. The intent was to follow the pract

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
New submission from John Ehresman : I'm interested in adding support for debugger watchpoint's in the core. A watchpoint would cause the debugger to stop when a value in a namespace changes. This hook would be called when PyDict_SetItem & PyDict_DelItem is invoked. I realize that this does not

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
Changes by John Ehresman : Added file: http://bugs.python.org/file13550/testhook.py ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson
Josiah Carlson added the comment: IIRC, there was a threat to remove asyncore because there were no maintainers, no one was fixing bugs, no one was improving it, and no one was really using it (I believe the claim was that people were just using Twisted). The patches that were ultimately com

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Problem in _multiprocessing is: FILE* fp = _fdopen(...); int fd = _fileno(fp); _close(fd); _fclose(fp); // raises assertion At process exit system tries to close all opened FILE* by _fcloseall, but file closed by descriptor _close has invalid state and _fclose

[issue5655] fix glob.iglob docstring

2009-04-01 Thread DSM
New submission from DSM : glob.iglob's docstring claims it returns a list, but as the name suggests it returns an iterator. Looks like a cut 'n paste oversight. glob.rst is correct. Patch attached against mainline trunk r70961. Should also apply cleanly to py3k trunk. -- assignee: ge

[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: I guess the Zope developers aren't that tuned in to core Python developement. They were sorely bitten. I don't think you can claim that users should be tuned in to python-dev just to assure their favorite module isn't removed or broken. It behooves you to r

[issue1621111] IDLE crashes on OS X 10.4 when "Preferences" selected

2009-04-01 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Status should not be pending unless issue is assigned and a resolution is in progress. Issue only reported on 2.5 as far as I can tell, let's see if it gets reported again for a later version of Python/Tk. We appear to have a workaround for Windows, at leas

[issue5655] fix glob.iglob docstring

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70963, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I suggest that with the issue fixed, we remove those lines again, since > they go against the spirit of defect http://bugs.python.org/issue4804 I'm opposed, for the very same reasons I stated over and over again. -- ___

[issue4937] Mac DMG install missing version.plist required by bundlebuilder.py

2009-04-01 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3646] MacOS X framework install to non-standard directory fails

2009-04-01 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5267] Subversion problem with PythonLauncher after building 3.0 or 3.1 on Mac

2009-04-01 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: > But what is so special about the win32_ExitProcess() function, the > changes apply only for the actual ExitProcess() call (not the duration > of the rest of the forked job. Two things: a) it's not really likely that it uncovers an application bug that peop

[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread Stephan R.A. Deibel
Stephan R.A. Deibel added the comment: Here is a patch against Python 2.6.1 that restores errno after the "sanity check" in lock_PyThread_release_lock in Modules/threadmodule.c. A potential controversy is whether it should be done here or in thread_pthread.h but I believe that we should protect

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Problem in _multiprocessing is: > FILE* fp = _fdopen(...); > int fd = _fileno(fp); > _close(fd); > _fclose(fp); // raises assertion Actually, Kristjan fixed the *real* bug, which was more like FILE* f2=fdopen(fileno(f1)); fclose(f1); fclose(f2); --

[issue1621111] IDLE crashes on OS X 10.4 when "Preferences" selected

2009-04-01 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: My error, I was thinking of Debian's use of 'pending'. On Sourceforge, setting an issue to pending would cause it to automatically close after awhile if there was not further response. On this Tracker, we would use that status the same way, but I believe we

[issue1665206] Hangup when using cgitb in a thread while still in import

2009-04-01 Thread Brett Cannon
Brett Cannon added the comment: So this issue -- as seems to happen to me at PyCon -- was deeper than I thought. cgitb was importing in functions so that was fixed (r70956 for 2.x, r70957 for 3.x). But I also found out that _warnings.c was also importing (r70965 for 2.x, r70966 for 3.x). But th

[issue5428] Pyshell history management error

2009-04-01 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Apparently this can be closed. -- assignee: -> kbk nosy: +kbk status: pending -> closed ___ Python tracker ___

[issue5656] Coverage execution fails for files not encoded with utf-8

2009-04-01 Thread Maru Newby
New submission from Maru Newby : Running the tests with coverage against files using non-utf8 encoding was raising an exception that prevented coverage output from being displayed (patch is attached). The coverage output was also being polluted with failed attempts to display modules that were c

[issue5656] Coverage execution fails for files not encoded with utf-8

2009-04-01 Thread Maru Newby
Changes by Maru Newby : Added file: http://bugs.python.org/file13554/trace_ignore_temp_path.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson
Josiah Carlson added the comment: I'm happy to let them know proposed changes now that I know issues exist, but you have to admit that they were pretty under-the-radar until 4-5 months *after* 2.6 was released. If there is a mailing address that I can send proposed changes to asyncore so tha

[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread John Ehresman
John Ehresman added the comment: Any possibility of a test case? -- nosy: +jpe ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5205] String Formatting with namedtuple

2009-04-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue1590864] import deadlocks when using PyObjC threads

2009-04-01 Thread Brett Cannon
Brett Cannon added the comment: It seems the import lock is being triggered because of an import being made in a function call by something else being imported. And because it is the os module one can't pull out the function-level imports without causing problems. Closing as "won't fix". -

[issue992389] attribute error after non-from import

2009-04-01 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1552880] Unicode Imports

2009-04-01 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue2953] _zip_directory_cache untested and undocumented

2009-04-01 Thread Brett Cannon
Brett Cannon added the comment: Actually importlib does not test this; that is an old thing from an old sandbox version of importlib that I no longer use. I am assigning to Tarek as the better solution is for distutils to stop using this "private" attribute. -- assignee: brett.cannon -

[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: Josiah, you need an attitude adjustment. The breakage of asyncore in 2.6 was real and is now harming adoption of 2.6 by those folks (who are by nature not early adopters -- their customers are typical enterprise users). Talk to Tres Seaver and Jim Fulton. The

[issue1644818] Allow importing built-in submodules

2009-04-01 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue4438] Given a module hierarchy string 'a.b.c', add an easy way to import tail module 'c'

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: This feature is implemented as importlib.import_modules() in 2.7 and 3.1; for earlier versions there is also a backport on PyPI. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python trac

[issue1548687] C modules reloaded on certain failed imports

2009-04-01 Thread Brett Cannon
Brett Cannon added the comment: Trunk has this printing AttributeError as Josiah suggests should happen, so closing as out of date. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue4573] zsh-style subpattern matching for fnmatch/glob

2009-04-01 Thread Georg Brandl
Georg Brandl added the comment: This can't go in like this, since suddenly accepting braces is a subtle change of semantics. I could imagine adding another function though, that has extended zsh-like globbing abilities. -- nosy: +georg.brandl ___ Py

[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings
Larry Hastings added the comment: dalcinl: I made the destructor the first argument because APIs where arguments move around irritate me. In the existing CObject API, the destructor is "always" the last argument--which means in practice it is either the second or third argument, depending on w

[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings
Larry Hastings added the comment: Sorry, in editing I forgot to finish my sentence. In the middle of the second paragraph, the sentence should read: But 90% of the time all you'll need is PyCObject_FromVoidPtr(). My other editing mistakes will just have to stand. --

[issue5040] Bug of CGIXMLRPCRequestHandler

2009-04-01 Thread Senthil
Senthil added the comment: CGIXMLRPCRequestHandler was fixed with changes 70954. Modified the patches for Python trunk. Added the Content-Length tests to handle_request -- assignee: -> orsenthil nosy: +orsenthil resolution: -> fixed Added file: http://bugs.python.org/file13555/issue50

[issue5040] Bug of CGIXMLRPCRequestHandler

2009-04-01 Thread Senthil
Changes by Senthil : Added file: http://bugs.python.org/file13556/issue5040-py27.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. Fixed in r70969, r70970, r70973, and r70974. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

  1   2   3   >