Commit graph

48682 commits

Author SHA1 Message Date
Raymond Hettinger
7babc1b6a5 Better method name. Tighten inner-loop with bound methods. 2010-09-02 19:56:28 +00:00
Antoine Pitrou
d5c3f6c839 BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS. 2010-09-02 19:48:07 +00:00
Raymond Hettinger
331722d411 Make OrderedDict.popitem() a bit smarter and faster 2010-09-02 18:44:16 +00:00
Daniel Stutzbach
19e5a6fb4a Credit where credit is due 2010-09-02 15:13:35 +00:00
Daniel Stutzbach
045b3ba184 Issue #9212: Added the missing isdisjoint method to the dict_keys and
dict_items views.  The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Daniel Stutzbach
928d4eeee8 Removed an extraneous semicolon 2010-09-02 15:06:03 +00:00
Raymond Hettinger
38d17e3df0 Speed-up cache updates 2010-09-02 09:44:28 +00:00
Raymond Hettinger
ccb90e3ccd Keep contents order the same between versions. 2010-09-02 09:17:31 +00:00
Victor Stinner
71133ff368 Create PyUnicode_strdup() function 2010-09-01 23:43:53 +00:00
Victor Stinner
c4eb765fc1 Create Py_UNICODE_strcat() function 2010-09-01 23:43:50 +00:00
Raymond Hettinger
2f6bd27a7e More descriptive title. 2010-09-01 22:52:25 +00:00
Raymond Hettinger
bd204de454 Glossary cleanup 2010-09-01 22:21:36 +00:00
Raymond Hettinger
f37ca3c8be Glossary cleanup 2010-09-01 22:11:53 +00:00
Raymond Hettinger
6f80b4c8b7 Cleanup heapq docs 2010-09-01 21:27:31 +00:00
Raymond Hettinger
fa16e2c20b Cleanup heapq docs 2010-09-01 21:26:16 +00:00
Antoine Pitrou
f43f65b69f Merged revisions 84408-84409 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84408 | antoine.pitrou | 2010-09-01 23:14:16 +0200 (mer., 01 sept. 2010) | 4 lines

  Issue #9737: Fix a crash when trying to delete a slice or an item from
  a memoryview object.
........
  r84409 | antoine.pitrou | 2010-09-01 23:14:46 +0200 (mer., 01 sept. 2010) | 3 lines

  Fix a compilation warning
........
2010-09-01 21:16:10 +00:00
Antoine Pitrou
c73b909a2b Fix a compilation warning 2010-09-01 21:14:46 +00:00
Antoine Pitrou
e0793ba992 Issue #9737: Fix a crash when trying to delete a slice or an item from
a memoryview object.
2010-09-01 21:14:16 +00:00
Georg Brandl
6cb5ad035b #9677: fix link. 2010-09-01 21:02:50 +00:00
Antoine Pitrou
67e8e5633e Try to fix some buildbot failures on test_ssl 2010-09-01 20:55:41 +00:00
Raymond Hettinger
a09dc9e38a 'Using Python' now called 'Python Setup' 2010-09-01 20:31:59 +00:00
Antoine Pitrou
38164c3b04 Blocked revisions 84403 via svnmerge
........
  r84403 | antoine.pitrou | 2010-09-01 22:29:34 +0200 (mer., 01 sept. 2010) | 6 lines

  Issue #8990: array.fromstring() and array.tostring() get renamed to
  frombytes() and tobytes(), respectively, to avoid confusion.  Furthermore,
  array.frombytes(), array.extend() as well as the array.array()
  constructor now accept bytearray objects.  Patch by Thomas Jollans.
........
2010-09-01 20:30:18 +00:00
Antoine Pitrou
1ce3eb5c5b Issue #8990: array.fromstring() and array.tostring() get renamed to
frombytes() and tobytes(), respectively, to avoid confusion.  Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects.  Patch by Thomas Jollans.
2010-09-01 20:29:34 +00:00
Victor Stinner
42cb462682 Remove unicode_default_encoding constant
Inline its value in PyUnicode_GetDefaultEncoding(). The comment is now outdated
(we will not change its value anymore).
2010-09-01 19:39:01 +00:00
Giampaolo Rodolà
e0f9863a61 Issue #9693 - msg 115273: attempt to fix ssl module failures on certain OpenSSL versions by calling ERR_clear_error() before raising IOError 2010-09-01 19:28:49 +00:00
Antoine Pitrou
2f3c6984f2 Blocked revisions 84397 via svnmerge
........
  r84397 | antoine.pitrou | 2010-09-01 20:54:56 +0200 (mer., 01 sept. 2010) | 5 lines

  Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
  are now removed, since their effect was inexistent in 3.x (the default
  encoding is hardcoded to utf-8 and cannot be changed).
........
2010-09-01 18:56:56 +00:00
Antoine Pitrou
fce7fd6426 Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Antoine Pitrou
a2983c6734 Merged revisions 84394 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84394 | antoine.pitrou | 2010-09-01 17:10:12 +0200 (mer., 01 sept. 2010) | 4 lines

  Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer API
  properly.  Patch by Stefan Behnel.
........
2010-09-01 15:16:41 +00:00
Antoine Pitrou
b0fa831d1e Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer API
properly.  Patch by Stefan Behnel.
2010-09-01 15:10:12 +00:00
Antoine Pitrou
b83df8f1b7 Merged revisions 84391 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84391 | antoine.pitrou | 2010-09-01 14:58:21 +0200 (mer., 01 sept. 2010) | 5 lines

  Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become
  _Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
........
2010-09-01 13:01:35 +00:00
Antoine Pitrou
f68c2a701b Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become
_Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
2010-09-01 12:58:21 +00:00
Raymond Hettinger
996b46a095 Forward port sorting howto 2010-09-01 09:17:24 +00:00
Raymond Hettinger
53c58f8bcc Forward port sorting howto 2010-09-01 09:15:42 +00:00
Raymond Hettinger
9707fd2ec0 More descriptive title. 2010-09-01 08:57:16 +00:00
Raymond Hettinger
6b3d72c243 Fix line wrapping 2010-09-01 08:56:10 +00:00
Raymond Hettinger
293ffcf89d Fixup broken example 2010-09-01 08:27:16 +00:00
Raymond Hettinger
9092d20e0c Clean-up bisect docs 2010-09-01 08:24:40 +00:00
Raymond Hettinger
d292a17fc7 2-to-3 fixup for map() example in docs 2010-09-01 07:46:54 +00:00
Raymond Hettinger
20933e08b1 Clean-up bisect docs.
* Document the post conditions for bisect_left() and bisect_right().
* Fix the grades example to use more obvious breakpoints
  and to use a list comprehension instead of map() which returns
  an iterator in Py3.x.
* Improve and expand the examples of searching sorted lists.
* Issue 4356 -- move up reference to the SortedCollection recipe.
2010-09-01 06:58:25 +00:00
Benjamin Peterson
49203dc9f2 reformat comment 2010-08-31 20:10:55 +00:00
Daniel Stutzbach
19d6a4fd49 Issue #808164: Fixed socket.close to avoid references to globals, to
avoid issues when socket.close is called from a __del__ method.
2010-08-31 20:08:07 +00:00
Daniel Stutzbach
a606faa491 Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC 2010-08-31 19:51:07 +00:00
Daniel Stutzbach
061b14a4a1 Reverted r84315 and r84316, with Benjamin's blessing. The tests were
fine.  They were failing due to a problem exposed in r84307 and fixed
in r84317.   See Issue 8781 for details.
2010-08-31 15:45:04 +00:00
Benjamin Peterson
2f40d7d472 Merged revisions 84376 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84376 | benjamin.peterson | 2010-08-31 09:31:01 -0500 (Tue, 31 Aug 2010) | 1 line

  add nonlocal to pydoc topics #9724
........
2010-08-31 14:32:27 +00:00
Benjamin Peterson
f5a3d699a7 add nonlocal to pydoc topics #9724 2010-08-31 14:31:01 +00:00
Vinay Sajip
dc5097ff07 Removed _unicode variable which is always False in Python 3.x. 2010-08-31 07:52:17 +00:00
Vinay Sajip
ec1cd1c475 logging: merged duplicated code in fileConfig and dictConfig paths. 2010-08-30 19:02:14 +00:00
Vinay Sajip
609364a989 Logging: removed some old commented out code. 2010-08-30 18:31:13 +00:00
Giampaolo Rodolà
8b7da623ce Fix issue #9711: raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile. 2010-08-30 18:28:05 +00:00
Vinay Sajip
40d9a4e854 Improved logging.Formatter date/time formatting documentation. 2010-08-30 18:10:03 +00:00