summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* importlib.abc.SourceLoader.get_source() was re-raising SyntaxError andBrett Cannon2013-06-161-0/+3
| | | | | | | | | UnicodeDecodeError as ImportError. That was over-reaching the point of raising ImportError in get_source() (which is to signal the source code was not found when it should have). Conflating the two exceptions with ImportError could lead to masking errors with the source which should be known outside of whether there was an error simply getting the source to begin with.
* Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoaderBrett Cannon2013-06-161-0/+4
| | | | | conform the the InspectLoader ABC. Perk of this is that runpy/-m can now work with namespace packages.
* Issue #17177: The imp module is pending deprecation.Brett Cannon2013-06-161-0/+2
| | | | | | To make sure there is no issue with code that is both Python 2 and 3 compatible, there are no plans to remove the module any sooner than Python 4 (unless the community moves to Python 3 solidly before then).
* Prevent a possible double close of parent pipe fds when the subprocessGregory P. Smith2013-06-161-0/+4
|\ | | | | | | | | exec runs into an error. Prevent a regular multi-close of the /dev/null fd when any of stdin, stdout and stderr was set to DEVNULL.
| * news entry for subprocess double close fix.Gregory P. Smith2013-06-161-0/+4
| |
* | Merge with 3.3Andrew Kuchling2013-06-151-0/+3
|\ \ | |/
| * #18113: Objects associated to a curses.panel object with set_userptr() were ↵Andrew Kuchling2013-06-151-0/+3
| | | | | | | | | | | | leaked. Reported by Atsuo Ishimoto.
* | merge w/ 3.3Brett Cannon2013-06-151-0/+2
|\ \ | |/
| * Drop some dead imports of impBrett Cannon2013-06-151-0/+2
| |
* | Issue #18194: Introduce importlib.util.cache_from_source() andBrett Cannon2013-06-151-0/+4
| | | | | | | | | | source_from_cache(), finishing the work introduced in changset 4134:9cacdb9d0c59.
* | Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵Ethan Furman2013-06-141-0/+2
| | | | | | | | | | | | | | standard library). Missing files added. News entry added.
* | Issue #17907: Document types.ModuleType's constructor and attributes,Brett Cannon2013-06-141-0/+3
| | | | | | | | allowing for documenting imp.new_module() as deprecated.
* | Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document theBrett Cannon2013-06-141-0/+3
| | | | | | | | deprecation of imp.get_magic().
* | mergeBrett Cannon2013-06-142-0/+4
|\ \
| * | Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache.Ned Deily2013-06-142-0/+4
| | | | | | | | | | | | Patch by Mark Levitt
* | | Issue #17222: Raise FileExistsError when py_compile.compile wouldBrett Cannon2013-06-141-0/+3
|/ / | | | | | | overwrite a symlink or non-regular file with a regular file.
* | Issue #18193: Add importlib.reload(), documenting (but notBrett Cannon2013-06-141-0/+2
| | | | | | | | | | | | implementing in code) the deprecation of imp.reload(). Thanks to Berker Peksag for the patch.
* | Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵Christian Heimes2013-06-141-0/+2
|\ \ | |/ | | | | on Windows
| * Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵Christian Heimes2013-06-141-0/+5
| | | | | | | | on Windows
* | Issue #15767: Touch up ModuleNotFoundError usage by import.Brett Cannon2013-06-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Forgot to raise ModuleNotFoundError when None is found in sys.modules. This led to introducing the C function PyErr_SetImportErrorSubclass() to make setting ModuleNotFoundError easier. Also updated the reference docs to mention ModuleNotFoundError appropriately. Updated the docs for ModuleNotFoundError to mention the None in sys.modules case. Lastly, it was noticed that PyErr_SetImportError() was not setting an exception when returning None in one case. That issue is now fixed.
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
* | #18196: merge with 3.3Roger Serwy2013-06-121-0/+2
|\ \ | |/
| * #18196: Avoid displaying spurious SystemExit tracebacks.Roger Serwy2013-06-121-0/+2
| |
* | #5492: merge with 3.3Roger Serwy2013-06-121-0/+2
|\ \ | |/
| * #5492: Avoid traceback when exiting IDLE caused by a race condition.Roger Serwy2013-06-121-0/+2
| |
* | Issue #18157: stop using imp.load_module() in imp.Brett Cannon2013-06-111-0/+2
| |
* | #17511: merge with 3.3.Roger Serwy2013-06-112-0/+4
|\ \ | |/
| * #17511: Keep IDLE find dialog open after clicking "Find Next".Roger Serwy2013-06-112-0/+4
| | | | | | | | Original patch by Sarah K.
* | merge 3.3 (#18183)Benjamin Peterson2013-06-101-0/+3
|\ \ | |/
| * remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-101-0/+3
| | | | | | | | (see #18183)
* | Merge.Richard Oudkerk2013-06-101-0/+2
|\ \ | |/
| * Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().Richard Oudkerk2013-06-101-0/+2
| |
* | Issue #16102: Make uuid._netbios_getnode() work again on Python 3.Serhiy Storchaka2013-06-091-0/+2
|\ \ | |/
| * Issue #16102: Make uuid._netbios_getnode() work again on Python 3.Serhiy Storchaka2013-06-091-0/+2
| |
* | Issue #17134: Add ssl.enum_cert_store() as interface to Windows' cert store.Christian Heimes2013-06-091-0/+2
| |
* | Issue #18143: Implement ssl.get_default_verify_paths() in order to debugChristian Heimes2013-06-091-0/+3
| | | | | | | | the default locations for cafile and capath.
* | Issue #15239: Make mkstringprep.py work again on Python 3.Serhiy Storchaka2013-06-091-0/+2
|\ \ | |/
| * Issue #15239: Make mkstringprep.py work again on Python 3.Serhiy Storchaka2013-06-091-0/+5
| |
* | Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka2013-06-091-0/+3
|\ \ | |/ | | | | encoding now always contains an encoding name.
| * Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka2013-06-091-0/+3
| | | | | | | | encoding now always contains an encoding name.
* | #18126: merge with 3.3.Ezio Melotti2013-06-081-0/+1
|\ \ | |/
| * #18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev.Ezio Melotti2013-06-081-0/+1
| |
* | #17691: merge with 3.3.Ezio Melotti2013-06-081-0/+3
|\ \ | |/
| * #17691: test_univnewlines now works with unittest test discovery. Patch by ↵Ezio Melotti2013-06-081-0/+3
| | | | | | | | Zachary Ware.
* | Fixed #18150: duplicate test inside TestSingleDispatchŁukasz Langa2013-06-071-0/+1
| | | | | | | | Thanks to Vajrasky Kok for the patch
* | merge w/ 3.3 for issue #18055Brett Cannon2013-06-071-0/+2
|\ \ | |/
| * Issue #18055: Move to importlib from imp for IDLE.Brett Cannon2013-06-071-0/+2
| |
* | Issue #17314: Stop using imp in multiprocessing.forking and move overBrett Cannon2013-06-071-0/+2
| | | | | | | | to importlib.
* | Closes #11959: SMTPServer and SMTPChannel now take an optional map, use of ↵Vinay Sajip2013-06-071-0/+3
| | | | | | | | which avoids affecting global state.
* | Issue #17931: Resolve confusion on Windows between pids and process handles.Richard Oudkerk2013-06-051-3/+2
| |