Re: [Python-Dev] Making staticmethod objects callable?

2006-03-01 Thread Guido van Rossum
= staticmethod(foo) Which I find sad considering all the energy debating @decorators;) In which context did you find a need for defining a static method and calling it inside the class definition? I'm guessing that what you're playing dubious scoping games. -- --Guido van Rossum (home page

Re: [Python-Dev] defaultdict and on_missing()

2006-03-01 Thread Guido van Rossum
wrong, look at Java, where you have bultin-array.length, String.length(), and Collection.size(). Give me len() any day. I believe Ruby has similar confusing diversity for looping (each/forEach). -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] test_compiler failure

2006-03-01 Thread Guido van Rossum
compileFile(Lib/test/test_contextlib.py) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] defaultdict and on_missing()

2006-03-02 Thread Guido van Rossum
is the same either way: re.compile(pattern).match(line) re.match(pattern, line) :-) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] PEP 357

2006-03-03 Thread Guido van Rossum
, but the Python version thows an exception. I think the Python API ought to be allowed to return any long value and it's up to the C API to clip it. Apart from that, I'm ready to accept the PEP. Other opinions? -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] Bug in from __future__ processing?

2006-03-03 Thread Guido van Rossum
didn't have to twist my arm. :-) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

[Python-Dev] __exit__ API?

2006-03-03 Thread Guido van Rossum
won't get to this until Monday. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] Bug in from __future__ processing?

2006-03-05 Thread Guido van Rossum
which is overwhelming but in the 2.4 docs for _future-_). In 2.5 it's already fixed; perhaps the 2.5 docs could mention that this was accidentally broken in 2.4. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list

Re: [Python-Dev] Coverity Open Source Defect Scan of Python

2006-03-06 Thread Guido van Rossum
FWIW, coverity has been busy marketing this already: http://www.pcpro.co.uk/news/84465/key-opensource-code-passes-muster.html -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] collections.idset and collections.iddict?

2006-03-06 Thread Guido van Rossum
dict don't have some kind of generalization in common -- perhaps a dict that takes a key function a la list.sort()? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] iterator API in Py3.0

2006-03-06 Thread Guido van Rossum
for item in items if item 3).next() or alternatives that would break this into multiple statements. Why is putting everything on a single line considered elegant? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list

Re: [Python-Dev] as mania

2006-03-07 Thread Guido van Rossum
___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] as mania

2006-03-07 Thread Guido van Rossum
aren't really trying, are you? What would the point be of NAME = EXPR while NAME: BLOCK del NAME (Hint: while needs EXPR to be reevaluated each time through the loop.) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev

Re: [Python-Dev] str(Exception) changed, is that intended?

2006-03-07 Thread Guido van Rossum
and class name with a dot in between; new-style classes use the same format as their repr. Making exceptions new-style classes is going to break a number of things; that's just inevitable. -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] quit() on the prompt

2006-03-07 Thread Guido van Rossum
://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] str(Exception) changed, is that intended?

2006-03-07 Thread Guido van Rossum
On 3/7/06, Barry Warsaw [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 13:35 -0800, Guido van Rossum wrote: IMO it shouldn't be fixed. Classic classes define their str to print the module name and class name with a dot in between; new-style classes use the same format as their repr. Making

Re: [Python-Dev] __exit__ API?

2006-03-08 Thread Guido van Rossum
I have a patch for this now -- python.org/sf/1445739. Please review. --Guido On 3/3/06, Guido van Rossum [EMAIL PROTECTED] wrote: A few days ago there were rumbling noises that requiring __exit__ to re-raise the exception (as I amended PEP 343 at the time) could lead to easily-missed bugs

Re: [Python-Dev] 2.5 release schedule?

2006-03-08 Thread Guido van Rossum
-- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] quit() on the prompt

2006-03-08 Thread Guido van Rossum
We seem to have a consensus. Is anybody working on a patch yet? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Making builtins more efficient

2006-03-09 Thread Guido van Rossum
On 3/9/06, Greg Ewing [EMAIL PROTECTED] wrote: BTW, are there any plans to make True and False hard constants in 3.0 (like None is now)? Maybe also others like Ellipsis, NotImplemented, etc. I don't think we should make any of these keywords. -- --Guido van Rossum (home page: http

Re: [Python-Dev] Making builtins more efficient

2006-03-10 Thread Guido van Rossum
On 3/10/06, Greg Ewing [EMAIL PROTECTED] wrote: Guido van Rossum wrote: I don't think we should make any of these keywords. Not even True and False? The only good reasons I can see for anyone wanting to shadow these are backwards compatibility ones. Not even True and False. I don't see

