Re: [Python-Dev] Python 3 design principles

2005-08-31 Thread Collin Winter
, ... ? from __past__ import python2 Grüße, Collin Winter ___ 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

[Python-Dev] Patch to make unittest.TestCase easier to subclass

2005-12-22 Thread Collin Winter
unittest.py from SVN revision 41775. Included with the patch are before and after versions of my subclass showing the impact of the change to unittest.TestCase. Thanks, Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

[Python-Dev] Bug in Py_InitModule4

2005-12-29 Thread Collin Winter
, Collin Winter ___ 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] Checking in a broken test was: Re: [Python-checkins]r41940 - python/trunk/Lib/test/test_compiler.py

2006-01-15 Thread Collin Winter
that a failure is not a regression, and is pro- bably not caused by something that the developer just did. When I've implemented this kind of thing in the past, I've generally called the decorator/marker/whatever TODO (or some variation of caps/lowercase). /bikeshed Thanks, Collin Winter

[Python-Dev] Faster list comprehensions

2006-03-03 Thread Collin Winter
by taking the list comprehension examples in Lib/test/test_grammar.py and running them in a loop a few thousand times. Python revision 42780 took 1.69 seconds to run the examples 1 times; the updated version takes 1.41 seconds. Thanks, Collin Winter

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Collin Winter
, or if Guido is strongly set against it being in the code, we should at least put it in the documentation as an example of how to use 'shift_path_info()' in wsgiref.util. Perhaps this could go in Demo/wsgiref/? Collin Winter ___ Python-Dev mailing list

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Collin Winter
Hye-Shik Chang as the maintainer. I'd very much like to see functional renamed to functools, and I've cooked up the necessary changes to handle the move (SF #1478788). Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Unhashable objects and __contains__()

2006-06-04 Thread Collin Winter
On 6/4/06, Guido van Rossum [EMAIL PROTECTED] wrote: On 6/3/06, Georg Brandl [EMAIL PROTECTED] wrote: Collin Winter wrote: Idea: what if Python's -O option caused PySequence_Contains() to convert all errors into False return values? It would certainly give me an uneasy feeling

Re: [Python-Dev] xturtle.py a replacement for turtle.py(!?)

2006-06-28 Thread Collin Winter
generally stay out of bug-fix point releases, xturtle doesn't seem to rise to that level (and hence, those restrictions). Thanks, Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] Which version of distutils to ship with Python 2.5?

2006-07-26 Thread Collin Winter
, Collin Winter ___ 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] Which version of distutils to ship with Python 2.5?

2006-07-27 Thread Collin Winter
On 7/27/06, Martin v. Löwis [EMAIL PROTECTED] wrote: Collin Winter wrote: Is it intentional that Python 2.5 is (currently) shipping with distutils 2.4.0, while Python 2.4 (at least 2.4.1, 2.4.2 and 2.4.3) shipped with distutils 2.4.1? Judging from my own tests, distutils 2.4.1 fixed

[Python-Dev] Questions on unittest behaviour

2006-08-18 Thread Collin Winter
takes priority: is the classmethod a test method within a test case class or is it a callable? The same issue applies to staticmethods as well. Once I get answers to these questions, I can finish off the last few bits of the test suite and have it ready for 2.5-final. Thanks, Collin Winter

Re: [Python-Dev] Questions on unittest behaviour

2006-08-19 Thread Collin Winter
- __exit__ is allowed to assume that it will only be called if __enter__ succeeded, because that is part of the semantics of the with statement. I can accept that. Any thoughts on the other four items? Collin Winter ___ Python-Dev mailing list Python-Dev

[Python-Dev] A test suite for unittest

2006-08-31 Thread Collin Winter
the False spelling. Thanks, Collin Winter ___ 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-3000] Warning for 2.6 and greater

2007-01-10 Thread Collin Winter
burden. Collin Winter ___ 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] New syntax for 'dynamic' attribute access

2007-02-11 Thread Collin Winter
, allusions to MATLAB and assembly indirection syntax not withstanding. Ignoring the syntax, I'm -1 on the 2-argument form, especially since it can only be used in an expression context; getattr() can be kept around for this. I'm +0 on the idea, -1 on the means. Collin Winter

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Collin Winter
. That's just begging for trouble. Collin Winter ___ 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

