[issue1692] Syntax Error exception dosen't print string; not informative

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, thanks! Can you submit it and close this? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1692> __ ___ Python-bugs-list

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: I'll review this when I have time. Thanks! If you want speedier response, please find someone else among the core developers; or perhaps the bug day on Jan 19 will help. -- assignee: -> gvanrossum _

[issue602345] option for not writing .py[co] files

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: I'm okay with this feature, and the patch looks fine, except I don't like the names used. It's not really about "read-only-ness" of bytecode, it's about whether we write certain files. I'd suggest naming the envvar

[issue1637] urlparse.urlparse misparses URLs with query but no path

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: I checked in your change and made up a test. Committed revision 59758. Thanks! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue602345] option for not writing .py[co] files

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: "dont" is a pretty common contraction (see e.g. telnet.py). Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue602345> _

[issue595601] file (& socket) I/O are not thread safe

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Given how long this has been sitting without action, it's ludicrous to keep it at "high" priority. I'm also taking it away from Jermy since his interest must be minimal by now. And I'm removing 3.0 since it has a completely different

[issue1637] urlparse.urlparse misparses URLs with query but no path

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Backport to 2.5.2: Committed revision 59760. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1637> __ ___ Python-bugs-list

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds like a plan. Can you cook up a patch? Otherwise perhaps the Jan 19 bug day can look into this? -- priority: -> low __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Something for the bug day on Jan 19. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1491> __ ___ Python-bugs-list

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Something for the bug day on Jan 19? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1492> __ ___ Python-bugs-list

[issue1393] function comparing lacks NotImplemented error

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: That solution (return NotImplemented instead of False) appears to work. Committed revision 59761. Thanks for bringing up this regression w.r.t. 2.5! -- resolution: -> fixed status: open -> closed __ Tracker &

[issue1668] -E command line parameter intent

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: To resolve this, how about this patch (getenv.2.diff)? - change getenv("PYTHONCASEOK") -> Py_GETENV() (inside #ifdef PYOS_OS2) - rename THREADDEBUG -> PYTHONTHREADDEBUG and use Py_GETENV() Added file: http://bugs.python.org/file90

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good, please commit! (Christian: the problem with using PYC in the envar name is that it is ambiguous about what happens to PYO files...) -- resolution: -> accepted Tracker <[EMAIL PROTECTED]&

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: PS the patch still has a problem: Python/pythonrun.c:177: error: ‘Py_ReadOnlyBytecodeFlag’ undeclared (first use in this function) Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/is

[issue1747] issubclass(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of returning False

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: lgtm -- resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1747> __ ___ Python-bugs-li

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: I was about to check this in, when I noticed that the test runs for ~16 seconds on my state-of-the-arg hardware. I think that's too long. Perhaps it should only be run when -ulargefile is enabled? __ Tracker <[EMAIL P

[issue1741] .pypirc not found on windows

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Bug day candidate? 2.5.2 backport candidate. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1745] Backport of PEP 3102 "keyword-only arguments" to 2.6

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for tackling this! What line in test_collections.py is calling a function with >255 args? I'm a bit surprised since this has always been disallowed AFAICT. I'd like to see everything related to keyword-only args included in one patch.

[issue1745] Backport of PEP 3102 "keyword-only arguments" to 2.6

2008-01-06 Thread Guido van Rossum
Changes by Guido van Rossum: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1745> __ ___ Python-bugs-list mailing list Unsubs

[issue1622] zipfile hangs on certain zip files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Alan and Eric, can I depend on you two to review each other's code and let me know when you think the patch is ready to be submitted? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds like a plan. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1526> __ ___ Python-bugs-list mailing list Unsubs

[issue1751] Fast BytesIO implementation + misc changes

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Any chance of uploading a single patch that contains all these changes? The profile tests often fail when io.py changes because they happen to depend on "golden output" which includes line numbers of code in io.py that happens to be traced during th

[issue1754] WindowsError messages are not properly encoded

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Crys, can you confirm this? It would seem we'll need to fix this twice -- once for 2.x, once for 3.0. -- nosy: +gvanrossum, tiran __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1752] logging.basicConfig misleading behaviour

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: I recall being bitten by this too when first trying to use the logging module. I think the behavior is intentional, but I suppose it could be documented better. -- assignee: -> vsajip nosy: +gvanrossum, vsajip priority: -&g

[issue1754] WindowsError messages are not properly encoded

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: 3.0 will be a long way away for many users. Perhaps forcing English isn't so bad, as Python's own error messages aren't translated anyway? __ Tracker <[EMAIL PROTECTED]> <http://b

[issue1756] -m broken in trunk

2008-01-07 Thread Guido van Rossum
New submission from Guido van Rossum: As of today, the -m option doesn't appear to work any more in the trunk. I get this error: $ ./python -m string Could not import runpy module $ However it seems to be confused: $ ./python -c 'import runpy' $ IOW the module imports just

[issue1756] -m broken in trunk

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Bah. Environment error. Sorry! -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1762972] 'exec' does not accept what 'open' returns

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe just a doc update? _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1762972> _ ___ Python-bugs-list mailing list

