| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Add the constants "printable" and "punctuation" to the string module.
|
|
|
|
|
|
|
| |
Update the module docstring to reflect the actual list of modules in the
xml.sax package.
Make the code better conform to the Python style guide.
|
|
|
|
| |
this module is "import *" safe.
|
|
|
|
|
|
|
|
| |
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)").
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
in a string (gives you something to do with the dictionary returned
by 'parse_makefile()').
Pulled the regexes in 'parse_makefile()' out -- they're now globals,
as 'expand_makefile_vars()' needs (two of) them.
Cosmetic tweaks to 'parse_makefile()'.
|
|
|
|
|
|
| |
easier for people porting Makefile.pre.in-based extensions to Distutils.
Also loosened argument-checking in Extension constructor to make life
easier for 'read_setup_file()'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reverse() didn't work at all due to bad arg check.
Fixed that.
Added Brad Chapman to ACKS file, as the proud new owner of two
implicitly copyrighted lines of Python source code <wink>.
Repaired buffer_info's total lack of arg-checking.
Replaced memmove by memcpy in reverse() guts, as memmove is
often slower and the memory areas are guaranteed disjoint.
Replaced poke-and-hope unchecked decl of tmp buffer size by
assert-checked larger tmp buffer.
Got rid of inconsistent spaces before open paren in docstrings.
Added reverse() sanity tests to test_array.py.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
are completely skipped, rather than being treated as blank lines
(and then subject to the 'skip_blanks' flag). This allows us
to process old-style Setup files, which rely on
hello \\
# boo!
there
coming out as "hello there".
|
|
|
|
|
| |
Fixed precendence bug that meant setting skip_blanks to false didn't work
under some circumstances.
|
|
|
|
|
| |
Factored the guts of 'warn()' out to 'gen_error()', and added the
'error()' method (trivial thanks to the refactoring).
|
|
|
|
|
|
|
| |
Dropped the 'collapse_ws' option and replaced it with 'collapse_join' --
it's *much* faster (no 're.sub()') and this is the reason I really added
'collapse_ws', ie. to remove leading whitespace from a line being joined
to the previous line.
|
|
|
|
|
|
| |
(eg. "bdist_dumb", to generate both ZIP and tar archives in the same
run), tell all but the last run to keep temp files -- this just gets
rid of the need to pseudo-install the same files multiple times.
|
| |
|
| |
|
| |
|
|
|
|
| |
Run "install" the right way, by calling 'run_command()'.
|
| |
|
|
|
|
| |
real implementation in Distribution.
|
|
|
|
|
|
| |
the command's sub-commands as well (off by default). This is essential if
we want to be be able to run (eg.) "install" twice in one run, as happens
when generating multiple built distributions in one run.
|
|
|
|
|
|
|
| |
families" -- eg. install and its brood, build and its brood, and so forth.
Specifically: added the 'sub_commands' class attribute (empty list, sub-
classes must override it) and a comment describing it, and the
'get_sub_commands()' method.
|
|
|
|
|
| |
meant removing 'get_sub_commands()', and moving the 'sub_commands' class
attribute to the end and restructuring it to conform to the new regime.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
with the recent change in 'get_platform()', we now have directory names
like "build/lib-1.5-linux-i586". Idea and original patch by
Rene Liebscher.
|
| |
|
|
|
|
| |
- document some of the tricky tests (hopefully correctly :)
|
|
|
|
|
|
| |
query string
also some doc string reformatting and use of string methods instead of
older string.splitfields
|
| |
|
|
|
|
| |
document element.
|
|
|
|
|
|
|
|
|
|
|
| |
Strings are unpickled by calling eval on the string's repr. This
change makes pickle work like cPickle; it checks if the pickled
string is safe to eval and raises ValueError if it is not.
test suite modifications:
Verify that pickle catches a variety of insecure string pickles
Make test_pickle and test_cpickle use exactly the same test suite
Add test for pickling recursive object
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
from Tk.readprofile(), do not print anything extra to stdout, just run
the code.
|
|
|
|
| |
the sometimes inappropriate warning about where we're installing data files.
|
|
|
|
|
|
|
| |
of globals from sysconfig.
Added 'prefix' and 'exec_prefix' to the list of variables that can be
expanded in installation directories (preserving the stupid old names
of 'sys_prefix' and 'sys_exec_prefix, though).
|
|
|
|
| |
of globals from sysconfig.
|
|
|
|
| |
POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
all that work when someone asks for a "configuration variable" from the
Makefile. Details:
- added 'get_config_vars()': responsible for calling one of the
'_init_*()' functions to figure things out for this platform,
and to provide an interface to the resulting dictionary
- added 'get_config_var()' as a simple interface to the dictionary
loaded by 'get_config_vars()'
- changed the '_init_*()' functions so they load the global dictionary
'_config_vars', rather than spewing their findings all over
the module namespace
- don't delete the '_init_*()' functions when done importing
- adjusted 'customize_compiler()' to the new regime
|
|
|
|
|
| |
comments are stripped and lines are joined according to the backslash
convention.
|
|
|
|
| |
ignoring them; e.g. Zope sometimes returns 13497L
|
|
|
|
|
|
|
|
|
|
| |
character according to RFC 2396. Add some text to quote doc string
that explains the quoting rules better.
This closes SF Bug #114427.
Add _fast_quote operation that uses a dictionary instead of a list
when the standard set of safe characters is used.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mailbox.py (from the CVS tree) doesn't work with qmail Maildirs:
Filenames are completed when the directories are scanned, and
the directory name is prepended again in the next() method.
Another suggestion: Change the print statement in the _test()
driver to show two more date characters (probably the length
has increased due to the recent Y2K hype ;). Now it shows the
complete date, including the seconds -- at least for me. (I've
also made the sender field left justified, in case it is ever
shorter than the field width).
|
|
|
|
| |
compilation).
|
| |
|