summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replaced boolean test with is NoneRaymond Hettinger2002-06-013-4/+4
|
* Replace boolean test with is NoneRaymond Hettinger2002-06-014-5/+5
|
* Replaced boolean test with 'is None'Raymond Hettinger2002-06-012-5/+5
|
* Use is None rather than general booleanRaymond Hettinger2002-06-011-2/+2
|
* Use is None rather than general booleanRaymond Hettinger2002-05-311-1/+1
|
* Use is None rather than general booleanRaymond Hettinger2002-05-311-1/+1
|
* Remove unused static functionNeal Norwitz2002-05-311-19/+0
|
* SF 560736. Optimize list iteration by filling the tp_iter slot.Raymond Hettinger2002-05-313-18/+126
|
* SF bug 533625 (Armin Rigo). rexec: potential security holeGuido van Rossum2002-05-312-1/+23
| | | | | | | | | | 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.
* Explain that tp_basicsize must provide alignment for the items.Guido van Rossum2002-05-311-0/+8
|
* Use string methods, remove import stringNeal Norwitz2002-05-311-4/+3
|
* Use more string methods, remove import stringNeal Norwitz2002-05-313-18/+12
|
* Fix typoNeal Norwitz2002-05-311-1/+1
|
* Implement the intention of SF patch 472523 (but coded differently).Guido van Rossum2002-05-311-15/+67
| | | | | | | | | | | | | | | | | | 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?
* Change name from string to basestringNeal Norwitz2002-05-313-6/+6
|
* Update links and information on PyQt/PyKDE.Fred Drake2002-05-311-6/+13
|
* Replace '== None' with 'is None'Raymond Hettinger2002-05-312-2/+2
|
* Add definition of Py_IgnoreEnvironmentFlag (needed at least in debugGuido van Rossum2002-05-311-0/+1
| | | | mode).
* Fix printing plural (s or "").Neal Norwitz2002-05-311-1/+1
|
* Remove import of re, it is not usedNeal Norwitz2002-05-311-1/+1
|
* Use string methods where possible, and remove import stringNeal Norwitz2002-05-313-13/+11
|
* Fix SF bug [ 561825 ] Confusing error for "del f()"Jeremy Hylton2002-05-312-2/+40
| | | | In the error message, say del for del and assign for everything else.
* Py_IgnoreEnvironmentFlag should be extern, since it is declared in pythonrun.cNeal Norwitz2002-05-311-1/+1
|
* Remove unneeded importAndrew M. Kuchling2002-05-301-1/+0
|
* imp_load_module(): correct and comment the sense of the test for '+'Guido van Rossum2002-05-301-2/+7
| | | | in the mode (it's forbidden).
* Cover a few corners in the 'U' mode integration to make imp work.Jeremy Hylton2002-05-301-8/+14
| | | | | | | | | 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.
* Verify that the imp can find and load .py files.Jeremy Hylton2002-05-301-0/+5
|
* Typo fixes.Fred Drake2002-05-301-2/+2
|
* Add the pymemcompat.h header as discussed on python-dev.Michael W. Hudson2002-05-301-0/+86
| | | | Now we just need to make sure people know about it...
* Holger Krekel.Guido van Rossum2002-05-301-0/+1
|
* SF #558432: Prevent Annoying ' ' from readline (Holker Krekel).Guido van Rossum2002-05-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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.]
* Remove comment about inheritance, look one line upNeal Norwitz2002-05-301-5/+1
|
* Move statement out of comment blockRaymond Hettinger2002-05-301-1/+1
|
* Use floor division where appropriate.Guido van Rossum2002-05-291-2/+2
|
* Minor cleanup:Fred Drake2002-05-291-5/+11
| | | | | | - Add comment explaining the structure of the stack. - Minor optimization: make stack tuple directly usable as part of return value for enter/exit events.
* Add OS/2 textAndrew M. Kuchling2002-05-291-9/+16
|
* The logreader object did not always refill the input buffer correctlyNeil Schemenauer2002-05-291-105/+56
| | | | | and got confused by certain log files. Remove logreader_refill and the associated logic and replace with fgetc.
* Various minor rewritesAndrew M. Kuchling2002-05-291-42/+52
|
* More additionsAndrew M. Kuchling2002-05-291-25/+15
|
* Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were ↵Raymond Hettinger2002-05-299-8/+499
| | | | not updated after 2.2).
* As discussed on python-dev, add a mechanism to indicate featuresNeal Norwitz2002-05-297-16/+48
| | | | | that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved.
* Issue an explicit error when we can't find an appropriate type forGuido van Rossum2002-05-291-0/+2
| | | | UINT4.
* Fix a possible segfault. Found be Neal Norvitz.Marc-André Lemburg2002-05-291-1/+1
|
* Fix for bug [ 561796 ] string.find causes lazy errorMarc-André Lemburg2002-05-292-3/+4
|
* This is patchMichael W. Hudson2002-05-291-7/+3
| | | | | | | [ 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.
* Whitespace normalizationNeal Norwitz2002-05-291-2/+2
|
* Importing Charset should not fail when Unicode is disabled. (XXXGuido van Rossum2002-05-281-3/+11
| | | | | Using Unicode-aware methods may still die with a NameError on unicode. Maybe there's a more elegant solution but I doubt anybody cares.)
* Accept u"..." literals even when Unicode is disabled. But theseGuido van Rossum2002-05-281-8/+13
| | | | | literals must not contain \u, \U or \N escapes. (XXX Should they also not contain non-ASCII characters?)
* File modes in filedescr entries are also passed to Python, so we now put "U"Jack Jansen2002-05-281-4/+7
| | | | | | | in there, and convert it to "rb" (or "r" for non-universal-newline builds) before passing it to fopen(). Fixes #561326.
* This is a Python 2.1 and 2.2 bugfix candidate:Christian Tismer2002-05-281-11/+5
| | | | | | | | | | | | | | | | | (or how do I "mark" something to be a candidate?) fixed an old buglet that caused bdb to be unable to continue in the botframe, after a breakpoint was set. the key idea is not to set botframe to the bottom level frame, but its f_back, which actually might be None. Additional changes: migrated old exception trick to use sys._getframe(), which exists both in 2.1 and 2.2 . Note: I believe Mark Hammond needs to look over his code now. F5 correctly starts up in the debugger, but later on doesn't stop at a given breakpoint any longer. kind regards - chris