Commit Graph

33207 Commits

Author SHA1 Message Date
Neal Norwitz f9f61b4aa2 Note version added for conditional expressions 2006-02-27 16:31:12 +00:00
Thomas Wouters e2dd78c760 Update for PEP 308 patch. 2006-02-27 16:25:11 +00:00
Martin v. Löwis 16c7f71380 Handle testlist_safe and or_test like testlist. 2006-02-27 16:11:03 +00:00
Martin v. Löwis 49a1302952 Alias non-terminals introduced for backwards compatibility. 2006-02-27 16:03:39 +00:00
Thomas Wouters fa443cda87 Fix assertion errors in debug build, brought on by PEP 308 patch. 2006-02-27 15:43:57 +00:00
Martin v. Löwis 577b5b960d Create _ast module.
Cleanup Python-ast.c generation.
2006-02-27 15:23:19 +00:00
Martin v. Löwis 2086eaf79c Check for a not-found rlconf.h by testing for None. 2006-02-27 15:16:21 +00:00
Anthony Baxter 322a23f21b regenerated. please read PEP 306 when changing Python's grammar! 2006-02-27 06:49:54 +00:00
Thomas Wouters dca3b9c797 PEP 308 implementation, including minor refdocs and some testcases. It
breaks the parser module, because it adds the if/else construct as well as
two new grammar rules for backward compatibility. If no one else fixes
parsermodule, I guess I'll go ahead and fix it later this week.

The TeX code was checked with texcheck.py, but not rendered. There is
actually a slight incompatibility:

>>> (x for x in lambda:0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: iteration over non-sequence

changes into

>>> (x for x in lambda: 0)
  File "<stdin>", line 1
    (x for x in lambda: 0)
                     ^
SyntaxError: invalid syntax

Since there's no way the former version can be useful, it's probably a
bugfix ;)
2006-02-27 00:24:13 +00:00
Martin v. Löwis d3a5f53a27 Avoid reinitializing the types twice. 2006-02-27 00:09:50 +00:00
Martin v. Löwis 8d0701daf1 Stop generating empty arrays. 2006-02-26 23:40:20 +00:00
Neal Norwitz 59090a7334 Oops, I forgot to check this in with the change to Grammar/Grammar.
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
2006-02-26 22:29:38 +00:00
Martin v. Löwis 2b366e41c3 Check whether there are flags. 2006-02-26 22:12:35 +00:00
Martin v. Löwis ce1d5d2527 Fix iterating over cmpop_ty lists. 2006-02-26 20:51:25 +00:00
Martin v. Löwis bd260da900 Generate code to recursively copy an AST into
a tree of Python objects. Expose this through compile().
2006-02-26 19:42:26 +00:00
Brett Cannon 23b0dc5053 Remove line meant to test trailing whitespace since that kind of whitespace is
automatically removed.

Also annotate what each line is meant to test.
2006-02-26 19:27:29 +00:00
Tim Peters d6e7e73ff8 Whitespace normalization. 2006-02-26 04:21:50 +00:00
Guido van Rossum 4b92a82504 Oops. Fix syntax for C89 compilers. 2006-02-25 23:32:30 +00:00
Guido van Rossum 1968ad32cd - Patch 1433928:
- The copy module now "copies" function objects (as atomic objects).
  - dict.__getitem__ now looks for a __missing__ hook before raising
    KeyError.
  - Added a new type, defaultdict, to the collections module.
    This uses the new __missing__ hook behavior added to dict (see above).
2006-02-25 22:38:04 +00:00
Neal Norwitz ab51f5f24d Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not removing yet. 2006-02-25 15:43:10 +00:00
Brett Cannon df95cb6ae3 Move the vimrc file to the newly created Vim/ directory. 2006-02-25 14:53:26 +00:00
Brett Cannon a4fe18227d Add a script that auto-generates a Vim syntax highlighting file for Python.
Just symlink or copy python.vim to ~/.vim/syntax/ .  Also included is a sample
Python file with basic expressions to make sure they are highlighted.