[Python-Dev] Recent experience with the _ast module

2007-02-12 Thread Collin Winter
statement. Thoughts? Thanks, Collin Winter ___ 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] New syntax for 'dynamic' attribute access

2007-02-13 Thread Collin Winter
attrview(), -1 on the syntax proposal. Collin Winter ___ 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] Recent experience with the _ast module

2007-02-13 Thread Collin Winter
is a sequence of statements. Thanks, Collin Winter ___ 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] Recent experience with the _ast module

2007-02-14 Thread Collin Winter
On 2/14/07, Martin v. Löwis [EMAIL PROTECTED] wrote: Collin Winter schrieb: 2) It turned out that {BinOp, BoolOp,AugAssign,etc}.op were already singleton instances of their respective classes. I've changed asdl_c.py to no longer emit the *_singleton names and to use the corresponding

Re: [Python-Dev] Recent experience with the _ast module

2007-02-16 Thread Collin Winter
On 2/16/07, Brett Cannon [EMAIL PROTECTED] wrote: On 2/16/07, Collin Winter [EMAIL PROTECTED] wrote: On 2/14/07, Martin v. Löwis [EMAIL PROTECTED] wrote: Collin Winter schrieb: What's inconsistent about it? That classes are being used for the _ast.{Add,Sub,Mult,etc} names

Re: [Python-Dev] Recent experience with the _ast module

2007-02-17 Thread Collin Winter
On 2/17/07, Martin v. Löwis [EMAIL PROTECTED] wrote: Collin Winter schrieb: But Pass, Break, Continue and Ellipsis aren't in the same category as Add, Mult, Div, etc.. The former stand alone That's not true. Pass, Break, Continue don't stand alone; they are members of the body sequence

Re: [Python-Dev] Python-3000 upgrade path

2007-02-27 Thread Collin Winter
will be able to convert 90% of Python 2.x automatically and offer a solid, step-by-step plan for manually recoding the remaining 10%. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] with_traceback

2007-02-28 Thread Collin Winter
to the exception. If attaching the traceback to the exception is bothering you, you should take a look at the other attributes PEP 344 introduces: __cause__ and __context__. I'd say what needs another look is the idea of pre-creating a single exception instance and repeatedly raising it. Collin Winter

[Python-Dev] PEP 344 (was: with_traceback)

2007-03-02 Thread Collin Winter
and __context__ attributes. Do those who oppose __traceback__ also oppose __cause__ and __context__? Should PEP 344 be rejected on these grounds, or should we just learn not to pre-instance exceptions if we're interested in these attributes? Collin Winter

Re: [Python-Dev] Encouraging developers

2007-03-05 Thread Collin Winter
frustrated because they can't handle their patches well enough with the current tools? [snip] Plus it's just handy sometimes to be able to do commits when you lack network access. Seconded. I don't know how much it impacts new developers, but I know I get frustrated because of this. Collin Winter

Re: [Python-Dev] Encouraging developers

2007-03-05 Thread Collin Winter
also be helpful to have some loose guidelines/requirements for how to become a module maintainer (e.g., we're looking for the following traits...). Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

[Python-Dev] Tracker rights

2007-03-07 Thread Collin Winter
Hi, Could I be granted rights to the SF tracker? I'm going through and reviewing some older patches, and I'd like to be able to close invalid/rejected patches (eg, 1492509) and upload changed patches. My SF username is collinwinter. Thanks, Collin Winter

Re: [Python-Dev] Fwd: Re: [Python-3000] Removing functions from the operator module

2007-03-07 Thread Collin Winter
On 3/7/07, Raymond Hettinger [EMAIL PROTECTED] wrote: [Collin Winter] I don't suppose you've changed your mind about removing operator.truth and operator.abs in the seven months since this discussion? [GvR] No, though I think that operator.truth should be renamed to operator.bool. I

[Python-Dev] Moving test_unittest up in the test order

2007-03-08 Thread Collin Winter
tests to fail, we don't have to wait until the end of the test run to find out. Thoughts? Collin Winter ___ 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] Moving test_unittest up in the test order

2007-03-08 Thread Collin Winter
On 3/8/07, Brett Cannon [EMAIL PROTECTED] wrote: On 3/8/07, Collin Winter [EMAIL PROTECTED] wrote: Now that unittest has a test suite, it would seem to make sense that it should be fairly high up in the testing order, since most of the regression suite depends on it. I'd like to have

Re: [Python-Dev] Renaming Include/object.h

2007-03-08 Thread Collin Winter
of action ever decided on for this issue, or was the consensus that it would break too much code? If the latter, what about making the change for Python 3000? Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] datetime module enhancements

