Commit graph

41019 commits

Author SHA1 Message Date
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
Marc-André Lemburg
3741bfdd3c Fix #4846 (Py_UNICODE_ISSPACE causes linker error) by moving the declaration
into the extern "C" section.

Add a few more comments and apply some minor edits to make the file contents
fit the original structure again.
2009-01-05 19:43:35 +00:00
Neal Norwitz
f99b0110a8 Make sure to checkout any new packages 2009-01-05 03:57:25 +00:00
Georg Brandl
e87a28cd0a Update make.bat. 2009-01-04 22:03:10 +00:00
Benjamin Peterson
d680d96027 use Jinja 2.1.1 2009-01-04 22:00:18 +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
514d483a7d Misc/NEWS entry for r68317 2009-01-04 21:25:40 +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
Mark Dickinson
1de3327015 It's wrong to use AC_REPLACE_FUNCS for hypot, since there's no longer any
Python/hypot.c replacement file.  Use AC_CHECK_FUNCS instead.  This change
should be backported to 2.6 and 3.0.
2009-01-04 20:19:41 +00:00
Mark Dickinson
1bf6401ab2 Use C99 'isfinite' macro in preference to BSD-derived 'finite' function. 2009-01-04 19:53:00 +00:00
Mark Dickinson
0ebfedf38e Fix HAVE_DECL_ISINF/ISNAN test (again). 2009-01-04 17:02:05 +00:00
Mark Dickinson
41fbae1ac9 Oops. Need to check not only that HAVE_DECL_ISINF is defined, but also
that it's equal to 1.  (If isinf isn't defined, HAVE_DECL_ISINF is
defined to be 0, rather than being undefined.)
2009-01-04 16:06:40 +00:00
Mark Dickinson
d181e3a246 isinf and isnan are macros, not functions; fix configure script
to use AC_CHECK_DECLS instead of AC_CHECK_FUNCS for these.
(See discussion in issue #4506)
2009-01-04 13:57:26 +00:00
Mark Dickinson
04b272336d Add autoconf test to detect x87-style double rounding, as described in
issue #2937.  This information can be helpful for diagnosing platform-
specific problems in math and cmath.  The result of the test also
serves as a fairly reliable indicator of whether the x87 floating-point
instructions (as opposed to SSE2) are in use on Intel x86/x86_64 systems.
2009-01-04 12:29:36 +00:00
Tarek Ziadé
d81780b8b0 using clearer syntax 2009-01-04 10:37:52 +00:00
Skip Montanaro
516144fef7 If user configures --without-gcc give preference to $CC instead of blindly
assuming the compiler will be "cc".
2009-01-04 10:36:58 +00:00
Georg Brandl
dd7e313035 Fix two issues found by the suspicious builder. 2009-01-04 10:24:09 +00:00
Georg Brandl
700cf28f41 Add "suspicious" builder which finds leftover markup in the HTML files.
Patch by Gabriel Genellina.
2009-01-04 10:23:49 +00:00
Georg Brandl
775aa4a026 Test commit. 2009-01-04 08:26:10 +00:00
Benjamin Peterson
248fb1320a only check the actual compile() call for a SyntaxError 2009-01-04 00:39:07 +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
e54aea786e Add temporary code to fix the automatic doc build failure. 2009-01-03 22:15:42 +00:00
Georg Brandl
8c8cc6b392 Manually merge r67868 from 2.6 branch. 2009-01-03 22:05:22 +00:00
Georg Brandl
fe427895b5 Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. 2009-01-03 22:03:11 +00:00
Georg Brandl
c63785db86 Grammar fix. 2009-01-03 21:52:16 +00:00
Guilherme Polo
e7f140355b The _tkinter module functions "createfilehandler", "deletefilehandler",
"createtimerhandler", "mainloop", "dooneevent" and "quit" have been
deprecated for removal in 3.x (part of issue #3638).
2009-01-03 21:51:09 +00:00
Georg Brandl
3b62c2ff69 Disable the line length checker by default. 2009-01-03 21:11:58 +00:00
Georg Brandl
7044b11818 Remove tabs from the documentation. 2009-01-03 21:04:55 +00:00
Georg Brandl
c62ef8b4d9 Remove trailing whitespace. 2009-01-03 20:55:06 +00:00
Georg Brandl
e92818f58c Fix uses of the default role. 2009-01-03 20:47:01 +00:00
Georg Brandl
ae24e7b5a2 Recognize usage of the default role. 2009-01-03 20:38:59 +00:00
Georg Brandl
9f7a3398ab Add rstlint, a little tool to find subtle markup problems and inconsistencies in the Doc sources. 2009-01-03 20:30:15 +00:00
Georg Brandl
a24067e8b3 Fix role name. 2009-01-03 20:15:14 +00:00
Georg Brandl
aa5bb329fd Make indentation consistent. 2009-01-03 19:44:48 +00:00
Georg Brandl
69bd8d2189 Set eol-style correctly for mp_distributing.py. 2009-01-03 19:10:12 +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
Martin v. Löwis
0fa10b3cd5 Issue #4817: Remove unused function PyOS_GetLastModificationTime. 2009-01-03 17:19:26 +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
Georg Brandl
edd7d95581 Fix indentation. 2009-01-03 14:29:53 +00:00
Georg Brandl
bc1309255e Remove useless string literal. 2009-01-03 13:45:15 +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
Andrew M. Kuchling
10b1ec98df Add various items 2009-01-02 21:00:35 +00:00
Benjamin Peterson
796798b29c fix compilation on non-Windows platforms 2009-01-02 20:47:27 +00:00
Martin v. Löwis
9ac4927125 Issue #4051: Prevent conflict of UNICODE macros in cPickle. 2009-01-02 20:40:14 +00:00
Martin v. Löwis
5344c99734 Issue #4075: Use OutputDebugStringW in Py_FatalError. 2009-01-02 20:32:55 +00:00
Georg Brandl
fc29f27c16 #4811: fix markup glitches (mostly remains of the conversion),
found by Gabriel Genellina.
2009-01-02 20:25:14 +00:00