Re: [Python-Dev] Making builtins more efficient

2006-03-10 Thread Guido van Rossum
On 3/10/06, Neil Schemenauer [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] wrote: Not even True and False. I don't see why everything that doesn't make sense to be shadowed ought to become a keyword. That way lies madness. Have you considered whether P3K will disallow

Re: [Python-Dev] conditional expressions - add parens?

2006-03-12 Thread Guido van Rossum
competely off their keyboard. :D Given how much Python is indebted to Lisp, digs at Lisp seem particularly off-topic for this list. Fully expecting this to bounce, -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing

Re: [Python-Dev] Threading idea -- exposing a global thread lock

2006-03-13 Thread Guido van Rossum
/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] Threading idea -- exposing a global thread lock

2006-03-14 Thread Guido van Rossum
it. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Another threading idea

2006-03-14 Thread Guido van Rossum
Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list

Re: [Python-Dev] Another threading idea

2006-03-14 Thread Guido van Rossum
, a BS is about potentially blocking new requests and a TaskQueue is about blocking other work until outstanding requests are complete. Raymond -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev

[Python-Dev] Py3k branch - please stay out :-)

2006-03-14 Thread Guido van Rossum
time to start releasing and stop evolving for a few months... -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Keep default comparisons - or add a second set?

2006-03-14 Thread Guido van Rossum
! -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [Python-checkins] r43033 - in python/trunk/Lib: distutils/sysconfig.py encodings/__init__.py

2006-03-15 Thread Guido van Rossum
van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [Python-checkins] r43033 - in python/trunk/Lib: distutils/sysconfig.py encodings/__init__.py

2006-03-15 Thread Guido van Rossum
and an undotted __name__? ISTM that passing in the builtins dictionary as the globals argument ought to do the trick. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] [Python-checkins] r43033 - in python/trunk/Lib: distutils/sysconfig.py encodings/__init__.py

2006-03-15 Thread Guido van Rossum
code is safe for use with absolute imports. So, the existing approach might well be better than what I had in mind. I think so. Import hooks requires a lot of careful work. Requiring import hooks to be explicitly ported probably provides better guarantees that they actually work. -- --Guido van

Re: [Python-Dev] [Python-checkins] r43033 - in python/trunk/Lib: distutils/sysconfig.py encodings/__init__.py

2006-03-15 Thread Guido van Rossum
OLBKMhOjd3OScyhypefruhXJJ8o1SvQn4eQeGacIsYaqbohs3OEEqv3RW5o1h3Qo azV3CQn+2Fs= =qcFp -END PGP SIGNATURE- -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Py3k: Except clause syntax

2006-03-15 Thread Guido van Rossum
to be that each use of 'as' is some kind of assignment to the name after 'as' but the relationship with the thing before 'as' is different in each case. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Making staticmethod objects callable?

2006-03-15 Thread Guido van Rossum
that *have* static methods) -- since those languages don't have the ability to call methods (static or otherwise) at class definition time. So perhaps you need to dig deeper to find out *why* this is a recurring issue. -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] towards a stricter definition of sys.executable

2006-03-16 Thread Guido van Rossum
/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] bytes thoughts

2006-03-16 Thread Guido van Rossum
it a bytes array (especially since I expect it will start off as a subclass of the array.array class). I'd still like the built-in name to be 'bytes'. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] GeneratorExit inheriting from Exception

2006-03-19 Thread Guido van Rossum
got to think more about the pros and cons of making GeneratorExit as special as KeyboardInterrupt. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] GeneratorExit inheriting from Exception

2006-03-19 Thread Guido van Rossum
point since so many exceptions (user-defined or otherwise) aren't errors. Not to mention the Warnings which sometimes can be raised as Errors (but without changing their type). -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev

Re: [Python-Dev] Py3k: Except clause syntax

2006-03-19 Thread Guido van Rossum
they aren't strictly necessary to resolve syntactic ambiguity. In the style guide only, I hope. The parens that are mandatory in a few places *are* necessary to resolve ambiguity. This might be one of them. No, the original proposal (which was already in PEP 3000 anyway) is fine. -- --Guido van

Re: [Python-Dev] Python 2.5 Schedule

2006-03-19 Thread Guido van Rossum
, and if there's general agreement on the hierarchy I proposed (so far so good :), then I'd like to take a crack at implementing them. -1. See my response in the other thread. The focus on 'Error' is mistaken, and we have a large body of existing code that derives from Exception. -- --Guido van

