Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC3
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.3 LTS
  • Linux Kernel 3.2.6
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Perl Modules

    Python::Object 1.0

    Download button

    No screenshots available
    Downloads: 284  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    ActiveState | More programs
    Perl Artistic License / FREE
    January 22nd, 2008, 06:59 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Python::Object description

    Python::Object is a Perl module that encapuslate Python objects.

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    encapsulate objects | Python objects | Perl module | encapsulate | Python | objects



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM