Create objects from variable class names

Create objects from variable class names 1.2

Create objects from variable class names 1.2 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 462
  • Released: Jun 7, 2007

Create objects from variable class names 1.2 Description

Sometimes you would want to create objects from various classes based on some condition (without using eval()).

For example when parsing X(HT)ML files you want to handle some tags using specific classes. This script is an example in this sense.

Create objects from variable class names 1.2 Keywords

Create objects from variable class names Bookmark

Hyperlink code:
Hyperlink for Forum code:

Create objects from variable class names 1.2 Script Download Notice

Top 4 Download periodically updates information of Create objects from variable class names 1.2 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Create objects from variable class names 1.2 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Right method names suggestion

... modify the error messages given when a wrong class method is called. It shows the first five ranked most similar method names, followed by the first line of their docstrings ... sources), and then it raises an AttributeError. Useful from the interactive shell too. ...
Python

Yet another Set class for Python

This script is a pure Pythonic implementation of a set class. The syntax and methods implemented are, for the most part, borrowed from PEP 218. ...
Python

Stateful Objects use Mix ins to define behaviour

If you want to implement stateful objects, which have a different set of behaviours according ... the use of mix-ins. A mix-in is a class which is dynamically inherited by an object. The methods of the mix-in class are thus accessible through the object. This is a clean way of providing objects ...
Python

z sync

This script gives access to the Sync class. Objects created by the Sync class are meant to be used when trying to ...
Python

Real class methods in Python

This script demonstrates 'real' class methods, like they are known from Smalltalk. Class methods implicitely receive the actual class as the first parameter. They are inherited by subclasses, and may as well be overridden. Class methods may return anything, although they are particularly ...
Python