Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Flush out support for ``class B(): pass`` syntax by adding support to the | Brett Cannon | 2005-04-09 | 1 | -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. Hudson | 2005-04-07 | 1 | -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. Hudson | 2005-04-06 | 1 | -1/+1 |
| | |||||
* | Add a comment explaining the import of longintrepr.h. | Michael W. Hudson | 2005-04-06 | 1 | -1/+1 |
| | |||||
* | Fill docstrings for module and functions, extracted from the tex | Hye-Shik Chang | 2005-04-04 | 1 | -13/+108 |
| | | | | documentation. (Patch #1173245, Contributed by Jeremy Yallop) | ||||
* | Fixes for | Michael W. Hudson | 2005-03-30 | 1 | -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. Hudson | 2005-03-30 | 1 | -1/+2 |
| | |||||
* | I don't think it's particularly accurate to say Guido is maintaining | Michael W. Hudson | 2005-03-30 | 1 | -3/+0 |
| | | | | this module any more. | ||||
* | Conditionally export a few more AFMT_* macros: AFMT_U16_NE, AFMT_S32_LE, | Greg Ward | 2005-03-28 | 1 | -0/+12 |
| | | | | AFMT_S32_BE, AFMT_MPEG. | ||||
* | Apply remove's mutation test after every equality test. | Raymond Hettinger | 2005-03-19 | 1 | -7/+7 |
| | |||||
* | Add a remove() method to collections.deque objects. | Raymond Hettinger | 2005-03-18 | 1 | -1/+38 |
| | |||||
* | SF bug #1160187: Setup file needs entries for collections, itertools, strop | Raymond Hettinger | 2005-03-09 | 1 | -0/+4 |
| | |||||
* | operator.itemgetter() and operator.attrgetter() now support extraction | Raymond Hettinger | 2005-03-09 | 1 | -14/+72 |
| | | | | | of multiple fields. This provides direct support for sorting by multiple keys. | ||||
* | Build with --disable-unicode again. Fixes #1158607. | Martin v. Löwis | 2005-03-08 | 2 | -1/+17 |
| | | | | Will backport to 2.4. | ||||
* | Convert file names of posix.access according to the file system encoding. | Martin v. Löwis | 2005-03-08 | 1 | -1/+2 |
| | |||||
* | Make functional.partial() more closely match the spec by emulating | Raymond Hettinger | 2005-03-08 | 1 | -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-only | Greg Ward | 2005-03-07 | 1 | -26/+54 |
| | | | | attributes to oss_audio_device object: 'closed', 'name', and 'mode'. | ||||
* | Patches #925152, #1118602: Avoid reading after the end of the buffer | Martin v. Löwis | 2005-03-04 | 1 | -1/+1 |
| | | | | in pyexpat.GetInputContext. Will backport to 2.4. | ||||
* | Patches #749830, #1144555: allow UNIX mmap size to default to current | Martin v. Löwis | 2005-03-03 | 1 | -5/+8 |
| | | | | file size. | ||||
* | Fix grammatical typo in a comment. | Brett Cannon | 2005-03-01 | 1 | -1/+1 |
| | |||||
* | SF patch #941881: PEP 309 Implementation (Partial Function Application). | Raymond Hettinger | 2005-02-28 | 1 | -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 in | Martin v. Löwis | 2005-02-27 | 1 | -0/+10 |
| | | | | remove_history and replace_history. Will backport to 2.4. | ||||
* | The error message "can't start new thread" should not end in a | Guido van Rossum | 2005-02-20 | 1 | -1/+1 |
| | | | | newline. | ||||
* | Fix | Michael W. Hudson | 2005-01-31 | 1 | -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 definition | Neal Norwitz | 2005-01-24 | 1 | -6/+4 |
| | | | | Remove C++ (C99) style comments | ||||
* | Patch #579435: Shadow Password Support Module | Martin v. Löwis | 2005-01-23 | 2 | -0/+180 |
| | |||||
* | Default stat_float_times to true. | Martin v. Löwis | 2005-01-16 | 1 | -1/+1 |
| | |||||
* | Moved reader \r and \n processing from the iterator to the state machine - | Andrew McNamara | 2005-01-13 | 1 | -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 for | Skip Montanaro | 2005-01-13 | 1 | -0/+45 |
| | | | | the changes. | ||||
* | Improve wording of parser error message. | Andrew McNamara | 2005-01-12 | 1 | -2/+2 |
| | |||||
* | Add counting of source iterator lines to the reader object - handy for | Andrew McNamara | 2005-01-12 | 1 | -0/+4 |
| | | | | | user error messages (otherwise difficult to do without instrumenting the source). | ||||
* | When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields | Andrew McNamara | 2005-01-12 | 1 | -30/+59 |
| | | | | to floats. | ||||
* | Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test. | Andrew McNamara | 2005-01-12 | 1 | -1/+1 |
| | |||||
* | When using QUOTE_NONNUMERIC, we now test for "numericness" with | Andrew McNamara | 2005-01-12 | 1 | -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 and | Andrew McNamara | 2005-01-12 | 1 | -6/+6 |
| | | | | gets). | ||||
* | Add belt and braces check of PyString_AsString return. | Andrew McNamara | 2005-01-12 | 1 | -4/+5 |
| | |||||
* | Set an upper limit on the size of the field buffer, raise an exception | Andrew McNamara | 2005-01-11 | 1 | -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 registry | Andrew McNamara | 2005-01-11 | 1 | -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. This | Andrew McNamara | 2005-01-11 | 1 | -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 McNamara | 2005-01-11 | 1 | -27/+11 |
| | | | | | record objects of internal dialect type, rather than instances of python objects. | ||||
* | Factor out the code for making a dialect instance. | Andrew McNamara | 2005-01-11 | 1 | -18/+22 |
| | |||||
* | Only set error string when dict lookup found no matching key (was setting | Andrew McNamara | 2005-01-10 | 1 | -3/+6 |
| | | | | it for all failures, potentially masking other exceptions). | ||||
* | When parsing args that return a single character, treat null string the | Andrew McNamara | 2005-01-10 | 1 | -1/+1 |
| | | | | same as None. | ||||
* | Where a string is desired, test for PyBaseString_Type derived type, | Andrew McNamara | 2005-01-10 | 1 | -15/+6 |
| | | | | rather than using PyString_Check/PyUnicode_Check. | ||||
* | Add missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and | Andrew McNamara | 2005-01-10 | 1 | -0/+4 |
| | | | | writer objects (other GC infrastructure already in place). | ||||
* | Fix parsing of csv files with escapes (escape character previously would be | Andrew McNamara | 2005-01-10 | 1 | -8/+0 |
| | | | | left in stream). | ||||
* | Fix to use PEP7 brace style. | Andrew McNamara | 2005-01-07 | 1 | -2/+4 |
| | |||||
* | Improved the implementation of the internal "dialect" type. The new | Andrew McNamara | 2005-01-07 | 1 | -187/+239 |
| | | | | | implementation features better error reporting, and better compliance with the PEP. | ||||
* | Delete Reader_getiter and replace with PyObject_SelfIter. | Andrew McNamara | 2005-01-06 | 1 | -8/+1 |
| | |||||
* | [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵ | Andrew M. Kuchling | 2004-12-28 | 1 | -1/+5 |
| | | | | to an uninitialized pointer: fixes the problem and adds a test case |