[Python-Dev] Python 3000 Process

2006-03-19 Thread Guido van Rossum
is not to split the list. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive

Re: [Python-Dev] Python 3000 Process

2006-03-20 Thread Guido van Rossum
create that mailing list, please? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python

Re: [Python-Dev] Python 3000 Process

2006-03-20 Thread Guido van Rossum
upon checkin into svn). -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] [Python-3000] Iterators for dict keys, values, and items == annoying :)

2006-03-24 Thread Guido van Rossum
) Would that philosophy be extended to slicing operations, though? That's a question I hadn't though about yet. I'm not sure I like it, but it sure is consistent with other view APIs; like everywhere, if you need a separate object, you can place a list() around it. -- --Guido van Rossum (home page

Re: [Python-Dev] Expose the array interface in Python 2.5?

2006-03-24 Thread Guido van Rossum
there's an automatic no. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] PEP 342 support for string exceptions in throw()

2006-03-24 Thread Guido van Rossum
that in practice is never triggered. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] PEP 342 support for string exceptions in throw()

2006-03-24 Thread Guido van Rossum
On 3/24/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 02:36 PM 3/24/2006 -0800, Guido van Rossum wrote: I think it's overkill to warn for any string exceptions thrown this way. Since the only use case for using throw() is to pass an exception you just caught, I don't see that putting

Re: [Python-Dev] Another PEP 343 contextmanager glitch

2006-03-24 Thread Guido van Rossum
/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] PEP 342 support for string exceptions in throw()

2006-03-24 Thread Guido van Rossum
On 3/24/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 03:04 PM 3/24/2006 -0800, Guido van Rossum wrote: The current state is that it always allows them, right? No. It doesn't allow them. Support for string exceptions was never actually implemented; I'm trying to implement it now. Oops, I

Re: [Python-Dev] PEP 342 support for string exceptions in throw()

2006-03-24 Thread Guido van Rossum
of reminding people not to write g.throw(abc) seems artificial to me. I'd rather see less code, meaning less maintenance, and no need to remove the check later (or when I merge your changes into the p3yk branch). -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] Another PEP 343 contextmanager glitch

2006-03-24 Thread Guido van Rossum
On 3/24/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 03:05 PM 3/24/2006 -0800, Guido van Rossum wrote: Oops, that's definitely a bug. Please go ahead and fix in both places. Will do. (I'm still trying to fathom the other PEP 343 issue you brought up.) Here's the paragraph I'm proposing

Re: [Python-Dev] PEP 342 support for string exceptions in throw()

2006-03-24 Thread Guido van Rossum
OK, I give up. I'm giving you a -1 on the test for a non-empty traceback without explaining it further. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Another PEP 343 contextmanager glitch

2006-03-24 Thread Guido van Rossum
On 3/24/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 03:50 PM 3/24/2006 -0800, Guido van Rossum wrote: I'm not against recommending in the PEP that __exit__ shouldn't re-raise but instead should return False to signal a re-raise, and fixing any existing code that re-raises in __exit__

Re: [Python-Dev] GeneratorExit inheriting from Exception

2006-03-25 Thread Guido van Rossum
believe that the decision to derive an exception from BaseException instead of Exception should not be taken lightly -- lest we set the wrong example and render the nice feature we're trying to create (that except Exceptiondoes the right thing almost all of the time) useless. -- --Guido van Rossum

Re: [Python-Dev] GeneratorExit inheriting from Exception

2006-03-25 Thread Guido van Rossum
through; the latter is not raised by code at all but by the end user. I don't think GeneratorExit qualifies. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Libref sections to put new modules under?

2006-03-27 Thread Guido van Rossum
a home in the documentation yet? I seem to recall some discussion about a decorator library or functools or something of that sort. Is the with statement documented yet? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev

[Python-Dev] I'm not getting email from SF when assigned a bug/patch

2006-03-27 Thread Guido van Rossum
if you want me to take any particular action (even rejecting something) please send me a separate email! -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] I'm not getting email from SF when assigned a bug/patch

2006-03-27 Thread Guido van Rossum
On 3/27/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Guido van Rossum wrote: When you assign a bug/patch to me, somehow SourceForge doesn't send me an email. (Is this understood behavior? Can it be changed?) I believe it broke at some point, I'm pretty certain it used to work. More reason

Re: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c

