summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
AgeCommit message (Collapse)AuthorLines
2013-05-04Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵Antoine Pitrou-0/+1
the interpreter is shutdown and then started again.
2012-06-19Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵Antoine Pitrou-0/+3
(Modules/_freeze_importlib) to build Python/importlib.h.
2012-06-03Issue #14090: fix some minor C API problems in default branch (3.3)Eli Bendersky-2/+5
2012-04-14Issue #2377: Make importlib the implementation of __import__().Brett Cannon-1/+1
importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
2012-02-21Fix test failure in test_cmd_line by initializing the hash secret at the ↵Antoine Pitrou-0/+1
earliest point.
2012-02-21Fix test failure in test_cmd_line by initializing the hash secret at the ↵Antoine Pitrou-0/+1
earliest point.
2012-02-21Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl-0/+2
2012-02-20Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl-0/+2
basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
2012-02-20Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl-0/+2
bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
2011-11-18Issue #10227: Add an allocation cache for a single slice object.Antoine Pitrou-0/+1
Patch by Stefan Behnel.
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-0/+2
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-0/+2
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-03-06Remove sys.subversion and svn build identification leftovers.Georg Brandl-3/+0
2011-03-06Merge build identification to 3.2 branch.Georg Brandl-0/+2
2011-03-05Commit the hg build identification patch from the pymigr repo.Georg Brandl-0/+2
2010-12-27Issue #9738: Document encodings of AST, compiler, parser and PyRun functionsVictor Stinner-18/+52
2010-12-04Expose CompileString, not CompileStringFlags under theMartin v. Löwis-1/+1
limited API.
2010-12-04Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl-3/+4
and provide an interface to it in py_compile, compileall and PyZipFile.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-1/+33
2010-09-27issue 9910Kristján Valur Jónsson-0/+1
Add a Py_SetPath api to override magic path computations when starting up python.
2010-08-08Issue #477863: Print a warning at shutdown if gc.garbage is not empty.Antoine Pitrou-0/+1
2010-05-09Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou-22/+22
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-22/+22
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
2010-03-14* Replaces the internals of the subprocess module from fork through exec onGregory P. Smith-0/+3
POSIX systems with a C extension module. This is required in order for the subprocess module to be made thread safe. The pure python implementation is retained so that it can continue to be used if for some reason the _posixsubprocess extension module is not available. The unittest executes tests on both code paths to guarantee compatibility. * Moves PyLong_FromPid and PyLong_AsPid from posixmodule.c into longobject.h. Code reviewed by jeffrey.yasskin at http://codereview.appspot.com/223077/show
2009-07-02Merged revisions 73782-73784 via svnmerge fromBenjamin Peterson-2/+4
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r73782 | benjamin.peterson | 2009-07-02 16:44:01 -0500 (Thu, 02 Jul 2009) | 1 line the old CO_FUTURE flags can't be commented out ................ r73783 | benjamin.peterson | 2009-07-02 16:54:36 -0500 (Thu, 02 Jul 2009) | 1 line a little more fiddling to make flags like 2.x ................ r73784 | benjamin.peterson | 2009-07-02 16:55:39 -0500 (Thu, 02 Jul 2009) | 9 lines Merged revisions 73781 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73781 | benjamin.peterson | 2009-07-02 16:38:36 -0500 (Thu, 02 Jul 2009) | 1 line test that compile() accepts the future flag ........ ................
2009-07-02a little more fiddling to make flags like 2.xBenjamin Peterson-1/+1
2009-07-02the old CO_FUTURE flags can't be commented outBenjamin Peterson-1/+3
2009-04-01The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!Brett Cannon-1/+1
2009-03-02ignore the coding cookie in compile(), exec(), and eval() if the source is a ↵Benjamin Peterson-0/+1
string #4626
2008-06-13Merged revisions 64214 via svnmerge fromAmaury Forgeot d'Arc-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r64214 | amaury.forgeotdarc | 2008-06-13 02:42:22 +0200 (ven., 13 juin 2008) | 6 lines Restore support for Microsoft VC6 compiler. Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler) ........
2008-05-26Renamed PyString to PyBytesChristian Heimes-1/+1
2008-05-26Renamed PyBytes to PyByteArrayChristian Heimes-2/+2
2008-04-05Change command line processing API to use wchar_t.Martin v. Löwis-9/+9
Fixes #2128.
2008-02-09Merged revisions ↵Christian Heimes-0/+1
60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617-60678 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60618 | walter.doerwald | 2008-02-06 15:31:55 +0100 (Wed, 06 Feb 2008) | 6 lines Remove month parameter from Calendar.yeardatescalendar(), Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods don't have such a parameter. Fixes issue #2017. Rewrap content to 80 chars. ........ r60622 | facundo.batista | 2008-02-06 20:28:49 +0100 (Wed, 06 Feb 2008) | 4 lines Fixes issue 1959. Converted tests to unittest. Thanks Giampaolo Rodola. ........ r60626 | thomas.heller | 2008-02-06 21:29:17 +0100 (Wed, 06 Feb 2008) | 3 lines Fixed refcounts and error handling. Should not be merged to py3k branch. ........ r60630 | mark.dickinson | 2008-02-06 23:10:50 +0100 (Wed, 06 Feb 2008) | 4 lines Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN raise InvalidOperation (and return False if InvalidOperation is trapped). ........ r60632 | mark.dickinson | 2008-02-06 23:25:16 +0100 (Wed, 06 Feb 2008) | 2 lines Remove incorrect usage of :const: in documentation. ........ r60634 | georg.brandl | 2008-02-07 00:45:51 +0100 (Thu, 07 Feb 2008) | 2 lines Revert accidental changes to test_queue in r60605. ........ r60636 | raymond.hettinger | 2008-02-07 01:54:20 +0100 (Thu, 07 Feb 2008) | 1 line Issue 2025: Add tuple.count() and tuple.index() to follow the ABC in collections.Sequence. ........ r60637 | mark.dickinson | 2008-02-07 02:14:23 +0100 (Thu, 07 Feb 2008) | 2 lines Fix broken link in decimal documentation. ........ r60638 | mark.dickinson | 2008-02-07 02:42:06 +0100 (Thu, 07 Feb 2008) | 3 lines IEEE 754 should be IEEE 854; give precise reference for comparisons involving NaNs. ........ r60639 | raymond.hettinger | 2008-02-07 03:12:52 +0100 (Thu, 07 Feb 2008) | 1 line Return ints instead of longs for tuple.count() and tuple.index(). ........ r60640 | raymond.hettinger | 2008-02-07 04:10:33 +0100 (Thu, 07 Feb 2008) | 1 line Merge 60627. ........ r60641 | raymond.hettinger | 2008-02-07 04:25:46 +0100 (Thu, 07 Feb 2008) | 1 line Merge r60628, r60631, and r60633. Register UserList and UserString will the appropriate ABCs. ........ r60642 | brett.cannon | 2008-02-07 08:47:31 +0100 (Thu, 07 Feb 2008) | 3 lines Cast a struct to a void pointer so as to do a type-safe pointer comparison (mistmatch found by clang). ........ r60643 | brett.cannon | 2008-02-07 09:04:07 +0100 (Thu, 07 Feb 2008) | 2 lines Remove unnecessary curly braces around an int literal. ........ r60644 | andrew.kuchling | 2008-02-07 12:43:47 +0100 (Thu, 07 Feb 2008) | 1 line Update URL ........ r60645 | facundo.batista | 2008-02-07 17:16:29 +0100 (Thu, 07 Feb 2008) | 4 lines Fixes issue 2026. Tests converted to unittest. Thanks Giampaolo Rodola. ........ r60646 | christian.heimes | 2008-02-07 18:15:30 +0100 (Thu, 07 Feb 2008) | 1 line Added some statistics code to dict and list object code. I wanted to test how a larger freelist affects the reusage of freed objects. Contrary to my gut feelings 80 objects is more than fine for small apps. I haven't profiled a large app yet. ........ r60648 | facundo.batista | 2008-02-07 20:06:52 +0100 (Thu, 07 Feb 2008) | 6 lines Fixes Issue 1401. When redirected, a possible POST get converted to GET, so it loses its payload. So, it also must lose the headers related to the payload (if it has no content any more, it shouldn't indicate content length and type). ........ r60649 | walter.doerwald | 2008-02-07 20:30:22 +0100 (Thu, 07 Feb 2008) | 3 lines Clarify that the output of TextCalendar.formatmonth() and TextCalendar.formatyear() for custom instances won't be influenced by calls to the module global setfirstweekday() function. Fixes #2018. ........ r60651 | walter.doerwald | 2008-02-07 20:48:34 +0100 (Thu, 07 Feb 2008) | 3 lines Fix documentation for Calendar.iterweekdays(): firstweekday is a property. Fixes second part of #2018. ........ r60653 | walter.doerwald | 2008-02-07 20:57:32 +0100 (Thu, 07 Feb 2008) | 2 lines Fix typo in docstring for Calendar.itermonthdays(). ........ r60655 | raymond.hettinger | 2008-02-07 21:04:37 +0100 (Thu, 07 Feb 2008) | 1 line The float conversion recipe is simpler in Py2.6 ........ r60657 | raymond.hettinger | 2008-02-07 21:10:49 +0100 (Thu, 07 Feb 2008) | 1 line Fix typo ........ r60660 | brett.cannon | 2008-02-07 23:27:10 +0100 (Thu, 07 Feb 2008) | 3 lines Make sure a switch statement does not have repetitive case statements. Error found through LLVM post-2.1 svn. ........ r60661 | christian.heimes | 2008-02-08 01:11:31 +0100 (Fri, 08 Feb 2008) | 1 line Deallocate content of the dict free list on interpreter shutdown ........ r60662 | christian.heimes | 2008-02-08 01:14:34 +0100 (Fri, 08 Feb 2008) | 1 line Use prefix decrement ........ r60663 | amaury.forgeotdarc | 2008-02-08 01:56:02 +0100 (Fri, 08 Feb 2008) | 5 lines issue 2045: Infinite recursion when printing a subclass of defaultdict, if default_factory is set to a bound method. Will backport. ........ r60667 | jeffrey.yasskin | 2008-02-08 07:45:40 +0100 (Fri, 08 Feb 2008) | 2 lines Oops! 2.6's Rational.__ne__ didn't work. ........ r60671 | hyeshik.chang | 2008-02-08 18:10:20 +0100 (Fri, 08 Feb 2008) | 2 lines Update big5hkscs codec to conform to the HKSCS:2004 revision. ........ r60673 | raymond.hettinger | 2008-02-08 23:30:04 +0100 (Fri, 08 Feb 2008) | 4 lines Remove unnecessary modulo division. The preceding test guarantees that 0 <= i < len. ........ r60674 | raymond.hettinger | 2008-02-09 00:02:27 +0100 (Sat, 09 Feb 2008) | 1 line Speed-up __iter__() mixin method. ........ r60675 | raymond.hettinger | 2008-02-09 00:34:21 +0100 (Sat, 09 Feb 2008) | 1 line Fill-in missing Set comparisons ........ r60677 | raymond.hettinger | 2008-02-09 00:57:06 +0100 (Sat, 09 Feb 2008) | 1 line Add advice on choosing between DictMixin and MutableMapping ........
2007-12-02Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes-2/+0
in intobject.h
2007-09-04Convert code from sys.stdin.encoding to UTF-8 inMartin v. Löwis-1/+2
interactive mode. Fixes #1100.
2007-03-21Patch #1680961: remove sys.exitfunc and replace it with a private C API. ↵Collin Winter-0/+4
Also, reimplement atexit in C so it can take advantage of this private API.
2007-02-27SF patch #1669633, add methods for bytes from Pete Shinners.Neal Norwitz-0/+2
2006-03-15Checkpoint. 218 tests are okay; 53 are failing. Done so far:Guido van Rossum-3/+2
- all classes are new-style (but ripping out classobject.[ch] isn't done) - int/int -> float - all exceptions must derive from BaseException - absolute import - 'as' and 'with' are keywords
2006-03-01Reconst parameters that lost their const in the AST merge.Martin v. Löwis-2/+2
2006-02-28from __future__ import with_statement addon for 'with', mostly written byThomas Wouters-1/+2
Neal.
2006-02-28SF patch #1438387, PEP 328: relative and absolute imports.Thomas Wouters-1/+1
- IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes.
2006-02-26Generate code to recursively copy an AST intoMartin v. Löwis-0/+1
a tree of Python objects. Expose this through compile().
2006-02-25Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment ↵Neal Norwitz-1/+1
about not removing yet.
2006-01-05Drop sys.build_number. Add sys.subversion.Martin v. Löwis-1/+3
2005-12-18Expose Subversion revision number (calculated via "svnversion .") to Python.Barry Warsaw-0/+1
Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications.
2005-12-17Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,Neal Norwitz-2/+4
simplifies a lot of error handling code, and fixes many memory leaks.
2005-10-23Correct error to PyRun_SimpleString macro introduced in AST merge.Mark Hammond-1/+1
2005-10-20Merge ast-branch to headJeremy Hylton-30/+40
This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
2005-08-01* Improve code for the empty frozenset singleton:Raymond Hettinger-0/+1
- Handle both frozenset() and frozenset([]). - Do not use singleton for frozenset subclasses. - Finalize the singleton. - Add test cases. * Factor-out set_update_internal() from set_update(). Simplifies the code for several internal callers. * Factor constant expressions out of loop in set_merge_internal(). * Minor comment touch-ups.