Guido van Rossum
1557a7314c
Checking in new module code.py -- utilities dealing with code objects.
...
Currently, contains one function: compile_command(), which helps
determining whether a source string is complete, incomplete or in
error. This is useful when writing your own version of the Python
read-eval-print loop.
1997-07-18 16:57:52 +00:00
Guido van Rossum
f357d3ef52
This module is now completely obsolete.
...
Noted this in the XXX comments.
Also, changed all three functions to use the attributes if they exist.
1997-07-18 16:48:30 +00:00
Guido van Rossum
c444865994
No longer need to use codehack -- use co.co_firstlineno instead.
1997-07-18 16:47:40 +00:00
Guido van Rossum
2deb73a961
Use sys.exc_info() instead of sys.exc_{type,value,traceback}.
...
Also corrected a typo in format_stack (t should've been f).
1997-07-18 16:46:36 +00:00
Guido van Rossum
4994657c5f
Some new tests by Jeffrey
1997-07-18 04:26:25 +00:00
Guido van Rossum
71fa97c60d
Jeffrey's latest -- reorder my chages somewhat,
...
removed some of his own cruft. Added \g<...> references in replacement text.
1997-07-18 04:26:03 +00:00
Guido van Rossum
c12da6980f
Huge speedup by inlining some common integer operations:
...
int+int, int-int, int <compareop> int, and list[int].
(Unfortunately, int*int is way too much code to inline.)
Also corrected a NULL that should have been a zero.
1997-07-17 23:12:42 +00:00
Guido van Rossum
77eecfa94d
Patches by AMK to check that the db is still open.
1997-07-17 22:56:01 +00:00
Guido van Rossum
b8ad024a4e
Add 'return' keyword before error calls.
1997-07-17 22:55:06 +00:00
Guido van Rossum
74fb303997
Jeffrey's latests
1997-07-17 22:41:38 +00:00
Guido van Rossum
9e18ec7dc9
Correctly implement sub, subn, and split. Also correct and augment
...
the cache code.
1997-07-17 22:39:13 +00:00
Guido van Rossum
a4f1a78b6e
Jeffrey's next installment
1997-07-17 22:38:10 +00:00
Guido van Rossum
32d6f3c0ce
Corresponding output.
1997-07-17 22:37:07 +00:00
Guido van Rossum
06c0ec94e4
Several additions from Jeffrey.
1997-07-17 22:36:39 +00:00
Guido van Rossum
23b225741c
Added tests for sub, subn, and split.
1997-07-17 22:36:14 +00:00
Guido van Rossum
b15e5ed689
Use 'and' instead of '&', which is a (La)TeX control character.
...
"make lib tut ext" should now be errorfree.
1997-07-17 18:30:15 +00:00
Guido van Rossum
e3d5fc50a1
Add AMK's seealso environment that is now used in the library manual
...
at some places.
1997-07-17 18:27:53 +00:00
Guido van Rossum
e47da0ae04
AMK's megapatch:
...
* \bcode, \ecode added everywhere
* \label{module-foo} added everywhere
* A few \seealso sections added.
* Indentation fixed inside verbatim in lib*tex files
1997-07-17 16:34:52 +00:00
Guido van Rossum
3c2a056fdd
Extensive changes by AMK.
1997-07-17 16:29:42 +00:00
Guido van Rossum
5320998da5
Note that getvalue() must be called before close().
1997-07-17 16:29:04 +00:00
Guido van Rossum
0fcbe8dde2
Added libni.tex libgzip.tex
1997-07-17 16:27:42 +00:00
Guido van Rossum
41884a9b1c
New from AMK
1997-07-17 16:26:11 +00:00
Guido van Rossum
0245569fd1
New version (interim) by AMK.
1997-07-17 16:21:52 +00:00
Guido van Rossum
eb1633ec6e
Removed mailbox, SocketServer, cmath -- these are now documented!
1997-07-17 16:21:18 +00:00
Guido van Rossum
84057a3874
Added cmath
1997-07-17 16:15:18 +00:00
Guido van Rossum
246d96555f
Typo in example.
1997-07-17 16:14:12 +00:00
Guido van Rossum
14a8024b04
New cmath module docs, by AMK (with additions and deletions by Guido).
1997-07-17 16:13:45 +00:00
Guido van Rossum
6c9db41d30
Added fileno(); added readlines(sizehint).
...
AMK's sed job.
1997-07-17 16:05:47 +00:00
Guido van Rossum
debf2e8a53
Fix dropped word.
1997-07-17 15:58:43 +00:00
Guido van Rossum
c3fb88be8b
Fix xover implementation according to Fred Lundh.
1997-07-17 15:21:52 +00:00
Guido van Rossum
a0e4c1bffc
Jeffrey's latest -- seems to solve most problems!
1997-07-17 14:52:48 +00:00
Guido van Rossum
75fce308bc
Add flush() method to fake file.
1997-07-17 14:51:37 +00:00
Guido van Rossum
db2b70cb99
Fix bug found by kjpylint; change doc string to avoid "(" in column 1.
1997-07-16 16:21:38 +00:00
Guido van Rossum
f0f7aad30f
Added remaining PyThread symbols.
1997-07-16 15:51:52 +00:00
Guido van Rossum
cfaf143956
Added a few new undocumented modules.
1997-07-16 15:48:20 +00:00
Guido van Rossum
9e48b272b9
Catch all exceptions in test modules.
1997-07-16 01:56:13 +00:00
Guido van Rossum
65cd989441
Added output from new tests.
1997-07-15 19:01:38 +00:00
Guido van Rossum
9ddd9dad80
Fixed a syntax error caused by a bad line in the Perl source.
1997-07-15 19:01:04 +00:00
Guido van Rossum
26d80e6714
Correct inf. while loop.
1997-07-15 18:59:04 +00:00
Guido van Rossum
e8b81313db
Merged Jeffrey's changes in.
1997-07-15 18:47:48 +00:00
Guido van Rossum
16bd0ff16a
Merged my changes in, and added all converted Perl tests.
1997-07-15 18:45:20 +00:00
Guido van Rossum
337c6d41d4
Jeffrey's version
1997-07-15 18:42:58 +00:00
Guido van Rossum
9f845ec64b
More changes by Jeffrey.
1997-07-15 18:11:42 +00:00
Guido van Rossum
23b8d4c15e
Tweak re_tests and test_re to differentiate between
...
groups that have no value and groups that are out of bounds.
1997-07-15 15:49:52 +00:00
Guido van Rossum
847ed4afb5
More tweaks; re.py is nearly there...
1997-07-15 15:40:57 +00:00
Guido van Rossum
531097502c
Fix group() -- should be tuple even when re has exactly one group.
1997-07-15 15:40:29 +00:00
Guido van Rossum
09bcfd649a
Jeffrey's latest -- almost there.
1997-07-15 15:38:20 +00:00
Guido van Rossum
04a1d74229
Jeffrey's newest
1997-07-15 14:38:13 +00:00
Guido van Rossum
70f107f63d
Three fewer incorrect failures
1997-07-15 02:49:15 +00:00
Guido van Rossum
faf490898d
Reformatted.
...
Fixed some problem with uninitialized syntax tables.
Jeffrey.
1997-07-15 01:47:08 +00:00