summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Flush out support for ``class B(): pass`` syntax by adding support to theBrett Cannon2005-04-091-6/+15
| | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix.
* In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,Michael W. Hudson2005-04-071-0/+4
| | | | | | | | | because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS actually expanded to nothing under a no-threads build, so if you somehow NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would stay NULLed when you return to Python. Argh! Backport candidate.
* Make that a C, not a C++, comment.Michael W. Hudson2005-04-061-1/+1
|
* Add a comment explaining the import of longintrepr.h.Michael W. Hudson2005-04-061-1/+1
|
* Fill docstrings for module and functions, extracted from the texHye-Shik Chang2005-04-041-13/+108
| | | | documentation. (Patch #1173245, Contributed by Jeremy Yallop)
* Fixes forMichael W. Hudson2005-03-301-26/+23
| | | | | | | | | | | | | | | | | [ 1166660 ] The readline module can cause python to segfault It seems to me that the code I'm rewriting here attempted to call any user-supplied hook functions using the thread state of the thread that called the hook-setting function, as opposed to that of the thread that is currently executing. This doesn't work, in general. Fix this by using the PyGILState API (It wouldn't be that hard to define a dummy version of said API when #ifndef WITH_THREAD, would it?). Also, check the conversion to integer of the return value of a hook function for errors (this problem was mentioned in the ipython bug report linked to in the above bug).
* Be a bit more accurate.Michael W. Hudson2005-03-301-1/+2
|
* I don't think it's particularly accurate to say Guido is maintainingMichael W. Hudson2005-03-301-3/+0
| | | | this module any more.
* Conditionally export a few more AFMT_* macros: AFMT_U16_NE, AFMT_S32_LE,Greg Ward2005-03-281-0/+12
| | | | AFMT_S32_BE, AFMT_MPEG.
* Apply remove's mutation test after every equality test.Raymond Hettinger2005-03-191-7/+7
|
* Add a remove() method to collections.deque objects.Raymond Hettinger2005-03-181-1/+38
|
* SF bug #1160187: Setup file needs entries for collections, itertools, stropRaymond Hettinger2005-03-091-0/+4
|
* operator.itemgetter() and operator.attrgetter() now support extractionRaymond Hettinger2005-03-091-14/+72
| | | | | of multiple fields. This provides direct support for sorting by multiple keys.
* Build with --disable-unicode again. Fixes #1158607.Martin v. Löwis2005-03-082-1/+17
| | | | Will backport to 2.4.
* Convert file names of posix.access according to the file system encoding.Martin v. Löwis2005-03-081-1/+2
|
* Make functional.partial() more closely match the spec by emulatingRaymond Hettinger2005-03-081-5/+55
| | | | | | | some useful features of regular functions: * Made weak referencable. * Allow attribute access so a user can set __name__, __doc__, etc.
* SF #818006: merge from release24-maint branch: add useful read-onlyGreg Ward2005-03-071-26/+54
| | | | attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
* Patches #925152, #1118602: Avoid reading after the end of the bufferMartin v. Löwis2005-03-041-1/+1
| | | | in pyexpat.GetInputContext. Will backport to 2.4.
* Patches #749830, #1144555: allow UNIX mmap size to default to currentMartin v. Löwis2005-03-031-5/+8
| | | | file size.
* Fix grammatical typo in a comment.Brett Cannon2005-03-011-1/+1
|
* SF patch #941881: PEP 309 Implementation (Partial Function Application).Raymond Hettinger2005-02-281-0/+225
| | | | | Combined efforts of many including Peter Harris, Hye-Shik Chang, Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
* Patch #1093585: raise a ValueError for negative history items inMartin v. Löwis2005-02-271-0/+10
| | | | remove_history and replace_history. Will backport to 2.4.
* The error message "can't start new thread" should not end in aGuido van Rossum2005-02-201-1/+1
| | | | newline.
* FixMichael W. Hudson2005-01-311-0/+4
| | | | | | | [ 1077106 ] Negative numbers to os.read() cause segfault Sorry for sitting on this for so long! Is there a chance it could make 2.3.5?
* Put docstring for getspall into same #ifdef block as function definitionNeal Norwitz2005-01-241-6/+4
| | | | Remove C++ (C99) style comments
* Patch #579435: Shadow Password Support ModuleMartin v. Löwis2005-01-232-0/+180
|
* Default stat_float_times to true.Martin v. Löwis2005-01-161-1/+1
|
* Moved reader \r and \n processing from the iterator to the state machine -Andrew McNamara2005-01-131-97/+75
| | | | | this allows for better handling of newline characters in quoted fields (and hopefully resolves Bug 967934).
* Add strptime() constructor to datetime class. Thanks to Josh Spoerri forSkip Montanaro2005-01-131-0/+45
| | | | the changes.
* Improve wording of parser error message.Andrew McNamara2005-01-121-2/+2
|
* Add counting of source iterator lines to the reader object - handy forAndrew McNamara2005-01-121-0/+4
| | | | | user error messages (otherwise difficult to do without instrumenting the source).
* When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fieldsAndrew McNamara2005-01-121-30/+59
| | | | to floats.
* Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.Andrew McNamara2005-01-121-1/+1
|
* When using QUOTE_NONNUMERIC, we now test for "numericness" withAndrew McNamara2005-01-121-82/+58
| | | | | | | | PyNumber_Check, rather than trying to convert to a float. Reimplemented writer - now raises exceptions when it sees a quotechar but neither doublequote or escapechar are set. Doublequote results are now more consistent (eg, single quote should generate """", rather than "", which is ambiguous).
* Rename csv.set_field_limit to csv.field_size_limit (since it both sets andAndrew McNamara2005-01-121-6/+6
| | | | gets).
* Add belt and braces check of PyString_AsString return.Andrew McNamara2005-01-121-4/+5
|
* Set an upper limit on the size of the field buffer, raise an exceptionAndrew McNamara2005-01-111-30/+77
| | | | | | | when this limit is reached. Limit defaults to 128k, and is changed by module set_field_limit() method. Previously, an unmatched quote character could result in the entire file being read into the field buffer, potentially exhausting virtual memory.
* Now that internal dialect type is immutable, and the dialect registryAndrew McNamara2005-01-111-29/+40
| | | | | | | only contains instances of the dialect type, we can refer directly to the dialect instances rather than creating new ones. In other words, if the dialect comes from the registry, and we apply no further modifications, the reader/writer can use the dialect object directly.
* No longer attempt to instantiate python classes describing dialects. ThisAndrew McNamara2005-01-111-37/+6
| | | | | | was done because we were previously performing validation of the dialect from python, but this is now down within the C module. Also, the method we were using to detect classes did not work with new-style classes.
* Allow dialect-describing keywords to be supplied to register_dialect,Andrew McNamara2005-01-111-27/+11
| | | | | record objects of internal dialect type, rather than instances of python objects.
* Factor out the code for making a dialect instance.Andrew McNamara2005-01-111-18/+22
|
* Only set error string when dict lookup found no matching key (was settingAndrew McNamara2005-01-101-3/+6
| | | | it for all failures, potentially masking other exceptions).
* When parsing args that return a single character, treat null string theAndrew McNamara2005-01-101-1/+1
| | | | same as None.
* Where a string is desired, test for PyBaseString_Type derived type,Andrew McNamara2005-01-101-15/+6
| | | | rather than using PyString_Check/PyUnicode_Check.
* Add missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader andAndrew McNamara2005-01-101-0/+4
| | | | writer objects (other GC infrastructure already in place).
* Fix parsing of csv files with escapes (escape character previously would beAndrew McNamara2005-01-101-8/+0
| | | | left in stream).
* Fix to use PEP7 brace style.Andrew McNamara2005-01-071-2/+4
|
* Improved the implementation of the internal "dialect" type. The newAndrew McNamara2005-01-071-187/+239
| | | | | implementation features better error reporting, and better compliance with the PEP.
* Delete Reader_getiter and replace with PyObject_SelfIter.Andrew McNamara2005-01-061-8/+1
|
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-1/+5
| | | | to an uninitialized pointer: fixes the problem and adds a test case