Commit graph

2052 commits

Author SHA1 Message Date
Brett Cannon
9b63868f77 Issue #25154: Deprecate the pyvenv script.
This was done so as to move users to `python3 -m venv` which prevents
confusion over which Python interpreter will be used in the virtual
environment when more than one is installed.
2015-10-16 15:14:27 -07:00
Brett Cannon
c0d91aff9a Upgrade the imp module's deprecation to DeprecationWarning. 2015-10-16 12:21:37 -07:00
Victor Stinner
2bf8993db9 Optimize bytes.fromhex() and bytearray.fromhex()
Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
between 2x and 3.5x faster. Changes:

* Use a fast-path working on a char* string for ASCII string
* Use a slow-path for non-ASCII string
* Replace slow hex_digit_to_int() function with a O(1) lookup in
  _PyLong_DigitValue precomputed table
* Use _PyBytesWriter API to handle the buffer
* Add unit tests to check the error position in error messages
2015-10-14 11:25:33 +02:00
Victor Stinner
ebcf9edc05 Document latest optimizations using _PyBytesWriter 2015-10-14 10:10:00 +02:00
Serhiy Storchaka
0d554d7ef1 Issue #24164: Objects that need calling `__new__` with keyword arguments,
can now be pickled using pickle protocols older than protocol version 4.
2015-10-10 22:42:18 +03:00
Berker Peksag
b6c9572fa9 Sort module names in whatsnew/3.6.rst 2015-10-08 13:58:49 +03:00
Berker Peksag
960e848f0d Issue #16099: RobotFileParser now supports Crawl-delay and Request-rate
extensions.

Patch by Nikolay Bogoychev.
2015-10-08 12:27:06 +03:00
Alexander Belopolsky
68713e41a5 Closes issue #12006: Add ISO 8601 year, week, and day directives to strptime.
This commit adds %G, %V, and %u directives to strptime.  Thanks Ashley Anderson
for the implementation.
2015-10-06 13:29:56 -04:00
Victor Stinner
1d65d9192d Issue #25301: The UTF-8 decoder is now up to 15 times as fast for error
handlers: ``ignore``, ``replace`` and ``surrogateescape``.
2015-10-05 13:43:50 +02:00
Yury Selivanov
d763909885 asyncio: Make ensure_future() accept all kinds of awaitables. (Merge 3.5) 2015-10-02 15:09:51 -04:00
Yury Selivanov
43d71e2512 asyncio: Make ensure_future() accept all kinds of awaitables. 2015-10-02 15:05:59 -04:00
Victor Stinner
01ada3996b Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error
handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
Patch co-written with Serhiy Storchaka.
2015-10-01 21:54:51 +02:00
Victor Stinner
c3713e9706 Optimize ascii/latin1+surrogateescape encoders
Issue #25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
error handler: the encoders are now up to 3 times as fast.

Initial patch written by Serhiy Storchaka.
2015-09-29 12:32:13 +02:00
Serhiy Storchaka
ab824222d1 Issue #25011: rlcomplete now omits private and special attribute names unless
the prefix starts with underscores.
2015-09-27 13:43:50 +03:00
Berker Peksag
dd7cb10b89 Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial calls
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:42 +03:00
Berker Peksag
9b93c6b5df Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial calls
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:16 +03:00
Victor Stinner
f96418de05 Issue #24870: Optimize the ASCII decoder for error handlers: surrogateescape,
ignore and replace. Initial patch written by Naoki Inada.

The decoder is now up to 60 times as fast for these error handlers.