2007-03-09 Thread Collin Winter
. if the date and datetime differ only in the time part then they are equal. This is consistent but becomes confusing in other situations such as when subtracting dates. Any thoughts on this? Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] [Python-checkins] buildbot warnings in g4 osx.4 trunk

2007-03-09 Thread Collin Winter
) f = open(test_support.TESTFN + 1, wb) try: Collin Winter On 3/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The Buildbot has detected a new failure of g4 osx.4 trunk. Full details are available at: http://www.python.org/dev/buildbot/all/g4%2520osx.4%2520trunk/builds/1814

Re: [Python-Dev] datetime module enhancements

2007-03-09 Thread Collin Winter
On 3/9/07, Collin Winter [EMAIL PROTECTED] wrote: On the subject of datetime enhancements, I came across an SF patch (#1673403) the other day that proposed making it possible to compare date and datetime objects. Quoting from the patch summary: Comparing a date to a datetime currently

Re: [Python-Dev] datetime module enhancements

2007-03-09 Thread Collin Winter
On 3/9/07, Steven Bethard [EMAIL PROTECTED] wrote: On 3/9/07, Collin Winter [EMAIL PROTECTED] wrote: One solution that just occurred to me -- and that skirts the issue of choosing an interpretation -- is that, when comparing date and datetime objects, the datetime's .date() method is called

Re: [Python-Dev] datetime module enhancements

2007-03-10 Thread Collin Winter
On 3/9/07, Christian Heimes [EMAIL PROTECTED] wrote: Collin Winter schrieb: I can't say I'm well-versed in the intricacies of date/time issues, but what you say makes sense. This is exactly why I brought this patch up here : ) Oh h...! Seems like I've opened a can of worms here. I only

[Python-Dev] unittest enhancement for TestCase classes hierarchies

2007-03-10 Thread Collin Winter
not play well, in this case, means that your base classes will be picked up against your will if they subclass TestCase. I like the patch and have worked up tests and doc changes for it. Any objections to including this in 2.6? Collin Winter ___ Python

Re: [Python-Dev] datetime module enhancements

2007-03-10 Thread Collin Winter
On 3/10/07, Robert Brewer [EMAIL PROTECTED] wrote: On 3/9/07, Collin Winter [EMAIL PROTECTED] wrote: On the subject of datetime enhancements, I came across an SF patch (#1673403) the other day that proposed making it possible to compare date and datetime objects. One

Re: [Python-Dev] datetime module enhancements

2007-03-10 Thread Collin Winter
On 3/10/07, Collin Winter [EMAIL PROTECTED] wrote: On 3/9/07, Christian Heimes [EMAIL PROTECTED] wrote: Collin Winter schrieb: I can't say I'm well-versed in the intricacies of date/time issues, but what you say makes sense. This is exactly why I brought this patch up here : ) Oh h

Re: [Python-Dev] unittest enhancement for TestCase classes hierarchies

2007-03-10 Thread Collin Winter
On 3/10/07, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Sat, 10 Mar 2007 09:13:28 -0600, Collin Winter [EMAIL PROTECTED] wrote: In my continuing trawl through the SF patch tracker, I came across #1244929 (http://python.org/sf/1244929), which causes TestLoader.loadTestsFromModule() to skip

Re: [Python-Dev] datetime module enhancements

2007-03-11 Thread Collin Winter
you want, since datetime clearly isn't the module you want. Anyone desperate to discuss the nuances and finer points of dates and time algebras in Python, take it to python-ideas. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Backports of standard library modules

2007-03-11 Thread Collin Winter
or short-circuits interminable bikeshedding threads; see Ben North's exemplary work on the (ultimately rejected) PEP on dynamic attribute access syntax from February 2007 (http://mail.python.org/pipermail/python-dev/2007-February/, search for his name). Collin Winter

[Python-Dev] Folding test_operations in to test_dict

