[issue2321] return more memory from unicode objects to system

2008-03-17 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Just for the record, the enhanced profiler source files in and do replace calls to malloc and free with PyObject_MALLOC resp. _FREE. -- nosy: +MrJean1 ___

[issue2341] Raise a Py3K warning when raise non-BaseException exceptions

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: While writing the patch, I noticed that "/* Normalize to raise , */" comment was misplaced. Please consider a minor patch that fixes that. Added file: http://bugs.python.org/file9700/issue2341-minor.diff _

[issue2360] Fixer for itertools.imap() -> map()

2008-03-17 Thread David Wolever
David Wolever <[EMAIL PROTECTED]> added the comment: I'll take this one (and the next few dealing with itertools) -- nosy: +David Wolever __ Tracker <[EMAIL PROTECTED]> __

[issue2371] Patch for catching exceptions that do not inherit from BaseException

2008-03-17 Thread Taek Joo Kim
New submission from Taek Joo Kim <[EMAIL PROTECTED]>: With this patch it prints warning message for catching exceptions that don't inherit from BaseException when -3 flag is used. -- components: Interpreter Core files: catchexc.patch keywords: patch messages: 63761 nosy: taicki severity:

[issue2368] Backport __builtin__ to 'builtins'

2008-03-17 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue2282] TextIOWrapper.seekable() always returns False

2008-03-17 Thread Ka-Ping Yee
Ka-Ping Yee <[EMAIL PROTECTED]> added the comment: Patch committed. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2323] Make structseq's API look more like a nametuple.

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Closing as a duplicate of issue 1820. I had been working on this, but there are limits to it. The constructors are completely different so not all of the API can be synced. The __repr__ method is already synced-up. All that is still need

[issue2366] Fixer for new metaclass syntax is needed

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Does the old way still work in 3.0? If so, I don't think we should have a fixer. -- nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]> _

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I would like to review the patch on this one. I think it should limit itself to the True and False in builtin. It would be *very* expensive to check for every assignment in every possible namespace. -- nosy: +rhettinger

[issue1274] doctest fails to run file based tests with 8bit paths

2008-03-17 Thread Ilan Schnell
Ilan Schnell <[EMAIL PROTECTED]> added the comment: Bug is most likely platform specific. Can someone suggest how this should be handled on multiple platforms? Mike, can you report on which platform you encountered the bug on? Can you provide a script that reproduces the bug? On Mac OS 10.4, P

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The original issue is now fixed in r61462. Please open another issue for the case of regular exceptions. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Mon, Mar 17, 2008 at 3:41 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Raymond Hettinger <[EMAIL PROTECTED]> added the comment: > > I would like to review the patch on this one. > > I think it should limit itself to the True and Fa

[issue2350] Warn against importing 'exceptions'

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I ran python through a debugger and found that the exceptions module is imported automatically at load time. Because of this, when "import exceptions" is parsed, the module is already loaded, and PyImport_Import is not called. In order to cor

[issue1747858] chown broken on 64bit

2008-03-17 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: i'll take a look at this during the sprint. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> ___

[issue1747858] chown broken on 64bit

2008-03-17 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: -- versions: +Python 2.6, Python 3.0 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs

[issue2371] Patch for catching exceptions that do not inherit from BaseException

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: This belongs to issue2291. -- nosy: +belopolsky, brett.cannon __ Tracker <[EMAIL PROTECTED]> __

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I'm on it... -- nosy: +douglas __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list maili

[issue2290] [PATCH] Update Lib/distutils/sysconfig.py to handle x64 Windows builds living in pcbuild/amd64.

2008-03-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: This patch is fine, please apply. -- assignee: -> Trent.Nelson resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ __

[issue2360] Fixer for itertools.imap() -> map()

2008-03-17 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: See also #2171. -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-lis

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: The parser approach should be fine. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list maili

[issue2307] Decide what to do with bytes/str when transferring pickles between 2.6 and 3.0

2008-03-17 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti <[EMAIL PROTECTED]>: -- nosy: +alexandre.vassalotti __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list maili

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that adds the deprecation warnings. It's a bit dirty because there isn't a read or write function anymore, so I had to make stubs that contain the warnings. -- keywords: +patch Added file: http://bugs.python.org/fil

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I'm working on it. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ ___ Py

[issue2296] [PATCH] Tcl/Tk 8.4.16 patches needed to get an x64 Windows build

