cpython/Modules
Thomas Wouters f7f438ba3b SF patch #1438387, PEP 328: relative and absolute imports.
- IMPORT_NAME takes an extra argument from the stack: the relativeness of
   the import. Only passed to __import__ when it's not -1.

 - __import__() takes an optional 5th argument for the same thing; it
   __defaults to -1 (old semantics: try relative, then absolute)

 - 'from . import name' imports name (be it module or regular attribute)
   from the current module's *package*. Likewise, 'from .module import name'
   will import name from a sibling to the current module.

 - Importing from outside a package is not allowed; 'from . import sys' in a
   toplevel module will not work, nor will 'from .. import sys' in a
   (single-level) package.

 - 'from __future__ import absolute_import' will turn on the new semantics
   for import and from-import: imports will be absolute, except for
   from-import with dots.

Includes tests for regular imports and importhooks, parser changes and a
NEWS item, but no compiler-package changes or documentation changes.
2006-02-28 16:09:29 +00:00
..
cjkcodecs More unconsting. 2006-02-27 17:20:04 +00:00
expat Remove two instances of trailing commas. Resolves patch #1209781. 2006-02-19 15:28:47 +00:00
zlib Remove unneeded directories. 2006-01-03 06:48:38 +00:00
_bisectmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
_bsddb.c More unconsting. 2006-02-27 17:20:04 +00:00
_codecsmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_csv.c More unconsting. 2006-02-27 17:20:04 +00:00
_curses_panel.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_cursesmodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_elementtree.c More unconsting. 2006-02-27 17:20:04 +00:00
_hashopenssl.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_heapqmodule.c Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over 2006-02-16 19:21:53 +00:00
_hotshot.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_localemodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_lsprof.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_randommodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_sre.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_ssl.c Try to improve name based on discussion on python-checkins with Jim Jewett 2006-02-13 00:35:21 +00:00
_testcapimodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_tkinter.c unconst. 2006-02-27 23:10:11 +00:00
_weakref.c Make weak references subclassable: 2004-07-02 18:57:45 +00:00
addrinfo.h Add comments at end of every #endif and fix ones already there when for closing 2004-07-10 19:30:39 +00:00
almodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ar_beos
arraymodule.c Convert array.array.insert to use Py_ssize_t (like the rest already does.) 2006-02-27 19:44:56 +00:00
audioop.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
binascii.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
bsddbmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
bz2module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
ccpython.cc
cdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cgen.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
cgensupport.c
cgensupport.h
clmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
collectionsmodule.c - Patch 1433928: 2006-02-25 22:38:04 +00:00
config.c.in Create _ast module. 2006-02-27 15:23:19 +00:00
cPickle.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cStringIO.c Use Py_ssize_t for counts and sizes. 2006-02-16 14:30:23 +00:00
cstubs
datetimemodule.c More unconsting. 2006-02-27 17:20:04 +00:00
dbmmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
dlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
errnomodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fcntlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
flmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpectlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
functionalmodule.c Fix typo in functional module 2006-02-21 17:49:57 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Change _PyObject_GC_Resize to expect Py_ssize_t. 2006-02-16 14:56:14 +00:00
gdbmmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
getaddrinfo.c SF #784031: Byte-order bug in socket-module getaddrinfo.c 2003-08-17 21:28:39 +00:00
getbuildinfo.c Generate getbuildinfo.o each time the linker is invoked; 2006-01-18 09:13:51 +00:00
getnameinfo.c
getpath.c Patch #931938: prevent setting sys.prefix to "" 2006-02-20 17:37:36 +00:00
glmodule.c SF patch #577031, remove PyArg_NoArgs() since it's deprecated 2002-07-28 15:23:23 +00:00
grpmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imageop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imgfile.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
itertoolsmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos
linuxaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
main.c Fix a bunch of imports to use code.h instead of compile.h. 2005-10-21 14:58:06 +00:00
makesetup
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
md5.h Issue an explicit error when we can't find an appropriate type for 2002-05-29 14:00:22 +00:00
md5c.c Patch #977074: Move Encode/Decode to the top so gcc can inline them. 2004-08-03 13:08:07 +00:00
md5module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
mmapmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
nismodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
operator.c Use Py_ssize_t for counts and sizes. 2006-02-16 14:30:23 +00:00
ossaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
parsermodule.c SF patch #1438387, PEP 328: relative and absolute imports. 2006-02-28 16:09:29 +00:00
posixmodule.c Fix a build problem introduced by r42230. 2006-02-19 16:22:22 +00:00
puremodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pyexpat.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
regexmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
regexpr.c Replace abort with Py_FatalError. 2002-08-07 16:21:51 +00:00
regexpr.h
resource.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
rgbimgmodule.c Add deprecation warning to modules deprecated since 2000. 2006-02-17 11:29:04 +00:00
rotatingtree.c randombits(): Stop compiler warning about mixing 2006-02-15 03:01:30 +00:00
rotatingtree.h Added the cProfile module. 2006-02-08 12:53:56 +00:00
selectmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +00:00
sgimodule.c
sha256module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
sha512module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
shamodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
socketmodule.h Get socketmodule to build after adding netlink support. 2006-01-16 04:31:40 +00:00
spwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sre.h Add weakref support to sockets and re pattern objects. 2004-05-31 03:09:25 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
stropmodule.c Make ssize_t-clean. 2006-02-17 15:49:09 +00:00
structmodule.c struct_pack(): Repair new assert-fail crash in 2006-02-16 20:19:46 +00:00
sunaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
svmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
symtablemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
syslogmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h
threadmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timing.h
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Patch #1213831: Fix typo in unicodedata._getcode. 2005-09-18 08:17:56 +00:00
unicodedata_db.h SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
unicodename_db.h - SF #962502: Add two more methods for unicode type; width() and 2004-06-02 16:49:17 +00:00
xxmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
xxsubtype.c add some example docstrings using PyDoc_STR 2002-08-14 01:45:37 +00:00
yuv.h
yuvconvert.c
zipimport.c Patch #1352711: make zipimport raise a complete IOError 2006-02-19 09:38:58 +00:00
zlibmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00