2007-03-11 Thread Collin Winter
that would seem at home in test_dict. Before I commit this, though, I want to ask: is there a reason test_operations is separate? I notice that it's listed in regrtest.py in the run these tests before everything else list, which made me think test_operations is on its own for a reason. Collin Winter

Re: [Python-Dev] Fwd: Re: [Python-3000] Removing functions from the operator module

2007-03-12 Thread Collin Winter
On 3/11/07, Armin Rigo [EMAIL PROTECTED] wrote: Hi Collin, On Wed, Mar 07, 2007 at 11:53:45PM -0600, Collin Winter wrote: bool() and abs() aren't syntax, so I would never look in operator. abs() is not syntax but bool() is part of every syntactic construction that takes a truth value

Re: [Python-Dev] Python-3000 upgrade path

2007-03-12 Thread Collin Winter
he'll hear from me if anything goes wrong with it :). I've started work on Capabilities and Limitations sections for the 2to3 README: http://svn.python.org/view/sandbox/trunk/2to3/README?view=markup. I intend for them to provide a comprehensive look at what 2to3 can and can't do. Collin Winter

Re: [Python-Dev] Bug in inspect module

2007-03-17 Thread Collin Winter
once before: see bug #1628987 (http://python.org/sf/1628987). The problem (in the bug report, at least) is that the source file changes between compilation and when findsource() is called, and findsource() picks up the modified version. Collin Winter

Re: [Python-Dev] trunk and 2.5 are borken

2007-03-21 Thread Collin Winter
On 3/21/07, Martin v. Löwis [EMAIL PROTECTED] wrote: test_posixpath is failing in: test_relpath This is due to #1339796, r54419. I left a comment in the tracker. This is my check-in. I'll have a fix shortly. Collin Winter ___ Python-Dev mailing

[Python-Dev] Contents of test_bool

2007-03-21 Thread Collin Winter
on it. Collin Winter ___ 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] Italic text in the manual

2007-03-29 Thread Collin Winter
appreciate if anyone with stronger latex-foo could take a look. Thanks, Collin Winter [1] - http://docs.python.org/dev/3.x/lib/module-atexit.html ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] test_normalization failures across community buildbots

2007-04-16 Thread Collin Winter
being cleaned out between test runs. Collin Winter ___ 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] test_normalization failures across communitybuildbots

2007-04-17 Thread Collin Winter
On 4/16/07, Raymond Hettinger [EMAIL PROTECTED] wrote: [Collin Winter] This should be fixed in r54844. The problem was that the availability of the urlfetch resource wasn't being checked early enough and so test_support.run_suite() was converting the ResourceDenied exception

Re: [Python-Dev] minidom - new-style classes?

2007-04-17 Thread Collin Winter
=class%5Cs%2B.%2B%5C%28.*minidom%5C.btnG=Search Whether any of those uses will break if switched to new-style class, I can't say. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] Tweaking the stdlib test infrastructure

2007-04-23 Thread Collin Winter
that incoming classes inherit as they're supposed to. But that sounds like a lot of work: yes, but that's what we have regexes for. Most of this work can be done with a few global search-and-replace operations. So: any objections to making this change? Collin Winter

Re: [Python-Dev] Tweaking the stdlib test infrastructure

2007-04-24 Thread Collin Winter
on third-party unittest code. Collin Winter ___ 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] New Super PEP

2007-04-28 Thread Collin Winter
solution or a migration strategy (e.g., a 2to3 fixer). Without a clear-cut way of addressing existing code, this idea is toast. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] New Super PEP

2007-04-29 Thread Collin Winter
about method signatures, but I think that dictum applies equally well in this case. Also, it's my understanding that not all Python implementations have an easy analogue to CPython's frames; have you given any thought to whether and how PyPy, IronPython, Jython, etc, will implement this? Collin

Re: [Python-Dev] New Super PEP

2007-04-29 Thread Collin Winter
/python-3000/2007-April/006811.html More generally, you're ignoring all the proposals along the line of let's fix the super type without making it a keyword. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] New Super PEP

2007-04-29 Thread Collin Winter
On 4/29/07, Calvin Spealman [EMAIL PROTECTED] wrote: On 4/29/07, Collin Winter [EMAIL PROTECTED] wrote: On 4/29/07, Calvin Spealman [EMAIL PROTECTED] wrote: [snip] I still wasn't really aware of any alternative suggestions that need to be included in this. Here are two off the top

