Commit graph

13892 commits

Author SHA1 Message Date
Mark Dickinson
da62f81d1d Remove an unnecessary check from test_decimal. 2009-01-10 19:14:55 +00:00
Matthias Klose
43723e2ad8 - Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou
b74fc2b5fe Issue #3860: GzipFile and BZ2File now support the context manager protocol. 2009-01-10 16:13:45 +00:00
Kristján Valur Jónsson
0e2d8c36e3 Issue 4293: Make Py_AddPendingCall() thread safe
Add test cases and documentation
2009-01-09 21:35:16 +00:00
Kristján Valur Jónsson
84040dbe81 Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required. 2009-01-09 20:27:16 +00:00
Kristján Valur Jónsson
7e876f5e93 Issue 4336: HTTPRequest._send_output() now deals with the case of the message body not being a string. This allows clients to use endheaders(message_body) instead of endheaders() + send(message_body) without making any extra checks. 2009-01-09 20:23:16 +00:00
Benjamin Peterson
25f221b0cb Merged revisions 68306-68308,68340,68368,68422 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r68306 | benjamin.peterson | 2009-01-04 12:27:19 -0600 (Sun, 04 Jan 2009) | 1 line

  fix_urllib: add mappings for the url parsing functions
........
  r68307 | benjamin.peterson | 2009-01-04 12:30:01 -0600 (Sun, 04 Jan 2009) | 1 line

  remove duplicated function
........
  r68308 | benjamin.peterson | 2009-01-04 12:50:34 -0600 (Sun, 04 Jan 2009) | 1 line

  turtle is no longer renamed
........
  r68340 | georg.brandl | 2009-01-05 02:11:39 -0600 (Mon, 05 Jan 2009) | 2 lines

  Fix undefined locals in parse_tokens().
........
  r68368 | benjamin.peterson | 2009-01-06 17:56:10 -0600 (Tue, 06 Jan 2009) | 1 line

  fix typo (thanks to Robert Lehmann)
........
  r68422 | benjamin.peterson | 2009-01-08 20:01:03 -0600 (Thu, 08 Jan 2009) | 1 line

  run the imports fixers after fix_import, so fix_import doesn't try to make stdlib renames into relative imports #4876
........
2009-01-09 02:13:34 +00:00
Tarek Ziadé
1a240fb9f0 fixed #4394 make the storage of the password optional in .pypirc 2009-01-08 23:56:31 +00:00
Raymond Hettinger
5b913e31a1 Forward port r68394 for issue 4816. 2009-01-08 06:39:04 +00:00
Mark Dickinson
e6dc53120d Issue #4869: clarify documentation for random.expovariate. 2009-01-07 17:48:33 +00:00
Hirokazu Yamamoto
fde5b803d8 Issue #4864: test_msvc9compiler failed on VC6/7.
Reviewed by Amaury Forgeot d'Arc.
2009-01-07 09:42:28 +00:00
Antoine Pitrou
09cafb6335 Use shutil.rmtree rather than os.rmdir. 2009-01-06 18:34:08 +00:00
Antoine Pitrou
e96d4ea4e2 Issue #1180193: When importing a module from a .pyc (or .pyo) file with
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
2009-01-06 18:10:47 +00:00
Antoine Pitrou
f0d2c3f730 Issue #4272: Add an optional argument to the GzipFile constructor to override the timestamp in the gzip stream. 2009-01-04 21:29:23 +00:00
Mark Dickinson
65808ff0c0 More Python 2.3 compatibility fixes for decimal.py. 2009-01-04 21:22:02 +00:00
Mark Dickinson
6a961637a8 Fix Decimal.from_float to use valid Python 2.3 syntax, as per
comments at top of decimal.py.  (But note that the from_float
method itself with still not be usable before Python 2.7.)
See issue 4796 for discussion.
2009-01-04 21:10:56 +00:00
Tarek Ziadé
d81780b8b0 using clearer syntax 2009-01-04 10:37:52 +00:00
Tarek Ziadé
85d6fb5022 fixed #1702551: distutils sdist was not pruning VCS directories under win32 2009-01-04 00:04:49 +00:00
Georg Brandl
fe427895b5 Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. 2009-01-03 22:03:11 +00:00
Raymond Hettinger
b7e835b820 Reapply r68191. 2009-01-03 19:08:10 +00:00
Raymond Hettinger
f4d8597a59 Issue 4796: Add from_float methods to the decimal module. 2009-01-03 19:02:23 +00:00
Benjamin Peterson
37fc82348c Merged revisions 67900-67901,67919,67928,67984,67991-67993,68106-68108,68110 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r67900 | benjamin.peterson | 2008-12-22 14:02:45 -0600 (Mon, 22 Dec 2008) | 4 lines

  fix_execfile: wrap the open(fn).read() call in compile(), so the filename is preserved

  also add unittests for the fixer
........
  r67901 | benjamin.peterson | 2008-12-22 14:09:55 -0600 (Mon, 22 Dec 2008) | 1 line

  remove unused import
........
  r67919 | benjamin.peterson | 2008-12-23 13:12:22 -0600 (Tue, 23 Dec 2008) | 1 line

  copy permission bits from the backup to the original
........
  r67928 | benjamin.peterson | 2008-12-26 20:49:30 -0600 (Fri, 26 Dec 2008) | 1 line

  don't be so idiot about multiple local imports in fix_import; still won't handle absolute and local imports on the same line
