| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
is not found). Being fancy: insert the first 3 characters of
sys.version in the URL.
|
|
|
|
|
|
|
|
| |
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
|
| |
|
|
|
|
| |
can be on sys.path too.
|
|
|
|
|
|
|
|
| |
is complete: recompute _dirs_in_sys_path each time these functions are
entered after module initialization is complete, and reset before
returning to user code.
This closes SF patch #442983.
|
|
|
|
|
|
|
|
|
| |
Fix showstopper SF bug #442983: use of site.addsitedir() was broken
because it references the global dirs_in_sys_path which is deleted.
The fix avoids deleting that global.
(My email through python.org or digicool.com is non-functional at the
moment; use gvanrossum@home.com to reach me.)
|
|
|
|
| |
is to avoid as many stat() calls as we can.
|
|
|
|
| |
to sys.path if os.sep == ':' (Macs?). See PEP 250.
|
|
|
|
|
|
| |
to be presented in an unfamiliar case on case-preserving filesystems.
This closes SF patch #436173.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change 1: Not all 'modules' in sys.modules have a
sensible __file__ attribute. Some of our java package
can have the __file__ attribute set to None.
Change 2: In jython we have the jython license file in
<root> and the CPython license file in <root>/Lib. By
reversing the search sequence jython will find and
show the jython license file before the CPython file.
Closes SF patch #405853.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
created by Andrew's setup.py script, *if* we're actually running from
the build directory. (The test for that: whether the sys.path[-1]
ends in "/Modules".)
This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname. See if I care. :-)
|
| |
|
|
|
|
| |
windows, but not on the mac. Fixed.
|
|
|
|
|
| |
interpreter. Update and reword the credits for CPython. Closes SF
patch #102665.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. repr(license) will no longer print to stdout and read from stdin;
you have to use license(). `license` is a short message explaining
this.
2. Use lazy initialization so that startup isn't slowed down by the
search for the LICENSE file.
3. repr(license) actually returns the desired string, rather than
printing to stdout and returning ''. (Why didn't we think of this
before?)
4. Use the pythonlabs license URL as the license fallback instead of
the CNRI license handle.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__file__ attributes of already-imported modules to be absolute. This helps
robustify the interpreter against os.chdir() calls from the application.
Only remove setdefaultencoding() from sys if it exists; if this module is
run as a script (since there is a _test() function that gets run), it broke
because the script attempts to remove it again after the import of site
has already done so. This allows the module to be run as a script again.
makepath(): New function, standardizes all pathname normalization in one
place.
|
|
|
|
|
|
|
|
| |
default encoding ("ascii") is changed. This safes quite a few cycles
during startup since the first call to .setdefaultencoding() will
initialize the codec registry and the encodings package.
See python-dev for a discussion (Subject: "[Python-Dev] [comp.lang.python] sys.setdefaultencoding (2.0b1)").
|
|
|
|
| |
display the information you would expect them to display.
|
| |
|
|
|
|
| |
you edit the file.
|
|
|
|
| |
the default via site.py...
|
|
|
|
| |
-- added a few extra comments to locale.py
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Added support to set the default encoding of strings
at startup time to the values defined by the C locale.
The sys.setdefaultencoding() API is deleted after having
set up the encoding, so that user code cannot subsequentely
change the setting. This effectively means that only site.py
may alter the default setting.
|
| |
|
|
|
|
|
|
| |
how to exit (in a platform dependent way!). We use os.sep to
determine which platform we're on, since I expect that this will work
better for minority platforms.
|
| |
|
|
|
|
| |
sys.prefix is no longer empty on any platform that I know of.
|
| |
|
| |
|
|
|
|
|
| |
lib/site-python to the path (if they exist). This is a reasonable
compromise.
|
| |
|
|
|
|
|
| |
<*prefix>/lib/python<version>/packages for *.pth files containing
directories that are appended to sys.path.
|
|
|