Re: [Python-Dev] New Super PEP

2007-04-29 Thread Collin Winter
is to remove the first and third forms from the language, please justify their removal in your PEP, including your proposed work-around for their use-cases. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] New Super PEP

2007-04-29 Thread Collin Winter
On 4/29/07, Calvin Spealman [EMAIL PROTECTED] wrote: On 4/29/07, Collin Winter [EMAIL PROTECTED] wrote: What if the instance isn't called self? PEP 3099 states that self will not become implicit; it's talking about method signatures, but I think that dictum applies equally well in this case

Re: [Python-Dev] accepted peps that should be final?

2007-05-18 Thread Collin Winter
This is implemented (I'll update the PEP to reflect this). Has a decision been made as to whether 2.6 will support both , and as in except statements? Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] accepted peps that should be final?

2007-05-18 Thread Collin Winter
On 5/18/07, Neal Norwitz [EMAIL PROTECTED] wrote: On 5/18/07, Collin Winter [EMAIL PROTECTED] wrote: SA 3110 Catching Exceptions in Python 3000 Winter This is implemented (I'll update the PEP to reflect this). Has a decision been made as to whether 2.6 will support both

Re: [Python-Dev] Avoiding cascading test failures

2007-08-28 Thread Collin Winter
on their dependency graph, which could be a step toward addressing the above point. But despite that, I think it's a cool idea and worth pursuing. Could you set up a branch (probably of py3k) so we can see how this plays out in the large? Collin Winter

Re: [Python-Dev] incompatible unittest changes

2007-10-19 Thread Collin Winter
for unittest. If you can find a way to implement the functionality you want *and* keep the test suite reasonably straightforward, I'll be happy to review your patch. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Collin Winter
like well-formed Python and would be a maintenance nightmare. Collin Winter ___ 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] Python Library Addition: First-class Procedure Signatures

2007-11-14 Thread Collin Winter
). Have you seen http://www.python.org/dev/peps/pep-0362/? It sounds awfully similar to what you're proposing here. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Simple syntax proposal: not is

2008-01-25 Thread Collin Winter
replace it is still pretty simple. not is makes no sense to -- and is not easily parsed by -- my English-native mind. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] future_builtins (was: Backporting PEP 3127 to trunk)

2008-02-24 Thread Collin Winter
On Sat, Feb 23, 2008 at 8:06 AM, Guido van Rossum [EMAIL PROTECTED] wrote: I don't think a -3 warning for oct or hex would do any good. I do think map() and filter() should issue a warning under -3 when the first arg is None. (Or does 2to3 detect this now?) 2to3 does detect that: it will

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-24 Thread Collin Winter
out in place). Yep. That's something I'd eventually like to correct by adding an interactive mode (if 2to3 is unsure about a given fix, it can ask the user). It's on my todo list for PyCon. Collin Winter except X as y: in 3.0 this has different semantics -- y is explicitly deleted at the end

Re: [Python-Dev] Auto-Assignment

2008-03-06 Thread Collin Winter
have assigned 2to3 to Collin Winter (this was already implemented as a special case), and Documentation and Sphinx to Georg Brandl. Thanks! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] 2.6 and 3.0 tasks

2008-03-16 Thread Collin Winter
assignment statements in a row. I'd also like something more expressive: the current DSL can't express recursive patterns. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] 2.6 and 3.0 tasks

2008-03-16 Thread Collin Winter
On Sun, Mar 16, 2008 at 10:17 AM, Christian Heimes [EMAIL PROTECTED] wrote: Collin Winter wrote: The biggest win in terms of performance would be to reimplement the pattern matching engine used by the fixers.: it by far dominates the running time, taking 99+% of the runtime when I ran

Re: [Python-Dev] Decoder functions accept str in py3k

