summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The date class is now properly subclassable. (SF bug #720908)Guido van Rossum2003-04-143-5/+16
| | | | | (This is only the tip of the iceberg; the time and datetime classes need the same treatment.)
* Close off the "Verre Carlo hack" as discussed on python-dev.Guido van Rossum2003-04-142-0/+39
|
* super_getattro(): kill some dead code; explain a mystery.Guido van Rossum2003-04-141-18/+4
|
* - list.insert(i, x) now interprets negative i as it would beGuido van Rossum2003-04-144-6/+20
| | | | | | interpreted by slicing, so negative values count from the end of the list. This was the only place where such an interpretation was not placed on a list index.
* Add a nameAndrew M. Kuchling2003-04-141-1/+2
|
* Prompted by Tim's comment, when handle_range_longs() sees anGuido van Rossum2003-04-141-9/+9
| | | | | unexpected type, report the actual type rather than 'float'. (It's hard to even reach this code with a float. :-)
* SF patch #720991 by Gary Herron:Guido van Rossum2003-04-147-4/+89
| | | | | | | A small fix for bug #545855 and Greg Chapman's addition of op code SRE_OP_MIN_REPEAT_ONE for eliminating recursion on simple uses of pattern '*?' on a long string.
* Typo fixAndrew M. Kuchling2003-04-141-1/+1
|
* Fix docstring typoAndrew M. Kuchling2003-04-141-1/+1
|
* Patch #709178: remove -static option from cygwinccompilerJason Tishler2003-04-141-5/+30
| | | | | | | | | | | | | | After some more reflection (and no negative feedback), I am reverting the original patch and applying my version, cygwinccompiler.py-shared.diff, instead. My reasons are the following: 1. support for older toolchains is retained 2. support for new toolchains (i.e., ld -shared) is added The goal of my approach is to avoid breaking older toolchains while adding better support for newer ones.
* Make readers and writers participate in garbage collection.Jeremy Hylton2003-04-141-14/+71
| | | | Fix memory leak in dialect_init().
* Get test working if gzip support is not availableNeal Norwitz2003-04-141-1/+2
|
* handle_range_longs(): refcount handling is very delicate here, andTim Peters2003-04-131-31/+50
| | | | | | | the code erroneously decrefed the istep argument in an error case. This caused a co_consts tuple to lose a float constant prematurely, which eventually caused gc to try executing static data in floatobject.c (don't ask <wink>). So reworked this extensively to ensure refcount correctness.
* Mention timeit moduleAndrew M. Kuchling2003-04-131-34/+54
| | | | | | | | | | Fix error in description of logging package's 'propagate' Mention default arg to dict.pop() Link to more module docs (I wonder if I should adopt some convention such as linking the first mention of all new modules to the LibRef?) Various text changes Bump version number and Python version
* Use simpler importAndrew M. Kuchling2003-04-131-1/+1
|
* Must declare vrbls at the tops of blocks in C89 (wouldn't compile).Tim Peters2003-04-131-1/+2
|
* Oops, _propdeclarations and friends are needed: gensuitemodule uses themJack Jansen2003-04-1256-12422/+13583
| | | | | | | | | to lookup properties declared in base classes. Looking at it I'm not sure what the official scope if the property codes is, maybe it is only the (OSA) class in which they are used. But giving them global scope hasn't been a problem so far. Regenerated the standard suites, which are now also space-indented.
* use PyModule_Add{Int,String}Constant() where appropriateSkip Montanaro2003-04-121-12/+6
| | | | (thanks to Neal Norwitz for the code review, BTW)
* tighten up string checksSkip Montanaro2003-04-121-17/+18
| | | | make csv_{get,unregister}_dialect METH_O functions to avoid PyArg_ParseTuple
* add writerows docstringSkip Montanaro2003-04-121-6/+24
| | | | conditionally exclude Unicode functions
* typoSkip Montanaro2003-04-111-1/+1
|
* typoSkip Montanaro2003-04-111-1/+1
|
* Back out of setting the default charset to iso-8859-1.Barry Warsaw2003-04-111-1/+1
|
* NullTranslations.__init__(): Back out of setting the default charsetBarry Warsaw2003-04-111-16/+16
| | | | | | | | | | | | to iso-8859-1. GNUTranslations._parse(): Back out the addition of a test for Project-ID-Version in the metadata. This was deliberately removed in response to SF patch #700839. Also, re-organize the code in _parse() so we parse the metadata header containing the charset parameter before we try to decode any strings using charset.
* zap commented out bit of codeSkip Montanaro2003-04-111-2/+1
|
* Fix markupNeal Norwitz2003-04-111-1/+1
|
* Patch by Chad Netzer (with significant change):Guido van Rossum2003-04-113-5/+230
| | | | | | | - range() now works even if the arguments are longs with magnitude larger than sys.maxint, as long as the total length of the sequence fits. E.g., range(2**100, 2**101, 2**100) is the following list: [1267650600228229401496703205376L]. (SF patch #707427.)
* From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.htmlBarry Warsaw2003-04-113-146/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Expose NullTranslations and GNUTranslations to __all__ - Set the default charset to iso-8859-1. It used to be None, which would cause problems with .ugettext() if the file had no charset parameter. Arguably, the po/mo file would be broken, but I still think iso-8859-1 is a reasonable default. - Add a "coerce" default argument to GNUTranslations's constructor. The reason for this is that in Zope, we want all msgids and msgstrs to be Unicode. For the latter, we could use .ugettext() but there isn't currently a mechanism for Unicode-ifying msgids. The plan then is that the charset parameter specifies the encoding for both the msgids and msgstrs, and both are decoded to Unicode when read. For example, we might encode po files with utf-8. I think the GNU gettext tools don't care. Since this could potentially break code [*] that wants to use the encoded interface .gettext(), the constructor flag is added, defaulting to False. Most code I suspect will want to set this to True and use .ugettext(). - A few other minor changes from the Zope project, including asserting that a zero-length msgid must have a Project-ID-Version header for it to be counted as the metadata record.
* Added a note that the Mac OSA modules are documented.Jack Jansen2003-04-111-1/+2
|
* SF patch #706707, time.tzset standards compliance update by Stuart BishopNeal Norwitz2003-04-113-65/+48
| | | | Update configure and test to use proper timezone specifications
* Moved all the scripting stuff to a separate section, added all theJack Jansen2003-04-118-40/+397
| | | | | missing bits (well, all the bits I could think of) and updated the rest.
* Avoid creating one of the TestSuite objects.Fred Drake2003-04-111-2/+1
|
* Fix test_tarfile failure when gzip is not availableNeal Norwitz2003-04-111-1/+2
| | | | | The module would exist, but be empty if already imported. This change ensures we have gzip available.
* Attempt to make all the various string *strip methods the same.Neal Norwitz2003-04-106-58/+64
| | | | | | | | | | | * Doc - add doc for when functions were added * UserString * string object methods * string module functions 'chars' is used for the last parameter everywhere. These changes will be backported, since part of the changes have already been made, but they were inconsistent.
* Move declaration of enc to scope where it is usedNeal Norwitz2003-04-101-2/+1
|
* Add a space after expression to be consistentNeal Norwitz2003-04-101-1/+1
|
* PyErr_NormalizeException(): in the type==NULL test, we should simplyGuido van Rossum2003-04-101-3/+2
| | | | | | | | return. Setting an exception can mess with the exception state, and continuing is definitely wrong (since type is dereferenced later on). Some code that calls this seems to be prepared for a NULL exception type, so let's be safe rather than sorry and simply assume there's nothing to normalize in this case.
* hoist contents of csv submodule up to the package levelSkip Montanaro2003-04-102-1/+2
|
* SF patch #718867: Fix reference leak for time.strptimeRaymond Hettinger2003-04-101-1/+4
| | | | (contributed by Brett Cannon)
* Make Unpickler objects colletable.Jeremy Hylton2003-04-091-23/+65
| | | | Bugfix candidate.
* Make Picklers collectable.Jeremy Hylton2003-04-091-5/+45
| | | | Bug fix candidate.
* Missing DECREF.Jeremy Hylton2003-04-091-0/+1
|
* Patch #718551: cygwinccompiler.get_versions() patchJason Tishler2003-04-091-3/+3
| | | | | | | | | | The cygwinccompiler.get_versions() function only handles versions numbers of the form "x.y.z". The attached patch enhances get_versions() to handle "x.y" too (i.e., the ".z" is optional). This change causes the unnecessary "--entry _DllMain@12" link option to be suppressed for recent Cygwin and Mingw toolchains. Additionally, it directs recent Mingw toolchains to use gcc instead of dllwrap during linking.
* Add test for MessageBeep()Guido van Rossum2003-04-091-1/+13
|
* - New function winsound.MessageBeep() wraps the Win32 APIGuido van Rossum2003-04-091-1/+2
| | | | MessageBeep().
* Add MessageBeep() API.Guido van Rossum2003-04-092-2/+23
|
* Detabified.Guido van Rossum2003-04-091-20/+5
| | | | Removed dead code.
* Make it possible to call instancemethod() with 2 arguments.Guido van Rossum2003-04-091-2/+2
|
* Reformat a few docstrings that caused line wraps in help() output.Guido van Rossum2003-04-092-12/+12
|
* Fix two crashes on Windows:Guido van Rossum2003-04-091-2/+2
| | | | | - CHECK_VALID() was checking the wrong value for a closed fd - fseek(&_iob[fileno], ...) doesn't work for fileno >= 20