| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
or getattr/setattr, is all that's needed.
|
|
|
|
| |
'get_options()', 'get_command_option()', 'get_command_options()'.
|
|
|
|
| |
'get_options()'.
|
|
|
|
| |
via an 'extra_compile_args' option in the 'build_info' dictionary.
|
|
|
|
|
|
|
|
| |
weird errors. (E.g. see thread "weird bug in test_winreg" in python-dev.)
Since it's actually useful to be able to re-run an individual test
after running test.autotest, we keep the unloading code, but only for
modules whose full name starts with "test.".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Attached is a set of diffs for the .py compiler that adds support
for the new extended call syntax.
compiler/ast.py:
CallFunc node gets 2 new children to support extended call syntax -
"star_args" (for "*args") and "dstar_args" (for "**args")
compiler/pyassem.py
It appear that self.lnotab is supposed to be responsible for
tracking line numbers, but self.firstlineno was still hanging
around. Removed self.firstlineno completely. NOTE - I didnt
actually test that the generated code has the correct line numbers!!
Stack depth tracking appeared a little broken - the checks never
made it beyond the "self.patterns" check - thus, the custom methods
were never called! Fixed this.
(XXX Jeremy notes: I think this code is still broken because it
doesn't track stack effects across block bounaries.)
Added support for the new extended call syntax opcodes for depth
calculations.
compiler/pycodegen.py
Added support for the new extended call syntax opcodes.
compiler/transformer.py
Added support for the new extended call syntax.
|
|
|
|
|
|
| |
search() functions didn't even work because _fixflags() isn't
idempotent. I'm adding another stop-gap measure so that you can at
least use sre.search() and sre.match() with a zero flags arg.
|
|
|
|
|
|
|
| |
telnetlib is unable to connect to a few telnet daemons because of
improper IAC handling, heres an attached oneliner to reject WILL
messages which will allow many more telnet daemons to work with it,
namely FreeBSD.
|
|
|
|
| |
Add a convenience function to generate C-compiler style error leaders.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added and documented the capability for shlex to handle lexical-level
inclusion and a stack of input sources. Also, the input stream member
is now documented, and the constructor takes an optional source-filename.
The class provides facilities to generate error messages that track
file and line number.
[GvR: I changed the __main__ code so that it actually stops at EOF, as
Eric surely intended -- however it returned '' instead of the None he
was testing for.]
|
|
|
|
|
| |
The two methods .readline() and .readlines() in StreamReaderWriter
didn't define the self argument. Found by Tom Emerson.
|
|
|
|
| |
Store sys.exc_info()[:2] instead.
|
| |
|
| |
|
|
|
|
|
|
| |
it is forcibly prepended onto all installation directories, even if
they are already absolute.
Added 'dump_dirs()' to clean up the debug output a bit.
|
|
|
|
|
|
| |
even if it's already absolute. Currently only implemented for Unix; I'm
not entirely sure of the right thing to do for DOS/Windows, and have no
clue what to do for Mac OS.
|
|
|
|
|
| |
an empty argument list -- another patch he's checking in will make
this illegal (the first argument should always be the program name).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in command-line options, and in two phases at that: first, we expand
'install_base' and 'install_platbase', and then the other 'install_*'
options. This lets us do tricky stuff like
install --prefix='/tmp$sys_prefix'
...oooh, neat.
Simplified 'select_scheme()' -- it's no longer responsible for expanding
config vars, tildes, etc.
Define installation-specific config vars in 'self.config_vars', rather than
in a local dictionary of one method. Also factored '_expand_attrs()' out
of 'expand_dirs()' and added 'expand_basedirs()'.
Added a bunch of debugging output so I (and others) can judge the
success of this crazy scheme through direct feedback.
|
| |
|
| |
|
|
|
|
| |
options.
|
|
|
|
| |
Fix 'sdist.write_manifest()' to respect the value of dry_run.
|
|
|
|
|
|
|
|
| |
I think that after this patch, all objects in the os module (with names
that don't start with "_") that can have docstrings, do, on Linux at
least.
Also fix a nit in one of my spawn* docstrings.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds bztar format to generate .tar.bz2 tarballs
Uses the -f argument to overright old tarballs automatically, I am
assuming that if the old tarball was wanted it would have been moved or
else the version number would have been changed.
Uses the -9 argument to bzip2 and gzip to use maximum
compression. Compress uses the maximum compression by default.
Tests for correct value for the 'compress' argument of make_tarball. This
is one less place for someone adding new compression programs to forget to
change.
|
| |
|
| |
|
|
|
|
|
|
| |
the change to regrtest.py to unload all newly imported modules did
something bad to the threads -- and I realized that they would never
stop!
|
| |
|
|
|
|
|
|
| |
This uses the same precautions when trying to find a temporary
directory as when the actual tempfile is created (using O_CREAT and
O_EXCL). On non-posix platforms, nothing is changed.
|
|
|
|
| |
The fix also adds support for POSTing to an https URL
|
| |
|
| |
|
|
|
|
| |
added 'abspath()' and 'extend()'.
|
|
|
|
| |
exceptions better.
|
| |
|
|
|
|
|
| |
errors in the setup script or on the command line, so shouldn't result
in a traceback.
|
|
|
|
|
|
| |
'make_archive()' to a global static dictionary, ARCHIVE_FORMATS.
Added 'check_archive_formats()', which obviously makes good use of
this dictionary.
|
|
|
|
| |
and the other "composite meta-data" methods.
|
| |
|
|
|
|
|
| |
after each test has been run. This avoids excessive memory growth
during the tests.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
"""
In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError. Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""
|
| |
|
|
|
|
|
| |
object, rather than through the distribution itself (since I moved the meta-
data out to a DistributionMetadata instance).
|
|
|
|
| |
for all commands except 'prune' and 'graft'.
|
|
|
|
| |
and now actually works.
|
| |
|
| |
|