[Python-Dev] multiprocessing vs. distributed processing

2009-01-16 Thread Matthieu Brucher
(Sorry for the double send...) 2009/1/16 James Mills : > I've noticed over the past few weeks lots of questions > asked about multi-processing (including myself). Funny, I was going to blog about this, but not just for Python. > For those of you new to multi-processing, perhaps this > thread may

[Python-Dev] issue 4927: Inconsistent unicode repr for fileobject

2009-01-16 Thread Kristján Valur Jónsson
I would appreciate if some of you could chip in your opinion of this issue. http://bugs.python.org/issue4927 Cheers, Kristján ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.p

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-16 Thread Mark Dickinson
On Thu, Jan 15, 2009 at 10:40 PM, Kristján Valur Jónsson wrote: > Right. I've fixed the remainder, things should quiet down now. > K Thank you! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] multiprocessing vs. distributed processing

2009-01-16 Thread Nick Coghlan
James Mills wrote: > I've noticed over the past few weeks lots of questions > asked about multi-processing (including myself). While these are fair points, did you perhaps mean to send this to python-list rather than python-dev? Cheers, Nick. > > For those of you new to multi-processing, perhap

[Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Nick Craig-Wood
I've noticed with latest python 3.1 checkout (68631) if I have this object hierarchy with a default __init__ in the superclass to be used by the subclasses which don't necessarily need an __init__ it blows up with a TypeError. class Field(object): def __init__(self, data): """Default i

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Terry Reedy
Nick Craig-Wood wrote: I've noticed with latest python 3.1 checkout (68631) if I have this object hierarchy with a default __init__ in the superclass to be used by the subclasses which don't necessarily need an __init__ it blows up with a TypeError. class Field(object): object is default basec

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Nick Craig-Wood
Terry Reedy wrote: > Nick Craig-Wood wrote: > > I've noticed with latest python 3.1 checkout (68631) if I have this > > object hierarchy with a default __init__ in the superclass to be used > > by the subclasses which don't necessarily need an __init__ it blows up > > with a TypeError. > > > > c

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Alexandre Passos
On Fri, Jan 16, 2009 at 2:12 PM, Terry Reedy wrote: > > I do not understand. You know it is going to run the .__init__ of its one > and only base class, which here is object. Because this class might be used as base of another class. Take this trivial example code (in py2.6): class A(object):

[Python-Dev] Summary of Python tracker Issues

2009-01-16 Thread Python tracker
ACTIVITY SUMMARY (01/09/09 - 01/16/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2313 open (+40) / 14473 closed (+24) / 16786 total (+64) Open issues with patches: 796 Average

Re: [Python-Dev] issue 4927: Inconsistent unicode repr for fileobject

2009-01-16 Thread Guido van Rossum
Done. Rejected, with argumentation. On Fri, Jan 16, 2009 at 1:14 AM, Kristján Valur Jónsson wrote: > I would appreciate if some of you could chip in your opinion of this issue. > > http://bugs.python.org/issue4927 -- --Guido van Rossum (home page: http://www.python.org/~guido/)

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread rdmurray
On Fri, 16 Jan 2009 at 16:53, Nick Craig-Wood wrote: [snip] Perhaps 2.5's object.__init__ just swallowed all args, thus hiding bogus calls. Yes it did which is the fundamental difference in behaviour between py2 and py3 as far as I can see. Actually, between py<=2.5 and py>=2.6. --RDM ___

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Terry Reedy
Alexandre Passos wrote: On Fri, Jan 16, 2009 at 2:12 PM, Terry Reedy wrote: I do not understand. You know it is going to run the .__init__ of its one and only base class, which here is object. Because this class might be used as base of another class. Take this trivial example code (in py2.6

[Python-Dev] Deprecate PyNumber_Long?

2009-01-16 Thread Mark Dickinson
Now that all uses of nb_long and __long__ have disappeared from the 3.x codebase, would it make sense to mark PyNumber_Long as deprecated in the c-api documentation, and convert all existing uses (I count a grand total of 3 uses in the py3k branch!) to PyNumber_Int? (The two functions behave ident

Re: [Python-Dev] Deprecate PyNumber_Long?

2009-01-16 Thread Brett Cannon
On Fri, Jan 16, 2009 at 13:34, Mark Dickinson wrote: > Now that all uses of nb_long and __long__ have disappeared from > the 3.x codebase, would it make sense to mark PyNumber_Long > as deprecated in the c-api documentation, and convert all existing > uses (I count a grand total of 3 uses in the p

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Nick Coghlan
Terry Reedy wrote: > Given > "The second use case is to support cooperative multiple inheritence in > a dynamic execution environment. ... Good design dictates that this > method have the same calling signature in every case (because the order > of parent calls is determined at runtime and because

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Terry Reedy
Nick Coghlan wrote: Terry Reedy wrote: So I wonder whether the proper change might have been to remove object.__init__. That would have broken too much code, since a lot of immutable types rely on it (they only override __new__ and leave __init__ alone). In what way do they depend on the e

[Python-Dev] Problems with unicode_literals

2009-01-16 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been playing with 'from __future__ import unicode_literals' just to see how unicode unclean some of my code was. Almost everything was fairly easy to fix but I found two interesting situations. One seems fairly shallow and might arguably

Re: [Python-Dev] Problems with unicode_literals

2009-01-16 Thread Guido van Rossum
Is the issue that in foo(**{'a': 1, 'b': 1}) the 'a' and 'b' are unicode and not acceptable as keyword arguments? I agree that should be fixed, though I'm not sure it'll be easy. I'm not sure you're saying that the optparse case shouldn't be fixed in 2.6. or the foo(**{...}) shouldn't be fixed in

Re: [Python-Dev] Problems with unicode_literals

2009-01-16 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 16, 2009, at 10:26 PM, Guido van Rossum wrote: Is the issue that in foo(**{'a': 1, 'b': 1}) the 'a' and 'b' are unicode and not acceptable as keyword arguments? I agree that should be fixed, though I'm not sure it'll be easy. I'm not sure yo

Re: [Python-Dev] Problems with unicode_literals

2009-01-16 Thread Benjamin Peterson
On Fri, Jan 16, 2009 at 9:45 PM, Barry Warsaw wrote: > > The optparse one could easily be fixed for 2.6, if we agree it should be > fixed. This untested patch should do it I think: > > Index: Lib/optparse.py > === > - --- Lib/optpars