title stringlengths 4 62 | text stringlengths 12 9.02k | python_version stringclasses 1
value | length int64 12 9.02k | url stringlengths 59 91 |
|---|---|---|---|---|
jpeg -- Python library reference | jpeg -- Python library reference
Prev: aifc (aifc.html)
Top: Top (top.html)
# 12.4. Built-in Module `jpeg`
The module `jpeg` provides access to the jpeg compressor and
decompressor written by the Independent JPEG Group. JPEG is a (draft?)
standard for compressing pictures. For details on jpeg or the
Independent JPEG G... | 1.2 | 524 | https://docs.python.org/{python_version}/python-lib/jpeg.html |
Limitations -- Python library reference | Limitations -- Python library reference
Prev: Reference Manual (reference_manual.html)
Top: Top (top.html)
# 10.6. Limitations
There are two fundamental limitations on this profiler. The first is
that it relies on the Python interpreter to dispatch call,
return, and exception events. Compiled C code does not
get inte... | 1.2 | 2,293 | https://docs.python.org/{python_version}/python-lib/limitations.html |
mac -- Python library reference | mac -- Python library reference
Prev: Macintosh Specific Services (macintosh_specific_services.html)
Top: Top (top.html)
# 14.1. Built-in Module `mac`
This module provides a subset of the operating system dependent
functionality provided by the optional built-in module `posix`.
It is best accessed through the more port... | 1.2 | 518 | https://docs.python.org/{python_version}/python-lib/mac.html |
macconsole -- Python library reference | macconsole -- Python library reference
Prev: ctb (ctb.html)
Top: Top (top.html)
# 14.4. Built-in Module `macconsole`
This module is available on the Macintosh, provided Python has been
built using the Think C compiler. It provides an interface to the
Think console package, with which basic text windows can be created.
... | 1.2 | 327 | https://docs.python.org/{python_version}/python-lib/macconsole.html |
macconsole options object -- Python library reference | macconsole options object -- Python library reference
Prev: macconsole (macconsole.html)
Top: Top (top.html)
## 14.4.1. macconsole options object
These options are examined when a window is created: | 1.2 | 198 | https://docs.python.org/{python_version}/python-lib/macconsole_options_object.html |
macdnr -- Python library reference | macdnr -- Python library reference
Prev: macconsole (macconsole.html)
Top: Top (top.html)
# 14.5. Built-in Module `macdnr`
This module provides an interface to the Macintosh Domain Name
Resolver. It is usually used in conjunction with the mactcp
module, to map hostnames to IP-addresses. It may not be available in
all... | 1.2 | 402 | https://docs.python.org/{python_version}/python-lib/macdnr.html |
macfs -- Python library reference | macfs -- Python library reference
Prev: macdnr (macdnr.html)
Top: Top (top.html)
# 14.6. Built-in Module `macfs`
This module provides access to macintosh FSSpec handling, the Alias
Manager, finder aliases and the Standard File package.
Whenever a function or method expects a file argument, this
argument can be one of t... | 1.2 | 532 | https://docs.python.org/{python_version}/python-lib/macfs.html |
Macintosh Specific Services -- Python library reference | Macintosh Specific Services -- Python library reference
Prev: Cryptographic Services (cryptographic_services.html)
Top: Top (top.html)
# 14. Macintosh Specific Services
The modules in this chapter are available on the Apple Macintosh only.
## Menu | 1.2 | 247 | https://docs.python.org/{python_version}/python-lib/macintosh_specific_services.html |
macpath -- Python library reference | macpath -- Python library reference
Prev: mac (mac.html)
Top: Top (top.html)
# 14.2. Standard Module `macpath`
This module provides a subset of the pathname manipulation functions
available from the optional standard module `posixpath`. It is
best accessed through the more portable standard module `os`, as
`os.path`.
... | 1.2 | 440 | https://docs.python.org/{python_version}/python-lib/macpath.html |
macspeech -- Python library reference | macspeech -- Python library reference
Prev: mactcp (mactcp.html)
Top: Top (top.html)
# 14.8. Built-in Module `macspeech`
This module provides an interface to the Macintosh Speech Manager,
allowing you to let the Macintosh utter phrases. You need a version of
the speech manager extension (version 1 and 2 have been teste... | 1.2 | 512 | https://docs.python.org/{python_version}/python-lib/macspeech.html |
mactcp -- Python library reference | mactcp -- Python library reference
Prev: macfs (macfs.html)
Top: Top (top.html)
# 14.7. Built-in Module `mactcp`
This module provides an interface to the Macintosh TCP/IP driver
MacTCP.`macdnr` which provides an
interface to the name-server (allowing you to translate hostnames to
ip-addresses), a module `MACTCP` which ... | 1.2 | 628 | https://docs.python.org/{python_version}/python-lib/mactcp.html |
Mapping Types -- Python library reference | Mapping Types -- Python library reference
Prev: Sequence Types (sequence_types.html)
Top: Top (top.html)
## 2.1.6. Mapping Types
A mapping object maps values of one type (the key type) to
arbitrary objects. Mappings are mutable objects. There is currently
only one standard mapping type, the dictionary. A dictionary'... | 1.2 | 1,028 | https://docs.python.org/{python_version}/python-lib/mapping_types.html |
marshal -- Python library reference | marshal -- Python library reference
Prev: copy (copy.html)
Top: Top (top.html)
# 3.7. Built-in Module `marshal`
This module contains functions that can read and write Python
values in a binary format. The format is specific to Python, but
independent of machine architecture issues (e.g., you can write a
Python value t... | 1.2 | 2,799 | https://docs.python.org/{python_version}/python-lib/marshal.html |
math -- Python library reference | math -- Python library reference
Prev: Miscellaneous Services (miscellaneous_services.html)
Top: Top (top.html)
# 5.1. Built-in Module `math`
This module is always available.
It provides access to the mathematical functions defined by the C
standard.
They are:
Note that `frexp` and `modf` have a different call/return
p... | 1.2 | 657 | https://docs.python.org/{python_version}/python-lib/math.html |
md5 -- Python library reference | md5 -- Python library reference
Prev: Cryptographic Services (cryptographic_services.html)
Top: Top (top.html)
# 13.1. Built-in Module `md5`
This module implements the interface to RSA's MD5 message digest
algorithm (see also Internet RFC 1321). Its use is quite
straightforward: use the `md5.new()` to create an md5 ob... | 1.2 | 745 | https://docs.python.org/{python_version}/python-lib/md5.html |
Menu Objects -- Python library reference | Menu Objects -- Python library reference
Prev: Drawing Objects (drawing_objects.html)
Top: Top (top.html)
## 15.1.4. Menu Objects
A menu object represents a menu.
The menu is destroyed when the menu object is deleted.
The following methods are defined: | 1.2 | 252 | https://docs.python.org/{python_version}/python-lib/menu_objects.html |
Message Objects -- Python library reference | Message Objects -- Python library reference
Prev: rfc822 (rfc822.html)
Top: Top (top.html)
## 11.10.1. Message Objects
A `Message` instance has the following methods:
`Message` instances also support a read-only mapping interface.
In particular: `m[name]` is the same as `m.getheader(name)`;
and `len(m)`, `m.has_key(nam... | 1.2 | 466 | https://docs.python.org/{python_version}/python-lib/message_objects.html |
Methods -- Python library reference | Methods -- Python library reference
Prev: Functions (functions.html)
Top: Top (top.html)
### 2.1.7.4. Methods
Methods are functions that are called using the attribute notation.
There are two flavors: built-in methods (such as `append()` on
lists) and class instance methods. Built-in methods are described
with the typ... | 1.2 | 718 | https://docs.python.org/{python_version}/python-lib/methods.html |
mimetools -- Python library reference | mimetools -- Python library reference
Prev: rfc822 (rfc822.html)
Top: Top (top.html)
# 11.11. Standard Module `mimetools`
This module defines a subclass of the class `rfc822.Message` and
a number of utility functions that are useful for the manipulation for
MIME style multipart or encoded message.
It defines the follow... | 1.2 | 338 | https://docs.python.org/{python_version}/python-lib/mimetools.html |
mimetools.Message Methods -- Python library reference | mimetools.Message Methods -- Python library reference
Prev: mimetools (mimetools.html)
Top: Top (top.html)
## 11.11.1. Additional Methods of Message objects
The `mimetools.Message` class defines the following methods in
addition to the `rfc822.Message` class: | 1.2 | 259 | https://docs.python.org/{python_version}/python-lib/mimetools.message_methods.html |
Miscellaneous Services -- Python library reference | Miscellaneous Services -- Python library reference
Prev: String Services (string_services.html)
Top: Top (top.html)
# 5. Miscellaneous Services
The modules described in this chapter provide miscellaneous services
that are available in all Python versions. Here's an overview:
## Menu | 1.2 | 284 | https://docs.python.org/{python_version}/python-lib/miscellaneous_services.html |
Module Index -- Python library reference | Module Index -- Python library reference
Prev: Variable Index (variable_index.html)
Top: Top (top.html)
# Module Index | 1.2 | 118 | https://docs.python.org/{python_version}/python-lib/module_index.html |
Modules -- Python library reference | Modules -- Python library reference
Prev: Other Built-in Types (other_built-in_types.html)
Top: Top (top.html)
### 2.1.7.1. Modules
The only special operation on a module is attribute access:
`m . name`, where m is a module and name accesses
a name defined in m's symbol table. Module attributes can be
assigned to. (N... | 1.2 | 969 | https://docs.python.org/{python_version}/python-lib/modules.html |
More String Operations -- Python library reference | More String Operations -- Python library reference
Prev: Sequence Types (sequence_types.html)
Top: Top (top.html)
### 2.1.5.1. More String Operations
String objects have one unique built-in operation: the `%`
operator (modulo) with a string left argument interprets this string
as a C sprintf format string to be applied... | 1.2 | 2,263 | https://docs.python.org/{python_version}/python-lib/more_string_operations.html |
mpz -- Python library reference | mpz -- Python library reference
Prev: md5 (md5.html)
Top: Top (top.html)
# 13.2. Built-in Module `mpz`
This module implements the interface to part of the GNU MP library.
This library contains arbitrary precision integer and rational number
arithmetic routines. Only the interfaces to the integer
(`mpz_...') routines ar... | 1.2 | 1,136 | https://docs.python.org/{python_version}/python-lib/mpz.html |
Multimedia Services -- Python library reference | Multimedia Services -- Python library reference
Prev: Internet and WWW (internet_and_www.html)
Top: Top (top.html)
# 12. Multimedia Services
The modules described in this chapter implement various algorithms or
interfaces that are mainly useful for multimedia applications. They
are available at the discretion of the i... | 1.2 | 361 | https://docs.python.org/{python_version}/python-lib/multimedia_services.html |
Mutable Sequence Types -- Python library reference | Mutable Sequence Types -- Python library reference
Prev: More String Operations (more_string_operations.html)
Top: Top (top.html)
### 2.1.5.2. Mutable Sequence Types
List objects support additional operations that allow in-place
modification of the object.
These operations would be supported by other mutable sequence t... | 1.2 | 565 | https://docs.python.org/{python_version}/python-lib/mutable_sequence_types.html |
NNTP Objects -- Python library reference | NNTP Objects -- Python library reference
Prev: nntplib (nntplib.html)
Top: Top (top.html)
## 11.6.1. NNTP Objects
NNTP instances have the following methods. The response that is
returned as the first item in the return tuple of almost all methods
is the server's response: a string beginning with a three-digit code.
If... | 1.2 | 409 | https://docs.python.org/{python_version}/python-lib/nntp_objects.html |
nntplib -- Python library reference | nntplib -- Python library reference
Prev: gopherlib (gopherlib.html)
Top: Top (top.html)
# 11.6. Standard Module `nntplib`
This module defines the class `NNTP` which implements the client
side of the NNTP protocol. It can be used to implement a news reader
or poster, or automated news processors. For more information... | 1.2 | 672 | https://docs.python.org/{python_version}/python-lib/nntplib.html |
Numeric Types -- Python library reference | Numeric Types -- Python library reference
Prev: Comparisons (comparisons.html)
Top: Top (top.html)
## 2.1.4. Numeric Types
There are three numeric types: plain integers, long integers, and
floating point numbers. Plain integers (also just called integers)
are implemented using `long` in C, which gives them at least 32... | 1.2 | 1,756 | https://docs.python.org/{python_version}/python-lib/numeric_types.html |
OldProfile Class -- Python library reference | OldProfile Class -- Python library reference
Prev: Profiler Extensions (profiler_extensions.html)
Top: Top (top.html)
## 10.8.1. OldProfile Class
The following derived profiler simulates the old style profiler,
providing errant results on recursive functions. The reason for the
usefulness of this profiler is that it ru... | 1.2 | 600 | https://docs.python.org/{python_version}/python-lib/oldprofile_class.html |
Optional Operating System Services -- Python library reference | Optional Operating System Services -- Python library reference
Prev: Generic Operating System Services (generic_operating_system_services.html)
Top: Top (top.html)
# 7. Optional Operating System Services
The modules described in this chapter provide interfaces to operating
system features that are available on selected... | 1.2 | 517 | https://docs.python.org/{python_version}/python-lib/optional_operating_system_services.html |
os -- Python library reference | os -- Python library reference
Prev: Generic Operating System Services (generic_operating_system_services.html)
Top: Top (top.html)
# 6.1. Standard Module `os`
This module provides a more portable way of using operating system
(OS) dependent functionality than importing an OS dependent built-in
module like `posix`.
Whe... | 1.2 | 1,678 | https://docs.python.org/{python_version}/python-lib/os.html |
Other Built-in Types -- Python library reference | Other Built-in Types -- Python library reference
Prev: Mapping Types (mapping_types.html)
Top: Top (top.html)
## 2.1.7. Other Built-in Types
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
## Menu | 1.2 | 255 | https://docs.python.org/{python_version}/python-lib/other_built-in_types.html |
pickle -- Python library reference | pickle -- Python library reference
Prev: traceback (traceback.html)
Top: Top (top.html)
# 3.4. Standard Module `pickle`
The `pickle` module implements a basic but powerful algorithm for
``pickling'' (a.k.a. serializing, marshalling or flattening) nearly
arbitrary Python objects. This is the act of converting objects t... | 1.2 | 7,338 | https://docs.python.org/{python_version}/python-lib/pickle.html |
Port Objects -- Python library reference | Port Objects -- Python library reference
Prev: Configuration Objects (configuration_objects.html)
Top: Top (top.html)
## 16.1.2. Port Objects
Port objects (returned by `al.openport()` have the following
methods: | 1.2 | 211 | https://docs.python.org/{python_version}/python-lib/port_objects.html |
posix -- Python library reference | posix -- Python library reference
Prev: UNIX Specific Services (unix_specific_services.html)
Top: Top (top.html)
# 8.1. Built-in Module `posix`
This module provides access to operating system functionality that is
standardized by the C Standard and the POSIX standard (a thinly disguised
UNIX interface).
Do not import t... | 1.2 | 1,310 | https://docs.python.org/{python_version}/python-lib/posix.html |
posixfile -- Python library reference | posixfile -- Python library reference
Prev: fcntl (fcntl.html)
Top: Top (top.html)
# 8.10. Standard Module `posixfile`
This module implements some additional functionality over the built-in
file objects. In particular, it implements file locking, control over
the file flags, and an easy interface to duplicate the file... | 1.2 | 1,616 | https://docs.python.org/{python_version}/python-lib/posixfile.html |
posixpath -- Python library reference | posixpath -- Python library reference
Prev: posix (posix.html)
Top: Top (top.html)
# 8.2. Standard Module `posixpath`
This module implements some useful functions on POSIX pathnames.
Do not import this module directly. Instead, import the
module `os` and use `os.path`. | 1.2 | 269 | https://docs.python.org/{python_version}/python-lib/posixpath.html |
Profiler Changes -- Python library reference | Profiler Changes -- Python library reference
Prev: Profiler Introduction (profiler_introduction.html)
Top: Top (top.html)
# 10.2. How Is This Profiler Different From The Old Profiler?
The big changes from old profiling module are that you get more
information, and you pay less CPU time. It's not a trade-off, it's a
tr... | 1.2 | 343 | https://docs.python.org/{python_version}/python-lib/profiler_changes.html |
Profiler Extensions -- Python library reference | Profiler Extensions -- Python library reference
Prev: Calibration (calibration.html)
Top: Top (top.html)
# 10.8. Extensions --- Deriving Better Profilers
The `Profile` class of module `profile` was written so that
derived classes could be developed to extend the profiler. Rather
than describing all the details of such... | 1.2 | 1,768 | https://docs.python.org/{python_version}/python-lib/profiler_extensions.html |
Profiler Introduction -- Python library reference | Profiler Introduction -- Python library reference
Prev: The Python Profiler (the_python_profiler.html)
Top: Top (top.html)
# 10.1. Introduction to the profiler
A profiler is a program that describes the run time performance
of a program, providing a variety of statistics. This documentation
describes the profiler func... | 1.2 | 573 | https://docs.python.org/{python_version}/python-lib/profiler_introduction.html |
pwd -- Python library reference | pwd -- Python library reference
Prev: posixpath (posixpath.html)
Top: Top (top.html)
# 8.3. Built-in Module `pwd`
This module provides access to the UNIX password database.
It is available on all UNIX versions.
Password database entries are reported as 7-tuples containing the
following items from the password database ... | 1.2 | 577 | https://docs.python.org/{python_version}/python-lib/pwd.html |
Python Services -- Python library reference | Python Services -- Python library reference
Prev: Built-in Objects (built-in_objects.html)
Top: Top (top.html)
# 3. Python Services
The modules described in this chapter provide a wide range of services
related to the Python interpreter and its interaction with its
environment. Here's an overview:
## Menu | 1.2 | 307 | https://docs.python.org/{python_version}/python-lib/python_services.html |
rand -- Python library reference | rand -- Python library reference
Prev: math (math.html)
Top: Top (top.html)
# 5.2. Standard Module `rand`
This module implements a pseudo-random number
generator with an interface similar to `rand()` in C.
the following functions: | 1.2 | 231 | https://docs.python.org/{python_version}/python-lib/rand.html |
rect -- Python library reference | rect -- Python library reference
Prev: stdwinevents (stdwinevents.html)
Top: Top (top.html)
# 15.3. Standard Module `rect`
This module contains useful operations on rectangles.
A rectangle is defined as in module
`stdwin`:
a pair of points, where a point is a pair of integers.
For example, the rectangle
is a rectangle ... | 1.2 | 505 | https://docs.python.org/{python_version}/python-lib/rect.html |
Reference Manual -- Python library reference | Reference Manual -- Python library reference
Prev: Deterministic Profiling (deterministic_profiling.html)
Top: Top (top.html)
# 10.5. Reference Manual
The primary entry point for the profiler is the global function
`profile.run()`. It is typically used to create any profile
information. The reports are formatted and ... | 1.2 | 707 | https://docs.python.org/{python_version}/python-lib/reference_manual.html |
regex -- Python library reference | regex -- Python library reference
Prev: string (string.html)
Top: Top (top.html)
# 4.2. Built-in Module `regex`
This module provides regular expression matching operations similar to
those found in Emacs. It is always available.
By default the patterns are Emacs-style regular expressions; there is
a way to change the ... | 1.2 | 1,301 | https://docs.python.org/{python_version}/python-lib/regex.html |
regsub -- Python library reference | regsub -- Python library reference
Prev: regex (regex.html)
Top: Top (top.html)
# 4.3. Standard Module `regsub`
This module defines a number of functions useful for working with
regular expressions (see built-in module `regex`). | 1.2 | 228 | https://docs.python.org/{python_version}/python-lib/regsub.html |
rfc822 -- Python library reference | rfc822 -- Python library reference
Prev: sgmllib (sgmllib.html)
Top: Top (top.html)
# 11.10. Standard Module `rfc822`
This module defines a class, `Message`, which represents a
collection of ``email headers'' as defined by the Internet standard
RFC 822. It is used in various contexts, usually to read such headers
from... | 1.2 | 919 | https://docs.python.org/{python_version}/python-lib/rfc822.html |
rgbimg -- Python library reference | rgbimg -- Python library reference
Prev: jpeg (jpeg.html)
Top: Top (top.html)
# 12.5. Built-in Module `rgbimg`
The rgbimg module allows python programs to access SGI imglib image
files (also known as .rgb files). The module is far from
complete, but is provided anyway since the functionality that there is
is enough in... | 1.2 | 436 | https://docs.python.org/{python_version}/python-lib/rgbimg.html |
rotor -- Python library reference | rotor -- Python library reference
Prev: mpz (mpz.html)
Top: Top (top.html)
# 13.3. Built-in Module `rotor`
This module implements a rotor-based encryption algorithm, contributed by
Lance Ellinghouse. The design is derived from the Enigma device, a machine
used during World War II to encipher messages. A rotor is simp... | 1.2 | 2,659 | https://docs.python.org/{python_version}/python-lib/rotor.html |
select -- Python library reference | select -- Python library reference
Prev: socket (socket.html)
Top: Top (top.html)
# 7.3. Built-in Module `select`
This module provides access to the function `select` available in
most UNIX versions. It defines the following: | 1.2 | 226 | https://docs.python.org/{python_version}/python-lib/select.html |
Sequence Types -- Python library reference | Sequence Types -- Python library reference
Prev: Numeric Types (numeric_types.html)
Top: Top (top.html)
## 2.1.5. Sequence Types
There are three sequence types: strings, lists and tuples.
Strings literals are written in single or double quotes:
`'xyzzy'`, `"frobozz"`. See Chapter 2 of the Python
Reference Manual for mo... | 1.2 | 1,278 | https://docs.python.org/{python_version}/python-lib/sequence_types.html |
SGI IRIX Specific Services -- Python library reference | SGI IRIX Specific Services -- Python library reference
Prev: Standard Windowing Interface (standard_windowing_interface.html)
Top: Top (top.html)
# 16. SGI IRIX Specific Services
The modules described in this chapter provide interfaces to features
that are unique to SGI's IRIX operating system (versions 4 and 5).
## Me... | 1.2 | 322 | https://docs.python.org/{python_version}/python-lib/sgi_irix_specific_services.html |
sgmllib -- Python library reference | sgmllib -- Python library reference
Prev: htmllib (htmllib.html)
Top: Top (top.html)
# 11.9. Standard Module `sgmllib`
This module defines a class `SGMLParser` which serves as the
basis for parsing text files formatted in SGML (Standard Generalized
Mark-up Language). In fact, it does not provide a full SGML parser
---... | 1.2 | 1,478 | https://docs.python.org/{python_version}/python-lib/sgmllib.html |
shelve -- Python library reference | shelve -- Python library reference
Prev: pickle (pickle.html)
Top: Top (top.html)
# 3.5. Standard Module `shelve`
A ``shelf'' is a persistent, dictionary-like object. The difference
with ``dbm'' databases is that the values (not the keys!) in a shelf
can be essentially arbitrary Python objects --- anything that the
`p... | 1.2 | 1,540 | https://docs.python.org/{python_version}/python-lib/shelve.html |
signal -- Python library reference | signal -- Python library reference
Prev: Optional Operating System Services (optional_operating_system_services.html)
Top: Top (top.html)
# 7.1. Built-in Module `signal`
This module provides mechanisms to use signal handlers in Python.
Some general rules for working with signals handlers:
- • A handler for a particular... | 1.2 | 2,426 | https://docs.python.org/{python_version}/python-lib/signal.html |
socket -- Python library reference | socket -- Python library reference
Prev: signal (signal.html)
Top: Top (top.html)
# 7.2. Built-in Module `socket`
This module provides access to the BSD socket interface.
It is available on UNIX systems that support this interface.
For an introduction to socket programming (in C), see the following
papers: An Introduct... | 1.2 | 2,080 | https://docs.python.org/{python_version}/python-lib/socket.html |
Socket Example -- Python library reference | Socket Example -- Python library reference
Prev: Socket Objects (socket_objects.html)
Top: Top (top.html)
## 7.2.2. Example
Here are two minimal example programs using the TCP/IP protocol: a
server that echoes all data that it receives back (servicing only one
client), and a client using it. Note that a server must pe... | 1.2 | 631 | https://docs.python.org/{python_version}/python-lib/socket_example.html |
Socket Objects -- Python library reference | Socket Objects -- Python library reference
Prev: socket (socket.html)
Top: Top (top.html)
## 7.2.1. Socket Objects
Socket objects have the following methods. Except for
`makefile()` these correspond to UNIX system calls applicable to
sockets.
Note that there are no methods `read()` or `write()`; use
`recv()` and `sen... | 1.2 | 356 | https://docs.python.org/{python_version}/python-lib/socket_objects.html |
Special Attributes -- Python library reference | Special Attributes -- Python library reference
Prev: Other Built-in Types (other_built-in_types.html)
Top: Top (top.html)
## 2.1.8. Special Attributes
The implementation adds a few special read-only attributes to several
object types, where they are relevant:
- • `x .__dict__` is a dictionary of some sort used to store... | 1.2 | 696 | https://docs.python.org/{python_version}/python-lib/special_attributes.html |
speech channel objects -- Python library reference | speech channel objects -- Python library reference
Prev: voice objects (voice_objects.html)
Top: Top (top.html)
## 14.8.2. speech channel objects
A speech channel object allows you to speak strings with slightly more
control than `SpeakString()`, and allows you to use multiple
speakers at the same time. Please note tha... | 1.2 | 440 | https://docs.python.org/{python_version}/python-lib/speech_channel_objects.html |
Standard Windowing Interface -- Python library reference | Standard Windowing Interface -- Python library reference
Prev: Macintosh Specific Services (macintosh_specific_services.html)
Top: Top (top.html)
# 15. Standard Windowing Interface
The modules in this chapter are available only on those systems where
the STDWIN library is available. STDWIN runs on UNIX under X11 and
o... | 1.2 | 921 | https://docs.python.org/{python_version}/python-lib/standard_windowing_interface.html |
stdwin -- Python library reference | stdwin -- Python library reference
Prev: Standard Windowing Interface (standard_windowing_interface.html)
Top: Top (top.html)
# 15.1. Built-in Module `stdwin`
This module defines several new object types and functions that
provide access to the functionality of STDWIN.
On Unix running X11, it can only be used if the `D... | 1.2 | 752 | https://docs.python.org/{python_version}/python-lib/stdwin.html |
STDWIN Example -- Python library reference | STDWIN Example -- Python library reference
Prev: Text-edit Objects (text-edit_objects.html)
Top: Top (top.html)
## 15.1.7. Example
Here is a minimal example of using STDWIN in Python.
It creates a window and draws the string ``Hello world'' in the top
left corner of the window.
The window will be correctly redrawn when... | 1.2 | 409 | https://docs.python.org/{python_version}/python-lib/stdwin_example.html |
STDWIN Functions -- Python library reference | STDWIN Functions -- Python library reference
Prev: stdwin (stdwin.html)
Top: Top (top.html)
## 15.1.1. Functions Defined in Module `stdwin`
The following functions are defined in the `stdwin` module:
## ---------- Footnotes ----------
(1) (#footnoteref1)
The Python version of STDWIN does not support draw procedures; al... | 1.2 | 367 | https://docs.python.org/{python_version}/python-lib/stdwin_functions.html |
stdwinevents -- Python library reference | stdwinevents -- Python library reference
Prev: stdwin (stdwin.html)
Top: Top (top.html)
# 15.2. Standard Module `stdwinevents`
This module defines constants used by STDWIN for event types
(`WE_ACTIVATE` etc.), command codes (`WC_LEFT` etc.)
and selection types (`WS_PRIMARY` etc.).
Read the file for details.
Suggested u... | 1.2 | 327 | https://docs.python.org/{python_version}/python-lib/stdwinevents.html |
string -- Python library reference | string -- Python library reference
Prev: String Services (string_services.html)
Top: Top (top.html)
# 4.1. Standard Module `string`
This module defines some constants useful for checking character
classes and some useful string functions. See the modules
`regex` and `regsub` for string functions based on regular
expre... | 1.2 | 801 | https://docs.python.org/{python_version}/python-lib/string.html |
String Services -- Python library reference | String Services -- Python library reference
Prev: Python Services (python_services.html)
Top: Top (top.html)
# 4. String Services
The modules described in this chapter provide a wide range of string
manipulation operations. Here's an overview:
## Menu | 1.2 | 252 | https://docs.python.org/{python_version}/python-lib/string_services.html |
struct -- Python library reference | struct -- Python library reference
Prev: regsub (regsub.html)
Top: Top (top.html)
# 4.4. Built-in Module `struct`
This module performs conversions between Python values and C
structs represented as Python strings. It uses format strings
(explained below) as compact descriptions of the lay-out of the C
structs and the ... | 1.2 | 1,464 | https://docs.python.org/{python_version}/python-lib/struct.html |
sunaudiodev -- Python library reference | sunaudiodev -- Python library reference
Prev: SunOS Specific Services (sunos_specific_services.html)
Top: Top (top.html)
# 17.1. Built-in Module `sunaudiodev`
This module allows you to access the sun audio interface. The sun
audio hardware is capable of recording and playing back audio data
in U-LAW format with a sampl... | 1.2 | 461 | https://docs.python.org/{python_version}/python-lib/sunaudiodev.html |
SunOS Specific Services -- Python library reference | SunOS Specific Services -- Python library reference
Prev: SGI IRIX Specific Services (sgi_irix_specific_services.html)
Top: Top (top.html)
# 17. SunOS Specific Services
The modules described in this chapter provide interfaces to features
that are unique to the SunOS operating system (versions 4 and 5; the
latter is als... | 1.2 | 358 | https://docs.python.org/{python_version}/python-lib/sunos_specific_services.html |
sys -- Python library reference | sys -- Python library reference
Prev: Python Services (python_services.html)
Top: Top (top.html)
# 3.1. Built-in Module `sys`
This module provides access to some variables used or maintained by the
interpreter and to functions that interact strongly with the interpreter.
It is always available. | 1.2 | 295 | https://docs.python.org/{python_version}/python-lib/sys.html |
TCP Status Objects -- Python library reference | TCP Status Objects -- Python library reference
Prev: TCP Stream Objects (tcp_stream_objects.html)
Top: Top (top.html)
## 14.7.2. TCP Status Objects
This object has no methods, only some members holding information on
the connection. A complete description of all fields in this objects
can be found in the Apple document... | 1.2 | 357 | https://docs.python.org/{python_version}/python-lib/tcp_status_objects.html |
TCP Stream Objects -- Python library reference | TCP Stream Objects -- Python library reference
Prev: mactcp (mactcp.html)
Top: Top (top.html)
## 14.7.1. TCP Stream Objects | 1.2 | 123 | https://docs.python.org/{python_version}/python-lib/tcp_stream_objects.html |
tempfile -- Python library reference | tempfile -- Python library reference
Prev: getopt (getopt.html)
Top: Top (top.html)
# 6.4. Standard Module `tempfile`
This module generates temporary file names. It is not UNIX specific,
but it may require some help on non-UNIX systems.
Note: the modules does not create temporary files, nor does it
automatically remov... | 1.2 | 917 | https://docs.python.org/{python_version}/python-lib/tempfile.html |
TERMIOS -- Python library reference | TERMIOS -- Python library reference
Prev: termios (termios.html)
Top: Top (top.html)
# 8.8. Standard Module `TERMIOS`
This module defines the symbolic constants required to use the
`termios` module (see the previous section). See the Posix or
UNIX manual pages (or the source) for a list of those constants.
Note: this ... | 1.2 | 497 | https://docs.python.org/{python_version}/python-lib/termios.html |
termios Example -- Python library reference | termios Example -- Python library reference
Prev: termios (termios.html)
Top: Top (top.html)
## 8.7.1. Example
Here's a function that prompts for a password with echoing turned off.
Note the technique using a separate `termios.tcgetattr()` call
and a `try ... finally` statement to ensure that the old tty
attributes are... | 1.2 | 361 | https://docs.python.org/{python_version}/python-lib/termios_example.html |
Text-edit Objects -- Python library reference | Text-edit Objects -- Python library reference
Prev: Bitmap Objects (bitmap_objects.html)
Top: Top (top.html)
## 15.1.6. Text-edit Objects
A text-edit object represents a text-edit block.
For semantics, see the STDWIN documentation for C programmers.
The following methods exist: | 1.2 | 278 | https://docs.python.org/{python_version}/python-lib/text-edit_objects.html |
The Null Object -- Python library reference | The Null Object -- Python library reference
Prev: Type Objects (type_objects.html)
Top: Top (top.html)
### 2.1.7.7. The Null Object
This object is returned by functions that don't explicitly return a
value. It supports no special operations. There is exactly one null
object, named `None` (a built-in name).
It is writ... | 1.2 | 334 | https://docs.python.org/{python_version}/python-lib/the_null_object.html |
The Python Debugger -- Python library reference | The Python Debugger -- Python library reference
Prev: UNIX Specific Services (unix_specific_services.html)
Top: Top (top.html)
# 9. The Python Debugger
The module `pdb` defines an interactive source code debugger for
Python programs. It supports setting breakpoints and single stepping
at the source line level, inspect... | 1.2 | 1,151 | https://docs.python.org/{python_version}/python-lib/the_python_debugger.html |
The Python Profiler -- Python library reference | The Python Profiler -- Python library reference
Prev: The Python Debugger (the_python_debugger.html)
Top: Top (top.html)
# 10. The Python Profiler
Copyright @copyright 1994, by InfoSeek Corporation, all rights reserved.
Written by James Roskind(1) (#footnotetext1)
Permission to use, copy, modify, and distribute this Py... | 1.2 | 2,188 | https://docs.python.org/{python_version}/python-lib/the_python_profiler.html |
The Stats Class -- Python library reference | The Stats Class -- Python library reference
Prev: Reference Manual (reference_manual.html)
Top: Top (top.html)
## 10.5.1. The `Stats` Class
## ---------- Footnotes ----------
(1) (#footnoteref1)
This was once necessary, when Python would print any unused expression
result that was not `None`. The method is still defin... | 1.2 | 350 | https://docs.python.org/{python_version}/python-lib/the_stats_class.html |
thread -- Python library reference | thread -- Python library reference
Prev: select (select.html)
Top: Top (top.html)
# 7.4. Built-in Module `thread`
This module provides low-level primitives for working with multiple
threads (a.k.a. light-weight processes or tasks) --- multiple
threads of control sharing their global data space. For
synchronization, si... | 1.2 | 1,103 | https://docs.python.org/{python_version}/python-lib/thread.html |
time -- Python library reference | time -- Python library reference
Prev: os (os.html)
Top: Top (top.html)
# 6.2. Built-in Module `time`
This module provides various time-related functions.
It is always available.
An explanation of some terminology and conventions is in order.
- • The ``epoch'' is the point where the time starts. On January 1st of that
... | 1.2 | 1,294 | https://docs.python.org/{python_version}/python-lib/time.html |
Top -- Python library reference | Top -- Python library reference
Prev: (dir) (../dir.html)
# The Python library
This file describes the built-in types, exceptions and functions and the
standard modules that come with the Python system. It assumes basic
knowledge about the Python language. For an informal introduction to
the language, see the Python ... | 1.2 | 542 | https://docs.python.org/{python_version}/python-lib/top.html |
traceback -- Python library reference | traceback -- Python library reference
Prev: types (types.html)
Top: Top (top.html)
# 3.3. Standard Module `traceback`
This module provides a standard interface to format and print stack
traces of Python programs. It exactly mimics the behavior of the
Python interpreter when it prints a stack trace. This is useful whe... | 1.2 | 605 | https://docs.python.org/{python_version}/python-lib/traceback.html |
Truth Value Testing -- Python library reference | Truth Value Testing -- Python library reference
Prev: Types (types.html)
Top: Top (top.html)
## 2.1.1. Truth Value Testing
Any object can be tested for truth value, for use in an `if` or
`while` condition or as operand of the Boolean operations below.
The following values are considered false:
- • `None`
• zero of an... | 1.2 | 892 | https://docs.python.org/{python_version}/python-lib/truth_value_testing.html |
Type Objects -- Python library reference | Type Objects -- Python library reference
Prev: Code Objects (code_objects.html)
Top: Top (top.html)
### 2.1.7.6. Type Objects
Type objects represent the various object types. An object's type is
accessed by the built-in function `type()`. There are no special
operations on types. The standard module `types` defines ... | 1.2 | 403 | https://docs.python.org/{python_version}/python-lib/type_objects.html |
types -- Python library reference | types -- Python library reference
Prev: sys (sys.html)
Top: Top (top.html)
# 3.2. Standard Module `types`
This module defines names for all object types that are used by the
standard Python interpreter (but not for the types defined by various
extension modules). It is safe to use ```from types import *`'' ---
the mod... | 1.2 | 612 | https://docs.python.org/{python_version}/python-lib/types.html |
UDP Stream Objects -- Python library reference | UDP Stream Objects -- Python library reference
Prev: TCP Status Objects (tcp_status_objects.html)
Top: Top (top.html)
## 14.7.3. UDP Stream Objects
Note that, unlike the name suggests, there is nothing stream-like
about UDP. | 1.2 | 224 | https://docs.python.org/{python_version}/python-lib/udp_stream_objects.html |
UNIX Specific Services -- Python library reference | UNIX Specific Services -- Python library reference
Prev: Optional Operating System Services (optional_operating_system_services.html)
Top: Top (top.html)
# 8. UNIX Specific Services
The modules described in this chapter provide interfaces to features
that are unique to the UNIX operating system, or in some cases to
som... | 1.2 | 374 | https://docs.python.org/{python_version}/python-lib/unix_specific_services.html |
urllib -- Python library reference | urllib -- Python library reference
Prev: cgi (cgi.html)
Top: Top (top.html)
# 11.2. Standard Module `urllib`
This module provides a high-level interface for fetching data across
the World-Wide Web. In particular, the `urlopen` function is
similar to the built-in function `open`, but accepts URLs
(Universal Resource Lo... | 1.2 | 1,966 | https://docs.python.org/{python_version}/python-lib/urllib.html |
urlparse -- Python library reference | urlparse -- Python library reference
Prev: nntplib (nntplib.html)
Top: Top (top.html)
# 11.7. Standard Module `urlparse`
This module defines a standard interface to break URL strings up in
components (addessing scheme, network location, path etc.), to combine
the components back into a URL string, and to convert a ``re... | 1.2 | 557 | https://docs.python.org/{python_version}/python-lib/urlparse.html |
Variable Index -- Python library reference | Variable Index -- Python library reference
Prev: Function Index (function_index.html)
Top: Top (top.html)
# Variable Index | 1.2 | 122 | https://docs.python.org/{python_version}/python-lib/variable_index.html |
voice objects -- Python library reference | voice objects -- Python library reference
Prev: macspeech (macspeech.html)
Top: Top (top.html)
## 14.8.1. voice objects
Voice objects contain the description of a voice. It is currently not
yet possible to access the parameters of a voice. | 1.2 | 239 | https://docs.python.org/{python_version}/python-lib/voice_objects.html |
whrandom -- Python library reference | whrandom -- Python library reference
Prev: rand (rand.html)
Top: Top (top.html)
# 5.3. Standard Module `whrandom`
This module implements a Wichmann-Hill pseudo-random number generator.
It defines the following functions: | 1.2 | 220 | https://docs.python.org/{python_version}/python-lib/whrandom.html |
Window Objects -- Python library reference | Window Objects -- Python library reference
Prev: STDWIN Functions (stdwin_functions.html)
Top: Top (top.html)
## 15.1.2. Window Objects
Window objects are created by `stdwin.open()`. They are closed
by their `close()` method or when they are garbage-collected.
Window objects have the following methods: | 1.2 | 304 | https://docs.python.org/{python_version}/python-lib/window_objects.html |
Footnotes | guido@cwi.nl | 1.2 | 12 | https://docs.python.org/{python_version}/python-ref/footnode.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.