Commit Graph

43258 Commits

Author SHA1 Message Date
Eric Smith b53e1a6ed3 Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in stropmodule as part of short float repr. 2009-10-27 12:12:44 +00:00
Eric Smith 97be1ca1d9 Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in cPickle as part of short float repr. 2009-10-27 11:32:11 +00:00
Benjamin Peterson 7582ec36b2 use 'is' instead of id() 2009-10-26 22:51:16 +00:00
Mark Dickinson c04c7c5b72 Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
complexobject.c.  Also remove length restriction on unicode inputs to
the complex constructor.
2009-10-26 22:28:14 +00:00
Mark Dickinson 8568b19850 Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
floatobject.c.  Also, remove limitation on length of unicode inputs to
float().
2009-10-26 21:11:20 +00:00
Mark Dickinson 3e1eb0f715 Issue #7117: Backport missing pystrtod.h declarations from py3k. 2009-10-26 21:09:09 +00:00
Mark Dickinson e052b64def Use correct conversion specifier and length modifier when printing an
integer of type off_t.  Also, don't assume that long long is available.
2009-10-26 19:59:23 +00:00
Antoine Pitrou d9ff74e51d Some platforms have rl_completion_append_character but not rl_completion_suppress_append.
Reported by Mark D.
2009-10-26 19:16:46 +00:00
Eric Smith c1bdf89145 Finished removing _PyOS_double_to_string, as mentioned in issue 7117. 2009-10-26 17:46:17 +00:00
Mark Dickinson 975d7576ca Issue #7117 (backport py3k float repr) continued:
Backport pystrtod.c from py3k.
2009-10-26 15:39:50 +00:00
Eric Smith b05d3be2f1 Continue removing _PyOS_double_to_string, as mentioned in issue 7117. 2009-10-26 15:06:39 +00:00
Eric Smith cfaf79c56e Start to remove _PyOS_double_to_string, as mentioned in issue 7117. 2009-10-26 14:48:55 +00:00
Mark Dickinson 0e0e215308 Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum 2009-10-26 14:18:44 +00:00
Mark Dickinson 828b39865a Skip readline tests if readline module is not available. 2009-10-26 11:59:30 +00:00
Mark Dickinson 8d87dc0c29 Issue #1087418: Small performance boost for bitwise operations on longs.
Initial patch by Gregory Smith;  some tweaks added.
2009-10-25 20:39:06 +00:00
Georg Brandl f1ca811abb Fix a demo. 2009-10-25 20:25:43 +00:00
Eric Smith 8c3fb39440 Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file. 2009-10-24 19:50:44 +00:00
Mark Dickinson f325407038 Issue #7117: temporarily disable the short float repr while the
pieces are being assembled.  To re-enable, define the preprocessor
symbol PY_SHORT_FLOAT_REPR
2009-10-24 15:54:35 +00:00
Tarek Ziadé 1733c9362b fixed warning and error message 2009-10-24 15:51:30 +00:00
Tarek Ziadé 468f700af7 fixed finally state in distutils.test_util 2009-10-24 15:19:03 +00:00
Tarek Ziadé b9c1cfc428 Issue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecode 2009-10-24 15:10:37 +00:00
Mark Dickinson da8652d920 Issue #7117 (backport py3k float repr) continued:
Add sys.float_repr_style attribute ('short' if short float
repr is in used;  'legacy' otherwise).
2009-10-24 14:01:08 +00:00
Mark Dickinson 99abd145dc Configure check for double rounding should take BASECFLAGS into account 2009-10-24 13:44:16 +00:00
Mark Dickinson 52462c3185 Remove temporary define from r75653 2009-10-24 13:31:41 +00:00
Tarek Ziadé 672422a328 #7066 - Fixed distutils.archive_util.make_archive behavior so it restores the cwd 2009-10-24 13:29:44 +00:00
Mark Dickinson 1d6e2e1833 Issue #7117 (backport py3k float repr) continued:
- add double endianness detection to configure script
 - add configure-time check to see whether we can use inline
   assembly to get and set x87 control word in configure script
 - add functions to get and set x87 control word in Python/pymath.c
 - add pyport.h logic to determine whether it's safe to use the
   short float repr or not
2009-10-24 13:28:38 +00:00
Antoine Pitrou 5e9f6676ea Fix compilation error in debug mode. 2009-10-24 12:41:27 +00:00
Antoine Pitrou f7820c1626 Manual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept arbitrary keywords 2009-10-24 12:28:22 +00:00
Antoine Pitrou fa94e80f3b Manual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and io.StringIO picklable. 2009-10-24 12:23:18 +00:00
Mark Dickinson fd42f30991 Temporary define to avoid build failure 2009-10-24 12:17:24 +00:00
Mark Dickinson bb28285ea2 Issue #7117: Prepare for backport of py3k float repr.
Add the Python/dtoa.c file containing the main algorithms;
add corresponding include file and include in Python.h;
include license information for Python/dtoa.c;
add dtoa.c and dtoa.h to Makefile.
2009-10-24 12:13:30 +00:00
Antoine Pitrou f98a267be3 Manual py3k backport: [svn r74155] Issue #6242: Fix deallocator of io.StringIO and io.BytesIO 2009-10-24 11:59:41 +00:00
Mark Dickinson 5f029ce664 Acknowledge Ned Deily (extensive bug hunting and testing on OS X) 2009-10-24 11:47:17 +00:00
Georg Brandl 5460ff9d9f Fix markup. 2009-10-24 10:04:19 +00:00
Neil Schemenauer d87affece4 Improve some docstrings in the 'warnings' module. 2009-10-23 19:58:17 +00:00
Antoine Pitrou b5cf8a059c Issue #7194: test_thread could try to release an unacquired mutex (and fail). 2009-10-23 18:32:15 +00:00
Fred Drake d617cba62d add further note about what's passed to optionxform 2009-10-23 13:04:51 +00:00
Antoine Pitrou b119ca9df4 Fix Windows buildbot failure 2009-10-23 12:01:13 +00:00
Georg Brandl dc0205296b #7188: fix optionxform() docs. 2009-10-23 08:14:44 +00:00
Eric Smith 84da0905e4 Per the discussion in issue6882, backport the try/finally work that was done to the py3k version (mostly in r59477, I think). 2009-10-22 20:13:14 +00:00
Georg Brandl 60bae6f123 Make printout margin important. 2009-10-22 16:20:55 +00:00
Georg Brandl 07de4fc978 Add proper references. 2009-10-22 16:17:05 +00:00
Georg Brandl d1bed8e5ef #6977: getopt does not support optional option arguments. 2009-10-22 15:54:35 +00:00
Georg Brandl 76d6d4a010 #7156: document curses as Unix-only. 2009-10-22 15:52:15 +00:00
Georg Brandl f4ffae2b2a #7035: improve docs of the various <method>_errors() functions, and give them docstrings. 2009-10-22 15:42:32 +00:00
Georg Brandl 030d65811f Reorder __slots__ fine print and add a clarification. 2009-10-22 15:27:24 +00:00
Georg Brandl c5026f8a7b #7088: document new functions in signal as Unix-only. 2009-10-22 15:04:09 +00:00
Georg Brandl 2eee1d4df1 #6324: membership test tries iteration via __iter__. 2009-10-22 15:00:06 +00:00
Georg Brandl 6c14e587f5 Use "impl-detail" directive where applicable. 2009-10-22 11:48:10 +00:00
Georg Brandl 3954d21cc5 Fix stylesheet for multi-paragraph impl-details. 2009-10-22 11:36:50 +00:00