[issue858809] Use directories from configure rather than hardcoded

2009-05-15 Thread soundmurderer
soundmurderer added the comment: I tried applying nijel's 2.3.2 patch to Python 2.6.2 Makefile.pre.in, then configure/make/install with --bindir and --libdir flags to ./configure. It works in terms of producing the correct Makefile with LIBDIR and BINDIR that I want, but I get problems after th

[issue858809] Use directories from configure rather than hardcoded

2009-05-15 Thread soundmurderer
soundmurderer added the comment: I can confirm that --bindir and --libdir are broken in Python 2.6.2, despite the fact that ./configure --help lists them as helpful options. At the very least, ./configure should complain if you're using options that don't do anything! That would be the easy fi

[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-15 Thread Yury
Yury added the comment: The code you posted causes an infinite loop in the 2.x branch as well. Anyway, I do not see how crashing is a desired result. An infinite loop means the programmer made a mistake somewhere. A crash means the interpreter did. -- __

[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The OP reported a real mismatch between doc and behavior. If the behavior is not changed, I think the doc should be. Other implementors, reading the doc, might think that they do have to write code to track changes. From the doc, I thought that CPython did th

[issue5996] abstract class instantiable when subclassing dict

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you claim the dict example to be a bug in relation to "A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods and properties are overridden." There is the same difference with @abstractproperty Wind

[issue5992] spurious space after opening parenthesis when auto-completing

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: What system are you using? On Windows 3.0.1, standard interpreter window, 'h' 'e' '' prints 'h' 'e' ' ' ' ' (making, with '>>> ', 8 chars. Which is to say, there is no tab completion. On IDLE, same brings up box and completes to 'help' -- nosy: +tjr

[issue6034] Fix object.__reversed__ doc

2009-05-15 Thread Terry J. Reedy
New submission from Terry J. Reedy : 3.3.5. Emulating container types object.__reversed__(self) says in 3.0 and 3.1 and I assume in 2.x: "Objects should normally only provide __reversed__() if they do not support the sequence protocol and an efficient implementation of reverse iteration is possib

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-15 Thread Jean Brouwers
Jean Brouwers added the comment: Here are the answers to your questions. % python Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> f = open('Lib/distutils/command/

[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2009-05-15 Thread Benjamin Peterson
New submission from Benjamin Peterson : This is an optimization ported from PyPy. [1] It tries to prevent bound methods from being created by using the stack as a cache. I couldn't apply this to builtin methods because those use a method-wrapper descriptor. The results were not very impressive. H

[issue4174] Performance optimization for min() and max() over lists

2009-05-15 Thread Daniel Diniz
Daniel Diniz added the comment: Given the drawbacks mentioned (and the fact that the current patch would break when the list mutates under its feet), is this still valid? -- nosy: +ajaksu2 stage: -> test needed ___ Python tracker

[issue4186] type() doesn't accept bases and dict keyword arguments

2009-05-15 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue4188] Lib/threading.py causes infinite recursion when running as verbose

2009-05-15 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> high stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list m

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2009-05-15 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +IO nosy: +benjamin.peterson, pitrou priority: -> high stage: -> test needed versions: -Python 2.4 ___ Python tracker ___ _

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-15 Thread Collin Winter
Collin Winter added the comment: Yes, this is a patch for issue 6002 (sorry, didn't find it). I haven't seen any refleaks from issue 1208304, but I was only looking at this one particular failure (since it was showing up in Unladen Swallow's refleak builds). --

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-15 Thread Daniel Diniz
Daniel Diniz added the comment: Collin, This the fix for issue 6002, right? Does issue 1208304 also cause leaks in your tests? -- dependencies: +test_urllib2_localnet DigestAuthHandler leaks nonces nosy: +ajaksu2 priority: -> normal ___ Python track

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-15 Thread Collin Winter
New submission from Collin Winter : Currently (r72673), test_urllib2_localnet leaks references. This is due to state implicitly shared between tests. The attached patch fixes this by removing the shared state. The problem is also present in py3k. I'll port the patch once I commit to trunk. Shoul

[issue6031] BaseServer.shutdown documentation is incomplete

2009-05-15 Thread Gabriel Genellina
New submission from Gabriel Genellina : BaseServer.shutdown is documented as "Tells the serve_forever() loop to stop and waits until it does." The docstring is much more explicit: """Stops the serve_forever loop. Blocks until the loop has finished. This must be called while serve_forever() is

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Where does wininst-6.0.1.exe come from? I don't see it on a fresh checkout (there's only wininst-6.0.exe (without the ".1")). Does MacOS X create these "aliases" automatically? Did you install Python 3.1 or are your running directly from the source tree? -

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ouch! Could you try to simply open() an exe file in the interactive interpreter? What does os.stat() give on this exe file? What does os.stat() give on a "real" directory? If some files are also directories under MacOS X, perhaps we must reconsider the director

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2009-05-15 Thread Clifford W Johnson
Clifford W Johnson added the comment: I get a nearly identical failure building Python 2.6.2 on a SPARC64 machine running Solaris 5.10 using GCC 4.1.1. # ./python ./Lib/test/test_ctypes.py ... test_longdouble (ctypes.test.test_callbacks.Callbacks) ... FAIL ... =

[issue5975] csv unix file format ('\n' line terminator)

2009-05-15 Thread Jay Talbot
Jay Talbot added the comment: I'm sorry. I will remember to try and look up where the new features are being targeted. Reporting bugs and requesting new features here is new to me. Everyone seems to have their own rules. -- ___ Python tracker

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2009-05-15 Thread Clifford W Johnson
Changes by Clifford W Johnson : -- nosy: +JohnsonCW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5985] Implement os.path.samefile and os.path.sameopenfile on Windows

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: At this point, 2.7/3.2 are the only targets for new features. -- nosy: +tjreedy versions: -Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python tracker __

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Having to bind and unbind a classmethod to get at the function is definitely a bit weird, and also susceptible to changing implementation, but do you have a practical use case to motivate the effort needed? In Py3, '__func__' replaced 'im_func', and that is the

[issue5141] C API for appending to arrays

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has more chances of seeing some progress if you propose a patch. -- nosy: +pitrou ___ Python tracker ___ __

[issue6030] io.BufferedWriter C module missing _write_lock

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: The C BufferedWriter class itself is thread-safe. I'm not sure what you are worried about, perhaps you are writing your own derived class? -- nosy: +pitrou ___ Python tracker _

[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Amaury, your patch might make some individual cases better, but it won't prevent a FatalError from occurring in all cases. Also, it makes things worse in the following case: def recurse(): try: recurse() except: recurse() recur

[issue6030] io.BufferedWriter C module missing _write_lock

2009-05-15 Thread Josh Roesslein
Josh Roesslein added the comment: Okay so even if you extend the BufferedWriter class, you should not be using that lock for thread safety, correct? But you must still use locks since its not thread safe still? -- ___ Python tracker

[issue5980] Add bug tracker tasks to PEP 101

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I of course agree that these tasks should be listed somewhere, but have no opinion on which PEP, if not both. -- ___ Python tracker ___

[issue5980] Add bug tracker tasks to PEP 101

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Would these tasks, whereever documented, be entirely manual or partly automated? I just fixed new feature request #5975 which originally selected 2.5,2.6,3.0. It would be nice if the tracker automatically rejected such invalid selections and selected 2.7/3.2 i

[issue6030] io.BufferedWriter C module missing _write_lock

2009-05-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's supposed to be a private attribute, so, yes, the omission was purposeful. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker __

[issue6030] io.BufferedWriter C module missing _write_lock

2009-05-15 Thread Josh Roesslein
New submission from Josh Roesslein : The C version of BufferedWriter is missing the _write_lock attribute. I am not sure if there is a reason for this or it was left out by accident. Python version still has the attribute. -- components: Extension Modules, IO, Library (Lib) messages: 878

[issue5975] csv unix file format ('\n' line terminator)

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New features must be targeted at 2.7/3.2. 2.5 is in security-fix only mode and 2.6 in bug-fix only mode, as is 3.0. 3.1 is in beta with new features pretty well frozen. -- nosy: +tjreedy versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6, Pytho

[issue6015] Tkinter Scrollbar in OS X 10.5

2009-05-15 Thread Marc Culler
Marc Culler added the comment: I have the same issues with Python 2.6 code I have written. In OS X 10.4 the scrollbars work correctly with a Tkinter Text widget. The same code running in 10.5 exhibits this erratic behavior. It appears as though mouse movement events are queued up, causing the

[issue5141] C API for appending to arrays

2009-05-15 Thread kxroberto
kxroberto added the comment: I had a similar problem creating a C-fast array.array interface for Cython. The array.pxd package here (latest zip file) http://trac.cython.org/cython_trac/ticket/314 includes a arrayarray.h file, which provides ways for efficient creation and growth from C (extend,

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've seen his patch and am working on my own variant that also attaches the index value as a separate field in the args tuple. The problem may be that it slows down the code -- at first I thought that didn't matter, but someone made a good effort to make the

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about formatting a value into an error message. #1182143 is about adding values that have already been formatted into an error message to the resulting exception object. If this suggestion were implemented, then IndexError would be added to the ex

[issue5998] Add __bool__ to threading.Event and multiprocessing.Event

2009-05-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm closing because a lack of positive feedback on the list. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker _

[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Hmm, the interpreter should not crash so easily with pyre Python code. (The same code correctly raises RuntimeException wich python 2.x) The issue should be corrected IMO. The exact behavior seem to depend on where the recursion limit is detected: - If i

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Douglas Alan
Douglas Alan added the comment: Antoine Pitrou wrote: > Nick Coghlan added the comment: > > Note that the problem with the read()+split() approach is that you > > either have to read the whole file into memory (which this RFE is trying > > to avoid) or you have to do your own buffering and

[issue2116] weakref copy module interaction

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r72662, r72670. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5964] WeakSet cmp methods

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can commit the latest patch, provided all tests pass. -- assignee: -> schuppenies resolution: -> accepted stage: patch review -> commit review ___ Python tracker

[issue1200] Allow array.array to be parsed by the t# format unit.

2009-05-15 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: I actually have no idea what I was trying to do when I ran into this. I think it was a use somewhere in the standard libraries rather than my own code, so if uses of t# are gone from there, I'd have no objections to closing this bug. -- __

[issue5964] WeakSet cmp methods

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I see the type check of the 'other' object as an operation towards the > equal comparison, since it validates wether 'self' and 'other' can be > equal at all. If they are of a different type, then they cannot be > equal, thus the anwser to "Are 'self' and 'oth

[issue5964] WeakSet cmp methods

2009-05-15 Thread Robert Schuppenies
Robert Schuppenies added the comment: Maybe because I take the doc too specfic. It says "A rich comparison method may return the singleton NotImplemented if it does not implement the operation for a given pair of arguments." I see the type check of the 'other' object as an operation towards the

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-05-15 Thread Derek Morr
Changes by Derek Morr : -- nosy: +dmorr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue1182143] making builtin exceptions more informative

2009-05-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that the problem with the read()+split() approach is that you > either have to read the whole file into memory (which this RFE is trying > to avoid) or you have to do your own buffering and so forth to split > records as you go. Since the latter is both d

[issue1200] Allow array.array to be parsed by the t# format unit.

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what t# is for. Jeffrey, have you tried using y* instead? (you must call PyBuffer_Release at the end) -- ___ Python tracker ___ ___

[issue1706039] Added clearerr() to clear EOF state

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does it apply to 3.1? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue5964] WeakSet cmp methods

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why are you confused? You already asked that question earlier in the thread. -- ___ Python tracker ___ _

[issue1309352] Make fcntl work properly on AMD64

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the calling convention concern, it seems to me that a sane ABI wouldn't make a difference between ints and longs - both should fit in a standard machine word. -- stage: test needed -> patch review ___ Python t

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

2009-05-15 Thread Hans L
Changes by Hans L : -- nosy: +hozn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1309352] Make fcntl work properly on AMD64

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch with a test. -- Added file: http://bugs.python.org/file13988/fcntl.patch3.txt ___ Python tracker ___ ___

[issue1309352] Make fcntl work properly on AMD64

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I confirm this on trunk, using Brad's test script. -- nosy: +pitrou versions: +Python 2.7, Python 3.1 ___ Python tracker ___

[issue1655] imaplib is not IPv6-capable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r72662, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Antoine - given that the newlines parameter now deals with Skip's alternate line separator use case, a new method "readrecords" that takes a mandatory record separator makes more sense than using readlines to read things that are not lines. (of course

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Antoine - given that the newlines parameter now deals with Skip's alternate line separator use case, a new method "readrecords" that takes a mandatory record separator makes more sense than using readlines to read things that are not lines. (of course

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, let me qualify my position a bit: - -1 for abusing the newline parameter - -1 for abusing readlines() - +0 on an additional method ("readchunks" was suggested) which does the splitting, either on a single character or on a string Please bear in mind the lat

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, trying again to remove the keyword :-( -- keywords: -easy ___ Python tracker ___ ___ Python-

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: And it's certainly not easy to do correctly :) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is normal behaviour, actually. The RuntimeError *is* raised, but you catch it in the except clause and then recurse again ad infinitum. The interpreter realizes that it "cannot recover from stack overflow", as the message says, and then bails out.

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: -1 on this idea. readlines() exists precisely because line endings are special when it comes to text IO (because of the various platform differences). If you want to split on any character, you can just use read() followed by split(). No need to graft additiona

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread Nick Coghlan
Nick Coghlan added the comment: While RDM's quick test is encouraging, I think one of the key things is going to be developing tests for the various cases: - binary mode, single byte line ending - binary mode, multi-byte line ending - text mode, single byte single char line ending* - text mode,

[issue1152248] Enhance file.readlines by making line separator selectable

2009-05-15 Thread R. David Murray
R. David Murray added the comment: > cat temp this is$#a weird$#file$# > ./python Python 3.1b1+ (py3k:72632:72633M, May 15 2009, 05:11:27) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> f = open('temp', newline='$#') [50354 refs] >>> f.readlines(

[issue5353] Improve IndexError messages with actual values

2009-05-15 Thread R. David Murray
R. David Murray added the comment: See also issue 1182143. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1182143] making builtin exceptions more informative

2009-05-15 Thread R. David Murray
R. David Murray added the comment: See also issue 5353. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailin

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2009-05-15 Thread Peter Bray
New submission from Peter Bray : Greetings, I have downloaded and compiled Python 3.1b1 on Solaris 10 Update 6 with GCC 4.1.2 on {SPARC,x86} x {32-bit,64-bit} and encountered only one test harness failure, which was on SPARC 64-bit. Included below are the initial details, is there something

[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-15 Thread Yury
New submission from Yury : def error_handle(): try: print(5/0) except: error_handle() error_handle() Fatal Python error: Cannot recover from stack overflow. Aborted The interpreter should not crash. Perhaps a RuntimeError should be thrown instead. -- components

[issue6019] Minor typos in ctypes docs

2009-05-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r72661. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue920573] http libraries throw errors internally in BitTorrent

2009-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll take another look at it the week. -- assignee: -> rhettinger status: pending -> open ___ Python tracker ___ _