cpython/Include
Thomas Wouters 9df4e6f673 - Add new Warning class, ImportWarning
- Warn-raise ImportWarning when importing would have picked up a directory
   as package, if only it'd had an __init__.py. This swaps two tests (for
   case-ness and __init__-ness), but case-test is not really more expensive,
   and it's not in a speed-critical section.

 - Test for the new warning by importing a common non-package directory on
   sys.path: site-packages

 - In regrtest.py, silence warnings generated by the build-environment
   because Modules/ (which is added to sys.path for Setup-created modules)
   has 'zlib' and '_ctypes' directories without __init__.py's.
2006-04-27 23:13:20 +00:00
..
Python-ast.h Introduce asdl_int_seq, to hold cmpop_ty. 2006-04-13 12:29:43 +00:00
Python.h Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, 2005-12-17 20:54:49 +00:00
abstract.h C++ compilation cleanup: Migrate declaration of 2006-04-18 00:27:46 +00:00
asdl.h Introduce asdl_int_seq, to hold cmpop_ty. 2006-04-13 12:29:43 +00:00
ast.h Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, 2005-12-17 20:54:49 +00:00
bitset.h
boolobject.h SF bug 994255: Py_RETURN_NONE causes too much warnings 2004-07-22 01:46:43 +00:00
bufferobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
cStringIO.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
cellobject.h Wrote down the invariants of some common objects whose structure is 2004-10-28 16:32:00 +00:00
ceval.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
classobject.h
cobject.h
code.h Refactor: Move code that uses co_lnotab from ceval to codeobject 2006-04-18 14:47:00 +00:00
codecs.h Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass 2006-03-15 11:35:15 +00:00
compile.h Don't abbreviate ABS, use long name ABSOLUTE. 2006-04-03 06:26:32 +00:00
complexobject.h
datetime.h Add missing backslash for PyDateTimeAPI->Delta_FromDelta() macro. 2004-06-28 00:48:30 +00:00
descrobject.h
dictobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
enumobject.h
errcode.h Patch #802188: better parser error message for non-EOL following line cont. 2005-03-03 11:45:45 +00:00
eval.h
fileobject.h Add weakref support to array.array and file objects. 2004-05-31 00:35:52 +00:00
floatobject.h This is my patch: 2005-05-27 15:23:20 +00:00
frameobject.h SF Bug #215126: Over restricted type checking on eval() function 2004-07-02 06:41:07 +00:00
funcobject.h Wrote down the invariants of some common objects whose structure is 2004-10-28 16:32:00 +00:00
genobject.h Don't set gi_frame to Py_None, use NULL instead, eliminating some insane 2006-04-12 19:07:15 +00:00
graminit.h PEP 343 -- the with-statement. 2006-02-27 22:32:47 +00:00
grammar.h
import.h SF patch #1438387, PEP 328: relative and absolute imports. 2006-02-28 16:09:29 +00:00
intobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
intrcheck.h
iterobject.h
listobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
longintrepr.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
longobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
marshal.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
metagrammar.h
methodobject.h Add const to several API functions that take char *. 2005-12-10 18:50:16 +00:00
modsupport.h C++ compile cleanup: proper declaration of _Py_BuildValue_SizeT 2006-04-18 00:29:29 +00:00
moduleobject.h Add const to several API functions that take char *. 2005-12-10 18:50:16 +00:00
node.h Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
object.h Remove types from type_list if they have no objects 2006-04-18 06:24:08 +00:00
objimpl.h frame_traverse(): Use the standard Py_VISIT macro. 2006-04-15 03:22:46 +00:00
opcode.h PEP 343 -- the with-statement. 2006-02-27 22:32:47 +00:00
osdefs.h Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses 2006-04-25 15:29:46 +00:00
parsetok.h from __future__ import with_statement addon for 'with', mostly written by 2006-02-28 19:02:24 +00:00
patchlevel.h 2.5a2 2006-04-27 02:11:24 +00:00
pgen.h
pgenheaders.h
py_curses.h
pyarena.h Added words about what PyArena_Malloc() does. 2006-03-02 21:14:45 +00:00
pydebug.h
pyerrors.h - Add new Warning class, ImportWarning 2006-04-27 23:13:20 +00:00
pyexpat.h moved magic into structure (mainly to simplify the client code) 2005-12-13 21:55:36 +00:00
pyfpe.h
pygetopt.h
pymactoolbox.h SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core 2004-11-05 07:02:59 +00:00
pymem.h Years in the making. 2006-03-26 23:27:58 +00:00
pyport.h Fixed error in comment for new PY_SSIZE_T_MIN. 2006-04-05 18:43:30 +00:00
pystate.h Add comments about PyThreadState and the usage of its fields. 2005-06-25 07:07:35 +00:00
pystrtod.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
pythonrun.h Don't abbreviate ABS, use long name ABSOLUTE. 2006-04-03 06:26:32 +00:00
pythread.h
rangeobject.h Remove PyRange_New(). 2004-12-03 11:45:13 +00:00
setobject.h SF patch #1458476 with modifications based on discussions in python-dev. This 2006-03-30 22:45:35 +00:00
sliceobject.h Stop duplicating code and handle slice indices consistently and correctly 2006-03-23 06:03:08 +00:00
stringobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
structmember.h Allow for ssize_t field offsets. 2006-02-16 14:23:19 +00:00
structseq.h
symtable.h No need to export PySTEntry_New, it is only used in symtable.c 2006-02-28 22:36:46 +00:00
sysmodule.h
timefuncs.h Bug 975996: Add _PyTime_DoubleToTimet to C API 2004-06-20 02:50:16 +00:00
token.h PEP-0318, @decorator-style. In Guido's words: 2004-08-02 06:10:11 +00:00
traceback.h Moved tracebackobject to traceback.h, Closes SF Bug #497067 2004-03-21 18:37:23 +00:00
tupleobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
ucnhash.h Avoid forward-declaring the methods array. 2006-03-10 11:20:04 +00:00
unicodeobject.h Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
weakrefobject.h SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00