| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
type.__module__ behavior.
This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this). Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right. Apologies if they're
not. This also touches the weakref docs, which contains a sample type
object initializer. It also touches the mmap test output, because the
mmap type's repr is included in that output. It touches object.h to
put the correct description in a comment.
|
|
|
|
|
|
| |
parser_tuple2st() and a failure to propogate an error in
build_node_children() (masking yet another leak, of course!).
This closes SF bug #485133 (confirmed by Insure++).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"for <var> in <testlist> may no longer be a single test followed by
a comma. This solves SF bug #431886. Note that if the testlist
contains more than one test, a trailing comma is still allowed, for
maximum backward compatibility; but this example is not:
[(x, y) for x in range(10), for y in range(10)]
^
The fix involved creating a new nonterminal 'testlist_safe' whose
definition doesn't allow the trailing comma if there's only one test:
testlist_safe: test [(',' test)+ [',']]
|
|
|
|
| |
instead of directly manipulating the underlying dictionary.
|
| |
|
|
|
|
|
| |
"A" out of the internal abbreviations. For published functions with
"ast" in their names, make alternate offerings using just "st".
|
|
|
|
| |
(Should be merged with descr branch.)
|
| |
|
|
|
|
| |
This closes SF bug #127271.
|
|
|
|
|
|
|
| |
it when *args and/or **kw are used, and one when
they are not.
This closes bug #125375: "parser.tuple2ast() failure on valid parse tree".
|
|
|
|
|
|
| |
Changes to error messages to increase consistency & clarity.
This (mostly) closes SourceForge patch #101839.
|
|
|
|
| |
Reduces lines of code and compiled object size.
|
|
|
|
| |
This should match the situation in the 1.6b1 tree.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Py_FatalError() from module initialization functions. The importing
mechanism already checks for PyErr_Occurred() after module importation
and it Does The Right Thing.
Unfortunately, the following either were not compiled or tested by the
regression suite, due to issues with my development platform:
almodule.c
cdmodule.c
mpzmodule.c
puremodule.c
timingmodule.c
|
|
|
|
|
|
| |
Windows "inconsistent linkage" warnings at the same time. I agree
with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system
needs an overhaul; this is just an expedient hack until then.
|
|
|
|
| |
Add some test cases.
|
|
|
|
| |
Grammar file. This makes the test suite pass once again.
|
| |
|
|
|
|
|
|
| |
print statement), and fix up the extended call syntax support.
Minor stylistic cleanups.
|
| |
|
|
|
|
| |
possible.
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
| |
|
|
|
|
|
| |
added excplicit node * parameter to termvalid argument in
validate_two_chain_ops of parsermodule.c (as proposed by fred)
|
| |
|
|
|
|
| |
noted by Marc-Andre Lemburg <mal@lemburg.com>.
|
|
|
|
| |
Typo in string literal: execpt --> except
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.
(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode. I'm also holding back on his
change to main.c, which seems unnecessary to me.)
|
|
|
|
|
| |
validate_numnodes(): Added comment to explain the sometimes idiomatic
usage pattern.
|
|
|
|
| |
(4-space indents already used.)
|
| |
|
|
|
|
|
|
|
| |
parser_ast2tuple(). Create an temporary empty dictionary to
use. Bug reported by Mark Favas <m.favas@per.dem.csiro.au>.
Fix a couple of comments.
|
|
|
|
|
|
|
|
|
| |
names match the documentation.
Removed broken code that supports the __methods__ attribute on ast
objects; the right magic was added to Py_FindMethod() since this was
originally written. <ast-object>.__methods__ now works, so dir() and
rlcompleter are happy.
|
|
|
|
| |
PyInt_Check(), use PyInt_AS_LONG() instead (two places).
|
|
|
|
| |
on BeOS or Windows.
|
| |
|
|
|
|
| |
else the damn thing won't compile on Windows :-(
|
|
|
|
| |
warning (at least under Linux).
|
|
|
|
| |
Fixed a memory leak in an error handler.
|
|
|
|
| |
(Jack)
|
|
|
|
|
|
|
|
| |
compilers happy.
initparser(): Remove unused variable.
gcc -Wall is now happy.
|
|
|
|
| |
have been methods now are! Still available as functions for compatibility.
|
| |
|
| |
|
| |
|
|
|
|
| |
platforms. Argh!
|
|
|
|
|
| |
This should make everybody happy, especially since we don't say what
the argument type is (there is disagreement on that, too :-( ).
|
| |
|