Commit [01dded] pep352  Maximize  Restore  History

Merged revisions 4448,4450-4530 via svnmerge from

https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython

........
r4453 | pjenvey | 2008-05-25 22:37:52 -0700 (Sun, 25 May 2008) | 1 line

r4449 synced us with 2.3 test_exceptions' output
........
r4454 | fwierzbicki | 2008-05-26 06:41:36 -0700 (Mon, 26 May 2008) | 2 lines

Tighten grammar around "print <<" statements. "print << a ," not allowed.
........
r4456 | fwierzbicki | 2008-05-26 10:26:16 -0700 (Mon, 26 May 2008) | 3 lines

Better exception handling in antlr parser (fail fast in PythonWalker,
and new class antlr/ParseException.
........
r4458 | fwierzbicki | 2008-05-27 05:08:02 -0700 (Tue, 27 May 2008) | 2 lines

Throw ParseException for non-default arg after default arg.
........
r4460 | fwierzbicki | 2008-05-27 09:56:34 -0700 (Tue, 27 May 2008) | 4 lines

Fail fast on lexer errors. Also correct lexing of
imaginary numbers (can start with zero, are never
octal or hex).
........
r4462 | fwierzbicki | 2008-05-27 11:48:24 -0700 (Tue, 27 May 2008) | 2 lines

Some cleanup of the parser driving classes.
........
r4464 | fwierzbicki | 2008-05-27 16:31:15 -0700 (Tue, 27 May 2008) | 4 lines

Very naive partial parsing in antlr grammar for interactive code
and doctests. Also renamed symbol->kind in InteractiveInterpreter
to be consistent with usage in parser code.
........
r4467 | pjenvey | 2008-05-28 15:40:27 -0700 (Wed, 28 May 2008) | 1 line

small cleanup
........
r4468 | pjenvey | 2008-05-28 20:54:32 -0700 (Wed, 28 May 2008) | 6 lines

fix test_socket's testConnectWithLocalBind locking up on subsequent test runs:
Not even SO_REUSEADDR allows reuse of an exact socket 4-tuple (localhost, PORT
- 1, localhost, PORT) stuck in TIME_WAIT (which happens after the first test
run), so catch the EADDRINUSE raised in that situation, decrement the local
PORT and try again
........
r4469 | pjenvey | 2008-05-28 22:29:20 -0700 (Wed, 28 May 2008) | 6 lines

o revert _map_exception back to creating new socket.errors every time. they're
mutable and unsafe as singletons
o map java exceptions to python in socket.shutdown
o handle all unmapped exceptions in one place and include the Java exception's
message in the translated socket.error's msg
........
r4470 | pjenvey | 2008-05-28 23:16:26 -0700 (Wed, 28 May 2008) | 5 lines

fix intermittent failures in testShutdown:
the server occasionally tearsDown before the client finishes, causing a socket
not connected error during client shutdown(). so block server tearDowns until
clients are ready to tearDown
........
r4471 | fwierzbicki | 2008-05-29 10:16:32 -0700 (Thu, 29 May 2008) | 2 lines

null checks for arrays in ast code.
........
r4473 | pjenvey | 2008-05-29 12:24:41 -0700 (Thu, 29 May 2008) | 1 line

don't consider tests skipped due to ResourceDenied as unexpected
........
r4475 | pjenvey | 2008-05-29 14:37:07 -0700 (Thu, 29 May 2008) | 6 lines

fix intermittent failures in test_select_new:
o allow socket.connect_ex to be called multiple times
o since we're using connect_ex for an asynchronous connects, don't assume it's
immediately ready in finish_connect
o same idea for server accept: don't assume it's immediately acceptable
........
r4476 | pjenvey | 2008-05-29 15:39:00 -0700 (Thu, 29 May 2008) | 1 line

revert part of r4409: Java 6 disallows the exposed method access to the private base
........
r4477 | pjenvey | 2008-05-29 15:51:31 -0700 (Thu, 29 May 2008) | 1 line

use String.format
........
r4478 | pjenvey | 2008-05-29 15:52:21 -0700 (Thu, 29 May 2008) | 1 line

be more efficient with memory in the generic readall
........
r4479 | pjenvey | 2008-05-29 15:56:22 -0700 (Thu, 29 May 2008) | 1 line

expect test_ast to fail for now, until we actually include antlr-runtime
........
r4480 | pjenvey | 2008-05-29 17:34:42 -0700 (Thu, 29 May 2008) | 3 lines

UserString.py from
http://svn.python.org/projects/python/branches/release25-maint/Lib/UserString.py@46876
........
r4481 | pjenvey | 2008-05-29 17:35:40 -0700 (Thu, 29 May 2008) | 4 lines

add str/unicode partition/rpartition
fixes #1796272, 1797751
thanks ukeshav
........
r4482 | nriley | 2008-05-29 19:47:57 -0700 (Thu, 29 May 2008) | 1 line

clean up start script, add test script, tested on Mac OS X/Linux/Solaris/Cygwin
........
r4483 | nriley | 2008-05-29 19:52:24 -0700 (Thu, 29 May 2008) | 1 line

remove debugging, interferes with help
........
r4484 | nriley | 2008-05-29 19:56:23 -0700 (Thu, 29 May 2008) | 1 line

fix help sort order
........
r4485 | fwierzbicki | 2008-05-29 20:13:31 -0700 (Thu, 29 May 2008) | 2 lines

Added line numbers and column to ast display.
........
r4486 | fwierzbicki | 2008-05-29 20:21:14 -0700 (Thu, 29 May 2008) | 2 lines

Fix lineno/col for yield.
........
r4488 | pjenvey | 2008-05-29 22:50:34 -0700 (Thu, 29 May 2008) | 1 line

invoke regrtest via the new dist/bin/jython script
........
r4489 | pjenvey | 2008-05-29 22:54:28 -0700 (Thu, 29 May 2008) | 3 lines

add a subprocess resource that's skipped by default (test_subprocess and a few
tests in test_chdir), because they take a long time
........
r4491 | pjenvey | 2008-05-30 11:31:03 -0700 (Fri, 30 May 2008) | 2 lines