2008-03-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Sounds good, please apply. -- assignee: loewis -> Trent.Nelson resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2368] Fixer needed to change __builtin__ -> builtins

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Brett meant to add 'builtins' as an alias for __builtin__. I don't think we should do that. However we should have a fixer for this. Assigning to Collin and changing the subject to match. -- assignee: gvanrossum -> collinwinter n

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This patch alters the parser to warn for assignment to True and False. Enjoy! -- keywords: +patch Added file: http://bugs.python.org/file9703/bool_assign.patch __ Tracker <[EMAIL PROTECTED]>

[issue2291] Raise a Py3K warning for catching non-BaseException exceptions

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: I am commenting on issue2371 patch here, so that I does not get lost in a non-showstopper issue. Taek, please reattach your patch here when you get a chance. With the additional -3 logic, code duplication between tuple and non-tuple ca

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Looks fine. Please apply. -- resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ __

[issue2223] regrtest.py -R not working

2008-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: rhettinger -> __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue1170766] weakref.proxy incorrect behaviour

2008-03-17 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: rhettinger -> _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list ma

[issue2291] Raise a Py3K warning for catching non-BaseException exceptions

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: There is also a subtle bug in the issue2371 patch: $ cat x.py try: raise ValueError except ((ValueError,),): pass $ ./python -3 x.py x.py:3: DeprecationWarning: catching classes that do not inherit from BaseException is not allo

[issue2339] Backport intern() -> sys.intern()

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Guido, do you want this alias in Py2.6? Seems like it should just be a 2-to-3 fixer issue only. Also, I vaguely remembered that we weren't going to expose interning at all. There was a discussion on python-dev a couple years ago where I

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-17 Thread Wolfgang Langner
Wolfgang Langner <[EMAIL PROTECTED]> added the comment: The sniffer returns an dialect that is not really correct. Because the delimiter is set to value and in this case there is no delimiter. See it as, it returns a random delimiter if there is not really one. But your usage of the DictReader i

[issue2372] Pubkey

2008-03-17 Thread David Wolever
New submission from David Wolever <[EMAIL PROTECTED]>: ssh-rsa B3NzaC1yc2EBIwAAAIEAvyZUU3zNsAoETLN8kDgTmm6qPeWMqUno3KkxcayPSVzT U2pBLlMet/LVtLpHwqARTo4d5/g9vmjwPluQO7LgyIsH88GlJYRgPwV08rpzBTDR+/ 0ZQWt82J7loB1z6mhxMS+YS0Oe2UOEXxYTCKfwwyTXDKVRk8wjlneyI9JZfB8= [EMAIL PROTECTED] --

[issue2321] return more memory from unicode objects to system

2008-03-17 Thread Noah Kantrowitz
Changes by Noah Kantrowitz <[EMAIL PROTECTED]>: -- nosy: +coderanger __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubs

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2008-03-17 Thread Ilan Schnell
Changes by Ilan Schnell <[EMAIL PROTECTED]>: -- assignee: -> barry nosy: +barry priority: -> normal type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ _

[issue2372] Pubkey

2008-03-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The key is installed now. -- nosy: +loewis resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Barry, I'm -0 on this one. ISTM the cure is worst than the disease and makes the code less modifiable, understandable, or maintainable. -- nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]>

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2008-03-17 Thread David Stanek
David Stanek <[EMAIL PROTECTED]> added the comment: I am uploading a new diff that includes the original fix from Hagai along with some tests. -- keywords: +patch nosy: +dstanek Added file: http://bugs.python.org/file9704/braced_override.diff __ Tracker <

[issue2373] Raise Py3K warnings for comparisons that changed

2008-03-17 Thread Steven Bethard
New submission from Steven Bethard <[EMAIL PROTECTED]>: Some comparisons were changed or removed in Python 3.0. In 2.6 you could compare types (e.g. ``str < int``) and dicts supported more than just equality. These comparisons should produce Py3K warnings. -- assignee: bethard components

[issue2365] Fixer for filter(None, ...) -> filter(bool, ...)

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: There was no change to filter(). It still accepts None. Hence, there is no need for a fixer. -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: Since file() is removed from 3k, this error message tries to be as generic as possible. We should also warn on any use of file() instead of open() Also, all tests have passed except test_normalization -- keywords: +patch Added file: h

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I should note that test_normalization fails with or without the patch, so no change __ Tracker <[EMAIL PROTECTED]> __ __

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Sorry, I don't permission. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: There's a new version, can we get it reviewed and tested under Windows? -- assignee: -> loewis keywords: +patch nosy: +jafo priority: -> normal title: [patch] socketmodule cleanups: allow the use of keywords in socket functions

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I'll apply when I get a chance. -- assignee: -> rhettinger __ Tracker <[EMAIL PROTECTED]> __ _

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: This is a minor concern, but existing -3 warnings refer to python 3.0 and above as "3.x", not 'Py3K'. It would be nice to preserve consistency. -- nosy: +belopolsky __ Tracker <[EMAIL PROTECTED]