2006-03-27 Thread Guido van Rossum
in any particular case? Shouldn't it be numpy's responsibility to implement both operations identically? (It's a design bug in Python that the + operation has two implementation slots. But it's difficult to fix that until Python 3000. It *will* be fixed there.) -- --Guido van Rossum (home page

Re: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c

2006-03-27 Thread Guido van Rossum
On 3/27/06, Travis E. Oliphant [EMAIL PROTECTED] wrote: Guido van Rossum wrote: On 3/27/06, Travis Oliphant [EMAIL PROTECTED] wrote: If you have Numeric or numpy installed try this: #import Numeric as N import numpy as N a = range(10) b = N.arange(10) a.__iadd__(b) print

Re: [Python-Dev] Class decorators

2006-03-27 Thread Guido van Rossum
be a good indication of feature(s) that IronPython is missing. ;) Just curious (and lazy): what magic is the implementation using that makes this work without a custom metaclass? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python

Re: [Python-Dev] Class decorators

2006-03-28 Thread Guido van Rossum
On 3/28/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 10:01 AM 3/28/2006 -0800, Guido van Rossum wrote: OK, I'm convinced (mostly by the awful hackery that Phillip so proudly exposed :-). Just as a historical note, here's where you previously rejected the same hackery as an argument

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
pronouncement, it's going to be no. It's not worth the change (in docs, user habits, etc.) and there's nothing particularly broken. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
somemodule as long as somemodule.py uses the if __name__=='__main__' convention. What does your proposal add? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
Sorry, I meant python -m somemodule. On 3/28/06, Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run __main__() with sys.argv as its

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
OK. -1 on PEP 299 it is. On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run

Re: [Python-Dev] What about PEP 299?

2006-03-29 Thread Guido van Rossum
Die, thread. Do I personally have to go into svn and reject this PEP? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] Class decorators

2006-03-29 Thread Guido van Rossum
van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] I'm not getting email from SF when assignedabug/patch

2006-03-29 Thread Guido van Rossum
to be rebutted. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail

Re: [Python-Dev] pysqlite for 2.5?

2006-03-29 Thread Guido van Rossum
the language. Sometimes I have strong feelings about the library. This doesn't seem to be one of those cases though... -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] I'm not getting email from SF whenassignedabug/patch

2006-03-29 Thread Guido van Rossum
On 3/29/06, Fredrik Lundh [EMAIL PROTECTED] wrote: Guido van Rossum wrote: Watch out for the parochialism! I like Python as much as the next guy (probably more :-) but I'm sensitive to choosing the best solution. you better make that good enough, or we'll be stuck with SF for an- other

Re: [Python-Dev] pysqlite for 2.5?

2006-03-29 Thread Guido van Rossum
in the Windows build is actually going to be a big plus (though not for me personally :-). -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Discussing the Great Library Reorganization

2006-03-29 Thread Guido van Rossum
the process and meta issues for Python 3000. (Yes, I know, I need to catch up with some threads myself. Hopefully next week when I'm no longer a single parent.) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python

Re: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c

2006-03-29 Thread Guido van Rossum
, although it would break the conceptual notion that a += b is equivalent to a = a + b when a can't be modified in-place. No, it's not reasonable, because this would fail: x = 5 x += 0.5 -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] pysqlite for 2.5?

2006-03-30 Thread Guido van Rossum
So do I. On 3/30/06, Bill Janssen [EMAIL PROTECTED] wrote: I think sqlite is just fine. I do, too. Bill -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Nasty trunk test failures

2006-03-30 Thread Guido van Rossum
) problem that only occurs when I run test_tokenize.py directly -- the doctest for decistmt() has-3.21716034272e-007 but (on my box) this outputs -3.21716034272e-07. That doesn't seem to bother it when run via regrtest.py. I'm not sure what's at fault here. -- --Guido van Rossum (home page: http

Re: [Python-Dev] gmane.comp.python.devel.3000 has disappeared

2006-03-31 Thread Guido van Rossum
the list and gmane? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] line numbers, pass statements, implicit returns

2006-04-01 Thread Guido van Rossum
not part of the language spec! :-) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] Saving the hash value of tuples

2006-04-02 Thread Guido van Rossum
rare. I think the extra required space for all tuples isn't worth the potential savings for some cases. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] String formating in python 3000

2006-04-02 Thread Guido van Rossum
/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] SF #1462485 - StopIteration raised in body of 'with' statement suppressed

2006-04-03 Thread Guido van Rossum
, whereas I think these should pass through. I see no reason for this with the current code. Perhaps a previous version of contextlib.py had this problem? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python

