Commit graph

81779 commits

Author SHA1 Message Date
R David Murray
13f4cd6c10 Merge heads. 2013-08-10 12:13:44 -04:00
R David Murray
a9e67ad993 Merge heads. 2013-08-10 12:08:41 -04:00
R David Murray
2bb2f6acd0 Merge #8112: Update the documenting xmlrpc server to use getfullargspec. 2013-08-10 12:03:54 -04:00
R David Murray
f22b62e261 #8112: Update the documenting xmlrpc server to use getfullargspec.
Before this patch it would raise an error when trying to display
documentation for a method that used annotations.

Patch by Claudiu Popa.
2013-08-10 12:01:47 -04:00
Ezio Melotti
a1e639a0f4 #18505: merge with 3.3. 2013-08-10 18:57:52 +03:00
Ezio Melotti
1c4810b57b #18505: fix duplicate name and remove duplicate test. Patch by Vajrasky Kok. 2013-08-10 18:57:12 +03:00
Ezio Melotti
08a1472e65 Merge typo fixes from 3.3. 2013-08-10 18:47:37 +03:00
Ezio Melotti
2af76da7b4 Fix a couple of typos. 2013-08-10 18:47:07 +03:00
Ezio Melotti
8281e7c24c #18453: merge with 3.3. 2013-08-10 18:37:36 +03:00
Ezio Melotti
319163244a #18453: fix unused variables in test_xmlrpc. Patch by Vajrasky Kok. 2013-08-10 18:37:05 +03:00
Ezio Melotti
06c9ab5666 #18465: merge with 3.3. 2013-08-10 18:30:57 +03:00
Ezio Melotti
0f12be15c6 #18465: fix unused variables in test_minidom. Patch by Vajrasky Kok. 2013-08-10 18:30:29 +03:00
Ezio Melotti
490eef9a60 #18484: merge with 3.3. 2013-08-10 18:20:59 +03:00
Ezio Melotti
1d237e5356 #18484: improve test coverage of http.cookiejar. Patch by Vajrasky Kok. 2013-08-10 18:20:09 +03:00
Ezio Melotti
7f5218a07f #18483: merge with 3.3. 2013-08-10 18:08:13 +03:00
Ezio Melotti
7ac17f85d3 #18483: add one more date format in test_http2time_formats. Patch by Vajrasky Kok. 2013-08-10 18:07:25 +03:00
Eli Bendersky
532d03e547 Issue #15651: PEP 3121 refactoring for _elementtree
Patch by Antoine Pitrou (based on Robin Schreiber's original patch)
2013-08-10 08:00:39 -07:00
Christian Heimes
c7c953adfe typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 2013-08-10 16:38:23 +02:00
Christian Heimes
ad73a9cf97 Issue #16400: Add command line option for isolated mode.
-I

    Run Python in isolated mode. This also implies -E and -s. In isolated mode
    sys.path contains neither the script’s directory nor the user’s
    site-packages directory. All PYTHON* environment variables are ignored,
    too. Further restrictions may be imposed to prevent the user from
    injecting malicious code.
2013-08-10 16:36:18 +02:00
Eli Bendersky
562d9cbfe9 Issue #18668: Further clarify m_size setting for non-negative values 2013-08-10 05:58:10 -07:00
Eli Bendersky
43694a50ab Issue #18668: Further clarify m_size setting for non-negative values 2013-08-10 05:57:27 -07:00
R David Murray
8a44c053c1 Null merge related to #18600.
For 3.3, we just deleted the example.  In 3.4 it was fixed.
2013-08-09 16:20:06 -04:00
R David Murray
fb1a7bc907 #18600: In 3.3, as_string does not accept a policy keyword.
Also, document the policy keyword that was added to Message in 3.3.
2013-08-09 16:17:00 -04:00
R David Murray
bb17d2b857 #18600: add policy to add_string, and as_bytes and __bytes__ methods.
This was triggered by wanting to make the doctest in email.policy.rst pass;
as_bytes and __bytes__ are clearly useful now that we have BytesGenerator.
Also updated the Message docs to document the policy keyword that was
added in 3.3.
2013-08-09 16:15:28 -04:00
Vinay Sajip
3f58277382 Closes #18671: Output more information when logging exceptions occur. 2013-08-08 18:28:53 +01:00
Ezio Melotti
d119b7beba #18357: merge with 3.3. 2013-08-08 20:12:57 +03:00
Ezio Melotti
2532635fcd #18357: add tests for dictview set difference. Patch by Fraser Tweedale. 2013-08-08 20:12:28 +03:00
Ezio Melotti
e1a6edcebe #18581: merge with 3.3. 2013-08-08 19:37:52 +03:00
Ezio Melotti
4e4f3b8d35 #18581: remove duplicate test and run a test class that was skipped. Initial patch by Vajrasky Kok. 2013-08-08 19:36:36 +03:00
Serhiy Storchaka
0738aff368 Fix a typo in PyUnicode_CopyCharacters() documentation. 2013-08-08 16:49:45 +03:00
Serhiy Storchaka
cdd0279b0b Fix a typo in PyUnicode_CopyCharacters() documentation. 2013-08-08 16:47:43 +03:00
Ezio Melotti
3e4477ced0 #18267: merge with 3.3. 2013-08-08 15:46:13 +03:00
Ezio Melotti
79016e1d55 #18267: make whitespace consistent and fix an operator. 2013-08-08 15:45:56 +03:00
Ezio Melotti
5cc06fde43 #18273: merge with 3.3. 2013-08-08 15:18:26 +03:00
Ezio Melotti
66f2ea042a #18273: move the tests in Lib/test/json_tests to Lib/test/test_json and make them discoverable by unittest. Patch by Zachary Ware. 2013-08-08 15:03:45 +03:00
Larry Hastings
a27b83ad2d Issue #15301: Parsing fd, uid, and gid parameters for builtins
in Modules/posixmodule.c is now far more robust.
2013-08-08 00:19:50 -07:00
Eli Bendersky
7533137f4e Closing #18668: Properly document setting m_size in PyModuleDef 2013-08-07 05:54:28 -07:00
Eli Bendersky
0d2d2b8393 Issue #18668: Properly document setting m_size in PyModuleDef 2013-08-07 05:52:20 -07:00
Antoine Pitrou
236a547b3e Issue #18665: fix typos. Patch by Vajrasky Kok. 2013-08-06 23:06:59 +02:00
Antoine Pitrou
dbfc129cc8 Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok. 2013-08-06 23:05:23 +02:00
Antoine Pitrou
47cd96eaec Normalize whitespace 2013-08-06 22:57:31 +02:00
Antoine Pitrou
853395b448 Issue #18621: Prevent the site module's patched builtins from keeping too many references alive for too long. 2013-08-06 22:56:40 +02:00
Antoine Pitrou
79ba3882ad Improve verbose reporting of shutdown phase by using the "public" module name 2013-08-06 22:50:15 +02:00
Antoine Pitrou
257cf2fb83 In _PyGC_Fini(), lose the reference that was kept to the time module 2013-08-06 20:50:48 +02:00
Ezio Melotti
0e0ccf73ff #18443: remove the TextMate entry now that the bundle has been removed and fix ordering. Patch by Févry Thibault. 2013-08-06 19:52:25 +03:00
Christian Heimes
73207e03ad Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails. 2013-08-06 16:03:33 +02:00
Christian Heimes
9ae513caa7 Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails. 2013-08-06 15:59:16 +02:00
Serhiy Storchaka
9b855de8d2 Issue #14323: Expanded the number of digits in the coefficients for the
RGB -- YIQ conversions so that they match the FCC NTSC versions.
2013-08-06 11:51:23 +03:00
Raymond Hettinger
536f9fdcf3 Put the most important and most frequency accessed struct member first. 2013-08-05 22:43:22 -07:00
Raymond Hettinger
c629d4c9a2 Replace outdated optimization with clearer code that compiles better.
Letting the compiler decide how to optimize the multiply by five
gives it the freedom to make better choices for the best technique
for a given target machine.

For example, GCC on x86_64 produces a little bit better code:

Old-way (3 steps with a data dependency between each step):

    shrq    $5, %r13
    leaq    1(%rbx,%r13), %rax
    leaq    (%rax,%rbx,4), %rbx

New-way (3 steps with no dependency between the first two steps
         which can be run in parallel):

    leaq    (%rbx,%rbx,4), %rax     # i*5
    shrq    $5, %r13                # perturb >>= PERTURB_SHIFT
    leaq    1(%r13,%rax), %rbx      # 1 + perturb + i*5
2013-08-05 22:24:50 -07:00