- 17 Jan, 2001 8 commits
-
-
Sjoerd Mullender authored
was never enabled.
-
Tim Peters authored
\t\t\t\t\treal code ##\t\t\t\t\tunused code \t\t\t\t\treal code via untabifying and shifting the real code left. Semantically the same but made the intent of the commented-out-in-column-0 unused code unclear. The exact same unused code appears to have gotten copied from file to file over the years.
-
Tim Peters authored
-
Tim Peters authored
-
Eric S. Raymond authored
builds during which he forgot to uncomment crucial library lines in Setup, walks into Guido's East End nightclub with a tactical nuclear weapon on his shoulder. Said nuclear weapon is promptly deployed exactly where it will do the most good, right in the middle of configure.in. With this patch, the set of libraries autoconfigured in is extended to include ndbm, gdbm, and crypt. This essentially eliminates any need to tweak Setup for a normal Linux build. "'E was a fair man. Cruel, but fair."
-
Fred Drake authored
<cpr@emsoftware.com>.
-
Guido van Rossum authored
warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too.
-
Guido van Rossum authored
-
- 16 Jan, 2001 23 commits
-
-
Guido van Rossum authored
simpler if we use fgetpos and fsetpos, rather than trying to mess with platform-specific TELL64 alternatives. Of course, this hasn't been tested on a 64-bit platform, so I may have to withdraw this -- but I'm hopeful, and Trent Mick supports this patch!
-
Fred Drake authored
-
Andrew M. Kuchling authored
for done[n] can be integers as well as strings, but the code concatenates them with strings (fixed by adding a str()) and calls string.strip() on them (fixed by rearranging the logic) (Presumably this wasn't noticed previously because parse_makefile() was only called on Modules/Makefile, which contains no integer-valued variables.)
-
Andrew M. Kuchling authored
produce a list of unique filenames: "While attempting to build an RPM using distutils on Python 2.0, rpm complained about duplicate files. The following patch fixed that problem.
-
Jack Jansen authored
Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the previous complicated expression.
-
Jack Jansen authored
-
Jack Jansen authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
when configure detects the presence of termios.h; later we'll use this for correct configuration of edline/readline. Also, fix a bug in acconfig.h -- somebody forgot to add an undef to cover the LIBNDBM configure symbol, which was preventing autoheader from working properly.
-
Jack Jansen authored
-
Eric S. Raymond authored
These basically just make available to the user what userhook() does to the source stack. Documentation included.
-
Jack Jansen authored
-
Jack Jansen authored
-
Marc-André Lemburg authored
in case the parameters are out of bounds and fixes error handling for .count(), .startswith() and .endswith() for the case of mixed string/Unicode objects. This patch adds Python style index semantics to PyUnicode_Count() indices (including the special handling of negative indices). The patch is an extended version of patch #103249 submitted by Michael Hudson (mwh) on SF. It also includes new test cases.
-
Fredrik Lundh authored
compatibility patches.
-
Tim Peters authored
-
Tim Peters authored
-
Fredrik Lundh authored
-
Thomas Wouters authored
readers', others *after*. (Netscape Collabra for the first category, INN-which-forks-nnrpd for the second.)
-
Neil Schemenauer authored
-
Andrew M. Kuchling authored
prevent creating files such as build/lib.whatever/Modules/foo.o when given a source filename such as Modules/foo.c.
-
- 15 Jan, 2001 9 commits
-
-
Tim Peters authored
-
Ka-Ping Yee authored
it anticipates another patch i was about to propose.
-
Ka-Ping Yee authored
-
Ka-Ping Yee authored
message, and tries to make the messages more consistent and helpful when the wrong number of arguments or duplicate keyword arguments are supplied. Comes with more tests for test_extcall.py and and an update to an error message in test/output/test_pyexpat.
-
Ka-Ping Yee authored
-
Barry Warsaw authored
new module.
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Barry Warsaw authored
Closes SF patch #103123. funcobject.h: PyFunctionObject: add the func_dict slot. funcobject.c: PyFunction_New(): Initialize the func_dict slot to NULL. func_getattr(): Rename to func_getattro() and change the signature. It's more efficient to use attro methods and dig the C string out than it is to re-convert a C string to a PyString. Also, add support for getting the __dict__ (a.k.a. func_dict) attribute, and for getting an arbitrary function attribute. func_setattr(): Rename to func_setattro() and change the signature for the same reason. Also add support for setting __dict__ (a.k.a. func_dict) and any arbitrary function attribute. func_dealloc(): Be sure to DECREF the func_dict slot. func_traverse(): Be sure to traverse func_dict too. PyFunction_Type: make the necessary func_?etattro() changes. classobject.c: instancemethod_memberlist: Add __dict__ instancemethod_setattro(): New method to set arbitrary attributes on methods (really the underlying im_func). Raise TypeError when the instance is bound or when you're trying to set one of the reserved im_* attributes. instancemethod_getattr(): Renamed to instancemethod_getattro() since that's what it really is. Also, added support fo getting arbitrary attributes through the im_func. PyMethod_Type: Do the ?etattr{,o} dance.
-