........
  r67984 | benjamin.peterson | 2008-12-28 09:55:16 -0600 (Sun, 28 Dec 2008) | 1 line

  don't need loop
........
  r67991 | benjamin.peterson | 2008-12-28 14:30:26 -0600 (Sun, 28 Dec 2008) | 1 line

  actually call finish_tree()
........
  r67992 | benjamin.peterson | 2008-12-28 14:34:47 -0600 (Sun, 28 Dec 2008) | 1 line

  remove useless test
........
  r67993 | benjamin.peterson | 2008-12-28 15:04:32 -0600 (Sun, 28 Dec 2008) | 1 line

  update pyk3's test grammar
........
  r68106 | benjamin.peterson | 2008-12-31 11:53:58 -0600 (Wed, 31 Dec 2008) | 1 line

  #2734 don't convert every instance of long (eg if it's an attribute)
........
  r68107 | benjamin.peterson | 2008-12-31 11:55:10 -0600 (Wed, 31 Dec 2008) | 1 line

  add another test
........
  r68108 | benjamin.peterson | 2008-12-31 12:00:12 -0600 (Wed, 31 Dec 2008) | 1 line

  don't change long even if it's the only argument name
........
  r68110 | benjamin.peterson | 2008-12-31 14:13:26 -0600 (Wed, 31 Dec 2008) | 1 line

  remove unused import
........
2009-01-03 16:34:02 +00:00
Mark Dickinson
4aa04db573 Issue #4812: further renaming of internal Decimal constants, for clarity. 2009-01-03 12:07:20 +00:00
Mark Dickinson
c5de0969ca Issue #4812: add missing underscore prefix to some internal-use-only
constants in the decimal module.  (Dec_0 becomes _Dec_0, etc.)
2009-01-02 23:07:08 +00:00
Raymond Hettinger
44e1581df3 Issue #4615. Document how to use itertools for de-duping. 2009-01-02 21:26:45 +00:00
Ronald Oussoren
072bb405f3 Fix for issues #841800 and #900506 2009-01-02 15:25:36 +00:00
Ronald Oussoren
abcc168c69 Fix for issue 1149804 2009-01-02 15:00:05 +00:00
Ronald Oussoren
919697cefe Fix for issue r1737832 2009-01-02 14:52:09 +00:00
Ronald Oussoren
7f8cbf0e73 Fix for issue 1627952 2009-01-02 14:48:17 +00:00
Ronald Oussoren
63b74feb51 Fix for issue 900949 2009-01-02 14:46:19 +00:00
Ronald Oussoren
0238497e93 Fix for issue1594 2009-01-02 14:10:20 +00:00
Ronald Oussoren
8c95484cff Fix for issue3559: No preferences menu in IDLE on OSX
1) Add a comment to the help file to that points to the
   preferences menu.

2) An earlier checkin tried to detect Tk >= 8.10.14,
   but did this in the wrong way. The end result of this
   was that the IDLE->Preferences... menu got surpressed
   when using the system version of Tcl/Tk
2009-01-02 12:59:32 +00:00
Antoine Pitrou
733dc74442 fill in actual issue number in tests 2009-01-01 15:38:03 +00:00
Antoine Pitrou
aa687902f2 Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected. 2009-01-01 14:11:22 +00:00
Georg Brandl
6269fec171 #4228: Pack negative values the same way as 2.4
in struct's L format.
2009-01-01 12:15:31 +00:00
Georg Brandl
775c307068 #4222: document dis.findlabels() and dis.findlinestarts() and
put them into dis.__all__.
2009-01-01 12:09:40 +00:00
Georg Brandl
2adde0551a #4185: clarify escape behavior of replacement strings. 2009-01-01 12:00:19 +00:00
Benjamin Peterson
6060d5e3fa simplfy code 2009-01-01 04:04:41 +00:00
Benjamin Peterson
8ad09a4f2e #4795 inspect.isgeneratorfunction() should return False instead of None 2008-12-31 23:48:39 +00:00
Benjamin Peterson
941db4d91f fix name collision issues 2008-12-31 04:08:55 +00:00
Benjamin Peterson
43ea6d9acc #4788 qualify some bare except clauses 2008-12-31 03:37:51 +00:00
Tarek Ziadé
b1a85413b1 Fixed #4702: Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found 2008-12-30 23:03:41 +00:00
Nick Coghlan
180e400766 Issue #4701: implicitly call PyType_Ready from PyObject_Hash 2008-12-30 01:18:48 +00:00
Tarek Ziadé
c13acb18bc fixed #4646 : distutils was choking on empty options arg in the setup function. 2008-12-29 22:23:53 +00:00
Benjamin Peterson
7af65568ff #4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms 2008-12-29 17:56:58 +00:00
Benjamin Peterson
fe231b07e4 #4764 set IOError.filename when trying to open a directory on POSIX platforms 2008-12-29 17:47:42 +00:00
Martin v. Löwis
732479f50b Issue #3767: Convert Tk object to string in tkColorChooser. 2008-12-29 16:22:25 +00:00
Martin v. Löwis
e2eb2b4bc3 Issue #3248: Allow placing ScrolledText in a PanedWindow. 2008-12-29 15:51:01 +00:00
Ronald Oussoren
88a3083c28 Update the fix for issue4064 to deal correctly with all three variants of
universal builds that are presented by the configure script.
2008-12-28 19:50:40 +00:00
Ronald Oussoren
4b48c612bb Issue4064: architecture string for universal builds on OSX 2008-12-28 19:40:56 +00:00