cpython/Doc/c-api
Alexandre Vassalotti 7b82b40a47 Merged revisions 72487-72488,72879 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines

  PyCode_NewEmpty:
  Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
  are trying to build an empty code object, usually to put it in a dummy frame
  object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
  just the filename, function name, and first line number, instead of also
  requiring lots of code internals.
........
  r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines

  Issue 5954, PyFrame_GetLineNumber:
  Most uses of PyCode_Addr2Line
  (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
  the line number of a specified frame, but there's no way to do that directly.
  Forcing people to go through the code object makes them know more about the
  guts of the interpreter than they should need.

  The remaining uses of PyCode_Addr2Line seem to be getting the line from a
  traceback (for example,
  http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
  which is replaced by the tb_lineno field.  So we may be able to deprecate
  PyCode_Addr2Line entirely for external use.
........
  r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines

  Issue #6042:
  lnotab-based tracing is very complicated and isn't documented very well.  There
  were at least 3 comment blocks purporting to document co_lnotab, and none did a
  very good job. This patch unifies them into Objects/lnotab_notes.txt which
  tries to completely capture the current state of affairs.

  I also discovered that we've attached 2 layers of patches to the basic tracing
  scheme. The first layer avoids jumping to instructions that don't start a line,
  to avoid problems in if statements and while loops.  The second layer
  discovered that jumps backward do need to trace at instructions that don't
  start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
  added a special case for backward jumps within the same line. I replaced these
  patches by just treating forward and backward jumps differently.
........
2009-07-21 04:30:03 +00:00
..
abstract.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
allocation.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
arg.rst Issue #6012: Add cleanup support to O& argument parsing. 2009-05-29 14:47:46 +00:00
bool.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
buffer.rst Merged revisions 72506,72525-72526,72551,72558,72616,72654-72655,72689,72745,72750,72802,72812,72822,72824,72826-72827,72833,72876,72890,72923,72946,73026,73042,73045,73047,73065,73068-73069 via svnmerge from 2009-06-01 22:42:33 +00:00
bytearray.rst Merged revisions 63724,63726,63732,63744,63754-63755,63757-63758,63760,63775,63781-63782,63787,63805-63808,63818-63819,63823-63824 via svnmerge from 2008-06-10 16:57:31 +00:00
bytes.rst remove docs for PyBytes_Format #4917 2009-01-12 00:28:16 +00:00
capsule.rst #5946: fix speling. 2009-05-06 08:32:17 +00:00
cell.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
code.rst Merged revisions 72487-72488,72879 via svnmerge from 2009-07-21 04:30:03 +00:00
complex.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
concrete.rst Merged revisions 72487-72488,72879 via svnmerge from 2009-07-21 04:30:03 +00:00
conversion.rst Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 2009-05-05 14:04:18 +00:00
datetime.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
descriptor.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
dict.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
exceptions.rst Fix segfaults when running test_exceptions with coverage tracing, caused by wrongly defining Exception.__context__ as a T_OBJECT structmember which does not set the member to NULL on None assignment, and generally does not do type checks. This could be used to crash the interpreter by setting any object to __context__. The same applies to __cause__. Also document the PyException_* functions. 2009-03-31 04:16:10 +00:00
file.rst Remove trailing whitespace. 2009-01-03 21:18:54 +00:00
float.rst Merged revisions 64722,64729,64753,64845-64846,64849,64871,64880-64882,64885,64888,64897,64900-64901,64915,64926-64929,64938-64941,64944,64961,64966,64973 via svnmerge from 2008-07-16 12:55:28 +00:00
function.rst Mention the behaviour of PyFunction_SetAnnotations() on error. 2008-07-13 22:28:42 +00:00
gcsupport.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
gen.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
import.rst Merged revisions 73930-73932,73937-73939,73945,73951,73954,73962-73963,73970 via svnmerge from 2009-07-17 10:42:05 +00:00
index.rst Fix two oversights in C API split. 2008-01-20 11:00:14 +00:00
init.rst Merged revisions 70768,71657,71721,71729,71794,71976,72036-72037,72079,72085,72131-72134,72191,72197-72198,72219,72221,72225,72303,72434,72467,72476 via svnmerge from 2009-05-08 20:42:26 +00:00
intro.rst Merged revisions 72009 via svnmerge from 2009-04-27 16:20:50 +00:00
iter.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
iterator.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
list.rst Merged revisions 73190,73213,73257-73258,73260,73275,73294 via svnmerge from 2009-06-08 13:41:29 +00:00
long.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
mapping.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
marshal.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
memory.rst Merged revisions 65182 via svnmerge from 2008-07-23 16:13:07 +00:00
method.rst Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60845 via svnmerge from 2008-02-16 07:38:31 +00:00
module.rst #4614: document PyModule_Create and PyModuleDef struct. 2009-01-04 23:20:14 +00:00
none.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
number.rst #6115: remove entries for the already removed PyNumber_Divide and PyNumber_InPlaceDivide from the header and the docs. 2009-05-26 16:43:13 +00:00
objbuffer.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
object.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
objimpl.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
refcounting.rst Merged revisions 59333-59370 via svnmerge from 2007-12-05 20:18:38 +00:00
reflection.rst Merged revisions 72487-72488,72879 via svnmerge from 2009-07-21 04:30:03 +00:00
sequence.rst Merged revisions 72506,72525-72526,72551,72558,72616,72654-72655,72689,72745,72750,72802,72812,72822,72824,72826-72827,72833,72876,72890,72923,72946,73026,73042,73045,73047,73065,73068-73069 via svnmerge from 2009-06-01 22:42:33 +00:00
set.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
slice.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
structures.rst #6421: The self argument of module-level PyCFunctions is now a reference to the module object. 2009-07-11 10:43:08 +00:00
sys.rst Merged revisions 68203 via svnmerge from 2009-01-03 17:22:40 +00:00
tuple.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
type.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
typeobj.rst After discussing some more with Georg, do no migrate versionchanged:: 2.5 to 2009-04-27 08:07:12 +00:00
unicode.rst Issue #6012: Add cleanup support to O& argument parsing. 2009-05-29 14:47:46 +00:00
utilities.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
veryhigh.rst Merged revisions 70712,70714,70764-70765,70769-70771,70773,70776-70777,70788-70789,70824,70828,70832,70836,70842,70851,70855,70857,70866-70872,70883,70885,70893-70894,70896-70897,70903,70905-70907,70915,70927,70933,70951,70960,70962-70964,70998,71001,71006,71008,71010-71011,71019,71037,71056,71094,71101-71103,71106,71119,71123,71149-71150,71203,71212,71214-71217,71221,71240 via svnmerge from 2009-04-05 19:13:16 +00:00
weakref.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00