[issue1657] [patch] epoll and kqueue wrappers for the select module

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Not yet, I ran out of time. Can you hold on for another week? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1657> __ ___ Pyth

[issue1745] Backport of PEP 3102 "keyword-only arguments" to 2.6

2008-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: There's something I misunderstand then. I thought 2.x also didn't accept >255 args, but that test would seem to prove I'm wrong. __ Tracker <[EMAIL PROTECTED]> <http:

[issue1761] Bug in re.sub()

2008-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: So if the input ends in '\n', '$' matches both before and after that character, and two substitutions are made (even though multiline is not set). Seems a bug to me. -- nosy: +gvanrossum __ Track

[issue1762] Inheriting from ABC slows Decimal down.

2008-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: What change is responsible for the speedup? The cache check or removing type(instance) from the set? Since type(instance) is usually the same object as instance.__class__, the set will still have only one element (in particular for Decimal this is the case

[issue1761] Bug in re.sub()

2008-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: Then I'd say, this is the correct semantics, for better or for worse; add an example to the docs, and a test to the test suite, and close this as wont fix. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-08 Thread Guido van Rossum
New submission from Guido van Rossum: We should either change the API so you can pass in a '<' comparator, or get rid of it completely (since key=... takes care of all use cases I can think of). -- messages: 59575 nosy: gvanrossum priority: normal severity: normal statu

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-08 Thread Guido van Rossum
Changes by Guido van Rossum: -- components: +Interpreter Core __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1771> __ ___ Python-bugs-list mailing list

[issue1775] filehandle.write() does not return None (Python 3.0a2)

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: The intention was that the lowest-level (unbuffered) stream object can write fewer bytes than given to it, as it is a direct interface to the underlying system call, which has this property (especially when the file is in non-blocking mode). I think it's

[issue1761] Bug in re.sub()

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Which is why I like to use \Z to match *only* the end of the string. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1761> __ __

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond, do you *always* have to be such a grinch? The mere existance of competing implementations proves that there's a need. Hopefully having one in the stdlib will inspire others to contribute improvements rather than starting from sc

[issue1621] Do not assume signed integer overflow behavior

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Alexandre, which Python version did you compile with -Wstrict-overflow? It would behoove us to check 2.5.2 thoroughly before it goes out the door. I will contact Coverity to ask if they check for this kind of thing. (They just upgraded us to "R

[issue1608] test_str.py crashes

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: It would actually be better to use -fno-strict-overflow instead of -fwrapv, if it exists (GCC 4.2 and later). See also http://bugs.python.org/issue1621 which suggests there aren't actually many places that need this; gcc -Wstrict-overflow should help aud

[issue1621] Do not assume signed integer overflow behavior

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Marc-Andre: what do you mean by breaking lots and lots of extensions? Extensions also contain buffer overflow checks (at least I hope they do :-) and those should also be guaranteed safe by using -fwrapv or -fno-strict-overflow (GCC 4.2 and higher) until

[issue1731] Random errors on interpreter shutdown

2008-01-09 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1731> __ ___ Python

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: The rejection of PEP 239 was years ago. PEP 3141 was accepted; it includes adding a rational type to the stdlib, and Jeffrey is doing this with my encouragement. The motivation is to have at least one example of each type in our modest numeric tower in the

[issue1381] cmath is numerically unsound

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Are you crazy? Adding new features to 2.5? No way! __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1381> __ ___ Python-bugs-

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: On Jan 9, 2008 4:29 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > I think the history of rational modules is that simplistic > implementations get built and then the writers find that exploding > denominators limit their usefulness for anyt

[issue1779] int("- 1") is valud, but float("- 1") isn't. Which is right?

2008-01-09 Thread Guido van Rossum
New submission from Guido van Rossum: I discovered that when converting a string to an int or float, the int conversion allows whitespace after the sign, while the float conversion doesn't. I think they should be consistent. -- components: Interpreter Core messages: 59641

[issue1780] Decimal constructor accepts newline terminated strings

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'd propose doing the same thing as int() and float(), which accept and strip leading and trailing whitespace. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1781] ConfigParser: add_section('DEFAULT') causes duplicate sections.

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: Care to provide a patch? Otherwise this may be a good bug day candidate. The next one's Jan 19. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: All in all, Decimal is the odd man out -- it may never become a full member of the Real ABC. The built-in types complex, float and int (and long in 2.x) all support mixed-mode arithmetic, and this is one of the assumptions of the numeric tower -- and of course

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: > Would it be reasonable then to not have any of the numeric tower stuff > put in the decimal module -- basically leave it alone (no __ceil__, > etc)? If that's the preference of the decimal developers, sure.

[issue1782] PyModule_AddIntConstant and PyModule_AddStringConstant can leak

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: These are meant purely for the convenience of module initialization, and there correct handling of reference counts in the light of failures is of marginal importance. So while these may technically have leaks, you shouldn't care. --

[issue1784] Error with OptionParser.parse_args()

2008-01-10 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1784> __ ___ Python

[issue1785] "inspect" gets broken by some descriptors

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: Please submit a patch. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1785> __ ___ Python-bugs-

[issue1786] pdb should set stdin+stdout around exec call

2008-01-10 Thread Guido van Rossum
New submission from Guido van Rossum: When you type a command in pdb that happens to print something, the output goes to sys.stdout, even if self.stdout references another file. This makes it hard to debug code running inside a web server where sys.stdout/stdout are connected to a socket (or a

[issue1786] pdb should set stdin+stdout around exec call

2008-01-10 Thread Guido van Rossum
Changes by Guido van Rossum: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1786> __ ___ Python-bugs-list mailing list Unsubs

[issue1780] Decimal constructor accepts newline terminated strings

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: > Allowing leading and trailing whitespace causes failures in Cowlishaw's > test suite. I guess Raymond's right: this bug report should be > dismissed. It still bothers me a little that there isn't a strictly > conforming imp

[issue1780] Decimal constructor accepts newline terminated strings

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: I'd say that accepting a trailing \n is a bug that should be fixed. I think that ideally we'd be allowed to specify whitespace around the value. I am always annoyed at programs that require me to type e.g. an integer and don't let me put space

[issue1779] int("- 1") is valud, but float("- 1") isn't. Which is right?

2008-01-10 Thread Guido van Rossum
Guido van Rossum added the comment: Moreover I think float is right and int is wrong. Something to fix in 3.0, probably not in 2.6 (don't want to break too much stuff that worked in 2.5). __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1787] segfault in obmalloc.c

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, there's just no way that this is going to be dealt with on the Python core tracker. Who says it isn't memory corruption caused by some Zope extension module... -- nosy: +gvanrossum resolution: -> rejected status: o

[issue1794] Hot keys must work in any keyboard layout

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: So what's a hot key? Now I'm really confused. I don't recall anything using scan codes in IDLE, at least not for the memory shortcuts etc. __ Tracker <[EMAIL PROTECTED]> <http://b

[issue1794] Hot keys must work in any keyboard layout

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Not being familiar with localized keyboards, I don't understand your question. Can you provide some screen dumps of what you see and explain what you expected to see? PS. What OS? -- nosy: +gvanrossum priority: -

[issue1780] Decimal constructor accepts newline terminated strings

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: > Do you want to be able to do Decimal("3 ") but not Decimal("3\n")? I want either both or none, with a slight preference for both but only if it can be done without breaking the spec. The status quo is that "3 " is refused

[issue1794] Hot keys must work in any keyboard layout

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: IDLE is written using Tkinter, not native Windows UI programming APIs, I don't know if the scan code is available in the keyboard events. If you want something to happen on this, I suggest you try to create a patch to IDLE yourself -- it's unlikel

[issue1337648] Elemental Security contribution - parsexml.py

2008-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'll just withdraw it. -- resolution: -> rejected status: open -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1616] compiler warnings (gcc 2.96)

2008-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: With a newer compiler (GCC 4.0.1 on OSX 10.5.1) I still get some warnings: /Users/guido/p25/Modules/_ctypes/libffi/src/x86/ffi_darwin.c:220: warning: function declaration isn’t a prototype /Users/guido/p25/Modules/readline.c: In function ‘flex_complete

[issue1616] compiler warnings (gcc 2.96)

2008-01-12 Thread Guido van Rossum
Changes by Guido van Rossum: -- status: pending -> open __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1616> __ ___ Python-bugs-list mailing list Uns

[issue1814] Victor Stinner's GMP patch for longs

2008-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: Since this keeps coming up, I think it would make sense to turn this into an optional extension module. PS. The licensing concerns are another reason not to use this for the core long (or int in Py3k) type. -- keywords: +patch nosy: +gvanrossum

[issue1816] sys.cmd_flags patch

2008-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: I like the idea of exposing Python's command line flags, but I think this API is a bit odd. I'd rather see it be a struct with members named after the various arguments and values that are ints or bools -- or simply a bunch of new flags directly

[issue1817] module-cgi: handling GET and POST together

2008-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: Well, what are you waiting for? Submit a patch! -- keywords: +easy nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1816] sys.cmd_flags patch

2008-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Can't you use a namedtuple? Then printing it would show the names of the flags... __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1814] Victor Stinner's GMP patch for longs

2008-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: I don't recall, but I suppose it had stopped working and nobody could be found who wanted to maintain it. Possibly the Python-unfriendly license was also a reason. __ Tracker <[EMAIL PROTECTED]> <http://b

[issue1816] sys.cmd_flags patch

2008-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: > I'd rather see a better repr function for the > sequence types. Agreed. It's kind of unfortunate that we have two implementations for the same concept, one in C and one in Python. __ Tracker <[EMAI

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Cool! Doesn't it feel good to rip out stuff? :-) I do hope that you'll make sure all tests pass (-uall) before submitting this. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1816] sys.cmd_flags patch

2008-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Nice -- perhaps you can make it look like a function call, posix.stat_result(st_mode=..., ...)? (Then someone else might finally create a constructor with such a signature. :-) __ Tracker <[EMAIL PROTECTED]>

[issue1294] Management of KeyboardInterrupt in cmd.py

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: To mark things for the bugday, set the 'easy' keyword. However, this particular one is IMO too subtle for a bugday, witness the discussion here. Perhaps a bugday could come up with an ultimate patch, but I'd be hesitant to submit it without

[issue1215] Python hang when catching a segfault

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not sure what the point of that would be. Somebody might want to send these asynchronously (using kill) which we might legitimately want to catch. Also you don't know which other synchronous signals a platform might define. I think at best a

[issue1826] operator.attrgetter() should accept dotted attribute paths

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: How about a slight change to the proposed API, and make it a varargs function? E.g. operator.attrgetter('person', 'displayname') This would avoid the need to parse the argument. -- nosy: +gvanrossum __

[issue1826] operator.attrgetter() should accept dotted attribute paths

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Fair enough. Fine with me then. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1826> __ ___ Python-bugs-list mailing list

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: > After more thought, I would like to make one more change and require the > arguments to be keywords such as sort(key=str.lower) but not > sort(str.lower). Works for me. (To be honest I thought key was already required to be

[issue1828] Renaming platform path modules

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: > Since they are implementation details, they > should have a "_" prepended to their names. No, they are not, and they should not. There are legitimate use cases for importing these directly. E.g. I could be on a Windows box but have a desi

[issue1786] pdb should set stdin+stdout around exec call

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Here's an improved patch -- the recursive debugger invocation should pass the I/O settings on. -- assignee: -> gvanrossum keywords: +easy Added file: http://bugs.python.org/file9171/pdb.diff __ Tracker

[issue1828] Renaming platform path modules

2008-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: And guess what, in 3.0 __builtin__ is renamed to builtin. -- resolution: -> rejected __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1828] Renaming platform path modules

2008-01-14 Thread Guido van Rossum
Changes by Guido van Rossum: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1828> __ ___ Python-bugs-list mailing list Uns

[issue1828] Renaming platform path modules

2008-01-14 Thread Guido van Rossum
Changes by Guido van Rossum: Removed file: http://bugs.python.org/file9172/unnamed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1828> __ ___ Python-bugs-list

[issue1830] pygettext.py py3k errors

2008-01-15 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Committed revision 59979. -- nosy: +gvanrossum resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1294] Management of KeyboardInterrupt in cmd.py

2008-01-15 Thread Guido van Rossum
Guido van Rossum added the comment: I've added developer status to your username. Let me know if it doesn't work. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1835] Update version number in __init__.py

2008-01-15 Thread Guido van Rossum
Guido van Rossum added the comment: The comment indicates it's not automatic that the version number follows the Python release number. Assigning to MAL who wants to coordinated this according to that same comment. -- assignee: -> lemburg keywords: +easy nosy: +gvanrossum,

[issue1786] pdb should set stdin+stdout around exec call

2008-01-15 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 59984 (2.6). Decided not to backport this to 2.5. -- resolution: -> fixed status: open -> closed versions: -Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1838] Ctypes C-level infinite recursion

