Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

A tale of two distros: Ubuntu and Linux Mint

Raspberry Pi benchmarked against Beagleboard, low price is long term

20 popular Ubuntu Linux apps you may want to try

A Selection of the Very Best Open Source Tutorials and Tools

Android Ice Cream Sandwich ported to x86 tablets, netbooks and notebooks

SECURITY: Google Chrome 17 Improves Security

How to read a CSV file in Perl?

Red Hat Brings Gluster to Amazon Cloud

New Linux kernel fixes power-saving issues

Using Wii remote with Android Device- Taking Gaming to the Next Level



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:Python 3 Metaclasses and other strange creatures
Python 3 Metaclasses and other strange creatures
Feb 6, 2009, 06 :05 UTC (0 Talkback[s]) (5611 reads)

(Other stories by Cesar Otero)

[ Thanks to An Anonymous Reader for this link. ]

"The previous article on Python version 3—also known as Python 3000 or Py3K—discusses some of the basic changes in Python that will break backwards compatibility, such as the new print() function, the bytes data type, and changes to the string type. This article, Part 2, explores some of the more advanced topics, such as abstract base classes (ABCs), metaclasses, function annotations and decorators, integer literal support, the number type hierarchy, and changes to raising and catching exceptions, most of which also break backwards compatibility with the version 2x line.

"Class decorators

"In previous versions of Python, transformations to a method had to be done after the definition of the method. In longer methods, this requirement kept an important component of the definition far removed from the definition of the external interface provided in Python Enhancement Proposal (PEP) 318 (see Resources for a link). This snippet shows an example of this transformation requirement:"

Complete Story

Related Stories:
Starting, Stopping, and Connecting to OpenOffice with Python(Dec 25, 2008)
Python 3 Changes Breaks Backwards Compatibility(Dec 23, 2008)
What's New In Python 3.0(Dec 07, 2008)
Creating a Daemon With Python(Nov 21, 2008)
Building Command Line Utilities with Python(Nov 11, 2008)
Comparison of Python virtual machines(Nov 09, 2008)
Python Data Persistence Using MySQL(Oct 31, 2008)
Automated Daily Host UP/Down Report for Management using Nagios and Python.(Oct 21, 2008)
Writing a Package in Python(Sep 23, 2008)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP