Commit graph

86019 commits

Author SHA1 Message Date
Ezio Melotti
b398d3e441 #18588: merge with 3.4. 2014-08-04 17:01:48 +03:00
Ezio Melotti
591176e544 #18588: update the timeit examples to be consistent. 2014-08-04 17:01:16 +03:00
Raymond Hettinger
f5b182160d merge 2014-08-04 00:21:36 -07:00
Raymond Hettinger
c6f22cc0a6 Remove unused leftover stray line 2014-08-04 00:21:11 -07:00
Raymond Hettinger
2b24884f18 merge 2014-08-03 23:44:59 -07:00
Raymond Hettinger
c0de59bfc3 Fix markup. 2014-08-03 23:44:30 -07:00
Raymond Hettinger
c3361b9ae1 merge 2014-08-03 23:39:20 -07:00
Raymond Hettinger
c566431bf0 Improve regex tokenizer example by using re.finditer().
Also, improve variable names and fix column numbers
in the generated output.
2014-08-03 23:38:54 -07:00
Raymond Hettinger
bbeac6ebd8 Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration 2014-08-03 22:49:07 -07:00
Raymond Hettinger
ae39fbdd84 Make the import private to keep the global namespace clean. 2014-08-03 22:40:59 -07:00
Raymond Hettinger
f25a38e568 Use reversed() instead of creating a new temporary list. 2014-08-03 22:36:32 -07:00
Terry Jan Reedy
5427df266b Merge with 3.4 2014-08-03 23:03:16 -04:00
Terry Jan Reedy
4036d87f4d PEP 8 spacing in idlelib.configDialog: mostly a = b in assignments,
a, b in arg lists, and hanging indents for long arg lists.
2014-08-03 23:02:58 -04:00
Jason R. Coombs
1ab3dc92f2 Issue #13540: Merge changes from 3.4 2014-08-03 15:27:18 -04:00
Jason R. Coombs
b3d4c212f7 Issue #13540: Merge changes from 3.3 2014-08-03 15:26:58 -04:00
Jason R. Coombs
89e186f24e Issue #13540: Merge changes from 3.2 2014-08-03 15:26:32 -04:00
Jason R. Coombs
79690ac1d0 Issue #13540: Update references to Action class to match syntax used for other classes in this file. 2014-08-03 14:54:11 -04:00
Raymond Hettinger
183e6efb3a merge 2014-08-02 22:32:33 -07:00
Raymond Hettinger
400daedb13 Fix whitespace in example. 2014-08-02 22:32:10 -07:00
Raymond Hettinger
2389cd5f2b Fix whitespace in example. 2014-08-02 22:30:26 -07:00
Ezio Melotti
045160bc39 #15114, #21047: update whatsnew in Python 3.5. 2014-08-02 18:54:30 +03:00
Ezio Melotti
6fc16d81af #21047: set the default value for the *convert_charrefs* argument of HTMLParser to True. Patch by Berker Peksag. 2014-08-02 18:36:12 +03:00
Ezio Melotti
11bec7a1b8 Add an __all__ to html.entities. 2014-08-02 15:15:02 +03:00
Ezio Melotti
73a4359eb0 #15114: the strict mode and argument of HTMLParser, HTMLParser.error, and the HTMLParserError exception have been removed. 2014-08-02 14:10:30 +03:00
Terry Jan Reedy
ffff1440d1 Issue #22077: Improve index error messages for bytearrays, bytes, lists, and
tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
Original patch by Claudiu Popa.
2014-08-02 01:30:37 -04:00
Charles-François Natali
7f9cc9359b Issue #22110: Enable extra compilation warnings. 2014-08-01 21:57:49 +01:00
doko@ubuntu.com
30575c7363 - update config.guess and config.sub to support openrisc. 2014-08-01 17:49:24 +02:00
doko@ubuntu.com
b4b3575e31 - update config.guess and config.sub to support openrisc. 2014-08-01 17:48:34 +02:00
Victor Stinner
25e014bd91 Issue #18395, #22108: Update embedded Python examples to decode correctly
command line parameters: use Py_DecodeLocale() and PyUnicode_DecodeFSDefault().
2014-08-01 12:28:49 +02:00
Victor Stinner
f6a271ae98 Issue #18395: Rename `_Py_char2wchar() to :c:func:Py_DecodeLocale`, rename
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these
functions.
2014-08-01 12:28:48 +02:00
Zachary Ware
c6f8c0a1de Issue #21907: Avoid using double quotes to check argument values.
Double quotes in expanded variables can match literal double quotes,
which makes for a big mess when passing in a quoted argument (like
"/p:externalsDir=..\externals", for example).
2014-07-31 23:58:27 -05:00
Zachary Ware
cb09dcacab Issue #21907: Further improvments to build_pgo.bat. Patch by Ingolf Becker. 2014-07-31 23:48:45 -05:00
Antoine Pitrou
0b87831de9 Simplify code in multiprocessing.Connection.send_bytes().
Followup to issue #20540; patch by Serhiy.
2014-07-31 18:41:57 -04:00
Antoine Pitrou
cac9e719cc Issue #22111: Assorted cleanups in test_imaplib. Patch by Milan Oberkirch. 2014-07-31 18:35:45 -04:00
Victor Stinner
a734af3f39 timemodule.c: Replace PyExc_IOError with PyExc_OSError 2014-07-31 13:07:17 +02:00
Serhiy Storchaka
26f9feb3b3 Back out of changes to Tkinter variables trace commands (issue #22085). 2014-07-31 07:46:08 +03:00
Terry Jan Reedy
7c87fdd5d5 Merge with 3.4 2014-07-30 19:24:47 -04:00
Terry Jan Reedy
2240533b9f Issue #22068: Don't create self reference cycles in idlelib.ConfigDialog. 2014-07-30 19:24:32 -04:00
Serhiy Storchaka
6716d60cec Issue #22085: Dropped support of Tk 8.3 in Tkinter. 2014-07-30 19:19:21 +03:00
Serhiy Storchaka
f44611cadf Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
In particular this allows to initialize images from binary data.
2014-07-30 18:34:01 +03:00
Serhiy Storchaka
74596a887a Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
In particular this allows to initialize images from binary data.
2014-07-30 18:33:13 +03:00
Victor Stinner
da565a790c Issue #22018: Fix test_signal: use assertEqual() not assertIs() 2014-07-30 10:03:03 +02:00
Serhiy Storchaka
8f46da1b29 Issue #21951: Temporary skip crashing test_user_command on AIX. 2014-07-30 11:00:45 +03:00
Serhiy Storchaka
95a9e0bf8c Issue #21951: Temporary skip crashing test_user_command on AIX. 2014-07-30 10:59:46 +03:00
Antoine Pitrou
cc66a73d27 Issue #22003: When initialized from a bytes object, io.BytesIO() now
defers making a copy until it is mutated, improving performance and
memory use on some use cases.

Patch by David Wilson.
2014-07-29 19:41:11 -04:00
Victor Stinner
115171086a Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.
A side effect is that Python depends to the WinSock library.
2014-07-29 23:31:34 +02:00
Victor Stinner
c6aceeed29 (Merge 3.4) Issue #22063: Mention in asyncio documentation that socket
operations require the socket to be non-blocking
2014-07-29 23:12:34 +02:00
Victor Stinner
ec2ce092a2 Issue #22063: Mention in asyncio documentation that socket operations require
the socket to be non-blocking
2014-07-29 23:12:22 +02:00
Victor Stinner
66565649b5 Merge with Python 3.4 (asyncio)
- Close #22063: socket operations (socket,recv, sock_sendall, sock_connect,
  sock_accept) now raise an exception in debug mode if sockets are in blocking
  mode.
- asyncio: Use the new os.set_blocking() function of Python 3.5 if available
2014-07-29 23:09:56 +02:00
Victor Stinner
9c9f1f10d3 Close #22063: socket operations (socket,recv, sock_sendall, sock_connect,
sock_accept) now raise an exception in debug mode if sockets are in blocking
mode.
2014-07-29 23:08:17 +02:00