The Python standard library and PEP8
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun Apr 19 14:20:54 EDT 2009
En Sun, 19 Apr 2009 14:52:23 -0300, Paul Hankin <paul.hankin at gmail.com>
escribió:
> On Apr 19, 7:37 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>> The threading module has such aliases, but there are no plans for mass
>> renaming all the stdlib that I know of. You'll have to live with this
>> inconsistency.
>
> It's been fixed in Python 3.0!
What do you mean "fixed"?
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from threading import Thread
>>> t = Thread()
>>> t.name = "foo"
>>> t.getName()
'foo'
>>> t.setName("bar")
>>> t.name
'bar'
Both the old camelCase methods and the new property are still there.
They're not even deprecated yet.
--
Gabriel Genellina
More information about the Python-list
mailing list