2009-01-07 Thread Collin Winter
and git to skip whitespace-only changes. Just-spent-an-hour-fixing-screwed-up-indents-in-changes-to-Python/*.c-ly, Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Partial function application 'from the right'

2009-01-29 Thread Collin Winter
On Thu, Jan 29, 2009 at 6:12 AM, Ben North b...@redfrontdoor.org wrote: Hi, I find 'functools.partial' useful, but occasionally I'm unable to use it because it lacks a 'from the right' version. E.g., to create a function which splits a string on commas, you can't say # Won't work when

Re: [Python-Dev] Partial function application 'from the right'

2009-02-03 Thread Collin Winter
haven't seen any real code presented that would benefit from partial.skip or partial_right. Collin Winter ___ 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] Partial function application 'from the right'

2009-02-03 Thread Collin Winter
On Tue, Feb 3, 2009 at 11:53 AM, Antoine Pitrou solip...@pitrou.net wrote: Collin Winter collinw at gmail.com writes: Have any of the original objections to Calvin's patch (http://bugs.python.org/issue1706256) been addressed? If not, I don't see anything in these threads that justify

Re: [Python-Dev] A suggestion: Do proto-PEPs in Google Docs

2009-02-19 Thread Collin Winter
On Thu, Feb 19, 2009 at 7:17 PM, Stephen J. Turnbull turnb...@sk.tsukuba.ac.jp wrote: On Python-Ideas, Guido van Rossum writes: On Thu, Feb 19, 2009 at 2:12 AM, Greg Ewing wrote: Fifth draft of the PEP. Re-worded a few things slightly to hopefully make the proposal a bit clearer up

Re: [Python-Dev] IO implementation: in C and Python?

2009-02-19 Thread Collin Winter
On Thu, Feb 19, 2009 at 9:07 PM, Guido van Rossum gu...@python.org wrote: On Thu, Feb 19, 2009 at 8:38 PM, Brett Cannon br...@python.org wrote: On Thu, Feb 19, 2009 at 19:41, Benjamin Peterson benja...@python.org wrote: As we prepare to merge the io-c branch, the question has come up [1]

[Python-Dev] Pickler/Unpickler API clarification

2009-03-05 Thread Collin Winter
I'm working on some performance patches for cPickle, and one of the bigger wins so far has been replacing the Pickler's memo dict with a custom hashtable (and hence removing memo's getters and setters). In looking over this, Jeffrey Yasskin commented that this would break anyone who was accessing

Re: [Python-Dev] Pickler/Unpickler API clarification

2009-03-06 Thread Collin Winter
On Fri, Mar 6, 2009 at 10:01 AM, Michael Haggerty mhag...@alum.mit.edu wrote: Antoine Pitrou wrote: Le vendredi 06 mars 2009 à 13:44 +0100, Michael Haggerty a écrit : Antoine Pitrou wrote: Michael Haggerty mhagger at alum.mit.edu writes: It is easy to optimize the pickling of instances by

Re: [Python-Dev] 3.1 performance

2009-03-08 Thread Collin Winter
(AMD64, Intel(R) Core(TM)2 CPU T7600  @ 2.33GHz). Note that of the benchmarks tested, PyBench benefits the most from threaded eval loop designs. Other systems benefit less; for example, Django template benchmarks were only sped up by 7-8% when I was testing it. Collin Winter

Re: [Python-Dev] speeding up PyObject_GetItem

2009-03-24 Thread Collin Winter
2009/3/24 Daniel Stutzbach dan...@stutzbachenterprises.com: On Tue, Mar 24, 2009 at 10:13 AM, Mark Dickinson dicki...@gmail.com wrote: 2009/3/24 Daniel Stutzbach dan...@stutzbachenterprises.com: [...] 100 nanoseconds, py3k trunk: ceval - PyObject_GetItem (object.c) - list_subscript

Re: [Python-Dev] GPython?

2009-03-26 Thread Collin Winter
3107 explicitly avoids, and I'm not sure Unladen Swallow (or anyone else) would want to take the plunge into coming up with broadly-acceptable type systems for Python. That would be a bikeshed discussion of such magnitude, you'd have to invent new colors to paint the thing. Collin Winter [1] - http

Re: [Python-Dev] GPython?

2009-03-26 Thread Collin Winter
On Thu, Mar 26, 2009 at 11:26 PM, Alexandre Vassalotti alexan...@peadrop.com wrote: On Thu, Mar 26, 2009 at 11:40 PM, Collin Winter coll...@gmail.com wrote: In fact, right now I'm adding a last few tests before putting our cPickle patches up on the tracker for further review. Put me

Re: [Python-Dev] GPython?

2009-03-27 Thread Collin Winter
On Fri, Mar 27, 2009 at 5:50 AM, Paul Moore p.f.mo...@gmail.com wrote: 2009/3/27 Collin Winter coll...@gmail.com: In particular, Windows support is one of those things we'll need to address on our end. LLVM's Windows support may be spotty, or there may be other Windows issues we inadvertently

Re: [Python-Dev] Partial 2to3?

2009-03-27 Thread Collin Winter
changes (except Foo as exc)? Sure, that's easily possible: run 2to3 -f some_fixer,other_fixer,this_fixer,that_fixer. You can get a full list of fixers using the --list-fixes option. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] 3to2 Project

2009-03-30 Thread Collin Winter
On Mon, Mar 30, 2009 at 7:44 AM, Jesse Noller jnol...@gmail.com wrote: During the Language summit this past Thursday, pretty much everyone agreed that a python 3 to python 2 tool would be a very large improvement in helping developers be able to write pure python 3 code. The idea being a large

Re: [Python-Dev] PyDict_SetItem hook

2009-04-01 Thread Collin Winter
On Wed, Apr 1, 2009 at 4:29 PM, John Ehresman j...@wingware.com wrote: I've written a proof of concept patch to add a hook to PyDict_SetItem at  http://bugs.python.org/issue5654  My motivation is to enable watchpoints in a python debugger that are called when an attribute or global changes.  I

Re: [Python-Dev] PyDict_SetItem hook

2009-04-03 Thread Collin Winter
On Fri, Apr 3, 2009 at 2:27 AM, Antoine Pitrou solip...@pitrou.net wrote: Thomas Wouters thomas at python.org writes: Pystone is pretty much a useless benchmark. If it measures anything, it's the speed of the bytecode dispatcher (and it doesn't measure it particularly well.) PyBench isn't

Re: [Python-Dev] PyDict_SetItem hook

2009-04-03 Thread Collin Winter
On Fri, Apr 3, 2009 at 9:43 AM, Antoine Pitrou solip...@pitrou.net wrote: Thomas Wouters thomas at python.org writes: Really? Have you tried it? I get at least 5% noise between runs without any changes. I have gotten results that include *negative* run times. That's an implementation

Re: [Python-Dev] PyDict_SetItem hook

2009-04-03 Thread Collin Winter
On Fri, Apr 3, 2009 at 10:28 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Collin Winter wrote: As part of the common standard library and test suite that we agreed on at the PyCon language summit last week, we're going to include a common benchmark suite that all Python implementations

Re: [Python-Dev] PyDict_SetItem hook

2009-04-03 Thread Collin Winter
On Fri, Apr 3, 2009 at 10:50 AM, Antoine Pitrou solip...@pitrou.net wrote: Collin Winter collinw at gmail.com writes: - I wish PyBench actually did more isolation. Call.py:ComplexPythonFunctionCalls is on my mind right now; I wish it didn't put keyword arguments and **kwargs in the same

Re: [Python-Dev] core python tests

2009-04-04 Thread Collin Winter
On Sat, Apr 4, 2009 at 7:33 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Antoine Pitrou wrote: Nick Coghlan ncoghlan at gmail.com writes: C. Titus Brown wrote: I vote for a separate mailing list -- 'python-tests'? -- but I don't know exactly how splintered to make the conversation.

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Collin Winter
, and should be a fairly self-contained way of starting on this. If it works, please post the patch on http://bugs.python.org with your results and assign it to me for review. Thanks, Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Collin Winter
://bugs.python.org with your results and assign it to me for review. Thanks, Collin Winter (I did end up subscribing, just with a different email address :) What is the best branch to start working from? trunk? That's a good place to start, yes. If the idea works well, we'll want to port

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Collin Winter
practice. I'd approach this iteratively: first replace the dict with a set, then if that bears fruit, consider a customized data structure; if that bears fruit, etc. Good luck, and be sure to let us know what you find, Collin Winter ___ Python-Dev

Re: [Python-Dev] A wordcode-based Python

2009-05-11 Thread Collin Winter
-list, if you're interested. Thanks, Collin Winter ___ 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] A wordcode-based Python

2009-05-12 Thread Collin Winter
in terms of overall effectiveness. The results for gcc FDO with our 2009Q1 release are at the bottom of http://code.google.com/p/unladen-swallow/wiki/Releases. Collin Winter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

  1   2   >