summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
AgeCommit message (Collapse)AuthorLines
2017-05-02bpo-27593: Get SCM build info from git instead of hg (#1327)Victor Stinner-3/+2
Based on commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178 by Ned Deily, which is based on original patches by Brett Cannon and Steve Dower. Remove also the private _Py_svnversion() function and SVNVERSION variable. Note: Py_SubversionRevision() and Py_SubversionShortBranch() are unchanged, they are part of the public API.
2016-05-08Corrections for a/an in code comments and documentationMartin Panter-1/+1
2014-11-21Issue #21963: backout issue #1856 patch (avoid crashes and lockups whenAntoine Pitrou-2/+0
daemon threads run while the interpreter is shutting down; instead, these threads are now killed when they try to take the GIL), as it seems to break some existing code.
2014-08-28PEP 466: backport persistent urandom fd (closes #21305)Benjamin Peterson-0/+1
Patch from Alex Gaynor.
2014-06-16avoid crashes and lockups from daemon threads during interpreter shutdown ↵Benjamin Peterson-0/+2
(#1856)
2012-02-21Fix crash at startup with -W options.Antoine Pitrou-0/+1
2012-02-20merge 2.6 with hash randomization fixBenjamin Peterson-0/+2
2012-02-20- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw-0/+2
environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
2011-03-06Port build identification from default branch.Georg Brandl-0/+2
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-21/+21
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-09Untabify C files. Will watch buildbots.Antoine Pitrou-21/+21
2009-03-20Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson-0/+1
Backport of r70459.
2008-06-13Restore support for Microsoft VC6 compiler.Amaury Forgeot d'Arc-1/+1
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-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-1/+1
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-05-26Renamed PyString to PyBytesChristian Heimes-1/+1
2008-05-26First step of the C API rename:Christian Heimes-2/+2
renamed Include/bytesobject.h to Include/bytearrayobject.h renamed Include/stringobject.h to Include/bytesobject.h added Include/stringobject.h with aliases
2008-03-26Patch #2477: Added from __future__ import unicode_literalsChristian Heimes-1/+2
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
2008-03-26Merged revisions ↵Christian Heimes-0/+2
61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray ........ r61750 | christian.heimes | 2008-03-22 20:47:44 +0100 (Sat, 22 Mar 2008) | 1 line Copied files from py3k w/o modifications ........ r61752 | christian.heimes | 2008-03-22 20:53:20 +0100 (Sat, 22 Mar 2008) | 7 lines Take One * Added initialization code, warnings, flags etc. to the appropriate places * Added new buffer interface to string type * Modified tests * Modified Makefile.pre.in to compile the new files * Added bytesobject.c to Python.h ........ r61754 | christian.heimes | 2008-03-22 21:22:19 +0100 (Sat, 22 Mar 2008) | 2 lines Disabled bytearray.extend for now since it causes an infinite recursion Fixed serveral unit tests ........ r61756 | christian.heimes | 2008-03-22 21:43:38 +0100 (Sat, 22 Mar 2008) | 5 lines Added PyBytes support to several places: str + bytearray ord(bytearray) bytearray(str, encoding) ........ r61760 | christian.heimes | 2008-03-22 21:56:32 +0100 (Sat, 22 Mar 2008) | 1 line Fixed more unit tests related to type('') is not unicode ........ r61763 | christian.heimes | 2008-03-22 22:20:28 +0100 (Sat, 22 Mar 2008) | 2 lines Fixed more unit tests Fixed bytearray.extend ........ r61768 | christian.heimes | 2008-03-22 22:40:50 +0100 (Sat, 22 Mar 2008) | 1 line Implemented old buffer interface for bytearray ........ r61772 | christian.heimes | 2008-03-22 23:24:52 +0100 (Sat, 22 Mar 2008) | 1 line Added backport of the io module ........ r61775 | christian.heimes | 2008-03-23 03:50:49 +0100 (Sun, 23 Mar 2008) | 1 line Fix str assignement to bytearray. Assignment of a str of size 1 is interpreted as a single byte ........ r61805 | christian.heimes | 2008-03-23 19:33:48 +0100 (Sun, 23 Mar 2008) | 3 lines Fixed more tests Fixed bytearray() comparsion with unicode() Fixed iterator assignment of bytearray ........ r61809 | christian.heimes | 2008-03-23 21:02:21 +0100 (Sun, 23 Mar 2008) | 2 lines str(bytesarray()) now returns the bytes and not the representation of the bytearray object Enabled and fixed more unit tests ........ r61812 | christian.heimes | 2008-03-23 21:53:08 +0100 (Sun, 23 Mar 2008) | 3 lines Clear error PyNumber_AsSsize_t() fails Use CHARMASK for ob_svall access disabled a test with memoryview again ........ r61819 | christian.heimes | 2008-03-23 23:05:57 +0100 (Sun, 23 Mar 2008) | 1 line Untested updates to the PCBuild directory ........ r61917 | christian.heimes | 2008-03-26 00:57:06 +0100 (Wed, 26 Mar 2008) | 1 line The type system of Python 2.6 has subtle differences to 3.0's. I've removed the Py_TPFLAGS_BASETYPE flags from bytearray for now. bytearray can't be subclasses until the issues with bytearray subclasses are fixed. ........ r61920 | christian.heimes | 2008-03-26 01:44:08 +0100 (Wed, 26 Mar 2008) | 2 lines Disabled last failing test I don't understand what the test is testing and how it suppose to work. Ka-Ping, please check it out. ........ r61930 | christian.heimes | 2008-03-26 12:46:18 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytes warning code ........ r61933 | christian.heimes | 2008-03-26 13:20:46 +0100 (Wed, 26 Mar 2008) | 1 line Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass. ........ r61934 | christian.heimes | 2008-03-26 13:25:09 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytearray subclassing - all tests are passing. ........
2008-03-18Backport of the print function, using a __future__ import.Eric Smith-1/+1
This work is substantially Anthony Baxter's, from issue 1633807. I just freshened it, made a few minor tweaks, and added the test cases. I also created issue 2412, which is to check for 2to3's behavior with the print function. I also added myself to ACKS.
2008-02-08Deallocate content of the dict free list on interpreter shutdownChristian Heimes-0/+1
2006-04-03Don't abbreviate ABS, use long name ABSOLUTE.Neal Norwitz-1/+1
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.
2005-05-27This is my patch:Michael W. Hudson-0/+1
[ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests.
2004-10-07Finalize the freelist of list objects.Raymond Hettinger-0/+1
2004-08-19Patch #900727: Add Py_InitializeEx to allow embedding without signals.Martin v. Löwis-0/+1
2004-08-09Patch #1006003: Cygwin standard module build problemsJason Tishler-0/+1
Add missing PyAPI_FUNC/PyAPI_DATA macros.
2003-02-13- Finally fixed the bug in compile() and exec where a string endingGuido van Rossum-0/+1
with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.)
2003-02-10patch #683515: "Add unicode support to compile(), eval() and exec"Just van Rossum-0/+1
Incorporated nnorwitz's comment re. Py__USING_UNICODE.
2003-01-01Move _PyInt_Init() into pythonrun.h, since all the other _Init()Neal Norwitz-0/+1
functions are here. Suggested by Skip.
2002-12-31Since the *_Init() are private, prefix with _, suggested by SkipNeal Norwitz-1/+1
2002-12-30SF #561244, Micro optimizationsNeal Norwitz-0/+1
Initialize the small integers and __builtins__ in startup. This removes some if conditions. Change XDECREF to DECREF for values which shouldn't be NULL.
2002-12-30PEP 302 + zipimport:Just van Rossum-0/+1
- new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
2002-12-11Constify filenames and scripts. Fixes #651362.Martin v. Löwis-29/+29
2002-10-26Patch #512981: Update readline input stream on sys.stdin/out change.Martin v. Löwis-2/+2
2002-08-12Correct PyAPI_FUNC to PyAPI_DATA - sorry Jack.Mark Hammond-2/+2
2002-08-12Excise DL_EXPORT from Include.Mark Hammond-51/+51
Thanks to Skip Montanaro and Kalle Svensson for the patches.
2002-08-02Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond-0/+3
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-07-29Excise DL_IMPORT/EXPORT from object.h, and related files. This patchMark Hammond-20/+20
also adds 'extern' to PyAPI_DATA rather than at each declaration, as discussed with Tim and Guido.
2002-07-09Fix SF Bug 564931: compile() traceback must include filename.Thomas Heller-0/+4
2002-04-12Removed more hair in support of future-generator stmts.Tim Peters-2/+2