- 17 Jan, 2001 1 commit
-
-
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 16 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.
-
Barry Warsaw authored
Closes SF patch #103123. Regression test for function attributes, with output file.
-
Barry Warsaw authored
type. The method documentation also includes a new brief discussion of `bound' vs. `unbound' and why setting an attr on a bound method is a TypeError. Includes Skip's suggested text.
-
Guido van Rossum authored
-
Guido van Rossum authored
object. This fixes potential overflows in xrange()'s internal calculations on 64-bit platforms. The fix is complicated because the sq_length slot function can only return an int; we want to support xrange(sys.maxint), which is a 64-bit quantity on most 64-bit platforms (except Win64). The solution is hacky but the best possible: when the range is that long, we can use it in a for loop but we can't ask for its length (nor can we actually iterate beyond 2**31-1, because the sq_item slot function has the same restrictions on its arguments. Fixing those restrictions is a project for another day...
-
Guido van Rossum authored
dogfort). - Don't drop the data argument when calling open_https() from the authentication error handler.
-
Fredrik Lundh authored
uppercase strings also when the IGNORECASE flag is set (bug #128899) (also added test cases for recently fixed bugs to the regression suite -- or in other words, check in re_tests.py too...)
-
Guido van Rossum authored
Its base class ValueError can be raised too, so catch that.
-