~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/inspect.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
| frame     | f_back          | next outer frame object   |       |
127
127
|           |                 | (this frame's caller)     |       |
128
128
+-----------+-----------------+---------------------------+-------+
129
 
|           | f_builtins      | built-in namespace seen   |       |
 
129
|           | f_builtins      | builtins namespace seen   |       |
130
130
|           |                 | by this frame             |       |
131
131
+-----------+-----------------+---------------------------+-------+
132
132
|           | f_code          | code object being         |       |
353
353
 
354
354
   Return true if the object is a getset descriptor.
355
355
 
356
 
   getsets are attributes defined in extension modules via ``PyGetSetDef``
357
 
   structures.  For Python implementations without such types, this method will
358
 
   always return ``False``.
 
356
   .. impl-detail::
 
357
 
 
358
      getsets are attributes defined in extension modules via
 
359
      :ctype:`PyGetSetDef` structures.  For Python implementations without such
 
360
      types, this method will always return ``False``.
359
361
 
360
362
   .. versionadded:: 2.5
361
363
 
364
366
 
365
367
   Return true if the object is a member descriptor.
366
368
 
367
 
   Member descriptors are attributes defined in extension modules via
368
 
   ``PyMemberDef`` structures.  For Python implementations without such types,
369
 
   this method will always return ``False``.
 
369
   .. impl-detail::
 
370
 
 
371
      Member descriptors are attributes defined in extension modules via
 
372
      :ctype:`PyMemberDef` structures.  For Python implementations without such
 
373
      types, this method will always return ``False``.
370
374
 
371
375
   .. versionadded:: 2.5
372
376
 
567
571
 
568
572
   Return the frame object for the caller's stack frame.
569
573
 
 
574
   .. impl-detail::
 
575
 
 
576
      This function relies on Python stack frame support in the interpreter,
 
577
      which isn't guaranteed to exist in all implementations of Python.  If
 
578
      running in an implementation without Python stack frame support this
 
579
      function returns ``None``.
 
580
 
570
581
 
571
582
.. function:: stack([context])
572
583