[issue2171] Add map, filter, zip to future_builtins

2008-03-17 Thread David Wolever
David Wolever <[EMAIL PROTECTED]> added the comment: To clarify, 2to3 shouldn't wrap map, filter, zip in list() if they are imported from future_builtins. -- nosy: +David Wolever __ Tracker <[EMAIL PROTECTED]> _

[issue2307] Decide what to do with bytes/str when transferring pickles between 2.6 and 3.0

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Checked in as r61467. When pickling a bytes instance in a protocol < 3, it is pickled as a user-defined type (essentially faking a __reduce__ operation) which can be read back correctly in 3.0 but probably not in 2.x. -- resolution

[issue2349] Py3K warn against assigning to True/False

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: "A Foolish Consistency is the Hobgoblin of Little Minds" This update makes the warnings say 3.x. Added file: http://bugs.python.org/file9706/bool_assign2.patch __ Tracker <[EMAIL PROTECTED]>

[issue1471] ioctl doesn't work properly on 64-bit OpenBSD

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: I think this proposed change needs some research into what the standards say about ioctl's return code, and if the change to a long return code is done then test it on Linux to see if it breaks things or if it works. Thoughts? --

[issue2358] Using sys.exc_clear should raise a Py3K warning

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that raises the warning. Should the method documentation metion the deprecation as well? -- keywords: +patch nosy: +jbalogh Added file: http://bugs.python.org/file9707/issue2358.diff __

[issue2138] Add a factorial function

2008-03-17 Thread Ilan Schnell
Ilan Schnell <[EMAIL PROTECTED]> added the comment: The factorial function is most likely to be used in context with other combinatorial functions (like binomial coefficients) for these functions an external module seems most appropriate. Most likely people would use a factorial function only fo

[issue2339] Backport intern() -> sys.intern()

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I see no great advantage in having it backported, though I also don't see no great harm. Since we still use interning as an internal speed-up, I believe in exposing the API, past discussions notwithstanding. -- priority: urgent ->

[issue2339] Backport intern() -> sys.intern()

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Okay thanks. Closing this one as something that isn't really needed. -- resolution: -> rejected status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: I have run this under the current py3k SVN version on an 64-bit Linux (Fedora 8), and it runs fine, FYI. ISTR that I had a patch which fixed something that sounds very much like this, but I can't find that other issue. -- nosy: +

[issue2291] Raise a Py3K warning for catching non-BaseException exceptions

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Correction for msg63584: the old/new style difference example should read """ class x: pass class y(x): pass try: raise y except y: print "b" except: print "a" """ As written it prints 'b', but with __metac

[issue1312] doctest EXCEPTION_RE can't handle preceding output

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: The existing tests include a test explicitly for the existing behavior, including the statement: "An example may not generate output before it raises an exception". In order to be able to accept this change, there is going to have to be d

[issue2358] Using sys.exc_clear should raise a Py3K warning

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a fixed patch that follows PEP 7 and updates Misc/NEWS. Added file: http://bugs.python.org/file9708/issue2358-stylefix.diff __ Tracker <[EMAIL PROTECTED]>

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a fixed patch that follows PEP 7. Added file: http://bugs.python.org/file9709/issue2359-stylefix.diff __ Tracker <[EMAIL PROTECTED]> __

[issue1516] make _ctypes work with non-gcc compilers

2008-03-17 Thread Sean Reifschneider
Changes by Sean Reifschneider <[EMAIL PROTECTED]>: -- priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1506] func alloca inside ctypes lib needs #include on solaris

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Fix is inline. -- keywords: +patch nosy: +jafo __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue2374] Use of builtin file should give Py3k warning

2008-03-17 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: This patch causes the use of builtin file to give a Py3k warning. When Python starts up, distutils.text_file gives a warning because it uses a variable named file. I imagine there are places like this all over in the stdlib, which should

[issue1574] Touchpad 2 Finger scroll does not work in IDLE on Mac (But scroll wheel of external mouse does)

2008-03-17 Thread Sean Reifschneider
New submission from Sean Reifschneider <[EMAIL PROTECTED]>: Assigned. -- assignee: -> ronaldoussoren nosy: +jafo, ronaldoussoren priority: -> normal type: behavior -> feature request __ Tracker <[EMAIL PROTECTED]>

[issue2138] Add a factorial function

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: FWIW, I don't agree with the reasoning on the rejection. Hundreds of calculator layouts and school textbooks suggest that you can have a useful factorial function without having to also add binomials and whatnot. The OP requested a simp

