Commit Graph

37584 Commits

Author SHA1 Message Date
Christian Heimes 284d927625 Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
2007-12-10 22:28:56 +00:00
Guido van Rossum 8c3d0f7839 Remove a 2.2-ism. 2007-12-10 20:42:53 +00:00
Christian Heimes 61927fc049 Stupid save all didn't safe it all ... 2007-12-10 15:39:09 +00:00
Christian Heimes 7c7f6afa92 Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too. 2007-12-10 15:12:41 +00:00
Georg Brandl e6daafb449 Add DocXMLRPCServer test from GHOP task #136, written by Jeff Wheeler. 2007-12-09 22:39:12 +00:00
Georg Brandl 953f5faade Add Jeff Wheeler. 2007-12-09 22:38:26 +00:00
Georg Brandl 6113ce51b3 Two fixes in DocXMLRPCServer:
* remove parameter default that didn't make sense
* properly escape values in output
Thanks to Jeff Wheeler from GHOP!
2007-12-09 21:15:07 +00:00
Georg Brandl b0885b7278 Remove all tabs in that file. 2007-12-09 08:59:45 +00:00
Georg Brandl 3fc792bd8a #1575: the Mac readme is now one level up. 2007-12-09 08:54:02 +00:00
Brett Cannon 338d41850a Use a versionchanged directive. 2007-12-09 05:09:37 +00:00
Georg Brandl e151ab4282 Adapt style. 2007-12-08 17:56:07 +00:00
Skip Montanaro 26015494f2 When splitting, avoid making a copy of the string if the split doesn't find
anything (issue 1538).
2007-12-08 15:33:24 +00:00
Skip Montanaro 546624609e correct email address 2007-12-08 15:26:16 +00:00
Skip Montanaro ffe455c3a2 + "context manager" 2007-12-08 15:23:31 +00:00
Skip Montanaro 4e3ebe0bae Note that open() is the preferred way to open files (issue 1510). 2007-12-08 14:37:43 +00:00
Georg Brandl e40a6a85ee Add examples to the datetime documentation. Written for GHOP by "h4wk.cz". 2007-12-08 11:23:13 +00:00
Georg Brandl dc563a655f Fix Eren's name. 2007-12-08 11:05:36 +00:00
Georg Brandl e7d118a5a1 Fix markup in whatsnew, use new directive in ACKS. 2007-12-08 11:05:05 +00:00
Georg Brandl 26458c12a0 Fix tpyo. 2007-12-08 10:56:39 +00:00
Alexandre Vassalotti d8a8c7d8d7 Fix issue #1530.
Return an error exit status if not all tests passes.
2007-12-08 04:49:22 +00:00
Guido van Rossum 901464f131 Be (just a bit :) more specific about release date. 2007-12-08 04:38:23 +00:00
Armin Rigo 66d41b2fae This is probably what was meant here. 2007-12-07 19:19:55 +00:00
Georg Brandl 013d574183 Update to windows doc from Robert. 2007-12-07 15:16:57 +00:00
Georg Brandl 5d1b4d44aa Increase unit test coverage of SimpleXMLRPCServer.
Written for GHOP by Turkay Eren.
2007-12-07 09:07:10 +00:00
Raymond Hettinger ba9eea5aaa Don't have the docs berate themselves. Keep a professional tone.
If a todo is needed, put it in the tracker.
2007-12-07 01:53:01 +00:00
Christian Heimes 3d2f564d41 Several Windows related cleanups:
* Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
* Fixed path to tix in the build_tkinter.py script
* Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
* Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
* Added some more information about PGO and the property files to PCbuild9/readme.txt.

Are you fine with the changes, Martin?
2007-12-06 21:13:06 +00:00
Christian Heimes 0a5e54e732 Disabled one test that is failing on Unix 2007-12-06 13:55:01 +00:00
Christian Heimes f8761e548c Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it. 2007-12-06 13:30:11 +00:00
Christian Heimes d3fc07a4a0 Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree.
Added several small unit tests for sysconfig.
2007-12-06 13:15:13 +00:00
Georg Brandl d6b20dc54f Better re.split examples. 2007-12-06 09:45:39 +00:00
Georg Brandl 2b92f6bab3 Diverse markup fixes. 2007-12-06 01:52:24 +00:00
Raymond Hettinger 4e2f714031 Fix Issue 1045.
Factor-out common calling code by simplifying the length_hint API.
Speed-up the function by caching the PyObject_String for the attribute lookup.
2007-12-06 00:56:53 +00:00
Georg Brandl 923ad7a948 Add another GHOP student to ACKS. 2007-12-06 00:24:23 +00:00
Christian Heimes 18679948c4 The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS 2008 IDE doesn't know about (some) of the macros and can display wrong information. In my case a section #ifdef _WIN64 was grayed out although the platform was x64. I've added the macros to pyproject.vsprops and x64.vsprops.
I've also added a paragraph about the property files to the readme and fixed the order of pyupdate > pyinstrument.
2007-12-05 21:57:25 +00:00
Georg Brandl 749fddc093 Add Ross Light, a GHOP student, to ACKs. 2007-12-05 21:52:40 +00:00
Christian Heimes cbdb705c88 Fixed bug #1557 by using popen.communicate() before popen.wait() 2007-12-05 20:10:38 +00:00
Ronald Oussoren ba687525c5 This "fixes" compilation issues for the Carbon._OSA module on OSX Leopard
by purging bindings to OSA's debug API's. Those APIs we're completely
unsupported on OSX 10.4 and are no longer available on OSX 10.5.

Note that this patches a generated file. This is somewhat acceptable because
regenerating the file is non-trivial and wouldn't use system headers anyway.
2007-12-05 20:07:36 +00:00
Georg Brandl 0b60a14f13 Another markup fix. 2007-12-05 20:03:57 +00:00
Christian Heimes 4c07cd9d0c Updated documentation and build_tkinter.py script 2007-12-05 19:57:54 +00:00
Georg Brandl 45c088c2e7 Fix markup. 2007-12-05 19:49:21 +00:00
Georg Brandl b8df156ab5 Add examples to re docs. Written for GHOP by Dan Finnie. 2007-12-05 18:30:48 +00:00
Raymond Hettinger 2e1af256d4 Error checking was too aggressive (reported by Chris Tismer) 2007-12-05 18:11:08 +00:00
Georg Brandl 722e1011c9 Add examples to csv, pprint and traceback docs.
Written by Ross for GHOP.
2007-12-05 17:56:50 +00:00
Andrew M. Kuchling 395fe44210 Spelling fix 2007-12-05 13:27:20 +00:00
Christian Heimes 7cc1c6f0af Added msg to Misc/NEWS 2007-12-05 12:52:34 +00:00
Christian Heimes fe4826f6ac merge -r59315:59316 from py3k: Fix issue #1553: An errornous __length_hint__ can make list() raise a SystemError 2007-12-05 12:49:14 +00:00
Christian Heimes 8f1fea5061 Fixed error in regrtest. I must have missed the spot. 2007-12-05 12:45:11 +00:00
Christian Heimes 76fa9c0e9d Fixed quoting and paths in the sqlite project file 2007-12-05 12:31:44 +00:00
Georg Brandl 2d3953bd78 Fix typo. 2007-12-05 07:02:47 +00:00
Christian Heimes 0116158c7f These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno. 2007-12-04 18:43:19 +00:00