summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18018: Raise an ImportError if a relative import is attemptedBrett Cannon2016-01-231-0/+3
| | | | | | | | with no known parent package. Previously SystemError was raised if the parent package didn't exist (e.g., __package__ was set to ''). Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
* Issue #25791: Warn when __package__ != __spec__.parent.Brett Cannon2016-01-221-2/+2
| | | | | | | | | In a previous change, __spec__.parent was prioritized over __package__. That is a backwards-compatibility break, but we do eventually want __spec__ to be the ground truth for module details. So this change reverts the change in semantics and instead raises an ImportWarning when __package__ != __spec__.parent to give people time to adjust to using spec objects.
* code_richcompare() now uses the constants typesVictor Stinner2016-01-221-0/+6
| | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function.
* site: error on sitecustomize import errorVictor Stinner2016-01-221-0/+4
| | | | | | Issue #26099: The site module now writes an error into stderr if sitecustomize module can be imported but executing the module raise an ImportError. Same change for usercustomize.
* Merge 3.5 (doc)Victor Stinner2016-01-211-0/+1
|\
| * Issue #26106: doc: Move text of licenses to parsed literal blockVictor Stinner2016-01-211-0/+1
| | | | | | | | | | | | | | This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when translating the documentation. Patch written by Julien Palard who is translating Python 3.5 doc to french. Text of other licenses already used preformatted format.
* | merge 3.5 (#26171)Benjamin Peterson2016-01-211-0/+3
|\ \ | |/
| * merge 3.4 (#26171)Benjamin Peterson2016-01-211-0/+3
| |\
| | * prevent buffer overflow in get_data (closes #26171)Benjamin Peterson2016-01-211-0/+3
| | |
* | | co_lnotab supports negative line number deltaVictor Stinner2016-01-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26107: The format of the co_lnotab attribute of code objects changes to support negative line number delta. Changes: * assemble_lnotab(): if line number delta is less than -128 or greater than 127, emit multiple (offset_delta, lineno_delta) in co_lnotab * update functions decoding co_lnotab to use signed 8-bit integers - dis.findlinestarts() - PyCode_Addr2Line() - _PyCode_CheckLineNumber() - frame_setlineno() * update lnotab_notes.txt * increase importlib MAGIC_NUMBER to 3361 * document the change in What's New in Python 3.6 * cleanup also PyCode_Optimize() to use better variable names
* | | Merge 3.5Victor Stinner2016-01-201-0/+7
|\ \ \ | |/ / | | | | | | Issue #26154: Add a new private _PyThreadState_UncheckedGet() function.
| * | Add _PyThreadState_UncheckedGet()Victor Stinner2016-01-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which gets the current thread state, but don't call Py_FatalError() if it is NULL. Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to no more expose complex and private atomic types. Atomic types depends on the compiler or can even depend on compiler options. The new function _PyThreadState_UncheckedGet() allows to get the variable value without having to care of the exact implementation of atomic types. Changes: * Replace direct usage of the _PyThreadState_Current variable with a call to _PyThreadState_UncheckedGet(). * In pystate.c, replace direct usage of the _PyThreadState_Current variable with the PyThreadState_GET() macro for readability. * Document also PyThreadState_Get() in pystate.h
* | | Issue #26147: xmlrpc now works with strings not encodable with usedSerhiy Storchaka2016-01-201-0/+3
|\ \ \ | |/ / | | | | | | non-UTF-8 encoding.
| * | Issue #26147: xmlrpc now works with strings not encodable with usedSerhiy Storchaka2016-01-201-0/+3
| | | | | | | | | | | | non-UTF-8 encoding.
* | | Issue #25935: Garbage collector now breaks reference loops with OrderedDict.Serhiy Storchaka2016-01-191-0/+2
|\ \ \ | |/ /
| * | Issue #25935: Garbage collector now breaks reference loops with OrderedDict.Serhiy Storchaka2016-01-191-0/+2
| | |
* | | Issue #16620: Fixed AttributeError in msilib.Directory.glob().Serhiy Storchaka2016-01-191-0/+2
|\ \ \ | |/ /
| * | Issue #16620: Fixed AttributeError in msilib.Directory.glob().Serhiy Storchaka2016-01-191-0/+2
| | |
* | | merge 3.5 (#25731)Benjamin Peterson2016-01-191-0/+2
|\ \ \ | |/ /
| * | set tp_new from the class in the hierarchy that actually owns the descriptor ↵Benjamin Peterson2016-01-191-0/+2
| | | | | | | | | | | | | | | | | | (closes #25731) Debugging by Eryk Sun.
* | | Issue #26013: Added compatibility with broken protocol 2 pickles createdSerhiy Storchaka2016-01-181-0/+3
|\ \ \ | |/ / | | | | | | in old Python 3 versions (3.4.3 and lower).
| * | Issue #26013: Added compatibility with broken protocol 2 pickles createdSerhiy Storchaka2016-01-181-0/+3
| | | | | | | | | | | | in old Python 3 versions (3.4.3 and lower).
* | | Issue #26129: Deprecated accepting non-integers in grp.getgrgid().Serhiy Storchaka2016-01-181-0/+2
| | |
* | | Issue #26071: bdist_wininst created binaries fail to start and find 32bit PythonSteve Dower2016-01-161-0/+3
|\ \ \ | |/ /
| * | Issue #26071: bdist_wininst created binaries fail to start and find 32bit PythonSteve Dower2016-01-161-0/+3
| | |
* | | Issue #26073: Update the list of magic numbers in launcherSteve Dower2016-01-161-0/+2
|\ \ \ | |/ /
| * | Issue #26073: Update the list of magic numbers in launcherSteve Dower2016-01-161-0/+2
| | |
* | | Issue #26065: Excludes venv from library when generating embeddable distro.Steve Dower2016-01-161-0/+3
|\ \ \ | |/ /
| * | Issue #26065: Excludes venv from library when generating embeddable distro.Steve Dower2016-01-161-0/+5
| | |
* | | Issue #25850: Use cross-compilation by default for 64-bit Windows.Steve Dower2016-01-161-0/+2
|\ \ \ | |/ /
| * | Issue #25850: Use cross-compilation by default for 64-bit Windows.Steve Dower2016-01-161-0/+2
| | |
| * | Issue #17633: Improve support for namespace packages with zipimport.Brett Cannon2016-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously zipimport mistakenly limited namespace support to only the top-level of the zipfile when it should have supported an arbitrary depth. Thanks to Phil Connel for the bug report and initial patch and Mike Romberg for the final patch.
* | | Issue #23883: Update newsMartin Panter2016-01-161-3/+4
| | |
* | | Issue #23883: Add missing APIs to calendar.__all__Martin Panter2016-01-161-0/+1
| | | | | | | | | | | | Patch by Joel Taddei and Jacek Kołodziej.
* | | Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM RodriguesMartin Panter2016-01-161-0/+1
| | |
* | | Issue #25791: Raise an ImportWarning when __spec__ or __package__ areBrett Cannon2016-01-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | not defined for a relative import. This is the start of work to try and clean up import semantics to rely more on a module's spec than on the myriad attributes that get set on a module. Thanks to Rose Ames for the patch.
* | | Issue #25940: Merge self-signed.pythontest.net testing from 3.5Martin Panter2016-01-141-0/+3
|\ \ \ | |/ /
| * | Issue #25940: Merge self-signed.pythontest.net testing from 3.4 into 3.5Martin Panter2016-01-141-0/+3
| |\ \ | | |/
| | * Issue #25940: Merge self-signed.pythontest.net testing from 3.3 into 3.4Martin Panter2016-01-141-0/+6
| | |\
| | | * Issue #25940: Merge self-signed.pythontest.net testing from 3.2 into 3.3Martin Panter2016-01-141-0/+7
| | | |\
| | | | * Issue #25940: Use self-signed.pythontest.net in SSL testsMartin Panter2016-01-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is instead of svn.python.org, whose certificate recently expired, and whose new certificate uses a different root certificate. The certificate used at the pythontest server was modifed to set the "basic constraints" CA flag. This flag seems to be required for test_get_ca_certs_ capath() to work (in Python 3.4+). Added the new self-signed certificate to capath with the following commands: cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/} c_rehash -v Lib/test/capath/ c_rehash -v -old Lib/test/capath/ # Note the generated file names cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0} mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0} The new server responds with "No route to host" when connecting to port 444.
| | | * | fix reorderingBenjamin Peterson2015-12-051-4/+4
| | | | |
* | | | | Issue #25822: Add docstrings to the fields of urllib.parse results.Senthil Kumaran2016-01-141-0/+3
| | | | | | | | | | | | | | | | | | | | Patch contributed by Swati Jaiswal.
* | | | | Add a NEWS entry for Issue #22642.Senthil Kumaran2016-01-131-0/+3
| | | | |
* | | | | Closes #25348: Merge with 3.5Zachary Ware2016-01-121-0/+4
|\ \ \ \ \ | |/ / / /
| * | | | Issue #25348: Add --pgo and --pgo-job flags to PCbuild\build.batZachary Ware2016-01-121-0/+5
| | | | |
* | | | | Merge heads.Barry Warsaw2016-01-111-3/+0
|\ \ \ \ \
| * \ \ \ \ As per further discussion, re-enable the typeobject.c guard for picklability.Barry Warsaw2016-01-111-3/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | upstreams such as Cython will have to adjust.
* | \ \ \ \ \ Merge 3.5doko@ubuntu.com2016-01-111-0/+3
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | |
| * | | | | | - Issue #24705: Fix sysconfig._parse_makefile not expanding ${} varsdoko@ubuntu.com2016-01-111-0/+3
| | |/ / / / | |/| | | | | | | | | | | | | | | | appearing before $() vars.