summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use __name__ instead of "test_regex" as the module name in theGuido van Rossum2001-01-171-1/+1
| | | | | warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too.
* Document xreadlines() method. (Forgot to check this in before!)Guido van Rossum2001-01-171-0/+4
|
* Rationalizing the fallback code for portable fseek -- this is all muchGuido van Rossum2001-01-161-26/+12
| | | | | | | | | 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!
* Fix a few small markup/consistency nits.Fred Drake2001-01-161-6/+8
|
* Fix bugs with integer-valued variables when parsing Makefiles. ValuesAndrew M. Kuchling2001-01-161-5/+9
| | | | | | | | | | 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.)
* Modified version of a patch from Jeremy Kloth, to make .get_outputs()Andrew M. Kuchling2001-01-161-1/+5
| | | | | | | 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.
* Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the ↵Jack Jansen2001-01-161-3/+3
| | | | previous complicated expression.
* Config file for standalone carbon python.Jack Jansen2001-01-161-0/+52
|
* Added Carbon interpreter.Jack Jansen2001-01-161-0/+0
|
* Commit version of config.h.in that covers the TERMIOS test.Eric S. Raymond2001-01-161-0/+3
|
* Check in a version with the termios test in place.Eric S. Raymond2001-01-161-2/+2
|
* Make pop_source and push_source available, as documented.Eric S. Raymond2001-01-161-23/+36
|
* Make HAVE_TERMIOS_H and associated config.sh shell variable availableEric S. Raymond2001-01-162-1/+7
| | | | | | | | | 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.
* Converted to CW Pro 6 and new naming scheme.Jack Jansen2001-01-161-0/+0
|
* push_source() and pop_source() entry points for shlex instances.Eric S. Raymond2001-01-161-3/+22
| | | | | These basically just make available to the user what userhook() does to the source stack. Documentation included.
* Added the 'carb' resource to the carbon interpreter.Jack Jansen2001-01-161-0/+0
|
* Replaced the single .exp file by two files, one for classic and one for carbon.Jack Jansen2001-01-162-0/+2198
|
* Added checks to prevent PyUnicode_Count() from dumping coreMarc-André Lemburg2001-01-164-19/+56
| | | | | | | | | | | | 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.
* bumped SRE version number to 2.1. cleaned up and added 1.5.2Fredrik Lundh2001-01-164-44/+76
| | | | compatibility patches.
* Whitespace normalization.Tim Peters2001-01-161-3/+3
|
* doctest-- The Little Module That Could --finally makes it to the Big Show ↵Tim Peters2001-01-161-0/+1101
| | | | <wink>.
* fixed a memory leak in pattern cleanup (patch #103248 by cgw)Fredrik Lundh2001-01-161-2/+6
|
* Fix for SF bug #123625: some newsservers need 'authinfo' *before* 'modeThomas Wouters2001-01-161-0/+20
| | | | | readers', others *after*. (Netscape Collabra for the first category, INN-which-forks-nnrpd for the second.)
* Plug memory leak.Neil Schemenauer2001-01-161-1/+2
|
* Add strip_dir argument to the single call to .object_filenames(), toAndrew M. Kuchling2001-01-161-0/+1
| | | | | prevent creating files such as build/lib.whatever/Modules/foo.o when given a source filename such as Modules/foo.c.
* Variant of Skip's patch 103246 (Remove unneeded string exception compat from ↵Tim Peters2001-01-151-13/+7
| | | | Queue).
* Ugh. Sorry. Checked in the wrong file. Please ignore revision 1.3;Ka-Ping Yee2001-01-151-154/+154
| | | | it anticipates another patch i was about to propose.
* better format names and error messagesKa-Ping Yee2001-01-152-15/+14
|
* This patch makes sure that the function name always appears in the errorKa-Ping Yee2001-01-155-66/+205
| | | | | | | 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.
* Add tokenizer support and tests for u'', U"", uR'', Ur"", etc.Ka-Ping Yee2001-01-153-374/+460
|
* Add a test case suggested by Guido, where a method is created with theBarry Warsaw2001-01-151-0/+38
| | | | new module.
* effbot caught a typo!Barry Warsaw2001-01-151-3/+3
|
* Add a NEWS item about function attributes.Barry Warsaw2001-01-151-0/+6
|
* Committing PEP 232, function attribute feature, approved by Guido.Barry Warsaw2001-01-153-15/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Committing PEP 232, function attribute feature, approved by Guido.Barry Warsaw2001-01-152-0/+103
| | | | | | Closes SF patch #103123. Regression test for function attributes, with output file.
* Document function attributes for both the function type and the methodBarry Warsaw2001-01-151-0/+38
| | | | | | 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.
* Add note about new and improved xrange().Guido van Rossum2001-01-151-0/+8
|
* SF patch #103158 by Greg Ball: Don't do unsafe arithmetic in xrangeGuido van Rossum2001-01-151-10/+80
| | | | | | | | | | | | | | | 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...
* - Make sure to quote the username and password (SF patch #103236 byGuido van Rossum2001-01-151-3/+3
| | | | | | | dogfort). - Don't drop the data argument when calling open_https() from the authentication error handler.
* from the really-stupid-bug department: uppercase literals should matchFredrik Lundh2001-01-152-6/+19
| | | | | | | 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...)
* mwh@sourceforge found that UnicodeError can be raised by compiling.Guido van Rossum2001-01-151-1/+1
| | | | Its base class ValueError can be raised too, so catch that.
* Fixing author's email address.Barry Warsaw2001-01-151-2/+2
|
* Committing patch #103216, autodetect of dbmmodule support and buildingBarry Warsaw2001-01-155-341/+484
| | | | | | of dbmmodule dynamically by default (otherwise it can pull in dependencies with libdb that croak pybsddb3). This change moves the Setup line for dbmmodule to Setup.config.in.
* Geoffrey Gerrietts discovered that a KeyError was caught that probablyGuido van Rossum2001-01-151-1/+1
| | | | | | should have been a NameError. I'm checking in a change that catches both, just to be sure -- I can't be bothered trying to understand this code any more. :-)
* Document changed default to passive mode.Guido van Rossum2001-01-151-1/+2
|
* Add note about ftplib defaulting to passive mode.Guido van Rossum2001-01-151-0/+7
|
* Default to passive mode. See SF bug #126851.Guido van Rossum2001-01-151-1/+1
| | | | | | This is slightly controversial, but after reading the argumentation in the bug tracker for and against, I believe this is the right solution. Let me know if it breaks for you, and how.
* Fix from Jack Jansen for the Mac and the Metrowerks compiler, postedAndrew M. Kuchling2001-01-153-6/+216
| | | | | to the Distutils-SIG and archived at http://mail.python.org/pipermail/distutils-sig/2000-November/001755.html
* Added a separate extension (.carbon.slb) for Carbon dynamic modules.Jack Jansen2001-01-151-0/+4
|
* Revert a change I accidentally checked in together with Ping'sGuido van Rossum2001-01-151-4/+1
| | | | "smallest patch ever".