Also add a Vim directory in Misc to hold all Vim configuration files.
2006-02-25 14:52:53 +00:00
Neal Norwitz d074beb692 Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.
2006-02-24 23:11:14 +00:00
Neal Norwitz 8786eb5e92 Fix a couple of warnings on Mac OS X. 2006-02-24 15:39:29 +00:00
Jack Jansen 39fd231701 On OSX, use --arch_only `arch` in stead of --arch_only ppc, so things will
build for the current CPU.
2006-02-23 15:12:19 +00:00
Jack Jansen 81ae235146 If the readline library is found try and determine whether it's the broken
MacOSX 10.4 readline, and don't build the readline module in that case.
2006-02-23 15:02:23 +00:00
Jack Jansen de540e2288 Got rid of byte-order dependencies. 2006-02-23 14:54:30 +00:00
Georg Brandl b518d8c7d7 Fix casing of function names. 2006-02-22 11:46:55 +00:00
Georg Brandl 418a1ef089 RFE #1436243: make integers in [0..256] preallocated. 2006-02-22 11:30:06 +00:00
Neal Norwitz df431657fd Allow buildbot to pass extra test flags to regrtest (specifically -r) via the environment. 2006-02-22 07:24:06 +00:00
Neal Norwitz e51fc53b6a George Yoshida's fix. 2006-02-22 05:51:48 +00:00
Georg Brandl 6a29c323ba Add test for classmethod ./. keyword args. 2006-02-21 22:17:46 +00:00
Georg Brandl d02db4084e Make staticmethod and classmethod complain about keyword args. 2006-02-21 22:13:44 +00:00
Georg Brandl 7d42d3cd59 fix typo 2006-02-21 20:41:29 +00:00
Georg Brandl 868e704e27 Document "multifile" as deprecated. 2006-02-21 19:23:49 +00:00
Tim Peters d34350e47e At Brian Wichmann's request, added words warning against
using the old Wichmann-Hill generator,  Also pointed to
a newer version of his generator, and weakened the claim
about what jumpahead() does now.

Note sure I got the LaTeX entirely correct for \seeurl.
If it's broken, please fix it ;-)

Bugfix candidate!  (These changes make just as much
sense for 2.4.)
2006-02-21 19:19:00 +00:00
Walter Dörwald b075fcea3a Fix table header. 2006-02-21 18:51:32 +00:00
Tim Peters 4d0bd0b32c Trimmed trailing whitespace. 2006-02-21 18:48:34 +00:00
Georg Brandl c2fb6c74c6 Fix typo in functional module 2006-02-21 17:49:57 +00:00
Tim Peters 42a3deb7b5 Suppress another deprecation warning in the tests. 2006-02-21 03:28:49 +00:00
Guido van Rossum 668a94a34f NETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux
systems; define these conditionally.
2006-02-21 01:07:27 +00:00
Georg Brandl c255c7bef7 Bug #1086854: Rename PyHeapType members adding ht_ prefix. 2006-02-20 22:27:28 +00:00
Tim Peters 32cbc96150 Whitespace normalization. 2006-02-20 21:42:18 +00:00
Georg Brandl 124a4e58c4 Bug #947571: By default, urllib.urlopen() does not raise IOErrors
on server error codes. Make this clear.
2006-02-20 21:26:18 +00:00
Georg Brandl a223d2cb29 Bug #1210377: close bsddb cursor correctly after NotFoundError. 2006-02-20 20:29:52 +00:00
Neal Norwitz 9a27617239 Based on discussion with Martin and Thomas on python-checkins
add a Py_SAFE_DOWNCAST() to make the code correct.
2006-02-20 18:57:39 +00:00
Georg Brandl e393bf6fe3 Patch #931938: prevent setting sys.prefix to "" 2006-02-20 17:37:36 +00:00
Georg Brandl 69774c212a Bug #1102649: add a note to pickle docs that pickle files should be
opened in binary mode.
2006-02-20 13:12:02 +00:00
Georg Brandl 9b743f514c Bug #1013800: document PyFunction_* functions 2006-02-20 12:57:53 +00:00
Martin v. Löwis de2cde614c Detect Win64 builds. 2006-02-20 12:26:58 +00:00