- 31 May, 2002 15 commits
-
-
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 10 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...
-
Guido van Rossum authored
-
Guido van Rossum authored
readline in all python versions is configured to append a 'space' character for a successful completion. But for almost all python expressions 'space' is not wanted (see coding conventions PEP 8). For example if you have a function 'longfunction' and you type 'longf<TAB>' you get 'longfunction ' as a completion. note the unwanted space at the end. The patch fixes this behaviour by setting readline's append_character to '\0' which means don't append anything. This doesn't work with readline < 2.1 (AFAIK nowadays readline2.2 is in good use). An alternative approach would be to make the append_character accessable from python so that modules like the rlcompleter.py can set it to '\0'. [Ed.: I think expecting readline >= 2.2 is fine. If a completer wants another character they can append that to the keyword in the list.]
-
Neal Norwitz authored
-
Raymond Hettinger authored
-
- 29 May, 2002 13 commits
-
-
Guido van Rossum authored
-
Fred Drake authored
- Add comment explaining the structure of the stack. - Minor optimization: make stack tuple directly usable as part of return value for enter/exit events.
-
Andrew M. Kuchling authored
-
Neil Schemenauer authored
and got confused by certain log files. Remove logreader_refill and the associated logic and replace with fgetc.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Raymond Hettinger authored
Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were not updated after 2.2).
-
Neal Norwitz authored
that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved.
-
Guido van Rossum authored
UINT4.
-
Marc-André Lemburg authored
-
Marc-André Lemburg authored
-
Michael W. Hudson authored
[ 558914 ] Build md5.c fails on Cray T3E I've also deleted a comment that I didn't understand. Feel free to put it back if it makes/made sense to you.
-
Neal Norwitz authored
-
- 28 May, 2002 2 commits
-
-
Guido van Rossum authored
Using Unicode-aware methods may still die with a NameError on unicode. Maybe there's a more elegant solution but I doubt anybody cares.)
-
Guido van Rossum authored
literals must not contain \u, \U or \N escapes. (XXX Should they also not contain non-ASCII characters?)
-