[Python-Dev] Need Py3k group in trackers

2006-04-03 Thread Guido van Rossum
Could one of the tracker admins add a Python-3000 group to the SF trackers (while we're still using them :-)? This is so we can easily move proposals between Python 3000 and Python 2.x status. -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] reference leaks, __del__, and annotations

2006-04-03 Thread Guido van Rossum
, but will only call the finalizer once. IOW if the resurrected object is GC'ed a second time, its finalizer won't be called. This would require a bit __del__ already called on an object, but don't we have a whole word of GC-related flags? -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] outstanding items for 2.5

2006-04-03 Thread Guido van Rossum
in the PEP, assume it has been deferred until 2.6. Also, now would be a good time to see if you have any bugs/patches assigned to you: http://sourceforge.net/my/tracker.php Cheers, n -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] SF:1463370 add .format() method to str and unicode

2006-04-03 Thread Guido van Rossum
the occasional idea first brought up on python-dev that makes more sense to move to Python 3000, or vice versa; let's all be mindful of such cases. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] outstanding items for 2.5

2006-04-03 Thread Guido van Rossum
/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Saving the hash value of tuples

2006-04-03 Thread Guido van Rossum
On 4/2/06, Noam Raphael [EMAIL PROTECTED] wrote: On 4/2/06, Guido van Rossum [EMAIL PROTECTED] wrote: I tried the change, and it turned out that I had to change cPickle a tiny bit: it uses a 2-tuple which is allocated when the module initializes to lookup tuples in a dict. I changed

Re: [Python-Dev] Should issubclass() be more like isinstance()?

2006-04-04 Thread Guido van Rossum
think of any reason why it shouldn't work. Agreed. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

Re: [Python-Dev] dis module and new-style classes

2006-04-06 Thread Guido van Rossum
___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] dis module and new-style classes

2006-04-06 Thread Guido van Rossum
Sorry, I missed the fact that this was about nested classes. Still, I don't think it's worth fixing. --Guido On 4/6/06, Georg Brandl [EMAIL PROTECTED] wrote: Guido van Rossum wrote: I think it's fine as it is. I don't think making it walk the inheritance tree is helpful; the output would

Re: [Python-Dev] int()'s ValueError behaviour

2006-04-09 Thread Guido van Rossum
/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

[Python-Dev] segfault (double free?) when '''-string crosses line

2006-04-09 Thread Guido van Rossum
: *** Deallocation of a pointer not malloced: 0x36b460; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] pdb segfaults in 2.5 trunk?

2006-04-10 Thread Guido van Rossum
, and the memory can originally come from a lot of places). Shouldn't it at least match call_readline() in Modules/readline.c, which uses PyMem_Malloc()? Also, since it's really a char array, I don't see the point of using something with Object in its name. -- --Guido van Rossum (home page: http

Re: [Python-Dev] [Python-checkins] r45321 - in python/trunk: Lib/test/test_traceback.py Lib/traceback.py Misc/NEWS

2006-04-14 Thread Guido van Rossum
on the code at the moment, I think reverting broken patches that don't have trivial test fixes is the way to go. The buildbot system is useless, otherwise. That was the right thing to do (short of fixing all the missing tests, which requires actual thinking :-). -- --Guido van Rossum (home page

Re: [Python-Dev] [Python-checkins] r45321 - in python/trunk: Lib/test/test_traceback.py Lib/traceback.py Misc/NEWS

2006-04-16 Thread Guido van Rossum
), showing the traceback is much more natural than putting a try/except around the erroneous call. So one person's ugly is another person's pretty. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] PEP 343: confusing context terminology

2006-04-18 Thread Guido van Rossum
On 4/18/06, Phillip J. Eby [EMAIL PROTECTED] wrote: I think we should correct the PEP. Yes please, go ahead. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] setuptools in 2.5.

2006-04-20 Thread Guido van Rossum
. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -- --Guido van Rossum (home page: http://www.python.org/~guido

Re: [Python-Dev] Raising objections

2006-04-20 Thread Guido van Rossum
facilities for such functionaliy. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] magic in setuptools (Was: setuptools in the stdlib)

2006-04-20 Thread Guido van Rossum
will maintain it (or if he doesn't, I expect that he would gladly do so if you asked). This has always been sufficient as a guarantee that a new module isn't orphaned. Beyond that, this objection is FUD; the circumstances of the original distutils aren't likely to be replicated here. -- --Guido van Rossum

<    3   4   5   6   7   8   9   10   11   12   >