Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Marshal clean-up (SF patch #873224) | Armin Rigo | 2004-03-26 | 1 | -7/+7 |
| | |||||
* | Changed random calls to PyThreadState_Get() to use the macro | Nicholas Bastin | 2004-03-24 | 1 | -2/+2 |
| | |||||
* | Decref all if ensure_fromlist fails. Fixes #876533. | Martin v. Löwis | 2004-03-23 | 1 | -2/+3 |
| | | | | Backported to 2.3. | ||||
* | Add comment to mollify Tim. | Jeremy Hylton | 2004-01-02 | 1 | -0/+2 |
| | |||||
* | Getting rid of all the code inside #ifdef macintosh too. | Jack Jansen | 2003-11-20 | 1 | -94/+0 |
| | |||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | Bug #794140: cygwin builds do not embed | Jason Tishler | 2003-09-04 | 1 | -1/+1 |
| | | | | | | The embed2.diff patch solves the user's problem by exporting the missing symbols from the Python core so Python can be embedded in another Cygwin application (well, at lest vim). | ||||
* | - fix typo | Fred Drake | 2003-07-11 | 1 | -1/+1 |
| | | | | | - there's a weird variable name here (zimpimport), but I'll leave that for someone that's familiar with the ZIP import support | ||||
* | Don't use the module object setattr when importing submodules. Instead, | Neil Schemenauer | 2003-06-16 | 1 | -18/+38 |
| | | | | | | operate on the module dictionary directly. This prevents spurious depreciation warnings from being raised if a submodule name shadows a builtin name. | ||||
* | SF patch #708201, unchecked return value in import.c by Jason Harper | Neal Norwitz | 2003-03-23 | 1 | -0/+2 |
| | | | | Will backport. | ||||
* | Remove PyArg_ParseTuple() for methods which take no args, | Neal Norwitz | 2003-02-17 | 1 | -23/+13 |
| | | | | use METH_NOARGS instead | ||||
* | Cleanup from patch #683257: | Neal Norwitz | 2003-02-12 | 1 | -4/+7 |
| | | | | | | | Add missing INCREFs and re-indent returns to be consistent. Add \n\ for lines in docstring Add a pathetic test Add docs | ||||
* | Provide access to the import lock, fixing SF bug #580952. This is | Guido van Rossum | 2003-02-12 | 1 | -6/+52 |
| | | | | | | | | mostly from SF patch #683257, but I had to change unlock_import() to return an error value to avoid fatal error. Should this be backported? The patch requested this, but it's a new feature. | ||||
* | MacPython-OS9 specific fix: If there are non-string items on sys.path don't ↵ | Jack Jansen | 2003-01-24 | 1 | -15/+18 |
| | | | | try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter. | ||||
* | PEP 302 + zipimport: | Just van Rossum | 2002-12-30 | 1 | -19/+236 |
| | | | | | | | | | | | | | - 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. | ||||
* | Backing out patch #642578 in anticipation of final acceptance of PEP 302. | Just van Rossum | 2002-12-25 | 1 | -147/+0 |
| | |||||
* | Added missing casts. | Jack Jansen | 2002-12-13 | 1 | -2/+2 |
| | |||||
* | Patch #614055: Support OpenVMS. | Martin v. Löwis | 2002-12-06 | 1 | -2/+5 |
| | |||||
* | Slightly improved version of patch #642578: "Expose PyImport_FrozenModules | Just van Rossum | 2002-11-29 | 1 | -0/+147 |
| | | | | | in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules(). | ||||
* | Because MWH changed the bytecode again, moved the magic number *back* | Guido van Rossum | 2002-08-31 | 1 | -1/+6 |
| | | | | | to 62011. This should get the snake-farm to throw away its old .pyc files, amongst others. | ||||
* | This is my patch | Michael W. Hudson | 2002-08-15 | 1 | -1/+5 |
| | | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change. | ||||
* | Patch #569753: Remove support for WIN16. | Martin v. Löwis | 2002-06-30 | 1 | -5/+5 |
| | | | | Rename all occurrences of MS_WIN32 to MS_WINDOWS. | ||||
* | Apply diff2.txt from SF patch http://www.python.org/sf/566999 | Walter Dörwald | 2002-06-17 | 1 | -7/+29 |
| | | | | | | | | This patch enhances Python/import.c/find_module() so that unicode objects found in sys.path will be treated as legal directory names (The current code ignores anything that is not a str). The unicode name is converted to str using Py_FileSystemDefaultEncoding. | ||||
* | Fix SF bug # 561858 Assertion with very long lists | Neal Norwitz | 2002-06-14 | 1 | -2/+2 |
| | | | | | Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -28/+21 |
| | |||||
* | imp_load_module(): correct and comment the sense of the test for '+' | Guido van Rossum | 2002-05-30 | 1 | -2/+7 |
| | | | | in the mode (it's forbidden). | ||||
* | Cover a few corners in the 'U' mode integration to make imp work. | Jeremy Hylton | 2002-05-30 | 1 | -8/+14 |
| | | | | | | | | | get_file() must convert 'U' to "r" PY_STDIOTEXTMODE before calling fopen(). imp_load_module() must accept 'r' or 'U' or something with '+'. Also reflow some long lines. | ||||
* | File modes in filedescr entries are also passed to Python, so we now put "U" | Jack Jansen | 2002-05-28 | 1 | -4/+7 |
| | | | | | | | in there, and convert it to "rb" (or "r" for non-universal-newline builds) before passing it to fopen(). Fixes #561326. | ||||
* | Mass checkin of universal newline support. | Jack Jansen | 2002-04-14 | 1 | -3/+3 |
| | | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details. | ||||
* | Got rid of ifdefs for long-obsolete GUSI versions. | Jack Jansen | 2002-04-11 | 1 | -21/+0 |
| | |||||
* | is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652] | Guido van Rossum | 2002-04-09 | 1 | -1/+1 |
| | |||||
* | Return bools from functions named is_<whatever>(). | Guido van Rossum | 2002-04-07 | 1 | -4/+4 |
| | |||||
* | Use symbolic METH_VARARGS instead of 1 for ml_flags | Neal Norwitz | 2002-03-31 | 1 | -16/+16 |
| | |||||
* | Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols. | Tim Peters | 2002-03-29 | 1 | -2/+0 |
| | |||||
* | OS/2 EMX port changes (Python part of patch #450267): | Andrew MacIntyre | 2002-02-26 | 1 | -0/+76 |
| | | | | | | | | | Python/ dynload_shlib.c // EMX port emulates dlopen() etc. for DL extensions import.c // changes to support 8.3 DLL name limit (VACPP+EMX) // and case sensitive import semantics importdl.h thread_os2.h | ||||
* | Fix to the UTF-8 encoder: it failed on 0-length input strings. | Marc-André Lemburg | 2002-02-07 | 1 | -1/+20 |
| | | | | | | | | | | | | | | Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception. | ||||
* | Include <unistd.h> in Python.h. Fixes #500924. | Martin v. Löwis | 2002-01-12 | 1 | -4/+0 |
| | |||||
* | Since the MAGIC number scheme is going to break on January 1st, document | Tim Peters | 2001-11-18 | 1 | -4/+16 |
| | | | | what it is more carefully and point out some of the subtleties. | ||||
* | On the macintosh don't take a quick exit in find_module() for frozen ↵ | Jack Jansen | 2001-10-30 | 1 | -0/+8 |
| | | | | submodule imports: the frozen import goes through a different mechanism. | ||||
* | Use PyDict_Copy() and PyDict_Update() instead of using PyObject_CallMethod() | Fred Drake | 2001-10-25 | 1 | -5/+3 |
| | | | | | | to call the corresponding methods. This is not a performance improvement since the times are still swamped by disk I/O, but cleans up the code just a little. | ||||
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 1 | -7/+31 |
| | |||||
* | First part of SF patch #416704: More robust freeze, by Toby Dickenson. | Guido van Rossum | 2001-10-18 | 1 | -5/+23 |
| | | | | | | | This fixes the behavior reported by SF bug #404545, where a file x.y.py could be imported by the statement "import x.y" when there's a frozen package x (I believe even if x.y also exists as a frozen module). | ||||
* | Remove a couple of unused local variables (bug #445960, compiler warnings | Greg Ward | 2001-10-04 | 1 | -4/+2 |
| | | | | on IRIX 6.5). | ||||
* | Add a new function imp.lock_held(), and use it to skip test_threaded_import | Tim Peters | 2001-08-30 | 1 | -0/+19 |
| | | | | when that test is doomed to deadlock. | ||||
* | Fixed typo in comment leading up to _PyImport_FixupExtension(). | Barry Warsaw | 2001-08-13 | 1 | -1/+1 |
| | |||||
* | Put conditional S_IFMT definition into pyport.h. | Martin v. Löwis | 2001-08-08 | 1 | -5/+0 |
| | |||||
* | Put conditional S_ISDIR definition(s) into pyport.h. | Martin v. Löwis | 2001-08-08 | 1 | -4/+0 |
| | |||||
* | Derived from SF patch #446899 Permit import of .pyw under Windows, from | Tim Peters | 2001-08-04 | 1 | -5/+14 |
| | | | | David Bolen. | ||||
* | Merge of descr-branch back into trunk. | Tim Peters | 2001-08-02 | 1 | -2/+5 |
| | |||||
* | Add -E command line switch (ignore environment variables like PYTHONHOME | Neil Schemenauer | 2001-07-23 | 1 | -4/+4 |
| | | | | and PYTHONPATH). |