Commit Graph

79785 Commits

Author SHA1 Message Date
Berker Peksag b031adcd51 Fix typo in test.rst
Reported by Mike Scalora on docs@p.o.
2016-01-25 08:24:57 +02:00
Victor Stinner b4929843a9 doc: i18n HTML templates
Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of
the documentation. The tag comes from Jinja templating system, used by Sphinx.

Patch written by Julien Palard.
2016-01-23 12:55:11 +01:00
Gregory P. Smith 20d4f1b9e4 Per issue21949 and issue1629: Document the Py_SIZE, Py_TYPE, Py_REFCNT macros.
This was already done in the 3.5 branch; this just does the same in the 2.7
branch.
2016-01-22 13:17:41 -08:00
Victor Stinner 7791165fb3 code_richcompare() now uses the constants types
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.
2016-01-22 12:33:12 +01:00
Benjamin Peterson 5640bbb6c5 reject negative data_size 2016-01-21 22:02:46 -08:00
Donald Stufft 9a3a8e9aa0 Upgrade pip to 8.0.2 2016-01-21 21:57:17 -05:00
Berker Peksag f9aa599c0a Issue #18620: Improve Pool examples in multiprocessing documentation
A single call to Pool.apply_async() will create only one process. To use all
of the pool's processes, it should be invoked multiple times:

    with Pool(processes=4) as pool:
        results = [pool.apply_async(func, ()) for i in range(4)]

