[issue10968] threading.Timer should be a class so that it can be derived

2011-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: IIRC: The design started out this way because it predates new-style classes. When this was put in one couldn't subclass extension types, and there were plans/hopes to replace some of the lock types with platform-specific built-in versions on

[issue2842] Dictionary methods: inconsistency

2008-05-12 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Chester, this is your last warning. One more submission like this and we will ban you from submitting new bug reports. You have to learn how to use the bug tracker properly if you don't want to be ignored completely.

[issue2831] Adding start to enumerate()

2008-05-13 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Thanks. I think this part is the main reason I see a start argument to > enumerate as potentially problematic: > > """all variants can easily be misread as starting at the nth item in the > s

[issue2831] Adding start to enumerate()

2008-05-13 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Sure, fine. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2831> __ ___ Python-bugs-list mailin

[issue2851] Eliminate Perl legacy in re flag names

2008-05-14 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Please keep them. They correspond to the (?x) and (?s) syntax that is supported inside the regex. Perl compatibility is a feature, not a bug for the re module. -- nosy: +gvanrossum resolution: -> wont fix status: open

[issue2898] Add memory footprint query

2008-05-19 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'm torn about the extra slot; I'd rather not add one, but I can't see how to make this flexible enough without one. It should definitely not be a built-in; the sys module is fine though (e.g. sys.getrefco

[issue2613] inconsistency with bare * in parameter list

2008-05-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I see it differently. The rule is simply that if you use a bare * you *must* follow it with at least one argument (that's not **k). This makes sense since otherwise the * is redundant. Think about it; there is nothing differ

[issue708007] TelnetPopen3, TelnetBase, Expect split

2008-05-30 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Since Pexpect is alive and well, doesn't it satisfy your needs? What's the point of trying to push an alternative implementation that has lingered for 7 years now? -- n

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Whether the C API stuff and .isprintable() should be backported to 2.6 > is something for Guido to decide. No way -- while all of this makes sense in Py3k, where all strings are Unicode, it would cause no end of problems in

[issue3044] Simplify the Integral ABC

2008-06-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Looks like you accidentally removed 2-arg __pow__ from the Complex ABC. This should stay of course. Also, please add the binary operators back in a new ABC called Binary deriving from In

[issue3044] Simplify the Integral ABC

2008-06-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Excuse me? Have you actually been following the thread? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3057] 2.6 abc fixes

2008-06-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Looks good. I like keeping the *View classes around so someone can use them still. -- assignee: gvanrossum -> georg.brandl ___ Python tracker <[EMAIL PROTECTED]> <http

[issue3056] Simplify the Integral ABC

2008-06-10 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Not really, see the reply I sent to the checkin mail. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2605] Descriptor instance attributes not interpreted consistently

2008-06-11 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: The behavior observed is intentional. The docs should be updated. -- nosy: +gvanrossum resolution: -> rejected status: open -> closed ___ Python tracker <[EMAIL PR

[issue643841] New class special method lookup change

2008-06-11 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I want to make this "bypass getattr" behavior mandatory for those operations that currently use it, forcing the issue for other implementations of Python. That's a doc change (but an important one!). There are probab

[issue2997] PyNumberMethods has left-over fields in Py3

2008-06-11 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I say let's go with the cleanup. Extensions that want to be compiled under 2.x and 3.0 will need lots of #ifdef code anyway. -- nosy: +gvanrossum ___ Python tracker <[EMAIL PRO

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: If it's only failing during the second run of "make test", typically there's some implicit dependency on something that is disturbed by running a test that's later in the suite of tests. This could be eith

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I should add this was in the trunk (2.6). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3108] Implicit exception chaining (PEP 3134)

2008-06-14 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Submitted as r64281. We still need a doc patch and changes to the exception printing (perhaps also to traceback.py). Please open new issues for those. -- resolution: -> fixed status: open

[issue3114] bus error on lib2to3

2008-06-14 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: N.B. Benjamin made a typo in the revision, it's r64284. -- nosy: +gvanrossum resolution: fixed -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> <http:/

[issue3056] Simplify the Integral ABC

2008-06-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Mostly, but I *really* want to see unittests for this. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3056] Simplify the Integral ABC

2008-06-15 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: -- assignee: gvanrossum -> rhettinger ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue2735] range: lean and mean

2008-06-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Yeah, let's just reject this. There doesn't appear to be much demand. -- resolution: -> rejected status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <h

[issue2603] Make range __eq__ work

2008-06-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Methinks this one is also better rejected. Please reopen if you feel strongly. -- resolution: -> rejected status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <h

[issue3056] Simplify the Integral ABC

2008-06-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Raymond, mind if we roll back your previous (incorrect) changes? They really should not have been submitted in the first place. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-06-21 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks for your contribution! To get this commmitted, please draw the attention of someone else on python-dev (or if you're an IRC person try #python-dev at freenote, IIRC). I'd recommend moving the tests into the exis

[issue1394] simple patch, improving unreachable bytecode removing

2008-06-24 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Rejecting. Too much risk as well, based on experience in the past with supposedly harmless optimizations. -- resolution: -> rejected status: open -> closed ___ Python tracker <[

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

2008-06-25 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: +1 on removing the trailing L from the repr. +0 on trying to reduce the values to ints; that would be dead-end code since in 3.0 it's a non-issue. And it doesn't solve the problem with repr. __

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-26 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'm going to have to ask someone else to look at this code. I am too busy with too many things to be able to take on a detailed code review. -- assignee: gvanrossum -> ___

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks for giving this some time. I think that backwards compatibility should be a higher priority than being able to issue -3 warnings -- if the warnings can't be generated, too bad, we'll just have to document it. (I

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

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I think it's okay to accept Fraction('1.23', 1) -- if only because rejecting it means changing the default for the 2nd arg to None and that would slow it down again. I agree that if the type of the 2nd arg isn'

[issue3219] repeated keyword arguments

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Don't do this for 2.5 please. -- nosy: +gvanrossum versions: +Python 3.0 -Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-28 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Sounds like re.UNICODE should be on by default when the pattern is a str instance. Also (per mailing list discussion) we should probably only allow matching bytes when the pattern is bytes, and matching str when the pattern

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

2008-06-30 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: That's fine. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1682> ___ ___ P

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Probably by design. There's probably even a unittest for this behavior. -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3263] Odd code fragment in ABC definitions

2008-07-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: There are tons of ways to violate Liskov in Python. Liskov is not always the right rule. NotImplemented is not appropriate -- it is only used as a magic return value from binary functions. -- resolution: -> rejected sta

[issue1580] Use shorter float repr when possible

2008-07-03 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'd like to reopen this. I'm still in favor of something like to this algorithm: def float_repr(x): s = "%.16g" % x if float(s) != x: s = "%.17g" % x s1 = s if s1.startswith('-'):

[issue3008] Let bin/oct/hex show floats

2008-07-03 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Raymond, Mark? Is a new patch with tests and docs forthcoming? Have you decided on the API yet? I'm willing to approve this for beta 2, which will be around July 15. -- assignee: gvanrossum -&

[issue1580] Use shorter float repr when possible

2008-07-03 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Here's a rough-and-tumble implementation of that idea, for Py3k. Added file: http://bugs.python.org/file10808/float.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue1580] Use shorter float repr when possible

2008-07-03 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: That is truly maddening! :-( I guess Noam's proposal to return str(x) if float(str(x)) == x makes more sense then. I don't really care as much about 1.234567890123 vs. 1.234567890122 as I care about 1.2345 vs. 1.

[issue3008] Let bin/oct/hex show floats

2008-07-04 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: BTW couldn't you use the %a feature built into C99 to implement this? (Both input and output?) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3008] Let bin/oct/hex show floats

2008-07-04 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Fri, Jul 4, 2008 at 7:12 AM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > Sure. What about non-C99 machines? I thought Python code was only &g

[issue1580] Use shorter float repr when possible

2008-07-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Here's a fixed patch, float2.diff. (The previous one tasted of an earlier attempt.) Added file: http://bugs.python.org/file10840/float2.diff ___ Python tracker <[EMAIL PRO

[issue2542] PyErr_ExceptionMatches must not fail

2008-07-09 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: FWIW some comments by Amaury are here: http://codereview.appspot.com/483 -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-07-09 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Does anyone care about this still? I added some comments on http://codereview.appspot.com/504 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3331] Possible inconsistency in behavior of list comprehensions vs. generator expressions

2008-07-10 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: IMO the generator expression is wrong in interpreting the StopIteration as a break. It should fail just like the list comprehension fails. -- nosy: +gvanrossum ___ Python tracker &

[issue3231] re.compile fails with some bytes patterns

2008-07-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Can we make sure this is fixed for beta 3? (Beta 2 would be great too, but it's getting late.) -- nosy: +gvanrossum priority: -> deferred blocker ___ Python tracker <[EMAIL

[issue3008] Let bin/oct/hex show floats

2008-07-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: If you two can agree that this code is good, I'm ok with the API. I would emphasize in the docs and NEWS entry though that .hex() is an *instance* method while .fromhex() is a *class* method. ___

[issue1503] test_xmlrpc is still flakey

2008-07-15 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Does anybody still care about this? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3375] _multiprocessing.so build problems

2008-07-16 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: When a second 'make' fixes things, that usually means that there's a dependency on another extension that is built later in the normal build sequence. I vaguely we had this before and fixed it by reordering things. Gr

[issue3375] _multiprocessing.so build problems

2008-07-16 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Here is the output of python -v during "import _multiprocessing". Maybe this gives someone a clue? >>> import _multiprocessing dlopen("/Users/guido/p3/build/lib.macosx-10.3-i386-3.0/_multiprocessing.

[issue3375] _multiprocessing.so build problems

2008-07-16 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: The order thing was a red herring. However, I understand what's going on now. Somebody else can fix it hopefully. So what's going on: In the Python instance that runs setup.py, importing _multiprocessing fails. But

[issue3375] _multiprocessing.so build problems

2008-07-17 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I've checked in a fix (r65063) that simply clear sys.path_importer_cache right before the attempted import of the freshly-built extension. This seems to work. -- assignee: jnoller -> gvanrossum resolution: -> f

[issue3436] csv.DictReader inconsistency

2008-07-29 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I know this has been closed, but perhaps the fieldnames attribute could be made into a property that reads the first line of the file if it hasn't been read yet? -- nosy: +gvanrossum ___

[issue3468] Satisfy her lovemaking desire

2008-07-29 Thread Guido van Rossum
New submission from Guido van Rossum <[EMAIL PROTECTED]>: Give your lady only the very best, find out how here http://www.pinehelp.com/ -- messages: 70414 nosy: gvanrossum severity: normal status: open title: Satisfy her lovemaking desire ___

[issue2542] PyErr_ExceptionMatches must not fail

2008-07-29 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Ping? Anyone cares about this? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2542> ___

[issue2690] Precompute range length

2008-07-31 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On the issue of whether len(range()) should be allowed to be > sys.maxsize, I think this should be allowed. I think in the future we should change the __len__ protocol to allow unbounded lengths. Even today, I think range(10**100

[issue3487] sre "bytecode" verifier

2008-08-01 Thread Guido van Rossum
New submission from Guido van Rossum <[EMAIL PROTECTED]>: Attached is a verifier for the binary code used by the _sre module (this is often called bytecode, though to distinguish it from Python bytecode I put it in quotes). I wrote this for Google App Engine, and am making the patch ava

[issue3487] sre "bytecode" verifier

2008-08-01 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > 3. Google considered this enough of a potential problem to pre-emptively > fix it. Now that that problem has been publicly exposed, other careful > users will expect it to be fixed and will find Python more attractive >

[issue3487] sre "bytecode" verifier

2008-08-04 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Submitted to 2.6 as r65544. Will propagate to 3.0 as it gets merged -- should be a perfect merge. Antoine: the re module has tons of unittests; showing that attempts to break in are thwarted would be pretty boring. ;-) --

[issue2305] Update What's new in 2.6

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: How's this coming along? -- versions: +Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2389] Array pickling exposes internal memory representation of elements

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Agreed, this has been broken for a long time, and few people have noticed or complained. Let's wait. -- assignee: gvanrossum -> versions: +Python 2.7, Python 3.1 -Python 2

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: The two segfaults reported in msg64682 are still there in 2.6. I'm elevating this to release blocker but don't have time to fix this myself. -- assignee: gvanrossum -> priority: critical -> release blocker

[issue1717] Get rid of more refercenes to __cmp__

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Can someone other than me test and apply this? It seems still relevant, and __cmp__ is not coming back. -- assignee: gvanrossum -> ___ Python tracker <[EMAIL PROTE

[issue1518] Fast globals/builtins access (patch)

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Won't have time myself. -- assignee: gvanrossum -> priority: critical -> normal ___ Python tracker <[EMAIL PROTECTED]> <http:/

[issue1616] compiler warnings

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Let someone else review this. -- assignee: gvanrossum -> priority: critical -> normal ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: How's this going? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2235> ___ _

[issue3262] re.split doesn't split with zero-width regex

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I think it's better to leave this alone. Such a subtle change is likely to trip over more people in worse ways than the alleged "bug". -- resolution: -> rejected __

[issue1503] test_xmlrpc is still flakey

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Without a patch this will not improve. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue616013] cPickle documentation incomplete

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: 2.6 should keep the original cPickle, warts and all, for backwards compatibility. I'd be okay though with also having _pickle there -- just don't call in cPickle (and don't import it

[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Nobody seems to care enough. -- resolution: -> rejected ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue2310] Reorganize the 3.0 Misc/NEWS file

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Let's see if we can fix this by beta3. -- assignee: gvanrossum -> priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> <http:/

[issue2590] S_unpack_from() Read Access Violation

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Ping? Patch? -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1309567] linecache module returns wrong results

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Is this still relevant? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1309567> ___ _

[issue2305] Update What's new in 2.6

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Great! The same cannot be said of the 3.0 version, which is on my plate. I wonder if you have an opinion on what to do with features that were initially targeted for 3.0 and then backported to 2.6. Should these appear in "wh

[issue3506] Change buffer/memoryview DeprecationWarning

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Definitely don't bring buffer() back in 3.0! It needs to die. If 2to3 can do this reasonably well, let's do that. -- nosy: +gvanrossum ___ Python tracker <[EMAI

[issue2305] Update What's new in 2.6

2008-08-05 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks for the feedback, I'll do that. I have 50% time instead of 20%, though it doesn't feel that way lately. ;-) ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue2834] re.IGNORECASE not Unicode-ready

2008-08-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Let's make sure the release manager is OK with this. -- nosy: +barry ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Bill Janssen's "patch" breaks two unittests: test_email and test_http_cookiejar. Details for test_email: == ERROR: test_rfc2231_bad_

[issue3506] Change buffer/memoryview DeprecationWarning

2008-08-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Well, if it can't replace buffer() then the warning needs to change to > just flat-out state that buffer() is gone and not suggest any > replacement. +1. buffer() stinks. memoryview() rules. They don't hva

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Dear GvR, New code review comments by GvR have been published. Please go to http://codereview.appspot.com/2827 to read them. Message: Hi Matt, Here's a code review of your patch. I'm leaning more and more towards want

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: IMO it would be better not to confuse matters my having os.fsync() call fullfsync(); it's better to add a separate os.fullfsync() call on platforms that support it. That way the application can choose. I suppose Apple had a

[issue3514] pickle segfault with infinite loop in __getattr__

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Does this occur in 2.6 or 2.5? -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3516] string formatting quirk using %.%

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: It's straightforward if you consider the implementation of the requirement that %% renders a single percent sign: the second % is parsed just like any other formatting code (i, d, f, etc.) and the stuff between the firs

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Based on discussion in python-dev, I'm rejecting this patch. Open a new one if you want to make F_FULLSYNC available. -- resolution: -> rejected status: open -> closed _

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 8:03 AM, Matt Giuca <[EMAIL PROTECTED]> wrote: > > Matt Giuca <[EMAIL PROTECTED]> added the comment: > > I'm also attaching a "metapatch" - diff from patch 7 to patc

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'm sorry to have lead you this way, but since there is no fullfsync() system call, IMO you should just make the F_FULLFSYNC constant available. That should go into fcntlmodule.c. -- nosy:

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks, checked into the trunk as r65581. -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 2:17 PM, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Bill Janssen <[EMAIL PROTECTED]> added the comment: > > My main fear with this patch is that "unquote" will become seen

[issue3521] file.readline: bad exception recovery

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Good catch! This looks pretty simple to fix; I think a type check is missing (actually several, there are at least two implementations in io.py). In fact, the 2.6 version of io.py already has the necessary checks. (But merging

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 3:58 PM, Bill Janssen <[EMAIL PROTECTED]> wrote: > Bill Janssen <[EMAIL PROTECTED]> added the comment: >> Your original proposal was to make unquote() behave like >> unquote_to_bytes(

[issue3514] pickle segfault with infinite loop in __getattr__

2008-08-11 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Good find Alexandre! Can you work up a patch? Would be even better if it had a unittest. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2389] Array pickling exposes internal memory representation of elements

2008-08-11 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Wouldn't that be lots and lots slower? I believe speed is one of the reasons why the binary representation is currently dumped. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2389] Array pickling exposes internal memory representation of elements

2008-08-12 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Instead of sticking to network byte order, I propose to include byte > order information in the pickle (for example as '<' or '>' like struct > does), so that pickling/unpickling between the same-e

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-12 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Matt Giuca <[EMAIL PROTECTED]> added the comment: > By the way, what is the current status of this bug? Is anybody waiting > on me to do anything? (Re: Patch 9) I'll be reviewing it today or tomorrow. From loo

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Wed, Aug 13, 2008 at 7:25 AM, Matt Giuca <[EMAIL PROTECTED]> wrote: >> I have no strong opinion on the very remaining points you listed, >> except that IMHO encode_rfc2231 with charset=None should not try to >

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: >> Now that you've spent so much time with this patch, can't you think >> of a faster way of doing this? > > Well firstly, you could replace Quoter (the class) with a "quoter" > function

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: > Bill Janssen <[EMAIL PROTECTED]> added the comment: > > Erik van der Poel at Google has now chimed in with stats on current URL > usage: > > ``...the bottom line is that escaped non-utf-8 is still quite prev

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11107/unnamed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11106/unnamed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

<    5   6   7   8   9   10   11   12   13   14   >