- 01 Jun, 2002 15 commits
-
-
Martin v. Löwis authored
compiler. Fixes #559429. 2.2 bugfix candidate.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Barry Warsaw authored
-
Barry Warsaw authored
subclasses. MIMENonMultipart: Base class for non-multipart/* content type subclass specializations, e.g. image/gif. This class overrides attach() which raises an exception, since it makes no sense to attach a subpart to e.g. an image/gif message. MIMEMultipart: Base class for multipart/* content type subclass specializations, e.g. multipart/mixed. Does little more than provide a useful constructor.
-
Barry Warsaw authored
better code reuse. _split() Use _floordiv().
-
Barry Warsaw authored
-
Tim Peters authored
debug build. Repaired that, and rewrote other parts to reduce long-winded casting.
-
Barry Warsaw authored
Python 2.1 compatibility.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 31 May, 2002 19 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Neal Norwitz authored
-
Raymond Hettinger authored
-
Guido van Rossum authored
If a rexec instance allows writing in the current directory (a common thing to do), there's a way to execute bogus bytecode. Fix this by not allowing imports from .pyc files (in a way that allows a site to configure things so that .pyc files *are* allowed, if writing is not allowed). I'll apply this to 2.2 and 2.1 too.
-
Guido van Rossum authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Guido van Rossum authored
In the past, an object's tp_compare could return any value. In 2.2 the docs were tightened to require it to return -1, 0 or 1; and -1 for an error. We now issue a warning if the value is not in this range. When an exception is raised, we allow -1 or -2 as return value, since -2 will the recommended return value for errors in the future. (Eventually tp_compare will also be allowed to return +2, to indicate NotImplemented; but that can only be implemented once we know all extensions return a value in [-2...1]. Or perhaps it will require the type to set a flag bit.) I haven't decided yet whether to backport this to 2.2.x. The patch applies fine. But is it fair to start warning in 2.2.2 about code that worked flawlessly in 2.2.1?
-
Neal Norwitz authored
-
Fred Drake authored
-
Raymond Hettinger authored
-
Guido van Rossum authored
mode).
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Jeremy Hylton authored
In the error message, say del for del and assign for everything else.
-
Neal Norwitz authored
-
- 30 May, 2002 6 commits
-
-
Andrew M. Kuchling authored
-
Guido van Rossum authored
in the mode (it's forbidden).
-
Jeremy Hylton authored
get_file() must convert 'U' to "r" PY_STDIOTEXTMODE before calling fopen(). imp_load_module() must accept 'r' or 'U' or something with '+'. Also reflow some long lines.
-
Jeremy Hylton authored
-
Fred Drake authored
-
Michael W. Hudson authored
Now we just need to make sure people know about it...
-