merge r4441 from branches/Release_2_2maint/jython
........
r4492 | pjenvey | 2008-05-30 11:34:13 -0700 (Fri, 30 May 2008) | 3 lines

still not pure bourne shell compatible: we die on line 90 during substring
extraction. so use bash and fix aliases not being expanded in bash
........
r4495 | amak | 2008-06-01 17:02:17 -0700 (Sun, 01 Jun 2008) | 1 line

Merging changes from Release 2.2 branch, including new option support and some test refactoring.
........
r4497 | amak | 2008-06-01 17:12:57 -0700 (Sun, 01 Jun 2008) | 1 line

Submitted in an incomplete merge in the last checkin; fixing this now.
........
r4502 | pjenvey | 2008-06-01 20:18:56 -0700 (Sun, 01 Jun 2008) | 2 lines

add unicode __getitem/slice__ to fix a couple test_unicode failures,
make str's versions final
........
r4503 | pjenvey | 2008-06-01 20:20:23 -0700 (Sun, 01 Jun 2008) | 1 line

re-enable tests broken by #1758276 which was a while ago
........
r4505 | fwierzbicki | 2008-06-02 10:37:04 -0700 (Mon, 02 Jun 2008) | 2 lines

Fix start position for (Expr (Call))
........
r4506 | fwierzbicki | 2008-06-02 10:54:29 -0700 (Mon, 02 Jun 2008) | 2 lines

Improved Line/Col info for parens.
........
r4507 | fwierzbicki | 2008-06-02 11:03:33 -0700 (Mon, 02 Jun 2008) | 2 lines

Adjust line/col info for elif.
........
r4508 | fwierzbicki | 2008-06-02 11:26:07 -0700 (Mon, 02 Jun 2008) | 2 lines

Adjust line/col info for unary ops.
........
r4509 | fwierzbicki | 2008-06-02 11:40:37 -0700 (Mon, 02 Jun 2008) | 2 lines

dump astview output for a directory tree.
........
r4510 | fwierzbicki | 2008-06-02 12:46:09 -0700 (Mon, 02 Jun 2008) | 3 lines

Switching to antlr 3.1b in prep for moving to automatic AST shaping in
PythonWalker.g instead of the current "by hand" approach.
........
r4513 | pjenvey | 2008-06-02 14:57:01 -0700 (Mon, 02 Jun 2008) | 1 line

sort all test lists
........
r4514 | pjenvey | 2008-06-02 15:34:09 -0700 (Mon, 02 Jun 2008) | 3 lines

o fix __reduce__ for PyDequeDeriveds
o re-enable test_deque's usage of gc.collect now that we support it
........
r4515 | pjenvey | 2008-06-02 17:02:19 -0700 (Mon, 02 Jun 2008) | 1 line

move _weakref into its own dir
........
r4516 | pjenvey | 2008-06-02 18:56:41 -0700 (Mon, 02 Jun 2008) | 2 lines

fix isCallable to handle new style classes
........
r4517 | pjenvey | 2008-06-02 19:50:09 -0700 (Mon, 02 Jun 2008) | 5 lines

from 2.5 lib:
http://svn.python.org/projects/python/branches/release25-maint/Lib/weakref.py@45853
http://svn.python.org/projects/python/branches/release25-maint/Lib/test/test_weakref.py@53533
http://svn.python.org/projects/python/branches/release25-maint/Lib/test/mapping_tests.py@36025
........
r4518 | pjenvey | 2008-06-02 20:23:59 -0700 (Mon, 02 Jun 2008) | 1 line

make for_type public
........
r4519 | pjenvey | 2008-06-02 20:24:47 -0700 (Mon, 02 Jun 2008) | 6 lines