[issue2355] Using buffer() should raise a Py3K warning

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch. -- keywords: +patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file9711/buffer_warning.patch __ Tracker <[EMAIL PROTECTED]> __

[issue2138] Add a factorial function

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Raymond: Can you come into the core sprint and discuss it with the table on the right just as you come in the door of the sprint room? Lian said that was who he discussed it with and they came to the conclusion to reject it. -- n

[issue1581] xmlrpclib.ServerProxy() doesn't use x509 data

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: This patch also needs to include a patch to the documentation. Martin: Do you agree with the discussion on the changes for 2.6? -- nosy: +jafo __ Tracker <[EMAIL PROTECTED]>

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-17 Thread Glyph Lefkowitz
New submission from Glyph Lefkowitz <[EMAIL PROTECTED]>: Currently if you have both Python 3 and Python 2 installed, there's no way to indicate that ".py" files in one area are Python 2 syntax and in another area are Python 3 syntax. Being able to distinguish between these would be nice for hete

[issue2374] Use of builtin file should give Py3k warning

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'll review this. My hunch is that we don't need this -- 2to3 takes care of this so there is no reason to tell people to change their code by hand. (You may notice a pattern -- things that 2to3 can fix easily generally don't deserve -3 wa

[issue2138] Add a factorial function

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Wish I could be at the sprint. I'm back in Los Angeles. My little post will have to suffice. I thought it was a reasonable request and would hate to see it killed because other people piled on other requests that were not reasonable.

[issue1596] Broken pipes should be handled better in 2.x

2008-03-17 Thread Sean Reifschneider
Changes by Sean Reifschneider <[EMAIL PROTECTED]>: -- priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-17 Thread Neal Norwitz
Changes by Neal Norwitz <[EMAIL PROTECTED]>: -- assignee: -> nnorwitz nosy: +nnorwitz priority: -> urgent __ Tracker <[EMAIL PROTECTED]> __ __

[issue2138] Add a factorial function

2008-03-17 Thread paul rubin
paul rubin <[EMAIL PROTECTED]> added the comment: Rather than factorial how about a product function, so factorial(n) = product(xrange(1,n+1)). I do like the idea of an imath module whether or not it has factorial, and the topic of this rfe has drifted somewhat towards the desirability of such a

[issue2355] Using buffer() should raise a Py3K warning

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Are use cases for buffer() satisfied by the new memoryview() builtin? If so, it would be nice to have an automatic conversion or to have the Py3k warning suggest a possible substitute. -- nosy: +rhettinger ___

[issue1633807] from __future__ import print_function

2008-03-17 Thread Eric Smith
Changes by Eric Smith <[EMAIL PROTECTED]>: -- nosy: +eric.smith _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Un

[issue1598] unexpected response in imaplib

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Can you provide the message or messages which cause the problem when they are put in the IMAP server? Can you also provide information on what IMAP server software and version is being used? -- assignee: -> pierslauder nosy: +ja

[issue2374] Use of builtin file should give Py3k warning

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Let's not do this. This approach is not sufficiently backwards compatible; it will break any code that uses isinstance(x, file). Even though that's not forward compatible with 3.0, it works in 2.5 and before, so it should not break in 2.6.

[issue2348] Py3K warn using file.softspace

2008-03-17 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: That should read file.softspace. -- title: Py3K warn using file.whitespace -> Py3K warn using file.softspace __ Tracker <[EMAIL PROTECTED]>

[issue2138] Add a factorial function

2008-03-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Problems with product(): It is dreadfully inefficient compared to a good implementation of factorial. It has the same name a new itertool with much different functionality. The hyper-generalization takes us further away from the OP's dir

[issue1633807] from __future__ import print_function

2008-03-17 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: I'm going to review Anthony's patch and attempt to get it working in the current trunk. I'm going to start by adding some print tests to 3.0, then backport. _ Tracker <[EMAIL PROTECTED]>

[issue1251] ssl module doesn't support non-blocking handshakes

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Should this be back-ported to 2.6, or can it be closed? -- keywords: +patch nosy: +jafo priority: -> normal __ Tracker <[EMAIL PROTECTED]> __

[issue2344] Using an iteration variable outside a list comprehension needs a Py3K warning

2008-03-17 Thread Taek Joo Kim
Taek Joo Kim <[EMAIL PROTECTED]> added the comment: >>> i = 3 >>> [i for i in range(10)] >>> i 9 In 2.6, the original value of a variable is changed by the list comprehension. In 3.0, it is not. To fix this, we need many changes on AST. -- nosy: +taicki

[issue2376] Set up "supported"-only buildbot waterfall view

2008-03-17 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: The Python buildbot's waterfall view currently shows all builders. Not all of these are expected to work currently. This can be confusing to people trying to understand the current state of Python on various platforms. Buildbot can b

[issue2321] return more memory from unicode objects to system

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Looks good, Neal. Are you hesitant to check this in? I ran a little test showing that indeed it gives much more memory back to the system. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]>

