Commit Graph

21831 Commits

Author SHA1 Message Date
Martin v. Löwis
5877bc3dfd Add recursion limit to pickling. Fixes #576084. 2002-09-22 08:21:45 +00:00
Guido van Rossum
d412a12fb7 Backport (the relevant part of) rexec.py 1.41.
Address SF bug #577530: del __builtins__ breaks out of rexec

Using the suggestion there: add_module() forces __builtin__ back; this
fixes r_exec, r_eval, r_execfile.

This does not mean that rexec is now considered safe!  But for those
willing to take the risk, it's safer than before.  (Note that a safety
analysis of the code module would be wise if you plan to use the
interactive console for real -- I've only ever used it to play with
restricted mode.)
2002-09-15 06:08:27 +00:00
Neal Norwitz
163262e336 SF # 602108 ensure string is null terminated after strncpy 2002-09-13 14:40:50 +00:00
Fred Drake
d42bb8add7 Fix typo reported by Paul Clifford.
Note that there is no str.joinfields(), use str.join() instead.
2002-09-12 14:16:31 +00:00
Fred Drake
b1ded6f85a Revise text about the level of DOM support, and provide pointers to
the work of the XML-SIG in the main body of the text.  Incorporates
changes made by Martin von Löwis in revision 1.20 on the trunk.

Modify the markup in a few places to avoid wrapping lines in bad
places, and just general cleanliness.
2002-09-11 22:04:51 +00:00
Martin v. Löwis
5346d01151 Add windows-125[678]. Fixes #607302. 2002-09-11 16:29:52 +00:00
Fred Drake
8513a66e20 Clarify who maintains Tkinter and who maintains Tk. 2002-09-10 21:59:44 +00:00
Martin v. Löwis
70c353a8b7 Use = instead of == in test. 2002-09-10 09:19:45 +00:00
Raymond Hettinger
eb2823f894 Fix API typo. Closes SF 606216 2002-09-08 04:42:16 +00:00
Neal Norwitz
bfff5a720a Try to get test to pass on Windows 2002-09-07 05:58:28 +00:00
Raymond Hettinger
9c1d3e46bb Change UserDict to IterableUserDict 2002-09-07 04:49:09 +00:00
Raymond Hettinger
aa36d87f0e Have os.environ inherit from the iterable version of UserDict.
Closes SF bug 605731.
2002-09-06 19:35:22 +00:00
Raymond Hettinger
4f97618845 Added a tutorial note and example regarding the scope of loop variables
in a list comprehension.  Includes a justification and a comparision
to regular for-loops.

Closes SF bug 605047.
2002-09-06 18:09:22 +00:00
Neal Norwitz
df4626fb8a Backport of SF bug # 585792, Invalid mmap crashes Python interpreter
Raise ValueError if user passes a size to mmap which is larger
than the file.

Also need Tim's fix in test_mmap.py, 1.22 which flushes the file
before mmap'ing it.
2002-09-05 22:30:03 +00:00
Raymond Hettinger
ba933e63a7 Fix typo 2002-09-04 15:12:55 +00:00
Raymond Hettinger
501ff27543 Fix typo 2002-09-04 15:02:53 +00:00
Guido van Rossum
10c7ab740c Backport:
Fix for SF bug 601077 by Zack Weinberg.

The new execvpe code would sometimes do the wrong thing when a
non-executable file existed earlier in the path and an executable file
of the same name existed later in the path.  This patch restores the
proper behavior (which is to execute the second file).  When only a
non-executable file exists, the correct error is still reported.
2002-09-03 16:36:59 +00:00
Raymond Hettinger
84bd5a7b35 Backported Skip's update to revision 1.34 2002-08-28 02:10:04 +00:00
Raymond Hettinger
1fec57f45e Note change in behavior from 1.5.2. The new argument to NameError is
an error message and not just the missing name.

Closes SF Bug 599869.
2002-08-27 23:54:57 +00:00
Fred Drake
a2b4448d41 Add strong security warning about the rexec module.
Closes SF patch #600861.

Minor markup changes.
2002-08-27 16:44:18 +00:00
Raymond Hettinger
24aba91f59 Correct documentation of allow_reuse_address to match the actual script.
Closes SF bug 599681.
2002-08-25 16:31:27 +00:00
Fred Drake
5431b6b730 Fix typo reported to python-docs. 2002-08-23 21:20:11 +00:00
Michael W. Hudson
e4d6c0c517 backport effbot's checkin of
revision 1.13 of pre.py



Fix bug #570057: Broken pre.subn() (and pre.sub())

This should be backported to the 2.2.X series (how
do I do that?)
2002-08-23 16:34:08 +00:00
Michael W. Hudson
55ec86e27c backport gvanrossum's checkin of
revision 1.180 of ACKS

date: 2002/06/10 20:00:52;  author: gvanrossum;  state: Exp;  lines: +1 -0
SF patch 564549 (Erik Andersén).

The WeakKeyDictionary constructor didn't work when a dict arg was
given.  Fixed by moving a line.  Also adding a unit test.

Bugfix candidate.
2002-08-23 16:30:07 +00:00
Michael W. Hudson
f2a62c37a6 backport gvanrossum's checkin of
revision 1.19 of test_weakref.py

SF patch 564549 (Erik Andersén).

The WeakKeyDictionary constructor didn't work when a dict arg was
given.  Fixed by moving a line.  Also adding a unit test.

Bugfix candidate.
2002-08-23 16:29:27 +00:00