Commit Graph

41340 Commits

Author SHA1 Message Date
Benjamin Peterson 4bb96feb60 no need for this __bases__ trick anymore 2009-02-12 04:17:04 +00:00
Benjamin Peterson 1312b4bcfd os.fsync() should be used to ensure that data is written to disk 2009-02-12 03:50:00 +00:00
Gregory P. Smith 3605b5cee3 Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes even
on LP64 platforms (most 64-bit Linux, bsd, unix systems).
2009-02-11 23:45:25 +00:00
Hirokazu Yamamoto bcd3ea86a3 Issue #5204: Define _PyVerify_fd on VC6 to make
test_fdopen (test_os.py) pass.
2009-02-11 04:13:06 +00:00
Raymond Hettinger e4ae63c402 Clean-up named tuple docs. 2009-02-11 00:06:17 +00:00
Thomas Heller 3689ae256e Issue#5203: ctypes segfaults when passing a unicode string to a
function without argtypes, if HAVE_USABLE_WCHAR_T is false.
2009-02-10 18:43:01 +00:00
Mark Dickinson d155bbfbb2 _testcapi depends on testcapi_long.h
Thanks Lisandro Dalcin.
2009-02-10 16:17:16 +00:00
Mark Dickinson 4015f62e39 Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for
negative arguments.  Previously, it raised TypeError.

Thanks Lisandro Dalcin.
2009-02-10 15:46:50 +00:00
Kristján Valur Jónsson 6a743d3694 Issue 4804. Add a function to test the validity of file descriptors on Windows, and stop using global runtime settings to silence the warnings / assertions. 2009-02-10 13:32:24 +00:00
Hirokazu Yamamoto e71fc87112 Fixed svn:eol-style. 2009-02-10 13:31:28 +00:00
Martin v. Löwis de7cdeefb5 Set eol-style to native 2009-02-10 13:12:12 +00:00
Martin v. Löwis a3e3cb7ee0 Issue #5134: Silence compiler warnings when compiling sqlite with VC++. 2009-02-10 13:09:19 +00:00
Tarek Ziadé 74fbf60e8c Fixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib 2009-02-10 12:31:09 +00:00
Brett Cannon 28d108893c compileall used the ctime of bytecode and source to determine if the bytecode
should be recreated. This created a timing hole. Fixed by just doing what
import does; check the mtime and magic number.
2009-02-10 02:07:38 +00:00
Raymond Hettinger 322daea7c3 Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames. 2009-02-10 01:24:05 +00:00
Guilherme Polo c5eba1e4f7 Enforcing Tk 8.3.1 requirement. 2009-02-09 20:57:45 +00:00
Guilherme Polo a66cf5bd04 Fixed issue #5122: Synchronize tk load failure check to prevent a
potential deadlock.
2009-02-09 20:50:27 +00:00
Guilherme Polo 55bdb8e4ac Checking for tk availability before continuing (basically the same that is done in test_ttk_guionly) 2009-02-09 19:57:04 +00:00
Guilherme Polo bbb7efd72b Some tests for Tkinter.Text.search 2009-02-09 19:21:21 +00:00
Raymond Hettinger 94034ea584 Issue 5171: itertools.product docstring missing 'repeat' argument 2009-02-09 18:39:41 +00:00
Guilherme Polo d2ea0332ab Fixed issue #4890: Handle empty text search pattern in
Tkinter.Text.search
2009-02-09 16:41:09 +00:00
Guilherme Polo 190c35f928 Turned setup_master public 2009-02-09 16:09:17 +00:00
Mark Dickinson c97c9096ed Issue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.
It now forces its argument to double before testing for infinity.
2009-02-09 14:18:43 +00:00
Vinay Sajip b20af944d2 Issue #5170: Fixed Unicode output bug in logging and added test case. This is a regression which did not occur in 2.5. 2009-02-08 19:06:08 +00:00
Mark Dickinson 9e58a37252 Silence 'arg may be used uninitialized in this function' warning from gcc. 2009-02-08 17:33:11 +00:00
Benjamin Peterson b8e17f7370 a few edits and typos 2009-02-08 15:14:57 +00:00
Mark Dickinson 10fe877dcd Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit
platforms.  The previous code was fragile, depending on the twin
accidents that:

  (1) in C, casting the double value 2.**63 to long returns the integer
      value -2**63, and
  (2) in Python, hash(-2**63) == hash(2**63).

