[issue4856] Remove checks for win NT

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Sure, go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-06-28 Thread Pierre Bourdon
New submission from Pierre Bourdon : Chapter 14 (Floating Point Arithmetic: Issues and Limitations) of the Python 3.x tutorial contains integers with long suffix (424242L) when talking about as_integer_ratio. Patch is attached. -- assignee: georg.brandl components: Documentation files:

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Pierre Bourdon
New submission from Pierre Bourdon : In part 3.1.1 of the Python 3.1 tutorial, the following code sample is obsolete : >>> 8/5 # Fractions aren't lost when dividing integers 1.6001 In a fresh Python 3.1, 8/5 is now displayed as 1.6. The note below the code sample should be updated

[issue6355] bogus NULL check in PyCapsule

2009-06-28 Thread Benjamin Kramer
New submission from Benjamin Kramer : Objects/capsule.c contains the following code: if (!name1 || !name2) { /* they're only the same if they're both NULL. */ return name2 == name2; } The result of this comparison will always be true. The comment says it should be 'name1 == name2'. --

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the analysis and the patch. Fixed in r73599, r73600, r73601, r73602. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > + if (n < 0) I suggest a comment like: /* The difference can overflow, only if self->size is greater than * PY_SSIZE_T_MAX. But then the operation cannot possibly succeed, * because the mapped area and the returned string each need more * than

[issue6356] Segfault of sys.setrecursionlimit if limit exceeds the value 18063 (GNU/Linux)

2009-06-28 Thread str1442
New submission from str1442 : After playing around with the setrecursionlimit() Function in the sys module, i noticed it crashes if you set the limit to a value that is too high. I explored this further until i noticed the value from which the crashing begins is exactly 18063. I know that the hig

[issue6356] Segfault of sys.setrecursionlimit if limit exceeds the value 18063 (GNU/Linux)

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I know that the highest setable value > is platformdependent, but crashing seems inappropriate if a value is > given that is too high. No, it's not inappropriate. It's the only possible reaction. Closing as won't fix. -- nosy: +loewis title: Segfau

[issue6356] Segfault of sys.setrecursionlimit if limit exceeds the value 18063 (GNU/Linux)

2009-06-28 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4856] Remove checks for win NT

2009-06-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, committed in r73603(trunk) and r73604(py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6267] Cumulative patch to http and xmlrpc

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Patch set 4 looks fine to me, please apply it to 2.7 and 3.2. -- assignee: -> krisvale nosy: +loewis resolution: -> accepted ___ Python tracker _

[issue6237] Build errors when using LDFLAGS="-Wl,--no-undefined"

2009-06-28 Thread Funda Wang
Funda Wang added the comment: How is this issue going? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6355] bogus NULL check in PyCapsule

2009-06-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Fixed in r73618. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +eric.smith, marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2919] Merge profile/cProfile in 3.0

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Yesterday, I ported the _lsprof module to Python as an experiment. I still have a few issues to iron out, but the core of the functionality is there. I am not sure yet how this experiment will fit in the profile/cProfile merge. I wrote the port mainly t

[issue2919] Merge profile/cProfile in 3.0

2009-06-28 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14377/pyprofile.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-06-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Senthil, are you still working on the 3.x version of the patch? -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue5254] Formatting error in "findertools" header

2009-06-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-06-28 Thread Ezio Melotti
Ezio Melotti added the comment: It's probably better to split long lines (at 80 chars?) than adding an empty line in every box. Scrolling horizontally is annoying enough even without the problem you mentioned. I don't know if it's possible to split grammar lines like id_start/id_continue[1], bu

[issue6349] email.Maildir cannot roundtrip messages.

2009-06-28 Thread R. David Murray
R. David Murray added the comment: Did you specify 'factory=None', as instructed by the documentation? (The default is fixed in py3, by the way). -- ___ Python tracker ___ _

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-28 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : Likely affects Python 2.7 and Python3.x as well, but I have not checked. Under Windows: >>> tempfile.NamedTemporaryFile('w', delete = False) TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete' Under Unix: >>> tempfile.NamedTemporary

[issue1474680] pickling files works with protocol=2.

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: That seems easy to fix by adding a dummy __reduce__ method to file. My only worry is this could break file subclasses which may have ad-hoc mechanisms implemented for pickling files. -- keywords: +patch nosy: +alexandre.vassalotti stage: -> needs

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

2009-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The lines in the green box do not have to be long in an absolute sense, just longer than the current window width allows. As soon as the the window is narrow enough to require a horizontal scroll bar, a vertical scroll bar is added too because the horizonal scro

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! I've stolen this from Georg (sorry, Georg) and fixed this and a few other similar repr-related problems in r73636 (py3k) and r73637 (release31-maint). -- assignee: georg.brandl -> marketdickinson resolution: -> fixed status: op

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Commited to 2.7 in revision 73638 -- title: Cumulative patch to http and xmlrpc -> Cumulative patcc:h to http and xmlrpc ___ Python tracker ___

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: There is no need to port this to 3.2, it uses a completely different IO system for socket fileobjects. -- ___ Python tracker ___ __

[issue6248] TCP Sockets not closed by TCPServer and StreamRequestHandler

2009-06-28 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- status: open -> closed superseder: -> Cumulative patcc:h to http and xmlrpc ___ Python tracker ___

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

2009-06-28 Thread Ezio Melotti
Ezio Melotti added the comment: That's why I think that the Windows Help problem still need to be fixed, but limiting the length of the lines is a good idea regardless of this, since having long lines and horizontal scroll bars is annoying on the browser too. Is the Windows Help python31.chm? I

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Mark Dickinson
Mark Dickinson added the comment: See also r73640 and r73641, which take into account Pierre's point that the note below the code sample should be updated. -- ___ Python tracker

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Ezio Melotti
Ezio Melotti added the comment: What about http://docs.python.org/3.1/tutorial/floatingpoint.html ? -- nosy: +ezio.melotti ___ Python tracker ___

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Mark Dickinson
Mark Dickinson added the comment: Ezio: I think Raymond updated that recently, so it should be okay. -- ___ Python tracker ___ ___ Py

[issue6358] os.popen exit code inconsistent

2009-06-28 Thread James Abbatiello
New submission from James Abbatiello : Start a process with os.popen() and then try to get its exit code by closing the resulting file handle. The value returned is inconsistent between 2.x and 3.x. Example: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32

[issue6286] distutils upload command doesn't work with http proxy

2009-06-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: merged in 3.2 in r73645 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2009-06-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: merged in 3.2 in r73647 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6192] add disable_nagle_algorithm to SocketServer.TCPServer

2009-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Merged into py3k in revision 73648 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6192] add disable_nagle_algorithm to SocketServer.TCPServer

2009-06-28 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6349] email.Maildir cannot roundtrip messages.

2009-06-28 Thread David Bremner
David Bremner added the comment: that seems to fix my test script. Thanks. I guess the bug can be closed? -- ___ Python tracker ___ __

[issue6349] email.Maildir cannot roundtrip messages.

2009-06-28 Thread R. David Murray
R. David Murray added the comment: Yep :) -- resolution: -> invalid stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue6359] pyexpat.c calls trace function incorrectly for exceptions

2009-06-28 Thread Ned Batchelder
New submission from Ned Batchelder : Pyexpat.c calls the tracing function explicitly (not sure why). When it intercepts an exception, it calls the function with PyTrace_EXCEPTION, but then leaves the scope without calling PyTrace_RETURN. This is incorrect. There should always be a PyTrace_RETU

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I'm working on the 3.2 port, it needs some manual work. -- ___ Python tracker ___ ___ Python

[issue1502517] crash in expat when compiling with --enable-profiling

2009-06-28 Thread Ezio Melotti
Ezio Melotti added the comment: I got this warning compiling Python3.1: /home/wolf/Python-3.1/Modules/expat/xmlparse.c: In function ‘doProlog’: /home/wolf/Python-3.1/Modules/expat/xmlparse.c:3771: warning: passing argument 1 of ‘normalizePublicId’ discards qualifiers from pointer target type I

[issue6360] Simplify string decoding in xmlrpc.client.

2009-06-28 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : The following patch tries to improve how xmlrpc.client handles strings. In particular, it simplifies the decoding of strings by keeping them as unicode str. -- files: simplify_xmlrpc_string_decoding.diff keywords: patch messages: 89801 nosy: ale

[issue2480] eliminate recursion in pickling

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I am closing this issue in favour of #3119, since Aaron's patch is cleaner and slightly faster. Thank you Daniel for the idea! -- dependencies: -pickle.py is limited by python's call stack resolution: -> duplicate status: open -> closed superse

[issue6361] I/O object wrappers shouldn't close their underlying file when deleted.

2009-06-28 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : Here's an example of the behaviour: import io def test(buf): textio = io.TextIOWrapper(buf) buf = io.BytesIO() test(buf) print(buf.closed) # This prints True currently The problem here is TextIOWrapper closes its buffer when deleted. BufferedRWP

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2009-06-28 Thread Ryan Leslie
New submission from Ryan Leslie : While developing an application, an inconsistency was noted where, depending on the particular signal handler in use, multiprocessing.Queue.put() may (or may not) raise OSError() after sys.exit() was called by the handler. The following example, which was tested

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2009-06-28 Thread Ryan Leslie
Changes by Ryan Leslie : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2009-06-28 Thread Jesse Noller
Jesse Noller added the comment: Thank you Ryan -- assignee: -> jnoller priority: -> normal ___ Python tracker ___ ___ Python-bugs-li

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-06-28 Thread Senthil
Senthil added the comment: > > Senthil, are you still working on the 3.x version of the patch? Sorry for the delay. I got to work on it. Shall start and shall try to get it in soon. -- ___ Python tracker _

[issue6363] __future__ statements break doctest

2009-06-28 Thread Poor Yorick
New submission from Poor Yorick : (this error also occurs with "print_function") Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import unicode_literals >>> import docte

[issue6364] freeze tool broken in Python 3.x

2009-06-28 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : The freeze tool seems to be severely broken in Python 3.x. Applying it to a "hello world" script produces: Warning: unknown modules remain: _bisect _collections _ctypes _hashlib _heapq _multiprocessing _pickle _random _socket _ssl _struct _tkinter array atex

[issue6360] Simplify string decoding in xmlrpc.client.

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Did you try these changes? Can you provide a test case? -- nosy: +loewis ___ Python tracker ___ ___

[issue6364] freeze tool broken in Python 3.x

2009-06-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Would you like to provide a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mai

[issue6364] freeze tool broken in Python 3.x

2009-06-28 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: > Would you like to provide a patch? I wouldn't mind if someone beat me to it. But if that doesn't happen, I'll look into it when I have some time to spare. -- ___ Python tracker

[issue4660] multiprocessing.JoinableQueue task_done() issue

2009-06-28 Thread Brian
Brian added the comment: Filipe, Thanks for the confirmation. While I think the second option (ie properly protecting JoinableQueue.put()) is best, the first option (simply removing the 'task_done() called too many times' check) should be safe (presuming your get() and put() calls actually

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-28 Thread Stefan Behnel
New submission from Stefan Behnel : When compiling a C extension (lxml in this case) in Py3.1, calling the "build_ext -i" distutils target duplicates the package path when writing the dynlib. In this case, I get "lxml/lxml/etree.so" instead of "lxml/etree.so". Obviously, the extension module cann

[issue6360] Simplify string decoding in xmlrpc.client.

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I didn't test the changes extensively. I ran the test suite and the changes seemed to be correct. It is a bit difficult to provide a test case, since the patch shouldn't change how the code currently behave. Nevertheless, here is a simple example: #!/usr

[issue6360] Simplify string decoding in xmlrpc.client.

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Oops, I forgot to update my client in my last message. The sample trace run should make more sense now. #!/usr/bin/python3.2 # xmlclient.py import xmlrpc.client server_proxy = xmlrpc.client.ServerProxy("http://localhost:8000";) print(server_proxy.print_st

[issue1761028] pickle - cannot unpickle circular deps with custom __hash__

2009-06-28 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue558238] Pickling bound methods

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I am leaving this issue open for now. I reconsidered whether we should add pickle support for methods and I now think it would probably be a good idea. For example, the multiprocessing module would benefit from a having built-in support for method picklin

[issue1214] Timeout in CGIXMLRPCRequestHandler under IIS

2009-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: This has been fixed in 2.6 and 3.x. Closing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue558238] Pickling bound methods

2009-06-28 Thread obamausa8
obamausa8 added the comment: This is an interesting discussion.. thank you for sharing. [url=http://pret-auto.org][color=#FF][u]pret auto[/u][/color][/url] -- nosy: +obamausa8 ___ Python tracker __