Python Object
Details
| Last Update: | 2008-01-21 23:01:10 |
| Version: | Python::Object 1 |
| License/Program Type: | Perl Artistic License |
| Publisher: | ActiveState |
| Price: | $0.00 |
Description:
Python::Object is a Perl module that encapsulate Python
objects.
SYNOPSIS
my $dict = Python::dict(foo => 42);
attribute access
print $dict->foo, "n"; get
$dict->bar(84);
boolean context
if ($dict) {
...
}
automatic stringify
print $dict
Instances of the Python::Object class encapulate objects within
the python interpreter. All builtin python datatypes as well as
user defined classes, instances, extention types, and functions are
python objects.
Various functions in the Python:: namespace provide means for
creation and maniplation of Python::Object instances. See Python
for details.
The Python::Object class provide AUTOLOAD and overload features
that make it convenient to use python objects as if they where
native perl objects. A python sequence object (like a list or a
tuple) can basically be treated as if it was a perl array. A python
mapping object can be treaded as a hash, and callable objects can
be called directly as if they where perl code references. Python
objects also turn into strings if used in string context or into a
reasonable test in boolean context.
Requirements:
· Perl
0 comments
Add to
Python Object Version History
Related Software
|
|
From category: Libraries |
| Bio::Graphics::Glyph::minmax 1.4 is libraries software developed by Lincoln Stein. Bio::Graphics::Glyph::minmax is the minmax glyph. SYNOPSIS See L< Bio::Graphics::Panel > and L< Bi... |
|
|
From category: Libraries |
| Bibliophile 3.0 is libraries software developed by Daniel Pozzi. Bibliophile project is a collection of libraries for Web-based literature database development that were created to align the develo... |
|
|
From category: Libraries |
| class.Logger.php3 1.0 is libraries software developed by CDI. class.Logger.php3 is used to maintain persistant log files in PHP3 applications as efficiently as possible. Using Logger, your p... |
|
|
From category: Libraries |
| AI::ExpertSystem::Simple 1.2 is libraries software developed by Peter Hickman. AI::ExpertSystem::Simple is a simple expert system shell. SYNOPSIS This class implements a simple expert... |
|
|
From category: Libraries |
| CfgTie::TieNet 0.41 is libraries software developed by Randall Maas. CfgTie::TieNet is a Perl module to tie in the net database. SYNOPSIS tie %net,\'CfgTie::TieNet\' Th... |
|
|
From category: UI-User-Interfaces |
| Daniels Colorize.pl 0.3a is ui (user interfaces) software developed by Daniel Flinkmann. Daniels Colorize.pl is a short script that reads from stdin and writes to stdout. Rows that match a user\'s... |
|
|
From category: Libraries |
| Event 1.06 is libraries software developed by Joshua N. Pritikin. Event is an Event loop processing. SYNOPSIS use Event qw(loop unloop); initialize application Event->... |
|
|
From category: Compilers |
| bksys 1.5.1 is compilers software developed by Thomas Nagy. bksys is a framework based on scons for detecting the environment, compiling applications and installing them. It replaces the who... |
|
|
From category: Libraries |
| CoreLinux++ Function Load Library 0.1.1 is libraries software developed by CoreLinux Consortium. CoreLinux++ Function Load Library (libclfll++) takes advantage of the abstract Library Load framewor... |
|
|
From category: Libraries |
| Class::XML 0.06 is libraries software developed by Matt S Trout. Class::XML is a Perl module for simple XML Abstraction. SYNOPSIS package Foo; use base qw/Class::XML/; \... |
|
|
From category: Compilers |
| Eleven 1.0 is compilers software developed by Joe Morrison. Eleven is a programming language for creating robust, scalable web applications quickly and easily. It offers a 20x programmer pro... |
|
|
From category: Libraries |
| Chemistry::Artificial::Graphics 0.01 is libraries software developed by Bernat Requesens. Chemistry::Artificial::Graphics is a graphic plot for artificial with database support. SYNOPSIS... |
|
|
From category: Libraries |
| Convert::BulkDecoder 1.03 is libraries software developed by Johan Vromans and Squirrel Consultancy. Convert::BulkDecoder is a Perl module to extract (binary) data from mail and news messages. \... |
|
|
From category: Interpreters |
| Tcl/Tk is a portable scripting environment for Unix, Windows, and Macintosh.... |
Leave a comment