More Python 3000 Questions Answered

August 1st, 2007 § 0 comments

Update via/from Guido — One thing I thought was inter­est­ing was this:

Not as such. The lan­guage would turn into Java-without-braces. How­ever, you can use “argu­ment anno­ta­tions” (PEP 3107) and write a dec­o­ra­tor or meta­class to enforce argu­ment types at run-time. I sup­pose it would also be pos­si­ble to write an exten­sion to pychecker or pylint that used anno­ta­tions to check call signatures.

Specif­i­cally of inter­est was the link to PEP 3107. I’m on the fence about the syn­tax, namely I have some sort of allergy to long/giant method sig­na­tures. This new sys­tem + dec­o­ra­tors + ABCs could be either very com­plex, or very interesting.

Of course, that’s the beauty of python: You don’t actu­ally need to use it the new features :)

What's this?

You are currently reading More Python 3000 Questions Answered at jessenoller.com.

meta