Patch by Davin Potts.
2016-01-22 00:07:00 +02:00
Victor Stinner 047ddfb64d Issue #26106: doc: Move text of licenses to parsed literal block
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.
2016-01-21 08:56:00 +01:00
Benjamin Peterson 64ea192b73 prevent buffer overflow in get_data (closes #26171) 2016-01-20 22:23:44 -08:00
Benjamin Peterson e4309f7f14 fix refleak in error condition 2016-01-20 22:06:43 -08:00
Victor Stinner b5a1d7536d Replace fpgetmask() with fedisableexcept()
Issue #24520: On FreeBSD, fpgetmask() was deprecated long time ago.
fedisableexcept() is now preferred.
2016-01-20 22:30:58 +01:00
Senthil Kumaran 762d761d65 issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs. 2016-01-20 03:18:48 -08:00
Serhiy Storchaka 9b5177c41a Issue #26147: xmlrpclib now works with unicode not encodable with used
non-UTF-8 encoding.
2016-01-20 10:33:51 +02:00
Zachary Ware cb868363c2 Issue #25925: Backport C coverage reporting Makefile targets
Originally added by Christian Heimes in 85ec2b5bfcd2.

Initial patch for the backport by Alecsandru Patrascu.
2016-01-20 00:11:52 -06:00
Donald Stufft ae18440262 Upgrade pip to 8.0.0 and setuptools to 19.4 2016-01-19 20:17:03 -05:00
Serhiy Storchaka 98d3c19ed0 Issue #16620: Fixed AttributeError in msilib.Directory.glob(). 2016-01-19 13:55:36 +02:00
Benjamin Peterson dd171ead80 add space 2016-01-18 21:18:49 -08:00
Benjamin Peterson a4acf1ff84 set tp_new from the class in the hierarchy that actually owns the descriptor (closes #25731)
Debugging by Eryk Sun.
2016-01-18 21:17:54 -08:00
Serhiy Storchaka 27d9c3d39f Issue #9006: Added tests for XML RPC with non-UTF-8 encoding. 2016-01-18 19:38:53 +02:00
Serhiy Storchaka 2f173fe26b Issue #21847: Fixed xmlrpclib and tests on Unicode-disabled builds. 2016-01-18 19:35:23 +02:00
Serhiy Storchaka 43beaebffb Issue #6500: Fixed infinite recursion in urllib2.Request.__getattr__(). 2016-01-18 10:35:40 +02:00
Senthil Kumaran 5e90cd9b32 Issue26017 - Suggest enclosing command args in double quotes when using characters which get interpreted by shell. 2016-01-17 18:45:11 -08:00
Senthil Kumaran e57c957ff9 Issue26142 - Fix a formatting bug in c-api intro doc. 2016-01-17 17:05:14 -08:00
Terry Jan Reedy c5e8935d90 Issue #25905: Specify 'ascii' encoding for README.txt and NEWS.txt.
Re-encode CREDITS.txt to utf-8 and open it with 'utf-8'.
2016-01-16 23:43:58 -05:00
Steve Dower 4ffee6157a Issue #25824: Fixes sys.winver to not include any architecture suffix. 2016-01-16 13:41:48 -08:00
Senthil Kumaran 11a73890d3 Issue26035 - Correct the argument names used in the docs of the traceback module. Make it consistent with module args. 2016-01-15 22:13:16 -08:00
Martin Panter 2179b2e159 Issue #14771: Redirect GDB's stdin to avoid messing the terminal settings
Otherwise, GDB seems to affect the terminal's foreground process group,
interfering with test_ioctl, which does not expect the foreground process to
change during the test. This change also solves the problem of the tests
being stopped in the shell if test_gdb is run twice in parallel.
2016-01-16 05:07:35 +00:00
Martin Panter 264dcb7290 Issue #26127: Fix links in tokenize documentation 2016-01-16 04:32:52 +00:00
Brett Cannon c39162de4a Issue #26114: Remove mention of 'Numerical Recipes'. 2016-01-15 09:41:49 -08:00
Senthil Kumaran 1826f6369c Issue26097 - Fix the TextTestRunner documentation, mention all the arguments of the class.
Patch contributed by Nicolas Évrard.
2016-01-14 21:57:57 -08:00
Martin Panter 71202bb053 Issue #25940: Use self-signed.pythontest.net in SSL tests
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.

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}

When attempting to connect to port 444 on the new server, the resulting error
code is EHOSTUNREACH on Linux, and ETIMEDOUT on Windows.
2016-01-15 00:25:29 +00:00
Ezio Melotti 07f24c50e0 #7944: close files explicitly in test_tarfile (backport d560eece0857). 2016-01-13 22:21:21 +02:00
Ezio Melotti 8861b291f2 Convert test_tarfile to ASCII (backport c1ed490bd266). 2016-01-13 19:36:49 +02:00
Ezio Melotti 4cb7fca89f #25574: backport glossary doc fix about hash and id of user-defined classes. 2016-01-12 11:36:25 +02:00
Ezio Melotti 7f62062be1 #19006: fix wording in unittest docs. 2016-01-12 11:03:10 +02:00
Zachary Ware a8dbd93619 Issue #25348: Add --pgo and --pgo-job flags to PCbuild\build.bat 2016-01-12 01:20:33 -06:00
Ezio Melotti b45bed137c Merge heads. 2016-01-12 00:11:24 +02:00
Ezio Melotti 50ba447ab7 #25517: fix regex in the regex howto. Patch by Elena Oat. 2016-01-12 00:07:23 +02:00
Gregory P. Smith 0d207fd8cf Fixes issue #26083: Workaround a subprocess bug that raised an incorrect
"ValueError: insecure string pickle" exception instead of the actual exception
on some platforms such as Mac OS X when an exception raised in the forked child
process prior to the exec() was large enough that it overflowed the internal
errpipe_read pipe buffer.
2016-01-11 13:56:42 -08:00
Ezio Melotti 167c336725 #25991: fix readline example to limit history size. Patch by Daniel Dye. 2016-01-11 23:30:15 +02:00
Barry Warsaw 8da4023e20 Comment out another test that won't pass after reverting the picklability
regression.
2016-01-11 14:49:34 -05:00
Barry Warsaw 607965eb7e Comment out two tests that won't pass now after reverting the typeobject.c
change.  Also, as per further discussion, we'll just remove the regressing
code in typeobject.c
2016-01-11 14:44:59 -05:00
Barry Warsaw f65395c8c2 Issue #22995: [UPDATE] Comment out the one of the pickleability tests in
_PyObject_GetState() due to regressions observed in Cython-based projects.
2016-01-11 13:52:23 -05:00
Benjamin Peterson c2ccb73e8a delete old crypto prose (closes #26066) 2016-01-09 23:55:47 -08:00
Senthil Kumaran 145b1c6c2a Issue23675 - A tiny clarification in the MRO glossary term. 2016-01-09 22:36:13 -08:00
Senthil Kumaran ee98860e5f Issue20969 - Set the Epub Author and Epub Publisher in Python docs. 2016-01-08 01:05:57 -08:00
Benjamin Peterson c6fa90c7ca fix typo in unittest docs (closes #26046)
Patch from Upendra Kumar.
2016-01-07 22:01:26 -08:00
Berker Peksag 6b51ddfa22 Issue #5501: Clarify that invoking freeze_support() on non-Windows platforms has no effect
Patch by Davin Potts and Camilla Montonen.
2016-01-07 18:49:53 +02:00
Senthil Kumaran 788db63265 Fix issue18918 : Attach the pydoc documentation for 'FILES' topic.
Also rebuilt the pydoc_data with this change.
2016-01-06 03:54:18 -08:00
Berker Peksag e01859fb65 Issue #6500: Reverting fbea8ff8db5e since it broke tests 2016-01-06 03:08:12 +02:00