summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* #15840: make docs consistent by saying operations on closed files raise ↵Andrew Kuchling2014-04-151-2/+2
| | | | | | | | | | | | ValueError. Patch by Caelyn McAulay. Neither Caelyn nor I could find any cases in 2.7 or 3.4/5 where an operation on a closed stream raised IOError; generally the C implementation have a macro to check for the stream being closed, and these macros all raised ValueError. If we find any, a new bug should be opened.
* add missing NULL checkBenjamin Peterson2014-04-141-5/+9
|
* when an exception is raised in fdopen, never close the fd (changing on my ↵Benjamin Peterson2014-04-141-14/+27
| | | | mind on #21191)
* disallow a negative idx parameterBenjamin Peterson2014-04-141-8/+10
|
* in scan_once, prevent the reading of arbitrary memory when passed a negative ↵Benjamin Peterson2014-04-141-2/+8
| | | | | | index Bug reported by Guido Vranken.
* make sure fdopen always closes the fd in error cases (closes #21191)Benjamin Peterson2014-04-091-4/+12
|
* fix overflow detection of strop.expandtabsBenjamin Peterson2014-03-311-13/+15
|
* Issue #6676: Ensure a meaningful exception is raised when attemptingNed Deily2014-03-271-1/+1
| | | | | | to parse more than one XML document per pyexpat xmlparser instance. (Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested wording by David Gutteridge)
* fix ctypes test alignment assumptions (closes #20946)Benjamin Peterson2014-03-161-3/+3
| | | | Patch by Andreas Schwab.
* #13530: port to 2.7 branch (document what os.lseek returns).Georg Brandl2014-03-111-1/+2
|
* Issue #20283: RE pattern methods now accept the string keyword parametersSerhiy Storchaka2014-03-061-16/+81
| | | | | as documented. The pattern and source keyword parameters are left as deprecated aliases.
* finish backing out #19081Benjamin Peterson2014-02-161-241/+53
|
* backout #19081 to fix #20621Benjamin Peterson2014-02-161-102/+66
|
* Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.Serhiy Storchaka2014-02-121-2/+7
| | | | Based on patch by Stephen Tu.
* avoid name clash with posix_close (closes #20594)Benjamin Peterson2014-02-111-2/+6
|
* Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-0911-66/+35
|
* Issue #20374: delete spurious empty lineNed Deily2014-02-061-1/+0
|
* Issue #20374: Avoid compiler warnings when compiling readline with libedit.Ned Deily2014-02-061-0/+9
|
* Issue #20368: The null character now correctly passed from Tcl to Python (inSerhiy Storchaka2014-02-031-99/+116
| | | | unicode strings only). Improved error handling in variables-related commands.
* Remove inaccurate comment and a the related recently addedGregory P. Smith2014-01-281-7/+0
| | | | | | Py_VerboseFlag print that can never be triggered. prefix[0] is always equal to 0 at this point in the code.
* Issue #19081: Remove the zipimporter.files reference as the zip TOCGregory P. Smith2014-01-271-55/+97
| | | | | | | | | | | | | caches are module global in the zip_directory_cache. When it is updated due to a changed zip file, all zipimporter instances need to see the same updates TOC cache. This fixes the bug for the overlooked submodule import case from the earlier round of changes. Includes tests that would fail otherwise. It also refactors zipimporter_init in the process to make it a bit easier to read and understand. Less reuse of the same variable for multiple purposes and the local path buffer is malloc'ed instead of consuming a large MAXPATHLEN+2 chunk stack space.
* new plan: just remove typecasts (closes #20374)Benjamin Peterson2014-01-241-4/+4
|
* use new readline function types (closes #20374)Benjamin Peterson2014-01-241-3/+3
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
| | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface.
* remove overly strict assertion (closes #20251)Benjamin Peterson2014-01-141-1/+0
|
* correct defaultdict signature in docstring (closes #20250)Benjamin Peterson2014-01-141-1/+3
| | | | Patch from Andrew Barnert.
* complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+4
|
* Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-2/+5
| | | | asked for.
* fix zipimport ref leakBenjamin Peterson2014-01-091-3/+1
|
* cleanup for the issue 19081 fix - pull the file open and close outside of theGregory P. Smith2014-01-081-8/+8
| | | | | zip_searchorder scanning loop in get_module_code(). [already done in 3.3 and 3.4]
* Should fix the issue19081 fix on Windows. Don't let the previousGregory P. Smith2014-01-071-1/+4
| | | | posix module ImportError cause the nt module import to fail.
* Fixes issue19081: When a zipimport .zip file in sys.path being importedGregory P. Smith2014-01-061-53/+241
| | | | | | | | | | | | | from is modified during the lifetime of the Python process after zipimport has already opened and cached the zip's table of contents it now fstat's the file after opening it upon every attempt to access anything within and will re-read the table of contents if the .zip file inode, size or mtime have changed. It would've been nicer to hold any .zip file used by zipimport open for the duration of the process but that would be more invasive and add an additional open file descriptor to all zipimport using processes. It also would likely not fix the problem on Windows due to different filesystem semantics.
* Issue #20026: Fix the sqlite module to handle correctly invalid isolation levelVictor Stinner2013-12-191-1/+4
| | | | (wrong type).
* Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka2013-12-191-14/+20
| | | | quotechar fields. Original patch by Vajrasky Kok.
* remove trailing spaces.Gregory P. Smith2013-12-181-7/+7
|
* Issue #16404: Add checks for return value of PyInt_FromLong() inSerhiy Storchaka2013-12-171-8/+1
| | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
* Issue #17919: Fixed integer overflow in the eventmask parameter.Serhiy Storchaka2013-12-141-7/+25
|
* Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.Serhiy Storchaka2013-12-131-3/+2
|
* Issue #14432: Generator now clears the borrowed reference to the thread stateVictor Stinner2013-12-131-0/+94
| | | | | | | Fix a crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup.
* Issue #19099: The struct module now supports Unicode format strings.Serhiy Storchaka2013-12-081-4/+19
|
* Closes #19878: Fix segfault in bz2 module.Nadeem Vawda2013-12-081-7/+10
| | | | Initial patch by Vajrasky Kok.
* Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle.Alexandre Vassalotti2013-12-011-63/+1
|
* Issue #6477: Added pickling support for singletons and their types.Alexandre Vassalotti2013-12-011-1/+63
|
* Fix indentation from previous commitEli Bendersky2013-11-281-2/+2
|
* Issue #19815: Fix segfault when parsing empty namespace declaration.Eli Bendersky2013-11-281-1/+4
| | | | Based on patches by Christian Heimes and Vajrasky Kok
* Issue #11489: JSON decoder now accepts lone surrogates.Serhiy Storchaka2013-11-261-36/+13
|
* backport #18985: Improve fcntl documentation.R David Murray2013-11-071-11/+13
|
* Issue #19227 / Issue #18747: Remove pthread_atfork() handler to remove ↵Christian Heimes2013-10-291-65/+0
| | | | | | OpenSSL re-seeding It is causing trouble like e.g. hanging processes.
* Issue #19405: Fixed outdated comments in the _sre module.Serhiy Storchaka2013-10-271-2/+1
|
* just return toplevel symbol table rather than all blocks (closes #19393)Benjamin Peterson2013-10-261-1/+1
|