Re: [Python-3000] iterating over a dcitionary

2007-08-31 Thread Lino Mastrodomenico
2007/9/1, Sean DiZazzo <[EMAIL PROTECTED]>: > How should we replace in our code: > > for k,v in dict.iteritems(): for k, v in dict.items(): -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] ___ Python-3000 mailing list Python-3000@

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-01 Thread Lino Mastrodomenico
ries that prefer a simpler interface, even if it may be slightly less efficient in some, hopefully rare, cases). -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/pyth

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Lino Mastrodomenico
(including at least PIL, wxPython and pygame) to implement the new protocol in their image classes without breaking compatibility with existing code. The only blatant conflicts between the image protocol and NumPy arrays are the value of the ``size`` attribute and the coordinates order in the

[Python-3000] PEP 368: Standard image protocol and class

2007-06-30 Thread Lino Mastrodomenico
PEP is accepted, I'll backport the new classes to Python 2.6. Any suggestion or criticism is welcome; I'll also solicit feedback from external libraries developers that might be interested in implementing the new protocol. Regards --

Re: [Python-3000] PEP: Supporting Non-ASCII Identifiers

2007-05-01 Thread Lino Mastrodomenico
a non caderne fuori! http://python.it/doc/Python-Docs/html/tut/node4.html Please note the "รจ" character in the variable name. And yes, this code used to work out of the box (AFAIK at least until Python 2.2). -- Lino Mastrodomenico E-mail: [EMAIL PROTECTED] __

Re: [Python-3000] super() PEP

2007-04-30 Thread Lino Mastrodomenico
real method or the "fake" default_method. I think this can be useful when a method *doesn't know* if it's the last in the MRO because it may depend on the inheritance hierarchy of its subclasses: you can always simply call super.meth(...) and if the current method is the last this