Martin v. Löwis
67baee6287
Move cast to suppress warning.
2006-02-16 14:37:48 +00:00
Martin v. Löwis
d96ee90993
Use Py_ssize_t to count the
2006-02-16 14:37:16 +00:00
Martin v. Löwis
720ddb625b
Use PyString_FromFormat for formatting error messages.
2006-02-16 07:11:33 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Armin Rigo
f5b3e36493
Renamed _length_cue() to __length_hint__(). See:
...
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
2006-02-11 21:32:43 +00:00
Georg Brandl
b69406dc09
Update general copyright years to 2006.
2006-02-11 15:30:36 +00:00
Thomas Wouters
03ca23d892
Explain the clearing of the stack in a comment in Python/ceval.c's
...
call_function(), rather than commenting on the lack of an explanation in a
comment.
2006-02-10 22:51:45 +00:00
Brett Cannon
82a9394237
Add doc discussing how AST compiler is structured and designed.
...
It is out of date, though, thanks to lacking info on the arena API. It also
should eventually be removed in favor of updating PEP 339.
2006-02-09 02:43:14 +00:00
Neal Norwitz
96e48d4698
Use C-style comment
2006-02-05 02:07:19 +00:00
Jeremy Hylton
c960f26044
Improved handling of syntax errors.
...
Expand set of errors caught in set_context(). Some new errors, some
old error messages changed for consistency.
Fixed error checking in generator expression code. The first set of
tests were impossible condition given the grammar. In general, the
ast code uses REQ() for those sanity checks.
Fix some error handling for augmented assignments. As comments in the
code explain, set_context() ought to work here, but I got unexpected
crashes when I tried it. Should come back to this.
Add note to Grammar that yield expression is a special case.
Add doctest cases for SyntaxErrors raised by ast.c.
2006-01-27 15:18:39 +00:00
Georg Brandl
d704817b66
typo
2006-01-20 17:53:27 +00:00
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
...
Probably should be backported.
2006-01-19 06:09:39 +00:00
Tim Peters
e93e64fb1a
Repair bizarre indentation created by VC 7.1.
2006-01-08 02:28:41 +00:00
Tim Peters
5db42c4c50
alias_for_import_name(): Dueling compiler warnings ;-)
...
Squash new warnings from VC 7.1 about mixing signed and
unsigned types in comparisons. I can see why `len` was
changed to size_t here, but don't see why `i` was also
changed. Change `i` back to int.
2006-01-08 02:25:34 +00:00
Tim Peters
d8fe7ab711
analyze_cells(): This no longer compiled under VC 7.1.
...
Move declaration of local `flags` to top of block.
2006-01-08 02:19:07 +00:00
Neal Norwitz
46b7bda9bc
Fix icc warnings: conversion from "long" to "int" may lose significant bits
2006-01-08 01:06:06 +00:00
Neal Norwitz
d39d861a36
Fix icc warnings: strlen() returns size_t
2006-01-08 01:03:36 +00:00
Neal Norwitz
daf595f8a9
Fix icc warnings: shadowing local variable (i) and complex is set but not used, so remove
2006-01-07 21:24:54 +00:00
Neal Norwitz
08b401f67a
Fix icc warnings: single bit fields should be unsigned, shadowing local variables
2006-01-07 21:24:09 +00:00
Neal Norwitz
406c640344
Fix icc warnings: shadowing local variables
2006-01-07 21:23:26 +00:00
Tim Peters
e86e7a5b62
svnversion_init(): Use standard layout for function defn.
2006-01-06 02:42:46 +00:00
Tim Peters
216b78bdaa
Trimmed trailing whitespace.
2006-01-06 02:40:53 +00:00
Martin v. Löwis
43b57805fb
Drop sys.build_number. Add sys.subversion.
2006-01-05 23:38:54 +00:00
Hye-Shik Chang
23f391c6a1
Fix a warning from gcc by adding a missed const qualifier.
2006-01-04 01:30:17 +00:00
Martin v. Löwis
5b43126e03
Regenerate.
2006-01-02 21:18:55 +00:00