[issue2342] Comparing between disparate types should raise a Py3K warning

2008-03-17 Thread Steven Bethard
Steven Bethard <[EMAIL PROTECTED]> added the comment: The code is only invoked when NotImplemented is produced. Take a look at the attached patch to try_3way_to_rich_compare and see if you think it's going to be too expensive. -- keywords: +patch Added file: http://bugs.python.org/file97

[issue2374] Use of builtin file should give Py3k warning

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Yeah, breaking isinstance(x, file) would be bad and 2to3 can do this automatically. I should probably learn how to write fixers. BTW, the warning culprit was actually site.py which used file. __ Tracker <[EM

[issue1274] doctest fails to run file based tests with 8bit paths

2008-03-17 Thread Mike Taylor
Mike Taylor <[EMAIL PROTECTED]> added the comment: Hi, it was running on FC4 with UTF-32 support and was using the Japanese locale. The bug is reproducible using any doctest that is stored in a mixed character path. where it is in the Chandler tree is not easily pulled apart but if you really

[issue2313] correct int / long object type casts

2008-03-17 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: Thanks! Fixed in r61472. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2355] Using buffer() should raise a Py3K warning

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Benjamin, Your recent patches all use 4-space indentation, but Python 2.x recommended style is still to use tabs unless you start a new file. See PEP 7. -- nosy: +belopolsky __ Tracker <[EMAIL

[issue2355] Using buffer() should raise a Py3K warning

2008-03-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: My apologies. I often forget to switch between tabs and spaces for Python and C sometimes. Added file: http://bugs.python.org/file9713/buffer_warning_good_tabbing.patch __ Tracker <[EMAIL PROTECTED]>

[issue1477] UnicodeDecodeError that cannot be caught in narrow unicode builds

2008-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The error is not uncatchable; but it is generated while compiling, like a SyntaxError. No bytecode is generated for the input, and the "except" opcode is not run at all. OTOH, there is a bug in PyUnicode_DecodeRawUnicodeEscape(): it sho

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-17 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: -1 Sites that need this functionality can emulate this feature in site.py by adding sys.path[1:1] = os.getenv("PYTHON3PATH", "").split(os.pathsep) in py3k installation. I could not find any discussion beyond the original post at ht

[issue1513695] new turtle module

2008-03-17 Thread Gregor Lingl
Changes by Gregor Lingl <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file9715/whatsnew.txt _ Tracker <[EMAIL PROTECTED]> _ ___ Pyt

[issue1513695] new turtle module

2008-03-17 Thread Gregor Lingl
Gregor Lingl <[EMAIL PROTECTED]> added the comment: Supplementary remark: xturtle has proved to run without problems under Python 2.6. (Not surprisingly) it's behaviour is exactly like under Python 2.5, with the exception, that the tested scripts run 5 to 15% faster.

[issue2371] Patch for catching exceptions that do not inherit from BaseException

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'll review this once I address issue2291. -- assignee: -> gvanrossum nosy: +gvanrossum priority: -> normal __ Tracker <[EMAIL PROTECTED]> ___

[issue1544] IDLE installation problems and no message errors

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Duplicate of #1743 and #1862. Fixed in Python 2.5.2 maint. Fixed in rev 60782 The problem is that the .idlerc file is getting the hidden bit set. -- assignee: -> loewis nosy: +jafo, loewis priority: -> normal resolution: ->

[issue1711] socket functions that should return unsigned int return signed int

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Maarten: Do you have time to try doing a test build as suggested by Guido, to report if this issue is resolved? -- nosy: +jafo priority: -> normal type: -> behavior __ Tracker <[EMAIL PROTECTED]>

[issue2291] Raise a Py3K warning for catching non-BaseException exceptions

2008-03-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I finally figured this out. The try/except statement is a complete red herring; the problem is in the raise statement. The behavior is the same in 2.4, 2.5 and 2.6, even though Exception is a classic class in 2.4 and a new-style class in 2

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2008-03-17 Thread Sean Reifschneider
Sean Reifschneider <[EMAIL PROTECTED]> added the comment: Is the reporter correct that it is not thread impacting? -- assignee: -> tiran nosy: +jafo priority: -> normal __ Tracker <[EMAIL PROTECTED]> __

<    1   2   3   4   >