Python Pocket Reference by Mark Lutz

Python Pocket Reference by Mark Lutz

Author:Mark Lutz [Mark Lutz]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming Languages / Python
ISBN: 9781449379339
Publisher: O'Reilly Media
Published: 2009-09-30T16:00:00+00:00


hex(N)

Converts an integer number N to a hexadecimal (base 16) digits string. If argument N is not a Python int object, it must define an __index__() method that returns an integer.

id(object)

Returns the unique identity integer of object (i.e., its address in memory).

__import__(name [, globals [, locals [, fromlist [, level] ]]])

Imports and returns a module, given its name as a string at runtime (e.g., mod = __import__("mymod")). This call is generally faster than constructing and executing an import statement string with exec(). This function is called by import and from statements internally and can be overridden to customize import operations. All arguments but the first have advanced roles (see the Python Library Reference). See also the imp standard library module for related tools.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.