home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / python / emacs-info / python-lib.info-5 < prev    next >
Encoding:
GNU Info File  |  1994-04-01  |  49.9 KB  |  1,064 lines  |  [TEXT/R*ch]

  1. This is Info file python-lib.info, produced by Makeinfo-1.55 from the
  2. input file lib.texi.
  3.  
  4. This file describes the built-in types, exceptions and functions and the
  5. standard modules that come with the Python system.  It assumes basic
  6. knowledge about the Python language.  For an informal introduction to
  7. the language, see the Python Tutorial.  The Python Reference Manual
  8. gives a more formal definition of the language.  (These manuals are not
  9. yet available in INFO or Texinfo format.)
  10.  
  11. Copyright (C) 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
  12. Amsterdam, The Netherlands.
  13.  
  14. All Rights Reserved
  15.  
  16. Permission to use, copy, modify, and distribute this software and its
  17. documentation for any purpose and without fee is hereby granted,
  18. provided that the above copyright notice appear in all copies and that
  19. both that copyright notice and this permission notice appear in
  20. supporting documentation, and that the names of Stichting Mathematisch
  21. Centrum or CWI not be used in advertising or publicity pertaining to
  22. distribution of the software without specific, written prior permission.
  23.  
  24. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  25. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  26. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR
  27. ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  28. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  29. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  30. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  31.  
  32. 
  33. File: python-lib.info,  Node: gl,  Next: Standard Modules GL and DEVICE,  Prev: fm,  Up: SGI IRIX ONLY
  34.  
  35. Built-in Module `gl'
  36. ====================
  37.  
  38. This module provides access to the Silicon Graphics *Graphics Library*.
  39. It is available only on Silicon Graphics machines.
  40.  
  41. *Warning:* Some illegal calls to the GL library cause the Python
  42. interpreter to dump core.  In particular, the use of most GL calls is
  43. unsafe before the first window is opened.
  44.  
  45. The module is too large to document here in its entirety, but the
  46. following should help you to get started.  The parameter conventions
  47. for the C functions are translated to Python as follows:
  48.  
  49.    * All (short, long, unsigned) int values are represented by Python
  50.      integers.
  51.  
  52.    * All float and double values are represented by Python floating
  53.      point numbers.  In most cases, Python integers are also allowed.
  54.  
  55.    * All arrays are represented by one-dimensional Python lists.  In
  56.      most cases, tuples are also allowed.
  57.  
  58.    * All string and character arguments are represented by Python
  59.      strings, for instance, `winopen('Hi There!')' and `rotate(900,
  60.      'z')'.
  61.  
  62.    * All (short, long, unsigned) integer arguments or return values
  63.      that are only used to specify the length of an array argument are
  64.      omitted.  For example, the C call
  65.  
  66.           lmdef(deftype, index, np, props)
  67.      is translated to Python as
  68.  
  69.           lmdef(deftype, index, props)
  70.  
  71.    * Output arguments are omitted from the argument list; they are
  72.      transmitted as function return values instead.  If more than one
  73.      value must be returned, the return value is a tuple.  If the C
  74.      function has both a regular return value (that is not omitted
  75.      because of the previous rule) and an output argument, the return
  76.      value comes first in the tuple.  Examples: the C call
  77.  
  78.           getmcolor(i, &red, &green, &blue)
  79.      is translated to Python as
  80.  
  81.           red, green, blue = getmcolor(i)
  82.  
  83. The following functions are non-standard or have special argument
  84. conventions:
  85.  
  86.  - function of module gl: varray (ARGUMENT)
  87.      Equivalent to but faster than a number of `v3d()' calls.  The
  88.      ARGUMENT is a list (or tuple) of points.  Each point must be a
  89.      tuple of coordinates `(X, Y, Z)' or `(X, Y)'.  The points may be
  90.      2- or 3-dimensional but must all have the same dimension.  Float
  91.      and int values may be mixed however.  The points are always
  92.      converted to 3D double precision points by assuming `Z = 0.0' if
  93.      necessary (as indicated in the man page), and for each point
  94.      `v3d()' is called.
  95.  
  96.  - function of module gl: nvarray ()
  97.      Equivalent to but faster than a number of `n3f' and `v3f' calls.
  98.      The argument is an array (list or tuple) of pairs of normals and
  99.      points.  Each pair is a tuple of a point and a normal for that
  100.      point.  Each point or normal must be a tuple of coordinates `(X,
  101.      Y, Z)'.  Three coordinates must be given.  Float and int values
  102.      may be mixed.  For each pair, `n3f()' is called for the normal,
  103.      and then `v3f()' is called for the point.
  104.  
  105.  - function of module gl: vnarray ()
  106.      Similar to `nvarray()' but the pairs have the point first and the
  107.      normal second.
  108.  
  109.  - function of module gl: nurbssurface (S_K, T_K, CTL, S_ORD, T_ORD,
  110.           TYPE)
  111.      Defines a nurbs surface.  The dimensions of `CTL[][]' are computed
  112.      as follows: `[len(S_K) - S_ORD]', `[len(T_K) - T_ORD]'.
  113.  
  114.  - function of module gl: nurbscurve (KNOTS, CTLPOINTS, ORDER, TYPE)
  115.      Defines a nurbs curve.  The length of ctlpoints is `len(KNOTS) -
  116.      ORDER'.
  117.  
  118.  - function of module gl: pwlcurve (POINTS, TYPE)
  119.      Defines a piecewise-linear curve.  POINTS is a list of points.
  120.      tYPE must be `N_ST'.
  121.  
  122.  - function of module gl: pick (N)
  123.  
  124.  - function of module gl: select (N)
  125.      The only argument to these functions specifies the desired size of
  126.      the pick or select buffer.
  127.  
  128.  - function of module gl: endpick ()
  129.  
  130.  - function of module gl: endselect ()
  131.      These functions have no arguments.  They return a list of integers
  132.      representing the used part of the pick/select buffer.  No method
  133.      is provided to detect buffer overrun.
  134.  
  135. Here is a tiny but complete example GL program in Python:
  136.  
  137.      import gl, GL, time
  138.      
  139.      def main():
  140.          gl.foreground()
  141.          gl.prefposition(500, 900, 500, 900)
  142.          w = gl.winopen('CrissCross')
  143.          gl.ortho2(0.0, 400.0, 0.0, 400.0)
  144.          gl.color(GL.WHITE)
  145.          gl.clear()
  146.          gl.color(GL.RED)
  147.          gl.bgnline()
  148.          gl.v2f(0.0, 0.0)
  149.          gl.v2f(400.0, 400.0)
  150.          gl.endline()
  151.          gl.bgnline()
  152.          gl.v2f(400.0, 0.0)
  153.          gl.v2f(0.0, 400.0)
  154.          gl.endline()
  155.          time.sleep(5)
  156.      
  157.      main()
  158.  
  159. 
  160. File: python-lib.info,  Node: Standard Modules GL and DEVICE,  Next: imgfile,  Prev: gl,  Up: SGI IRIX ONLY
  161.  
  162. Standard Modules `GL' and `DEVICE'
  163. ==================================
  164.  
  165. These modules define the constants used by the Silicon Graphics
  166. *Graphics Library* that C programmers find in the header files
  167. `<gl/gl.h>' and `<gl/device.h>'.  Read the module source files for
  168. details.
  169.  
  170. 
  171. File: python-lib.info,  Node: imgfile,  Prev: Standard Modules GL and DEVICE,  Up: SGI IRIX ONLY
  172.  
  173. Built-in module `imgfile'
  174. =========================
  175.  
  176. The imgfile module allows python programs to access SGI imglib image
  177. files (also known as `.rgb' files).  The module is far from complete,
  178. but is provided anyway since the functionality that there is is enough
  179. in some cases.  Currently, colormap files are not supported.
  180.  
  181. The module defines the following variables and functions:
  182.  
  183.  - exception of module imgfile: error
  184.      This exception is raised on all errors, such as unsupported file
  185.      type, etc.
  186.  
  187.  - function of module imgfile: getsizes (FILE)
  188.      This function returns a tuple `(X, Y, Z)' where X and Y are the
  189.      size of the image in pixels and Z is the number of bytes per
  190.      pixel. Only 3 byte RGB pixels and 1 byte greyscale pixels are
  191.      currently supported.
  192.  
  193.  - function of module imgfile: read (FILE)
  194.      This function reads and decodes the image on the specified file,
  195.      and returns it as a python string. The string has either 1 byte
  196.      greyscale pixels or 4 byte RGBA pixels. The bottom left pixel is
  197.      the first in the string. This format is suitable to pass to
  198.      `gl.lrectwrite', for instance.
  199.  
  200.  - function of module imgfile: readscaled (FILE, X, Y, FILTER, BLUR)
  201.      This function is identical to read but it returns an image that is
  202.      scaled to the given X and Y sizes. If the FILTER and BLUR
  203.      parameters are omitted scaling is done by simply dropping or
  204.      duplicating pixels, so the result will be less than perfect,
  205.      especially for computer-generated images.
  206.  
  207.      Alternatively, you can specify a filter to use to smoothen the
  208.      image after scaling. The filter forms supported are `'impulse'',
  209.      `'box'', `'triangle'', `'quadratic'' and `'gaussian''. If a filter
  210.      is specified BLUR is an optional parameter specifying the
  211.      blurriness of the filter. It defaults to `1.0'.
  212.  
  213.      Readscaled makes no attempt to keep the aspect ratio correct, so
  214.      that is the users' responsibility.
  215.  
  216.  - function of module imgfile: ttob (FLAG)
  217.      This function sets a global flag which defines whether the scan
  218.      lines of the image are read or written from bottom to top (flag is
  219.      zero, compatible with SGI GL) or from top to bottom(flag is one,
  220.      compatible with X).  The default is zero.
  221.  
  222.  - function of module imgfile: write (FILE, DATA, X, Y, Z)
  223.      This function writes the RGB or greyscale data in DATA to image
  224.      file FILE. X and Y give the size of the image, Z is 1 for 1 byte
  225.      greyscale images or 3 for RGB images (which are stored as 4 byte
  226.      values of which only the lower three bytes are used).  These are
  227.      the formats returned by `gl.lrectread'.
  228.  
  229. 
  230. File: python-lib.info,  Node: SUNOS ONLY,  Next: Function Index,  Prev: SGI IRIX ONLY,  Up: Top
  231.  
  232. SUNOS ONLY
  233. **********
  234.  
  235. The modules described in this chapter provide interfaces to features
  236. that are unique to the SunOS operating system (versions 4 and 5; the
  237. latter is also known as SOLARIS version 2).
  238.  
  239. * Menu:
  240.  
  241. * sunaudiodev::
  242.  
  243. 
  244. File: python-lib.info,  Node: sunaudiodev,  Prev: SUNOS ONLY,  Up: SUNOS ONLY
  245.  
  246. Built-in module `sunaudiodev'
  247. =============================
  248.  
  249. This module allows you to access the sun audio interface. The sun audio
  250. hardware is capable of recording and playing back audio data in U-LAW
  251. format with a sample rate of 8K per second. A full description can be
  252. gotten with `man audio'.
  253.  
  254. The module defines the following variables and functions:
  255.  
  256.  - exception of module sunaudiodev: error
  257.      This exception is raised on all errors. The argument is a string
  258.      describing what went wrong.
  259.  
  260.  - function of module sunaudiodev: open (MODE)
  261.      This function opens the audio device and returns a sun audio device
  262.      object. This object can then be used to do I/O on. The MODE
  263.      parameter is one of `'r'' for record-only access, `'w'' for
  264.      play-only access, `'rw'' for both and `'control'' for access to the
  265.      control device. Since only one process is allowed to have the
  266.      recorder or player open at the same time it is a good idea to open
  267.      the device only for the activity needed. See the audio manpage for
  268.      details.
  269.  
  270. * Menu:
  271.  
  272. * Audio device object methods::
  273.  
  274. 
  275. File: python-lib.info,  Node: Audio device object methods,  Prev: sunaudiodev,  Up: sunaudiodev
  276.  
  277. Audio device object methods
  278. ---------------------------
  279.  
  280. The audio device objects are returned by `open' define the following
  281. methods (except `control' objects which only provide getinfo, setinfo
  282. and drain):
  283.  
  284.  - Method on audio device: close ()
  285.      This method explicitly closes the device. It is useful in
  286.      situations where deleting the object does not immediately close it
  287.      since there are other references to it. A closed device should not
  288.      be used again.
  289.  
  290.  - Method on audio device: drain ()
  291.      This method waits until all pending output is processed and then
  292.      returns.  Calling this method is often not necessary: destroying
  293.      the object will automatically close the audio device and this will
  294.      do an implicit drain.
  295.  
  296.  - Method on audio device: flush ()
  297.      This method discards all pending output. It can be used avoid the
  298.      slow response to a user's stop request (due to buffering of up to
  299.      one second of sound).
  300.  
  301.  - Method on audio device: getinfo ()
  302.      This method retrieves status information like input and output
  303.      volume, etc. and returns it in the form of an audio status object.
  304.      This object has no methods but it contains a number of attributes
  305.      describing the current device status. The names and meanings of
  306.      the attributes are described in `/usr/include/sun/audioio.h' and
  307.      in the audio man page. Member names are slightly different from
  308.      their C counterparts: a status object is only a single structure.
  309.      Members of the `play' substructure have `o_' prepended to their
  310.      name and members of the `record' structure have `i_'. So, the C
  311.      member `play.sample_rate' is accessed as `o_sample_rate',
  312.      `record.gain' as `i_gain' and `monitor_gain' plainly as
  313.      `monitor_gain'.
  314.  
  315.  - Method on audio device: ibufcount ()
  316.      This method returns the number of samples that are buffered on the
  317.      recording side, i.e.  the program will not block on a `read' call
  318.      of so many samples.
  319.  
  320.  - Method on audio device: obufcount ()
  321.      This method returns the number of samples buffered on the playback
  322.      side. Unfortunately, this number cannot be used to determine a
  323.      number of samples that can be written without blocking since the
  324.      kernel output queue length seems to be variable.
  325.  
  326.  - Method on audio device: read (SIZE)
  327.      This method reads SIZE samples from the audio input and returns
  328.      them as a python string. The function blocks until enough data is
  329.      available.
  330.  
  331.  - Method on audio device: setinfo (STATUS)
  332.      This method sets the audio device status parameters. The STATUS
  333.      parameter is an device status object as returned by `getinfo' and
  334.      possibly modified by the program.
  335.  
  336.  - Method on audio device: write (SAMPLES)
  337.      Write is passed a python string containing audio samples to be
  338.      played.  If there is enough buffer space free it will immedeately
  339.      return, otherwise it will block.
  340.  
  341. There is a companion module, `SUNAUDIODEV', which defines useful
  342. symbolic constants like `MIN_GAIN', `MAX_GAIN', `SPEAKER', etc. The
  343. names of the constants are the same names as used in the C include file
  344. `<sun/audioio.h>', with the leading string `AUDIO_' stripped.
  345.  
  346. Useability of the control device is limited at the moment, since there
  347. is no way to use the 'wait for something to happen' feature the device
  348. provides. This is because that feature makes heavy use of signals, and
  349. these do not map too well onto Python.
  350.  
  351. 
  352. File: python-lib.info,  Node: Function Index,  Next: Variable Index,  Prev: SUNOS ONLY,  Up: Top
  353.  
  354. Function Index
  355. **************
  356.  
  357. * Menu:
  358.  
  359. * == (operator):                        Comparisons.
  360. * abs:                                  Built-in Functions.
  361. * accept on socket:                     Socket Object.
  362. * acos:                                 math.
  363. * acquire on lock:                      thread.
  364. * activate_form on form object:         Form object.
  365. * add:                                  audioop.
  366. * additem on menu:                      Menu Object.
  367. * add_box on form object:               Form object.
  368. * add_browser on form object:           Form object.
  369. * add_button on form object:            Form object.
  370. * add_choice on form object:            Form object.
  371. * add_clock on form object:             Form object.
  372. * add_counter on form object:           Form object.
  373. * add_dial on form object:              Form object.
  374. * add_input on form object:             Form object.
  375. * add_lightbutton on form object:       Form object.
  376. * add_menu on form object:              Form object.
  377. * add_positioner on form object:        Form object.
  378. * add_roundbutton on form object:       Form object.
  379. * add_slider on form object:            Form object.
  380. * add_text on form object:              Form object.
  381. * add_timer on form object:             Form object.
  382. * add_valslider on form object:         Form object.
  383. * adpcm2lin:                            audioop.
  384. * adpcm32lin:                           audioop.
  385. * allocate_lock:                        thread.
  386. * and (operator):                       Boolean Operations.
  387. * append:                               array.
  388. * append (list method):                 Mutable Sequence Types.
  389. * apply:                                Built-in Functions.
  390. * array:                                array.
  391. * arrow on text-edit:                   Text-edit Object.
  392. * asctime:                              time.
  393. * asin:                                 math.
  394. * askfile:                              Functions Defined in Module stdwin.
  395. * askstr:                               Functions Defined in Module stdwin.
  396. * askync:                               Functions Defined in Module stdwin.
  397. * atan:                                 math.
  398. * atan2:                                math.
  399. * atof:                                 string.
  400. * atoi:                                 string.
  401. * atol:                                 string.
  402. * avg:                                  audioop.
  403. * avgpp:                                audioop.
  404. * baseline:                             Functions Defined in Module stdwin.
  405. * baseline on drawing:                  Drawing Object.
  406. * basename:                             posixpath.
  407. * begindrawing on window:               Window Object.
  408. * bgn_group on form object:             Form object.
  409. * bias:                                 audioop.
  410. * binary on mpz:                        mpz.
  411. * bind on socket:                       Socket Object.
  412. * bitmap on drawing:                    Drawing Object.
  413. * box on drawing:                       Drawing Object.
  414. * byteswap:                             array.
  415. * calcsize:                             struct.
  416. * ceil:                                 math.
  417. * center:                               string.
  418. * change on window:                     Window Object.
  419. * chdir:                                posix.
  420. * check on menu:                        Menu Object.
  421. * check_forms:                          Functions defined in module fl.
  422. * chmod:                                posix.
  423. * choice:                               rand.
  424. * chr:                                  Built-in Functions.
  425. * circle on drawing:                    Drawing Object.
  426. * cliprect on drawing:                  Drawing Object.
  427. * close:                                posix.
  428. * close on audio device:                Audio device object methods.
  429. * close on bitmap:                      Bitmap Object.
  430. * close on drawing:                     Drawing Object.
  431. * close on file:                        File Objects.
  432. * close on menu:                        Menu Object.
  433. * close on socket:                      Socket Object.
  434. * close on text-edit:                   Text-edit Object.
  435. * close on window:                      Window Object.
  436. * closeport on audio port object:       al.
  437. * cmp:                                  Built-in Functions.
  438. * coerce:                               Built-in Functions.
  439. * color:                                Functions defined in module fl.
  440. * commonprefix:                         posixpath.
  441. * compile:                              Built-in Functions.
  442. * compile:                              regex.
  443. * compress:                             jpeg.
  444. * connect on socket:                    Socket Object.
  445. * connectionnumber:                     Functions Defined in Module stdwin.
  446. * copy on md5:                          md5.
  447. * cos:                                  math.
  448. * cosh:                                 math.
  449. * count (list method):                  Mutable Sequence Types.
  450. * crop:                                 imageop.
  451. * cross:                                audioop.
  452. * ctime:                                time.
  453. * deactivate_form on form object:       Form object.
  454. * decompress:                           jpeg.
  455. * delete_object on FORMS object:        FORMS object.
  456. * digest on md5:                        md5.
  457. * dir:                                  Built-in Functions.
  458. * dither2grey2:                         imageop.
  459. * dither2mono:                          imageop.
  460. * divm:                                 mpz.
  461. * divmod:                               Built-in Functions.
  462. * do_forms:                             Functions defined in module fl.
  463. * drain on audio device:                Audio device object methods.
  464. * draw on text-edit:                    Text-edit Object.
  465. * dump:                                 marshal.
  466. * dumps:                                marshal.
  467. * dup:                                  posix.
  468. * dup2:                                 posix.
  469. * elarc on drawing:                     Drawing Object.
  470. * enable on menu:                       Menu Object.
  471. * enddrawing on drawing:                Drawing Object.
  472. * endpick:                              gl.
  473. * endselect:                            gl.
  474. * end_group on form object:             Form object.
  475. * enumerate:                            fm.
  476. * erase on drawing:                     Drawing Object.
  477. * eval:                                 Built-in Functions.
  478. * event on text-edit:                   Text-edit Object.
  479. * execl:                                os.
  480. * execle:                               os.
  481. * execlp:                               os.
  482. * execv:                                posix.
  483. * execve:                               posix.
  484. * execvp:                               os.
  485. * exists:                               posixpath.
  486. * exit:                                 sys.
  487. * exit_prog:                            thread.
  488. * exit_thread:                          thread.
  489. * exp:                                  math.
  490. * expandtabs:                           string.
  491. * expanduser:                           posixpath.
  492. * fabs:                                 math.
  493. * fdopen:                               posix.
  494. * fetchcolor:                           Functions Defined in Module stdwin.
  495. * fileno:                               Functions Defined in Module stdwin.
  496. * fileno on socket:                     Socket Object.
  497. * fillcircle on drawing:                Drawing Object.
  498. * fillelarc on drawing:                 Drawing Object.
  499. * fillpoly on drawing:                  Drawing Object.
  500. * filter:                               Built-in Functions.
  501. * find:                                 string.
  502. * findfactor:                           audioop.
  503. * findfit:                              audioop.
  504. * findfont:                             fm.
  505. * findmax:                              audioop.
  506. * find_first on form object:            Form object.
  507. * find_last on form object:             Form object.
  508. * fleep:                                Functions Defined in Module stdwin.
  509. * float:                                Built-in Functions.
  510. * float (built-in function):            Numeric Types.
  511. * floor:                                math.
  512. * flush on audio device:                Audio device object methods.
  513. * flush on file:                        File Objects.
  514. * fmod:                                 math.
  515. * fontpath:                             fm.
  516. * fork:                                 posix.
  517. * freeze_form on form object:           Form object.
  518. * freeze_object on FORMS object:        FORMS object.
  519. * frexp:                                math.
  520. * fromfd:                               socket.
  521. * fromfile:                             array.
  522. * fromlist:                             array.
  523. * fromstring:                           array.
  524. * fstat:                                posix.
  525. * gcd:                                  mpz.
  526. * gcdext:                               mpz.
  527. * geom2rect:                            rect.
  528. * getactive:                            Functions Defined in Module stdwin.
  529. * getattr:                              Built-in Functions.
  530. * getbgcolor:                           Functions Defined in Module stdwin.
  531. * getbgcolor on drawing:                Drawing Object.
  532. * getbit on bitmap:                     Bitmap Object.
  533. * getchannels on audio configuration object: al.
  534. * getcomment on font handle:            fm.
  535. * getconfig on audio port object:       al.
  536. * getcutbuffer:                         Functions Defined in Module stdwin.
  537. * getcwd:                               posix.
  538. * getdefscrollbars:                     Functions Defined in Module stdwin.
  539. * getdefwinpos:                         Functions Defined in Module stdwin.
  540. * getdefwinsize:                        Functions Defined in Module stdwin.
  541. * getdocsize on window:                 Window Object.
  542. * getegid:                              posix.
  543. * geteuid:                              posix.
  544. * getevent:                             Functions Defined in Module stdwin.
  545. * getfd on audio port object:           al.
  546. * getfgcolor:                           Functions Defined in Module stdwin.
  547. * getfgcolor on drawing:                Drawing Object.
  548. * getfillable on audio port object:     al.
  549. * getfilled on audio port object:       al.
  550. * getfillpoint on audio port object:    al.
  551. * getfloatmax on audio configuration object: al.
  552. * getfocus on text-edit:                Text-edit Object.
  553. * getfocustext on text-edit:            Text-edit Object.
  554. * getfontinfo on font handle:           fm.
  555. * getfontname on font handle:           fm.
  556. * getgid:                               posix.
  557. * getgrall:                             grp.
  558. * getgrgid:                             grp.
  559. * getgrnam:                             grp.
  560. * gethostbyname:                        socket.
  561. * getinfo on audio device:              Audio device object methods.
  562. * getmcolor:                            Functions defined in module fl.
  563. * getorigin on window:                  Window Object.
  564. * getparams:                            al.
  565. * getpeername on socket:                Socket Object.
  566. * getpid:                               posix.
  567. * getppid:                              posix.
  568. * getpwall:                             pwd.
  569. * getpwnam:                             pwd.
  570. * getpwuid:                             pwd.
  571. * getqueuesize on audio configuration object: al.
  572. * getrect on text-edit:                 Text-edit Object.
  573. * getsampfmt on audio configuration object: al.
  574. * getsample:                            audioop.
  575. * getscrmm:                             Functions Defined in Module stdwin.
  576. * getscrsize:                           Functions Defined in Module stdwin.
  577. * getselection:                         Functions Defined in Module stdwin.
  578. * getservbyname:                        socket.
  579. * getsize on bitmap:                    Bitmap Object.
  580. * getsizes:                             imgfile.
  581. * getsockname on socket:                Socket Object.
  582. * getsockopt on socket:                 Socket Object.
  583. * getstatus on audio port object:       al.
  584. * getstrwidth on font handle:           fm.
  585. * gettext on text-edit:                 Text-edit Object.
  586. * gettitle on window:                   Window Object.
  587. * gettitle on window:                   Window Object.
  588. * getuid:                               posix.
  589. * getwidth on audio configuration object: al.
  590. * getwidth on audio configuration object: al.
  591. * getwinpos on window:                  Window Object.
  592. * getwinsize on window:                 Window Object.
  593. * get_directory:                        Functions defined in module fl.
  594. * get_filename:                         Functions defined in module fl.
  595. * get_mouse:                            Functions defined in module fl.
  596. * get_pattern:                          Functions defined in module fl.
  597. * get_rgbmode:                          Functions defined in module fl.
  598. * gmtime:                               time.
  599. * grey22grey:                           imageop.
  600. * grey2grey2:                           imageop.
  601. * grey2grey4:                           imageop.
  602. * grey2mono:                            imageop.
  603. * grey42grey:                           imageop.
  604. * group on regex:                       regex.
  605. * gsub:                                 regsub.
  606. * hasattr:                              Built-in Functions.
  607. * hash:                                 Built-in Functions.
  608. * has_key (dictionary method):          Mapping Types.
  609. * hex:                                  Built-in Functions.
  610. * hide_form on form object:             Form object.
  611. * hide_object on FORMS object:          FORMS object.
  612. * ibufcount on audio device:            Audio device object methods.
  613. * id:                                   Built-in Functions.
  614. * in (operator):                        Comparisons.
  615. * in (operator):                        Sequence Types.
  616. * index:                                string.
  617. * index (list method):                  Mutable Sequence Types.
  618. * init:                                 fm.
  619. * input:                                Built-in Functions.
  620. * insert:                               array.
  621. * insert (list method):                 Mutable Sequence Types.
  622. * inset:                                rect.
  623. * int:                                  Built-in Functions.
  624. * int (built-in function):              Numeric Types.
  625. * intersect:                            rect.
  626. * invert on drawing:                    Drawing Object.
  627. * is (operator):                        Comparisons.
  628. * is not (operator):                    Comparisons.
  629. * isabs:                                posixpath.
  630. * isatty on file:                       File Objects.
  631. * isdir:                                posixpath.
  632. * isfile:                               posixpath.
  633. * islink:                               posixpath.
  634. * ismount:                              posixpath.
  635. * isqueued:                             Functions defined in module fl.
  636. * is_empty:                             rect.
  637. * join:                                 posixpath.
  638. * join:                                 string.
  639. * joinfields:                           string.
  640. * keys (dictionary method):             Mapping Types.
  641. * kill:                                 posix.
  642. * ldexp:                                math.
  643. * len:                                  Built-in Functions.
  644. * len (built-in function):              Mapping Types.
  645. * len (built-in function):              Sequence Types.
  646. * lin2adpcm:                            audioop.
  647. * lin2adpcm3:                           audioop.
  648. * lin2lin:                              audioop.
  649. * lin2ulaw:                             audioop.
  650. * line on drawing:                      Drawing Object.
  651. * lineheight:                           Functions Defined in Module stdwin.
  652. * lineheight on drawing:                Drawing Object.
  653. * link:                                 posix.
  654. * listdir:                              posix.
  655. * listen on socket:                     Socket Object.
  656. * listfontnames:                        Functions Defined in Module stdwin.
  657. * ljust:                                string.
  658. * load:                                 marshal.
  659. * loads:                                marshal.
  660. * localtime:                            time.
  661. * locked on lock:                       thread.
  662. * log:                                  math.
  663. * log10:                                math.
  664. * long:                                 Built-in Functions.
  665. * long (built-in function):             Numeric Types.
  666. * longimagedata:                        rgbimg.
  667. * longstoimage:                         rgbimg.
  668. * lower:                                string.
  669. * lseek:                                posix.
  670. * lstat:                                posix.
  671. * makefile on socket:                   Socket Object.
  672. * make_form:                            Functions defined in module fl.
  673. * map:                                  Built-in Functions.
  674. * mapcolor:                             Functions defined in module fl.
  675. * match:                                regex.
  676. * match on regex:                       regex.
  677. * max:                                  Built-in Functions.
  678. * max:                                  audioop.
  679. * max (built-in function):              Sequence Types.
  680. * maxpp:                                audioop.
  681. * md5:                                  md5.
  682. * menucreate:                           Functions Defined in Module stdwin.
  683. * menucreate on window:                 Window Object.
  684. * message:                              Functions Defined in Module stdwin.
  685. * millisleep:                           time.
  686. * millitimer:                           time.
  687. * min:                                  Built-in Functions.
  688. * min (built-in function):              Sequence Types.
  689. * minmax:                               audioop.
  690. * mkdir:                                posix.
  691. * mktime:                               time.
  692. * modf:                                 math.
  693. * mono2grey:                            imageop.
  694. * move on text-edit:                    Text-edit Object.
  695. * mpz:                                  mpz.
  696. * mul:                                  audioop.
  697. * mul:                                  audioop.
  698. * newbitmap:                            Functions Defined in Module stdwin.
  699. * newconfig:                            al.
  700. * nice:                                 posix.
  701. * noclip on drawing:                    Drawing Object.
  702. * normcase:                             posixpath.
  703. * not (operator):                       Boolean Operations.
  704. * not in (operator):                    Comparisons.
  705. * not in (operator):                    Sequence Types.
  706. * nurbscurve:                           gl.
  707. * nurbssurface:                         gl.
  708. * nvarray:                              gl.
  709. * obufcount on audio device:            Audio device object methods.
  710. * oct:                                  Built-in Functions.
  711. * open:                                 Built-in Functions.
  712. * open:                                 posix.
  713. * open:                                 Functions Defined in Module stdwin.
  714. * open:                                 sunaudiodev.
  715. * open:                                 dbm.
  716. * openport:                             al.
  717. * or (operator):                        Boolean Operations.
  718. * ord:                                  Built-in Functions.
  719. * pack:                                 struct.
  720. * paint on drawing:                     Drawing Object.
  721. * pick:                                 gl.
  722. * pipe:                                 posix.
  723. * pointinrect:                          rect.
  724. * pollevent:                            Functions Defined in Module stdwin.
  725. * poly on drawing:                      Drawing Object.
  726. * popen:                                posix.
  727. * pow:                                  math.
  728. * pow:                                  Built-in Functions.
  729. * powm:                                 mpz.
  730. * prstr:                                fm.
  731. * pwlcurve:                             gl.
  732. * qdevice:                              Functions defined in module fl.
  733. * qenter:                               Functions defined in module fl.
  734. * qread:                                Functions defined in module fl.
  735. * qreset:                               Functions defined in module fl.
  736. * qtest:                                Functions defined in module fl.
  737. * queryparams:                          al.
  738. * rand:                                 rand.
  739. * random:                               whrandom.
  740. * range:                                Built-in Functions.
  741. * raw_input:                            Built-in Functions.
  742. * read:                                 imgfile.
  743. * read:                                 posix.
  744. * read on audio device:                 Audio device object methods.
  745. * read on file:                         File Objects.
  746. * readline on file:                     File Objects.
  747. * readlines on file:                    File Objects.
  748. * readlink:                             posix.
  749. * readsamps on audio port object:       al.
  750. * readscaled:                           imgfile.
  751. * rect2geom:                            rect.
  752. * recv on socket:                       Socket Object.
  753. * recvfrom on socket:                   Socket Object.
  754. * redraw_form on form object:           Form object.
  755. * redraw_object on FORMS object:        FORMS object.
  756. * reduce:                               Built-in Functions.
  757. * release on lock:                      thread.
  758. * reload:                               Built-in Functions.
  759. * remove (list method):                 Mutable Sequence Types.
  760. * rename:                               posix.
  761. * replace on text-edit:                 Text-edit Object.
  762. * repr:                                 Built-in Functions.
  763. * resetselection:                       Functions Defined in Module stdwin.
  764. * reverse:                              audioop.
  765. * reverse (list method):                Mutable Sequence Types.
  766. * rfind:                                string.
  767. * rindex:                               string.
  768. * rjust:                                string.
  769. * rmdir:                                posix.
  770. * rms:                                  audioop.
  771. * rotatecutbuffers:                     Functions Defined in Module stdwin.
  772. * round:                                Built-in Functions.
  773. * samefile:                             posixpath.
  774. * scale:                                imageop.
  775. * scalefont on font handle:             fm.
  776. * scroll on window:                     Window Object.
  777. * search:                               regex.
  778. * search on regex:                      regex.
  779. * seed:                                 whrandom.
  780. * seek on file:                         File Objects.
  781. * select:                               gl.
  782. * select:                               select.
  783. * send on socket:                       Socket Object.
  784. * sendto on socket:                     Socket Object.
  785. * setactive on window:                  Window Object.
  786. * setattr:                              Built-in Functions.
  787. * setbgcolor:                           Functions Defined in Module stdwin.
  788. * setbgcolor on drawing:                Drawing Object.
  789. * setbit on bitmap:                     Bitmap Object.
  790. * setchannels on audio configuration object: al.
  791. * setconfig on audio port object:       al.
  792. * setcutbuffer:                         Functions Defined in Module stdwin.
  793. * setdefscrollbars:                     Functions Defined in Module stdwin.
  794. * setdefwinpos:                         Functions Defined in Module stdwin.
  795. * setdefwinsize:                        Functions Defined in Module stdwin.
  796. * setdocsize on window:                 Window Object.
  797. * setfgcolor:                           Functions Defined in Module stdwin.
  798. * setfgcolor on drawing:                Drawing Object.
  799. * setfillpoint on audio port object:    al.
  800. * setfloatmax on audio configuration object: al.
  801. * setfocus on text-edit:                Text-edit Object.
  802. * setfont:                              Functions Defined in Module stdwin.
  803. * setfont on drawing:                   Drawing Object.
  804. * setfont on font handle:               fm.
  805. * setgid:                               posix.
  806. * setinfo on audio device:              Audio device object methods.
  807. * setitem on menu:                      Menu Object.
  808. * setoption:                            jpeg.
  809. * setorigin on window:                  Window Object.
  810. * setparams:                            al.
  811. * setpath:                              fm.
  812. * setprofile:                           sys.
  813. * setqueuesize on audio configuration object: al.
  814. * setsampfmt on audio configuration object: al.
  815. * setselection on window:               Window Object.
  816. * setsockopt on socket:                 Socket Object.
  817. * settext on text-edit:                 Text-edit Object.
  818. * settimer on window:                   Window Object.
  819. * settitle on window:                   Window Object.
  820. * settrace:                             sys.
  821. * setuid:                               posix.
  822. * setview on text-edit:                 Text-edit Object.
  823. * setwincursor on window:               Window Object.
  824. * setwinpos on window:                  Window Object.
  825. * setwinsize on window:                 Window Object.
  826. * set_call_back on FORMS object:        FORMS object.
  827. * set_event_call_back:                  Functions defined in module fl.
  828. * set_form_position on form object:     Form object.
  829. * set_graphics_mode:                    Functions defined in module fl.
  830. * set_syntax:                           regex.
  831. * shade on drawing:                     Drawing Object.
  832. * show on window:                       Window Object.
  833. * show_choice:                          Functions defined in module fl.
  834. * show_file_selector:                   Functions defined in module fl.
  835. * show_form on form object:             Form object.
  836. * show_input:                           Functions defined in module fl.
  837. * show_message:                         Functions defined in module fl.
  838. * show_object on FORMS object:          FORMS object.
  839. * show_question:                        Functions defined in module fl.
  840. * shutdown on socket:                   Socket Object.
  841. * sin:                                  math.
  842. * sinh:                                 math.
  843. * sizeofimage:                          rgbimg.
  844. * sleep:                                time.
  845. * socket:                               socket.
  846. * sort (list method):                   Mutable Sequence Types.
  847. * split:                                posixpath.
  848. * split:                                regsub.
  849. * split:                                string.
  850. * splitext:                             posixpath.
  851. * splitfields:                          string.
  852. * sqrt:                                 mpz.
  853. * sqrt:                                 math.
  854. * sqrtrem:                              mpz.
  855. * srand:                                rand.
  856. * start_new_thread:                     thread.
  857. * stat:                                 posix.
  858. * str:                                  Built-in Functions.
  859. * strip:                                string.
  860. * sub:                                  regsub.
  861. * swapcase:                             string.
  862. * symcomp:                              regex.
  863. * symlink:                              posix.
  864. * system:                               posix.
  865. * tan:                                  math.
  866. * tanh:                                 math.
  867. * tell on file:                         File Objects.
  868. * text on drawing:                      Drawing Object.
  869. * textbreak:                            Functions Defined in Module stdwin.
  870. * textbreak on drawing:                 Drawing Object.
  871. * textcreate on window:                 Window Object.
  872. * textwidth:                            Functions Defined in Module stdwin.
  873. * textwidth on drawing:                 Drawing Object.
  874. * tie:                                  Functions defined in module fl.
  875. * time:                                 time.
  876. * times:                                posix.
  877. * tofile:                               array.
  878. * tolist:                               array.
  879. * tomono:                               audioop.
  880. * tostereo:                             audioop.
  881. * tostring:                             array.
  882. * tovideo:                              imageop.
  883. * ttob:                                 imgfile.
  884. * ttob:                                 rgbimg.
  885. * type:                                 Built-in Functions.
  886. * type (built-in function):             Built-in Objects.
  887. * ulaw2lin:                             audioop.
  888. * umask:                                posix.
  889. * uname:                                posix.
  890. * unfreeze_form on form object:         Form object.
  891. * unfreeze_object on FORMS object:      FORMS object.
  892. * union:                                rect.
  893. * unlink:                               posix.
  894. * unpack:                               struct.
  895. * unqdevice:                            Functions defined in module fl.
  896. * update on md5:                        md5.
  897. * upper:                                string.
  898. * utime:                                posix.
  899. * varray:                               gl.
  900. * vnarray:                              gl.
  901. * wait:                                 posix.
  902. * waitpid:                              posix.
  903. * walk:                                 posixpath.
  904. * write:                                posix.
  905. * write:                                imgfile.
  906. * write on audio device:                Audio device object methods.
  907. * write on file:                        File Objects.
  908. * writesamps on audio port object:      al.
  909. * xorcircle on drawing:                 Drawing Object.
  910. * xorelarc on drawing:                  Drawing Object.
  911. * xorline on drawing:                   Drawing Object.
  912. * xorpoly on drawing:                   Drawing Object.
  913. * zfill:                                string.
  914. * _exit:                                posix.
  915.  
  916. 
  917. File: python-lib.info,  Node: Variable Index,  Next: Module Index,  Prev: Function Index,  Up: Top
  918.  
  919. Variable Index
  920. **************
  921.  
  922. * Menu:
  923.  
  924. * AF_INET:                              socket.
  925. * AF_UNIX:                              socket.
  926. * altzone:                              time.
  927. * argv:                                 sys.
  928. * atof_error:                           string.
  929. * atoi_error:                           string.
  930. * atol_error:                           string.
  931. * AttributeError:                       Exceptions.
  932. * builtin_module_names:                 sys.
  933. * casefold:                             regex.
  934. * curdir:                               os.
  935. * daylight:                             time.
  936. * digits:                               string.
  937. * e:                                    math.
  938. * empty:                                rect.
  939. * environ:                              posix.
  940. * EOFError:                             Exceptions.
  941. * error:                                audioop.
  942. * error:                                imageop.
  943. * error:                                rgbimg.
  944. * error:                                rect.
  945. * error:                                dbm.
  946. * error:                                select.
  947. * error:                                sunaudiodev.
  948. * error:                                posix.
  949. * error:                                struct.
  950. * error:                                imgfile.
  951. * error:                                socket.
  952. * error:                                thread.
  953. * error:                                regex.
  954. * exc_traceback:                        sys.
  955. * exc_type:                             sys.
  956. * exc_value:                            sys.
  957. * exitfunc:                             sys.
  958. * givenpat:                             regex.
  959. * groupindex:                           regex.
  960. * hexdigits:                            string.
  961. * ImportError:                          Exceptions.
  962. * IndexError:                           Exceptions.
  963. * index_error:                          string.
  964. * IOError:                              Exceptions.
  965. * itemsize:                             array.
  966. * KeyboardInterrupt:                    Exceptions.
  967. * KeyError:                             Exceptions.
  968. * last:                                 regex.
  969. * last_traceback:                       sys.
  970. * last_type:                            sys.
  971. * last_value:                           sys.
  972. * letters:                              string.
  973. * lowercase:                            string.
  974. * math (Built-in object):               Numeric Types.
  975. * MemoryError:                          Exceptions.
  976. * modules:                              sys.
  977. * name:                                 os.
  978. * NameError:                            Exceptions.
  979. * None (Built-in object):               Truth Value Testing.
  980. * octdigits:                            string.
  981. * OverflowError:                        Exceptions.
  982. * pardir:                               os.
  983. * path:                                 os.
  984. * path:                                 sys.
  985. * pi:                                   math.
  986. * ps1:                                  sys.
  987. * ps2:                                  sys.
  988. * realpat:                              regex.
  989. * regs:                                 regex.
  990. * RuntimeError:                         Exceptions.
  991. * sep:                                  os.
  992. * SOCK_DGRAM:                           socket.
  993. * SOCK_STREAM:                          socket.
  994. * stderr:                               sys.
  995. * stdin:                                sys.
  996. * stdout:                               sys.
  997. * SyntaxError:                          Exceptions.
  998. * SystemError:                          Exceptions.
  999. * SystemExit:                           Exceptions.
  1000. * timezone:                             time.
  1001. * tracebacklimit:                       sys.
  1002. * translate:                            regex.
  1003. * typecode:                             array.
  1004. * TypeError:                            Exceptions.
  1005. * tzname:                               time.
  1006. * uppercase:                            string.
  1007. * ValueError:                           Exceptions.
  1008. * whitespace:                           string.
  1009. * ZeroDivisionError:                    Exceptions.
  1010.  
  1011. 
  1012. File: python-lib.info,  Node: Module Index,  Next: Concept Index,  Prev: Variable Index,  Up: Top
  1013.  
  1014. Module Index
  1015. ************
  1016.  
  1017. * Menu:
  1018.  
  1019. * al (built-in):                        al.
  1020. * AL (standard):                        AL (uppercase).
  1021. * array (built-in):                     array.
  1022. * audioop (built-in):                   audioop.
  1023. * dbm (built-in):                       dbm.
  1024. * DEVICE (standard):                    Standard Modules GL and DEVICE.
  1025. * fl (built-in):                        fl.
  1026. * FL (standard):                        FL (uppercase).
  1027. * flp (standard):                       flp.
  1028. * fm (built-in):                        fm.
  1029. * getopt (standard):                    getopt.
  1030. * gl (built-in):                        gl.
  1031. * GL (standard):                        Standard Modules GL and DEVICE.
  1032. * grp (built-in):                       grp.
  1033. * imageop (built-in):                   imageop.
  1034. * imgfile (built-in):                   imgfile.
  1035. * jpeg (built-in):                      jpeg.
  1036. * marshal (built-in):                   marshal.
  1037. * math (built-in):                      math.
  1038. * md5 (built-in):                       md5.
  1039. * mpz (built-in):                       mpz.
  1040. * os (standard):                        os.
  1041. * posix (built-in):                     posix.
  1042. * posixpath (standard):                 posixpath.
  1043. * pwd (built-in):                       pwd.
  1044. * rand (standard):                      rand.
  1045. * rect (standard):                      rect.
  1046. * regex (built-in):                     regex.
  1047. * regsub (standard):                    regsub.
  1048. * rgbimg (built-in):                    rgbimg.
  1049. * rotor (built-in):                     rotor.
  1050. * select (built-in):                    select.
  1051. * socket (built-in):                    socket.
  1052. * stdwin (built-in):                    stdwin.
  1053. * stdwinevents (standard):              stdwinevents.
  1054. * string (standard):                    string.
  1055. * struct (built-in):                    struct.
  1056. * sunaudiodev (built-in):               sunaudiodev.
  1057. * sys (built-in):                       sys.
  1058. * thread (built-in):                    thread.
  1059. * time (built-in):                      time.
  1060. * whrandom (standard):                  whrandom.
  1061. * __builtin__ (built-in):               __builtin__.
  1062. * __main__ (built-in):                  __main__.
  1063.  
  1064.