2008-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: I've got a hunch that any crashes you cause with ctypes are your own fault. :-) -- nosy: +gvanrossum priority: -> low __ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1840] Tools/i18n/msgfmt.py fixes for Python 3.0

2008-01-16 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> loewis keywords: +patch nosy: +loewis priority: -> normal __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2008-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: So can we definitely rule out that this could be caused by the recent changes to threading.py (r57216)? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Mark, it looks like the replace_whitespace flag shouldn't be used with input containing newlines. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: The original behavior is intentional. Please don't attempt to "fix" it. -- nosy: +gvanrossum resolution: -> rejected status: open -> closed __ Tracker <[EMAIL PROTECTED]> <ht

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Use .splitlines() to break the input into lines, wrap each "line" separately, and join again? __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1861] sched scheduler.queue class member is unordered

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond touched it last. :-) Perhaps r38041 is to blame? -- assignee: -> rhettinger nosy: +gvanrossum, rhettinger __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Good luck reaching him. I'm pretty sure that the default behavior intentional *reflows* all input text. Perhaps you can derive clues from reading the docs (which I haven't)? __ Tracker <[EMAIL PROT

[issue1861] sched scheduler.queue class member is unordered

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Looking at that change more, the queue is now maintained as a heapq. Perhaps the queue member is for internal use only? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1861] sched scheduler.queue class member is unordered

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Sure. -- priority: -> low __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1861> __ ___ Python-bugs-list mailing li

[issue1863] NameError with genexp in class scope

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: It's a weakness, not a bug. Just use a different variable name besides 'a'. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://b

[issue1621] Do not assume signed integer overflow behavior

2008-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: I think the -Wstrict-overflow option may not be enough for the audit we need. The overflow issue in expandtabs() still exists (in 2.5 as well as in the trunk): if (*p == '\n' || *p == '\r') { i += j;

<    9   10   11   12   13   14   15   16   17   18   >