There's already a test for this in test_hash.
2009-02-08 14:42:28 +00:00
Benjamin Peterson c5e68b1898 document numliterals fixer 2009-02-08 14:38:13 +00:00
Mark Dickinson b91d2f5bd3 Remove redundant assignment in _PyObject_LengthHint 2009-02-08 13:58:10 +00:00
Nick Coghlan 0194f5bc98 Issue #4512 closeout: Make ZipImport.get_filename() a public method 2009-02-08 03:17:00 +00:00
Nick Coghlan c3623b1849 Mention patch submitter in NEWS entry for r69419 2009-02-08 01:46:01 +00:00
Nick Coghlan d39600e69f Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda) 2009-02-08 01:26:34 +00:00
Benjamin Peterson e0820e2ea7 document individual 2to3 fixers 2009-02-07 23:01:19 +00:00
Benjamin Peterson 096c3ad41d make destinsrc private 2009-02-07 19:08:22 +00:00
Georg Brandl 95f8ef2825 make "super only for new-style classes" a note. 2009-02-07 18:49:54 +00:00
Neil Schemenauer f8741eacf5 Add test for issue #999042, explict global statement works. 2009-02-07 18:35:16 +00:00
Neil Schemenauer 8573d62f8f Fix broken test in test_hotshot. Treating the current directory as an
empty file is sloppy and non-portable.  Use NamedTemporaryFile to make
an empty file.
2009-02-07 14:53:31 +00:00
Georg Brandl 34feea3205 #5174: fix wrong file closing in example. 2009-02-07 12:21:17 +00:00
Guilherme Polo 8e5e438d21 Eliminated the need to use ttk.__loadtk__ and the problems related it. 2009-02-07 02:20:29 +00:00
Neil Schemenauer 92c3b2190b Issue #999042: The Python compiler now handles explict global statements
correctly (should be assigned using STORE_GLOBAL opcode).  This was done by
having the system table differentiate between explict and implicit globals.
2009-02-07 00:54:41 +00:00
Neil Schemenauer 98c3b85bc4 Make names generated for 'with' variables match the built-in compiler. 2009-02-07 00:13:39 +00:00
Tarek Ziadé 8be8765a2e #3986 replacing string and types call (like in the Py3k branch), and put exec_msg call at the right place 2009-02-07 00:05:39 +00:00
Guilherme Polo 363161a418 Issue #1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that will
not be used again (this requires Tcl/Tk 8.3.1), also fix a memory
leak in Tkapp_Call when calling from a thread different than the one that
created the Tcl interpreter.
2009-02-06 22:48:07 +00:00
Guilherme Polo 14ff18d211 Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
from a thread different than the one that created the Tcl interpreter.
2009-02-06 22:26:22 +00:00
Neil Schemenauer aa397d1806 Convert "srcdir" into an absolute path if that seems prudent. Currrently
the only user of this is Lib/distutils/tests/test_build_ext.py (in order
to find the source for xxmodule.c).  I'm not sure if other platforms
need similar tweaks, I'm not brave enough to attempt it without being
able to test.
2009-02-06 21:33:45 +00:00
Neil Schemenauer 4db626f95d Overhaul Lib/compiler block ordering. The previous code was filled with
hacks.  The new code is based on issue #2472 posted by Antoine Pitrou.  I
did some further cleanups of the pyassem code and optimized the block
ordering pass.
2009-02-06 21:08:52 +00:00
Tarek Ziadé 0d6705b234 Fixed #5167: test_customize_compiler does not apply under non unix compilers 2009-02-06 13:27:38 +00:00
Armin Rigo 5561986da3 Ivan on IRC in #twisted reported this crasher. 2009-02-06 11:46:26 +00:00
Kristján Valur Jónsson e20f54f542 Fix a number of Win32ErrorTests error cases. chmod wasn't being tested. 'access' never raises an error. 2009-02-06 10:17:34 +00:00
Tarek Ziadé 98da8e151a removed types usage and added test coverage (work for #3986) 2009-02-06 08:55:23 +00:00