Guido van Rossum
d6449a2b11
Be more careful with closing fd's 0,1,2.
1997-10-07 14:37:31 +00:00
Guido van Rossum
ef31b240ea
Add note about condition.py.
1997-10-07 14:37:00 +00:00
Guido van Rossum
92664b890b
Completed the changes between 1.5a3 and now. Not yet sorted though.
1997-10-07 00:12:43 +00:00
Fred Drake
6f2a26d42b
And "ni" has been documented...
1997-10-06 21:53:50 +00:00
Fred Drake
2df75832b3
Oops; don't know if this was my typo or not: There was a "p" on a line that
...
should have been blank.
1997-10-06 21:52:31 +00:00
Fred Drake
c211254334
Updated the section "Parsing Python".
1997-10-06 21:41:30 +00:00
Fred Drake
14bf341f16
Added keyword module entry.
1997-10-06 21:40:48 +00:00
Fred Drake
e061a51de1
Minor nits (Lib/token.py is a file, token is a module...).
...
Added docs for symbol and token modules at the end.
1997-10-06 21:40:20 +00:00
Fred Drake
db12f343bc
Documentation for the keyword module.
1997-10-06 21:39:16 +00:00
Fred Drake
e3dbc7e422
Reduced number of temporary names used at module scope. Use underscores in
...
front of temporary names in the module namespace.
1997-10-06 21:28:04 +00:00
Fred Drake
00eb96a126
Move the pprint docs after the code docs, so that all parser/codegen type
...
things come together.
1997-10-06 21:26:03 +00:00
Guido van Rossum
9971f689cb
Fix comment to add the all-important trailing colon to the example.
...
Print the author with the revision date and filename.
1997-10-06 21:09:32 +00:00
Fred Drake
dc1a072e02
Reduced number of temporary names used at module scope. Use underscores in
...
front of temporary names in the module namespace.
1997-10-06 21:06:29 +00:00
Guido van Rossum
1f83ccee88
Done with adding changes from 1.4 till 1.5a3.
1997-10-06 21:04:35 +00:00
Fred Drake
923c4eeeef
Don't do weird things with the "import parser"; just do it. Sheesh...
1997-10-06 20:56:43 +00:00
Guido van Rossum
a11ccccd24
The usual (and some new modules).
1997-10-06 20:19:59 +00:00
Guido van Rossum
d57548023f
A variant on webchecker that creates a mirror copy of a remote site.
1997-10-06 18:54:25 +00:00
Guido van Rossum
2237b73baf
Several changes:
...
- Change the code that looks for robots.txt to always look in /, even
if the "root" path is somewhere deep down below.
- Add link processing in <AREA> tags.
- Change safeclose() to avoid crashing when the file has no geturl()
method.
1997-10-06 18:54:01 +00:00
Barry Warsaw
dc0f00ad03
Document the mapping object's new get() method.
1997-10-06 17:50:48 +00:00
Barry Warsaw
fc3e61cd28
UserDict.get(): New method to mirror built-in dictionaries' get()
...
method.
1997-10-06 17:50:04 +00:00
Barry Warsaw
c38c5da5d0
dict_get(): New method for item access with different semantics than
...
__getitem__(). This method never raises an exception; if the key is
not in the dictionary, the second (optional) argument is returned. If
the second argument is not provided and the key is missing, None is
returned.
mapp_methods: added "get" method.
1997-10-06 17:49:20 +00:00
Fred Drake
596db3161c
Move the __getitem__() definition from StandardException to Exception.
...
This allows stuff like this out of the box:
try:
...
except socket.error, (code, msg):
...
1997-10-06 15:48:20 +00:00
Guido van Rossum
bf9d353bab
New "re" regular expression support.
...
The new re module was written by Andrew Kuchling and uses the pcre
code in ../Modules/. The old re module has been renamed to re1,
just in case you need it for comparison.
1997-10-06 14:45:17 +00:00
Guido van Rossum
51b3aa3d38
New "re" regular expression support.
...
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.
1997-10-06 14:43:11 +00:00
Fred Drake
04ac894189
Add the four latex2html output directories: api, ext, lib, tut.
1997-10-06 13:20:17 +00:00
Guido van Rossum
c44d3d6664
Done with tread state descriptions. Sigh!
1997-10-06 05:10:47 +00:00
Guido van Rossum
86b7db3750
Oops -- needed to fix another place affected by the change back to
...
$(MACHDEP) being just the platform name, without "plat-" prefix...
(To be precise, the libainstall target was totally broken.)
1997-10-06 00:15:31 +00:00
Guido van Rossum
0bfd146594
Added strerror()
1997-10-05 18:54:52 +00:00
Guido van Rossum
bc3b13643d
Removed emacs.py
1997-10-05 18:54:36 +00:00
Guido van Rossum
eb53ae4928
Fixed some stuff that was incorrectly copied from regex.
1997-10-05 18:54:07 +00:00
Guido van Rossum
7974b0f2d8
Documented __import__, callable, isinstance, issubclass,
...
and slice.
1997-10-05 18:53:00 +00:00
Guido van Rossum
df3dba049d
Documented new exceptions and exception classes.
1997-10-05 18:51:26 +00:00
Guido van Rossum
5344d4fd2e
Add -N0 to dvips flags to generate page structure comments.
1997-10-05 18:51:02 +00:00
Guido van Rossum
42cefd03cf
Checkpoint. Added docs for the new exception handling APIs and for
...
the interfaces defined in import.h.
1997-10-05 15:27:29 +00:00
Guido van Rossum
474ba3bd46
The directory containing config.h has changed.
1997-10-05 03:01:28 +00:00
Guido van Rossum
6af6d3511e
Turns out whatsound.py and sndhdr.py were identical modules.
...
Since there's also an imghdr.py file, I propose to make sndhdr.py the
official one. For compatibility, whatsound.py imports * from
sndhdr.py.
1997-10-04 20:29:17 +00:00
Fred Drake
bfeb74d4ca
install: New target that installs shared modules in
...
$exec_prefix/lib/python$VERSION/site-packages by default.
1997-10-04 04:56:40 +00:00
Guido van Rossum
d99d714ac9
Install install-sh with the other config files.
...
Could be useful for an install target in Misc/Makefile.pre.in.
1997-10-04 04:35:24 +00:00
Guido van Rossum
2ac650f385
New version of PyErr_NewException() that is compatible with -X option.
1997-10-03 19:50:55 +00:00
Guido van Rossum
999e5e921e
Initialize Py_UseClassExceptionsFlag to 1.
1997-10-03 19:46:02 +00:00
Guido van Rossum
a7f2e813c9
Remove unreachable "return 1" at end of ensure_fromlist().
1997-10-03 15:33:32 +00:00
Guido van Rossum
aa9606f45a
Fix small omission: with all the new code, sys.exit(None) would print
...
"None"; this should be equivalent to sys.exit(0).
1997-10-03 13:53:28 +00:00
Fred Drake
d80b3bdc1e
Argh; do the same for the "Release" version of the config.
1997-10-02 20:36:45 +00:00
Fred Drake
e40afcf154
Fix up include directories for compiling the resources.
1997-10-02 20:23:52 +00:00
Guido van Rossum
f1b0009a78
Fix path search for test data file so it works under more circumstances.
1997-10-01 22:10:32 +00:00
Guido van Rossum
88d8beec0a
Oops, forgot one.
1997-10-01 04:43:39 +00:00
Guido van Rossum
ae631f7f45
There was actually a test that ensured that raising an exception A
...
with an instance of a derived class B would really raise an A, not a
B. Since Barry fixed this anomalous behaviour, I though I might as
well fix the test! (Hmm, Barry, did you not run the tests or did you
miss that test_opcodes failed?)
1997-10-01 04:41:05 +00:00
Guido van Rossum
a008fa52be
Fixed test for socket.error to work when it's a class exception.
1997-10-01 04:39:05 +00:00
Guido van Rossum
0cb96de269
Apply two changes, systematically:
...
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
exception object.
(2) Remove all calls to Py_FatalError(); instead, return or
ignore the errors -- the import code now checks PyErr_Occurred()
after calling a module's init function, so it's no longer a
fatal error for the initialization to fail.
Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().
I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!
1997-10-01 04:29:29 +00:00
Guido van Rossum
ccf0a44d2d
Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to
...
plat-win, get rid of test (which is now a package).
1997-09-30 22:14:39 +00:00