o use the 2.5 weakref module
o pull apart the _weakref types into their own class files, exposed with
annotations
o add more methods to ProxyType
o use the builtin ReferenceError instead of _weakref's own
........
r4520 | pjenvey | 2008-06-02 20:33:29 -0700 (Mon, 02 Jun 2008) | 1 line

revert mistaken commits in r4519
........
r4522 | pjenvey | 2008-06-02 21:36:28 -0700 (Mon, 02 Jun 2008) | 3 lines

allow udp's connect_ex to be called repeatedly, and make connect_ex return
EISCONN instead of 0 in non blocking mode (like CPython)
........
r4525 | pjenvey | 2008-06-03 16:59:32 -0700 (Tue, 03 Jun 2008) | 7 lines

get test_weakref passing (though it may need further tweaking to be reliable):
o avoid CPythonisms and force extra gc.collect()'ing all over the place
o dance around a potential Jython bug in test_getweakrefs
o fix proxy types, and ReferenceType.toString and __call__ which I
broke in r4519
o fix proxy() not reusing references in every situation
........
r4527 | nriley | 2008-06-03 21:07:27 -0700 (Tue, 03 Jun 2008) | 1 line

correct mistaken translation of CPython sort code; fixes #1835099. Thanks arnebef!
........
r4528 | pjenvey | 2008-06-04 10:46:25 -0700 (Wed, 04 Jun 2008) | 3 lines

fix ReferenceType __new/init__ not fully ignoring keyword args (allowing them
to pass through)
........
r4530 | pjenvey | 2008-06-04 10:52:48 -0700 (Wed, 04 Jun 2008) | 1 line

note a small fixme
........

pjenvey@79b11f02-f210-0410-99aa-fb189b3d1ac4 pjenvey@79b11f02-f210-0410-99aa-fb189b3d1ac4 2008-06-04

1 2 3 4 > >> (Page 1 of 4)
changed CoreExposed.includes
changed Lib/socket.py
changed Lib/test/regrtest.py
changed Lib/test/string_tests.py
changed Lib/test/test_bool.py
changed Lib/test/test_chdir.py
changed Lib/test/test_deque.py
changed Lib/test/test_richcmp.py
changed Lib/test/test_select_new.py
changed Lib/test/test_set.py
changed Lib/test/test_socket.py
changed Lib/test/test_subprocess.py
changed Lib/test/test_zlib.py
changed Lib/zlib.py
changed ast/asdl_antlr.py
changed ast/astview.py
changed build.xml
changed grammar/Python.g
changed grammar/PythonWalker.g
changed src/org/python/antlr/ExpressionParser.java
changed src/org/python/antlr/PythonGrammar.java
changed src/org/python/antlr/PythonTokenSource.java
changed src/org/python/antlr/ast/Assign.java
changed src/org/python/antlr/ast/BoolOp.java
changed src/org/python/antlr/ast/Call.java
CoreExposed.includes Diff Switch to side-by-side view
Loading...
Lib/socket.py Diff Switch to side-by-side view
Loading...
Lib/test/regrtest.py Diff Switch to side-by-side view
Loading...
Lib/test/string_tests.py Diff Switch to side-by-side view
Loading...
Lib/test/test_bool.py Diff Switch to side-by-side view
Loading...
Lib/test/test_chdir.py Diff Switch to side-by-side view
Loading...
Lib/test/test_deque.py Diff Switch to side-by-side view
Loading...
Lib/test/test_richcmp.py Diff Switch to side-by-side view
Loading...
Lib/test/test_select_new.py Diff Switch to side-by-side view
Loading...
Lib/test/test_set.py Diff Switch to side-by-side view
Loading...
Lib/test/test_socket.py Diff Switch to side-by-side view
Loading...
Lib/test/test_subprocess.py Diff Switch to side-by-side view
Loading...
Lib/test/test_zlib.py Diff Switch to side-by-side view
Loading...
Lib/zlib.py Diff Switch to side-by-side view
Loading...
ast/asdl_antlr.py Diff Switch to side-by-side view
Loading...
ast/astview.py Diff Switch to side-by-side view
Loading...
build.xml Diff Switch to side-by-side view
Loading...
grammar/Python.g Diff Switch to side-by-side view
Loading...
grammar/PythonWalker.g Diff Switch to side-by-side view
Loading...
src/org/python/antlr/ExpressionParser.java Diff Switch to side-by-side view
Loading...
src/org/python/antlr/PythonGrammar.java Diff Switch to side-by-side view
Loading...
src/org/python/antlr/PythonTokenSource.java Diff Switch to side-by-side view
Loading...
src/org/python/antlr/ast/Assign.java Diff Switch to side-by-side view
Loading...
src/org/python/antlr/ast/BoolOp.java Diff Switch to side-by-side view
Loading...
src/org/python/antlr/ast/Call.java Diff Switch to side-by-side view
Loading...
1 2 3 4 > >> (Page 1 of 4)