summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* added "magic" number to the _sre module, to avoid weird errors causedFredrik Lundh2001-01-154-1/+21
| | | | by compiler/engine mismatches
* Speed getline_via_fgets(), by supplying two "fast paths", although one isTim Peters2001-01-151-54/+81
| | | | | | | | faster than the other. Should be faster for Mark Favas's 254-character mail log lines, and *is* 3-4% quicker for my test case with much shorter lines (but they're typical of *my* text files, and I'm tired of optimizing for everyone else at my expense <wink> -- in fact, the only one who loses here is Guido ...).
* Use the "MS" getline hack (fgets()) by default on non-get_unlockedTim Peters2001-01-152-35/+64
| | | | platforms. See NEWS for details.
* Whitespace normalization. Top level of Lib now fixed-point for reindent.py!Tim Peters2001-01-1512-432/+432
|
* Whitespace normalization.Tim Peters2001-01-159-515/+512
|
* Whitespace normalization.Tim Peters2001-01-1514-743/+743
|
* Whitespace normalization.Tim Peters2001-01-157-504/+504
|
* Whitespace normalization.Tim Peters2001-01-1517-3199/+3197
|
* -- don't use recursion for unbounded non-greedy repeatFredrik Lundh2001-01-142-3/+14
| | | | | | | | (bugs #115903, #115696) This is based on a patch by Darrel Gallion. I'm not 100% sure about this fix, but I haven't managed to come up with any test case it cannot handle...
* Whitespace normalization.Tim Peters2001-01-1418-1994/+1991
|
* Whitespace normalization.Tim Peters2001-01-1416-1235/+1233
|
* - Don't hardcode Unix filename syntax when opening ~/.pdbrc.Guido van Rossum2001-01-141-4/+4
| | | | - Conform to standard coding style in a few more places.