Add also unit tests for the ASCII decoder.
2015-09-21 23:06:27 +02:00
Yury Selivanov
b1a3d9ae56 Merge 3.5 2015-09-16 12:18:55 -04:00
Yury Selivanov
8e3b04c70b whatsnew/3.5: Reword bytes*.hex message 2015-09-16 12:18:29 -04:00
Berker Peksag
d7bf45f5f7 whatsnew/3.5: Add missing word "class" 2015-09-15 20:06:48 +03:00
Berker Peksag
878bc871b4 whatsnew/3.5: Add missing word "class" 2015-09-15 20:06:28 +03:00
Serhiy Storchaka
d3b9407538 Use :menuselection: in whatsnew/3.4. 2015-09-13 21:06:40 +03:00
Serhiy Storchaka
516a1a96ee Use :menuselection: in whatsnew/3.4. 2015-09-13 21:06:06 +03:00
Serhiy Storchaka
66ad8464cf Use :menuselection: in whatsnew/3.4. 2015-09-13 21:05:37 +03:00
Yury Selivanov
f0fccb585c Merge 3.5 2015-09-13 12:51:46 -04:00
Larry Hastings
d5fd984a60 Merge from 3.5. 2015-09-13 16:57:16 +01:00
Yury Selivanov
69a15f1576 whatsnew/3.5: Fix typo 2015-09-13 11:52:07 -04:00
Yury Selivanov
801306bb65 whatsnew/3.5: One more edit 2015-09-13 11:40:00 -04:00
Yury Selivanov
a33cb35688 whatsnew/3.5: Edits
Patch by me and Elvis Pranskevichus
2015-09-13 11:21:25 -04:00
Larry Hastings
9c51f89cd6 Merge release engineering work from Python 3.5.0. 2015-09-13 15:43:21 +01:00
Yury Selivanov
1cecec5da5 Merge 3.5 2015-09-13 08:31:07 -04:00
Yury Selivanov
73953d8670 whatsnew/3.5: Fix typo (issue #25082) 2015-09-13 08:30:58 -04:00
Yury Selivanov
e148710410 Merge 3.5 2015-09-13 08:29:30 -04:00
Yury Selivanov
fe369a6e0e whatsnew/3.5: Reorder stuff (issue #25082). 2015-09-13 08:29:19 -04:00
Serhiy Storchaka
48a0469862 Merge 3.5 2015-09-13 12:08:19 +03:00
Serhiy Storchaka
35a361f1af whatsnew/3.5: Fix formatting. More minor edits. 2015-09-13 12:07:54 +03:00
Yury Selivanov
5944e251df Merge 3.5 2015-09-13 01:58:09 -04:00
Yury Selivanov
3854f9e9fe whatsnew/3.5: Delete prerelease warning note.
(we'll make a couple more commits tomorrow before release)
2015-09-13 01:57:57 -04:00
Yury Selivanov
cc32fbabe2 Merge 3.5 2015-09-13 01:40:46 -04:00
Yury Selivanov
a7672baa73 whatsnew/3.5: Fix formatting 2015-09-13 01:40:36 -04:00
Yury Selivanov
bd316c71ae Merge 3.5 2015-09-13 01:39:16 -04:00
Yury Selivanov
72dab13105 whatsnew/3.5: Tweak asyncio module section 2015-09-13 01:39:05 -04:00
Yury Selivanov
f1e6faec67 Merge 3.5 2015-09-13 01:10:29 -04:00
Yury Selivanov
6d9dd756af whatsnew/3.5: More examples 2015-09-13 01:10:19 -04:00
Yury Selivanov
a0c32e96b9 Merge 3.5 2015-09-13 00:29:14 -04:00
Yury Selivanov
63ae9f3b38 whatsnew/3.5: Cover asyncio changes relative to 3.4.0 2015-09-13 00:29:02 -04:00
Yury Selivanov
b698b7d38c Merge 3.5 2015-09-12 23:46:50 -04:00
Yury Selivanov
239503773d whatsnew/3.5: Add some examples
Patch by Elvis Pranskevichus
2015-09-12 23:46:39 -04:00
Yury Selivanov
cd8f9d603e Merge 3.5 2015-09-12 17:53:42 -04:00
Yury Selivanov
7b76baeabf whatsnew/3.5: Update editor's email addresses 2015-09-12 17:53:33 -04:00