cpython/Doc/library
Brett Cannon 27e27f7ee1 Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd
and stop importlib.machinery.FileFinder treating '' as '.'.

Previous PathFinder transformed '' into '.' which led to __file__ for
modules imported from the cwd to always be relative paths. This meant
the values of the attribute were wrong as soon as the cwd changed.
This change now means that as long as the site module is run (which
makes all entries in sys.path absolute) then all values for __file__
will also be absolute unless it's for __main__ when specified by file
path in a relative way (modules imported by runpy will have an
absolute path).

Now that PathFinder is no longer treating '' as '.' it only makes
sense for FileFinder to stop doing so as well. Now no transformation
is performed for the directory given to the __init__ method.

Thanks to Madison May for the initial patch.
2013-10-18 11:39:04 -04:00
..
2to3.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
__future__.rst
__main__.rst
_dummy_thread.rst #17166: fix _dummy_thread import example. 2013-02-09 13:23:46 -05:00
_thread.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
abc.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
aifc.rst Fix markup. 2013-10-18 11:55:30 +03:00
allos.rst
archiving.rst
argparse.rst merge with 3.3 2013-10-06 19:34:19 +02:00
array.rst #18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev. 2013-06-09 01:04:21 +03:00
ast.rst
asynchat.rst
asyncore.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
atexit.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:34:44 +01:00
audioop.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
base64.rst Close #17839: support bytes-like objects in base64 module 2013-10-03 00:43:22 +10:00
bdb.rst
binary.rst
binascii.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
binhex.rst
bisect.rst
builtins.rst
bz2.rst
calendar.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
cgi.rst Issue #19198: Improved cross-references in the cgi module documentation. 2013-10-13 18:28:26 +03:00
cgitb.rst
chunk.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
cmath.rst
cmd.rst
code.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
codecs.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
codeop.rst
collections.abc.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
collections.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
colorsys.rst #16154: fix some doctests in Doc/library. Patch by Ravi Sinha. 2013-01-11 09:09:07 +02:00
compileall.rst Fix example ignoring ".svn" directories in compileall. 2013-04-14 12:02:43 +02:00
concurrency.rst Issue #16853: Add new selectors module. 2013-09-04 19:02:49 +02:00
concurrent.futures.rst Issue #18757: Improved cross-references in the concurrent package. 2013-08-24 00:23:38 +03:00
concurrent.rst
configparser.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
constants.rst
contextlib.rst Close #19266: contextlib.ignore -> contextlib.suppress 2013-10-17 23:40:57 +10:00
copy.rst #11481: update copyreg docs and add example. 2012-11-08 11:04:57 +02:00
copyreg.rst #11481: merge with 3.2. 2012-11-08 11:06:01 +02:00
crypt.rst
crypto.rst
csv.rst #16053: merge with 3.2. 2012-11-18 12:56:17 +02:00
ctypes.rst Closes #13951: Add a "faulthandler" reference in the ctypes docs talking about crashes. 2013-10-06 10:51:01 +02:00
curses.ascii.rst
curses.panel.rst
curses.rst Merge link addition from 3.2. 2013-02-28 18:03:16 +02:00
custominterp.rst
datatypes.rst Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib. 2013-06-14 00:30:27 -07:00
datetime.rst merge with 3.3 2013-10-13 18:38:53 +02:00
dbm.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
debug.rst
decimal.rst Issue #15783: Except for the number methods, the C version of decimal now 2012-12-15 22:33:33 +01:00
depgraph-output.png
development.rst
difflib.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
dis.rst merge with 3.3 2013-10-12 18:41:23 +02:00
distutils.rst Fix typo. Spotted by Bo Bayles on docs@. 2013-10-06 13:24:49 +02:00
doctest.rst #11390: convert doctest CLI to argparse and add -o and -f options. 2013-06-23 14:24:13 -04:00
dummy_threading.rst
email-examples.rst
email.charset.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.contentmanager.rst #18891: Complete new provisional email API. 2013-10-16 22:48:40 -04:00
email.encoders.rst
email.errors.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.generator.rst
email.header.rst
email.headerregistry.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.iterators.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.message.rst #18891: Complete new provisional email API. 2013-10-16 22:48:40 -04:00
email.mime.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.parser.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
email.policy.rst #18891: Complete new provisional email API. 2013-10-16 22:48:40 -04:00
email.rst #18891: Complete new provisional email API. 2013-10-16 22:48:40 -04:00
email.util.rst Issue #18761: Improved cross-references in email documentation. 2013-08-19 09:59:18 +03:00
enum.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
errno.rst
exceptions.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
faulthandler.rst
fcntl.rst #19194: Improved cross-references in the fcntl module documentation. 2013-10-09 14:20:22 +03:00
filecmp.rst Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache. 2013-06-14 15:19:11 -07:00
fileformats.rst
fileinput.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
filesys.rst
fnmatch.rst #16420: document a way to escape metacharacters in glob/fnmatch. 2012-11-17 17:38:11 +02:00
formatter.rst Issue #18716: Deprecate the formatter module 2013-10-04 11:38:59 -04:00
fpectl.rst
fractions.rst Document Fraction's numerator and denominator properties. 2013-09-09 19:57:37 -07:00
frameworks.rst
ftplib.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
functional.rst
functions.rst Issue #19190: Improve cross-references in builtin types and functions documentation. 2013-10-09 14:03:24 +03:00
functools.rst merge 2013-10-12 16:04:39 -07:00
gc.rst Issue #18589: fix hyperlinking of type slots (tp_*) 2013-08-01 21:14:43 +02:00
getopt.rst
getpass.rst
gettext.rst
glob.rst Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:53:27 +01:00
grp.rst
gzip.rst Closes #15432: GzipFile mtime argument is new in 3.1. 2013-10-06 19:02:08 +02:00
hashlib.rst Issue #18582: Add 'pbkdf2_hmac' to the hashlib module. 2013-10-13 00:52:43 +02:00
heapq.rst Issue #18471: Fix typo in heapq documentation (reported by François Pinard). 2013-07-15 19:08:13 -07:00
hmac.rst merge with 3.3 2013-10-06 09:49:18 +02:00
html.entities.rst
html.parser.rst
html.rst
http.client.rst merge with 3.3 2013-10-06 12:42:40 +02:00
http.cookiejar.rst Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3 2013-05-23 05:27:38 -07:00
http.cookies.rst
http.rst
http.server.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
i18n.rst
idle.rst (merge) Issue #7136: In the Idle File menu, "New Window" is renamed "New File". 2013-07-01 00:52:18 -04:00
imaplib.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
imghdr.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
imp.rst Merge from 3.3 2013-06-20 21:20:20 -04:00
importlib.rst Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd 2013-10-18 11:39:04 -04:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
inspect.rst Close #19030: inspect.getmembers and inspect.classify_class_attrs 2013-10-18 00:27:39 -07:00
internet.rst
intro.rst
io.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
ipaddress.rst Fix: >= and so on are usually called "comparison operators", not "logical operators". Found by Tom Kalt on docs@. 2013-10-06 19:23:57 +02:00
ipc.rst
itertools.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
json.rst Documenting that json.load may raise a ValueError. 2013-08-12 17:39:51 -04:00
keyword.rst
language.rst
linecache.rst
locale.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
logging.config.rst Closes #18933: Merged update from 3.3. 2013-09-05 23:02:45 +01:00
logging.handlers.rst logging: added support for Unix domain sockets to SocketHandler and DatagramHandler. 2013-09-27 18:18:28 +01:00
logging.rst Issue #18933: Added links to source code. 2013-09-05 23:01:07 +01:00
lzma.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
macpath.rst
mailbox.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
mailcap.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
markup.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:35:55 +01:00
marshal.rst Issue #16475: Support object instancing, recursion and interned strings 2013-03-19 18:02:10 -07:00
math.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
mimetypes.rst
misc.rst
mm.rst
mmap.rst Clarify mmap.close method behavior. Addresses issue #18815 2013-09-09 22:39:28 -07:00
modulefinder.rst
modules.rst
msilib.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
msvcrt.rst
multiprocessing.rst Issue #18999: Make multiprocessing use context objects. 2013-10-16 16:41:56 +01:00
netdata.rst
netrc.rst Merge #14984: On POSIX, enforce permissions when reading default .netrc. 2013-09-17 21:28:17 -04:00
nis.rst
nntplib.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:37:01 +01:00
numbers.rst The Integral class does not contain implementations for the bit-shifting operations. (See #3056.) 2013-04-14 11:58:54 +02:00
numeric.rst
operator.rst merge with 3.3 2013-10-06 19:14:46 +02:00
optparse.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
os.path.rst Issue #19207: Improved cross-references in the os, os.path, and posix modules 2013-10-13 20:13:37 +03:00
os.rst Issue #19207: Improved cross-references in the os, os.path, and posix modules 2013-10-13 20:13:37 +03:00
ossaudiodev.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
othergui.rst Wing IDE is switching to PyQt... 2013-10-13 22:23:27 +02:00
parser.rst
pdb.rst #18764: p(rint) -> p in pdb docs. 2013-10-10 17:33:43 -04:00
persistence.rst
pickle.rst Issue #19272: slight clarification of pickle docs with regard to lambda. 2013-10-18 00:45:40 -07:00
pickletools.rst
pipes.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
pkgutil.rst
platform.rst Fix: win32_ver returns a 4-tuple. Found by Andrew Berg on docs@. 2013-10-06 19:19:18 +02:00
plistlib.rst #17881: clarify documentation of plistlib. 2013-04-30 16:34:04 +03:00
poplib.rst MERGE: Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:48:26 +01:00
posix.rst Issue #19207: Improved cross-references in the os, os.path, and posix modules 2013-10-13 20:12:43 +03:00
pprint.rst Issue #19132: Add versionchanged tags. 2013-10-02 21:40:21 +03:00
profile.rst Fix "customer timer" -> "custom timer" (reported by Kirk Strauser on docs@) 2013-10-06 09:17:43 +02:00
pty.rst
pwd.rst
py_compile.rst Issue #17222: Raise FileExistsError when py_compile.compile would 2013-06-14 18:33:00 -04:00
pyclbr.rst
pydoc.rst
pyexpat.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
python.rst
queue.rst Issue #18757: Improved cross-references in the concurrent package. 2013-08-24 00:23:38 +03:00
quopri.rst
random.rst Issue #16190: fix random module recommendation to use ssl.RAND_bytes(). 2013-08-16 19:19:40 +02:00
re.rst Back out accidentally pushed changeset b51218966201. 2013-10-13 09:32:59 +02:00
readline.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
reprlib.rst
resource.rst #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs. 2013-04-20 13:37:34 -04:00
rlcompleter.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
runpy.rst
sched.rst Issue #16642: sched.scheduler timefunc initial default is time.monotonic. 2013-03-09 02:14:27 -05:00
select.rst Issue #16853: Mention the new selectors module in the select module 2013-09-04 20:40:13 +02:00
selectors.rst Issue #16853: Add new selectors module. 2013-09-04 19:02:49 +02:00
shelve.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
shlex.rst Issue #19197: Improved cross-references in the shlex module documentation. 2013-10-13 21:19:00 +03:00
shutil.rst Fix shutil.which() test for issue #16993. 2013-01-22 10:32:16 +02:00
signal.rst Closes #1215: document better why it is not a good idea to catch e.g. SIGSEGV and refer to faulthandler. 2013-10-06 21:22:42 +02:00
site.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
smtpd.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
smtplib.rst Issue 18724: Fix typo noticed by Susan Tan. 2013-08-13 01:15:14 -07:00
sndhdr.rst
socket.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
socketserver.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
spwd.rst
sqlite3.rst merge with 3.3 2013-10-06 12:38:57 +02:00
ssl.rst merge with 3.3 2013-10-06 18:20:39 +02:00
stat.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
stdtypes.rst Issue #19190: Improve cross-references in builtin types and functions documentation. 2013-10-09 14:03:24 +03:00
string.rst Issue #17728: Specify default precision for float.format for presentation types e, f, and g. 2013-04-15 09:51:54 -04:00
stringprep.rst
struct.rst Issue #17804: New function `struct.iter_unpack` allows for streaming struct unpacking. 2013-04-27 00:20:04 +02:00
subprocess.rst Issue #18757: Improved cross-references in the concurrent package. 2013-08-24 00:27:59 +03:00
sunau.rst Issue #18901: The sunau getparams method now returns a namedtuple rather than 2013-09-04 00:43:03 +03:00
symbol.rst
symtable.rst
sys.rst #13226: update references from ctypes/DLFCN modules to os module 2013-06-21 10:58:41 -04:00
sysconfig.rst
syslog.rst
tabnanny.rst
tarfile.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
telnetlib.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
tempfile.rst Issue #18743: Fix references to non-existant "StringIO" module. 2013-08-17 00:09:55 +03:00
termios.rst
test.rst Issue #18948: improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests. 2013-10-08 23:04:32 +02:00
text.rst
textwrap.rst Issue #18725: The textwrap module now supports truncating multiline text. 2013-10-15 21:22:54 +03:00
threading.rst merge with 3.3 2013-10-06 10:48:48 +02:00
time.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
timeit.rst Issue #16261: fix bare excepts in Doc/ 2012-11-02 22:07:26 +02:00
tk.rst
tkinter.rst merge with 3.3 2013-10-06 09:32:15 +02:00
tkinter.scrolledtext.rst
tkinter.tix.rst
tkinter.ttk.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
token.rst
tokenize.rst
trace.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
traceback.rst #1565525: Add traceback.clear_frames() helper function to clear locals ref'd by a traceback 2013-09-15 18:15:56 -04:00
tty.rst
turtle-star.pdf
turtle-star.png
turtle-star.ps
turtle.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
types.rst Issue #17907: Document types.ModuleType's constructor and attributes, 2013-06-14 19:19:57 -04:00
undoc.rst
unicodedata.rst upgrade unicode db to 6.3.0 (closes #19221) 2013-10-10 17:24:45 -04:00
unittest.mock-examples.rst #17539: merge with 3.3. 2013-03-30 05:56:21 +02:00
unittest.mock.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
unittest.rst Address Terry's comments 2013-09-15 02:01:39 +02:00
unix.rst
urllib.error.rst Improve #19204: Improved cross-references in the urllib package documentation. 2013-10-13 20:07:51 +03:00
urllib.parse.rst Improve #19204: Improved cross-references in the urllib package documentation. 2013-10-13 20:06:50 +03:00
urllib.request.rst Improve #19204: Improved cross-references in the urllib package documentation. 2013-10-13 20:07:51 +03:00
urllib.robotparser.rst Issue #17398: document url argument of RobotFileParser 2013-03-15 16:50:23 -04:00
urllib.rst Improve #19204: Improved cross-references in the urllib package documentation. 2013-10-13 20:06:50 +03:00
uu.rst
uuid.rst
venv.rst merge with 3.3 2013-10-06 12:52:53 +02:00
warnings.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:14 +03:00
wave.rst #17616: Improve context manager tests, fix bugs in close method and mode docs. 2013-07-31 20:48:26 -04:00
weakref.rst Avoid inconsistent use of 'finalizer' 2013-09-22 21:32:12 +10:00
webbrowser.rst
windows.rst
winreg.rst Issue #16197: Fix several small errors in winreg documentation. 2012-10-31 19:29:33 +02:00
winsound.rst Closes #13740: SND_NOWAIT seems to be ignored on modern Windows. 2013-10-13 10:49:41 +02:00
wsgiref.rst
xdrlib.rst
xml.dom.minidom.rst Issue #18743: Fix references to non-existant "StringIO" module. 2013-08-17 00:09:55 +03:00
xml.dom.pulldom.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xml.dom.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xml.etree.elementtree.rst merge with 3.3 2013-10-06 09:23:19 +02:00
xml.rst Closes #19179: make table of XML vulnerabilities clearer by using "everyday" booleans and explaining the table beforehand. 2013-10-12 18:19:33 +02:00
xml.sax.handler.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xml.sax.reader.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xml.sax.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xml.sax.utils.rst Issue #18760: Improved cross-references in the xml package. 2013-08-29 10:28:44 +03:00
xmlrpc.client.rst #18267: make whitespace consistent and fix an operator. 2013-08-08 15:45:56 +03:00
xmlrpc.rst
xmlrpc.server.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:47:23 +01:00
zipfile.rst Issue #18758: Fixed and improved cross-references. 2013-10-13 23:12:09 +03:00
zipimport.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:34:44 +01:00
zlib.rst Fix inaccurate versionchanged tag for compressobj(): most parameter were there, just got kwarg support. 2013-10-17 19:51:34 +02:00