| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Attached is patch (against 1.5.2 release) to allow some modules
to be buildable as pyd's (usual &PyType_Type stuff).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
handle most of the language syntax yet)
create NestedCodeGenerator used to generator the separate code object
that needs to be passed as an argument to MAKE_FUNCTION when a def
stmt is found (probably useful for class too)
change CodeGenerator.visitFunction to use the NestedCG
add CompiledModule class to handle creation of .pyc (pretty minimal
for now)
add makeCodeObject method to PythonVMCode that replaces symbolic names
with indexes into slots of the code code. the design of this
class will probably need to be revised.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
*this* set of patches is Ka-Ping's final sweep:
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
|
|
|
|
|
|
|
|
| |
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
who writes:
Here is batch 2, as a big collection of CVS context diffs.
Along with moving comments into docstrings, i've added a
couple of missing docstrings and attempted to make sure more
module docstrings begin with a one-line summary.
I did not add docstrings to the methods in profile.py for
fear of upsetting any careful optimizations there, though
i did move class documentation into class docstrings.
The convention i'm using is to leave credits/version/copyright
type of stuff in # comments, and move the rest of the descriptive
stuff about module usage into module docstrings. Hope this is
okay.
|
|
|
|
|
|
|
|
|
| |
compile.py: ASTVisitor framework plus bits of a code generator that
should be bug-for-buf compatible with compile.c
misc.py: Set and Stack helpers
test.py: a bit of simple sample code that compile.py will work on
|
| |
|
|
|
|
|
|
|
|
| |
revision number the p2c cvs tree.
COPYRIGHT: 1.1
ast.py: 1.3
transformer.py: 1.11
|
|
|
|
| |
Announce when we start building each extension (better feedback).
|
|
|
|
|
| |
feedback and, theoretically, the opportunity to set compiler flags
on a per-file basis.
|
|
|
|
|
| |
before the patch by Trent Mick. Since he now also works for
ActiveState, I suppose he overrides Trent. :-)
|
| |
|
| |
|
|
|
|
|
|
| |
needed an adaptation for the latest gcc -- we need to grep stderr as
well as stdout for the magic string BFD. (Does anybody know what BFD
means?)
|
|
|
|
|
|
| |
needed an adaptation for the latest gcc -- we need to grep stderr as
well as stdout for the magic string BFD. (Does anybody know what BFD
means?)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
# combo of old cmp, cmpcache and dircmp with redundancies removed
#
# bugs fixed:
# dircmp.dircmp was not ignoring IGNORES
# old stuff could falsely report files as "identical" when contents actually differed
#
# enhancements:
# dircmp has a more straightforward interface
#cmp enhanced by Moshe Zadca
#dircmp enhanced byGordon McMillan
[some layout changes by GvR]
|
|
|
|
| |
remove "import string" -- use string methods instead!
|
|
|
|
| |
imported; in that case, abspath is replaced by a fallback version.
|
|
|
|
|
| |
the default arg for read() is -1, not None, and readlines() has an
optional argument (which for now is ignored).
|
|
|
|
|
|
|
|
|
|
|
| |
1. Comments at the beginning of the module, before
functions, and before classes have been turned
into docstrings.
2. Tabs are normalized to four spaces.
Also, removed the "remove" function from dircmp.py, which reimplements
list.remove() (it must have been very old).
|
| |
|
|
|
|
|
| |
Always use normalized (with os.path.normpath()) versions of prefix and
exec_prefix.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed a TypeError: not enough arguments; expected 4, got 3.
When authentication is needed, the default http_error_401 method calls
retry_http_basic_auth. The default version of that method expected a
data argument which wasn't provided, so now we provide the argument if
it was given and we also made the data argument optional.
Also changed other calls where data was optional to not pass data if
it was not passed to the calling method (in line with other similar
occurances).
|
| |
|
|
|
|
| |
is defined...
|
| |
|
| |
|
|
|
|
|
|
|
| |
'--help-commands' option).
Shuffled imports around in a few command modules to avoid expensive
up-front import of sysconfig (and resulting delays in generating list
of all commands).
|
| |
|
|
|
|
|
|
|
|
| |
* "--help" can now come either before or after particular commands
to get help on and can give help on multiple commands, eg.
"--help install dist" gives help on those two commands
* added "--help-commands" option, implemented by the 'print_commands()'
and 'print_command_list()' methods
|
| |
|
|
|
|
|
|
|
| |
mac.error.
It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
|
| |
|
| |
|
| |
|
|
|
|
| |
release project config as the default.
|
| |
|
|
|
|
| |
compilation on NT Alpha. Mostly added casts etc.
|
| |
|
|
|
|
| |
building for NT Alpha as well as NT x86.
|
|
|
|
|
|
|
| |
Three bgen mods:
- support for FSSpecs passed-by-value and points-passed-by-reference added.
- strip single-line comments when parsing header files
- if a definition is blacklisted _do_ output it, but in comment
|
|
|
|
|
| |
An extensible library for opening URLs using a variety protocols.
Intended as a replacement for urllib.
|
|
|
|
|
|
| |
isinstance(x, types.CodeType).
Suggested by Finn Bock.
|
|
|
|
| |
invisible, and use AutoSizeDialog() and ShowWindow() before doing interaction.
|
| |
|
|
|
|
| |
Tweaked error messages in '_spawn_posix()'.
|
| |
|
|
|
|
| |
RT library.
|
|
|
|
| |
Fixed 'make_release_tree()' to copy files if 'os.link()' doesn't exist.
|