Commit Graph

14158 Commits

Author SHA1 Message Date
Guilherme Polo 15d57653f1 Fixed issue #2638: Show a window constructed with tkSimpleDialog.Dialog only
after it is has been populated and properly configured in order to prevent
window flashing.
2009-03-07 02:14:38 +00:00
Guilherme Polo 6d6c1fd04e Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string. 2009-03-07 01:19:12 +00:00
Tarek Ziadé 943b24e7e4 Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler 2009-03-07 00:32:45 +00:00
Hirokazu Yamamoto 09033068f1 mmap.resize for anonymous map is not working yet, so changed to real file mapping... 2009-03-05 14:52:44 +00:00
Hirokazu Yamamoto 264fc12fbf Issue #5385: Fixed mmap crash after resize failure on windows.
Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle
because CreateFileMapping returns NULL when error occurs.
2009-03-05 14:21:12 +00:00
Ronald Oussoren a97063a108 Fixes issues 3883 and 5194 2009-03-04 21:35:05 +00:00
Brett Cannon 417937733f Fix some more bugs caused by the backport from 3.x for importlib.
Do a more exact copy of the final 3.x code to resolve bugs and add
appropriate tests.
2009-03-04 01:00:53 +00:00
Raymond Hettinger 131af6505a Backport 70140, 70141, 70143, and 70144.
Adds tests, switches from list to deque, fixes __reduce__
which was unnecessarily copying __keys.
2009-03-03 22:59:25 +00:00
Hirokazu Yamamoto eacbbdfb73 Issue #5179: Fixed subprocess handle leak on failure on windows. 2009-03-03 22:18:14 +00:00
Raymond Hettinger 0b15541ae2 Minor simplification. 2009-03-03 21:13:51 +00:00
Raymond Hettinger 9353ea2b85 Make the underlying data structure more private. 2009-03-03 20:53:51 +00:00
Raymond Hettinger f17f81d9c8 Beef-up tests. 2009-03-03 07:12:09 +00:00
Raymond Hettinger e89b8e9832 Backport 70111: Let configparser use ordered dicts by default. 2009-03-03 05:00:37 +00:00
Raymond Hettinger 88a9164cdb Backport 70106: Add OrderedDict support to collections.namedtuple(). 2009-03-03 04:51:24 +00:00
Raymond Hettinger bc512d3abd Backport PEP 372: OrderedDict() 2009-03-03 04:45:34 +00:00
Benjamin Peterson 7d49bba969 give httplib.IncompleteRead a more sane repr #4308 2009-03-02 22:41:42 +00:00
Tarek Ziadé ce45a967c2 removing the force-optimized option as discussed in #1533164 2009-03-02 05:38:44 +00:00
Gregory P. Smith ae91d0907d Adds an optional flags argument to re.split, re.sub and re.subn to be
consistent with the other re module functions.
2009-03-02 05:13:57 +00:00
Benjamin Peterson ad58b7c9da fix a silly problem of caching gone wrong #5401 2009-03-02 03:35:12 +00:00
Georg Brandl bcf7bf3833 Fix 3k-style metaclass syntax in docstrings. 2009-02-28 21:33:10 +00:00
Jeffrey Yasskin 68d6852006 Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with
POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing
a POP_TOP on each conditional and sometimes allows the peephole optimizer to
skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
2009-02-28 19:03:21 +00:00
Hirokazu Yamamoto b0e10c760c Issue #1733986: Fixed mmap crash in accessing elements of second map object
with same tagname but larger size than first map. (Windows)
2009-02-28 12:13:07 +00:00
Hirokazu Yamamoto f2dc885780 Issue #5386: mmap.write_byte didn't check map size, so it could cause buffer
overrun.
2009-02-28 10:31:54 +00:00
Tarek Ziadé 7334735ee1 Issues #1533164 and #5378: Added quiet and force-optimize options to Distutils bdist_rpm command 2009-02-28 10:08:02 +00:00
Tarek Ziadé dda92f7f02 Issue #5052: make Distutils compatible with 2.3 again. 2009-02-27 12:53:34 +00:00
Raymond Hettinger b31a6d0949 Give mapping views a usable repr. 2009-02-27 08:09:47 +00:00
Brett Cannon ac10be365e Fix a bug where code was trying to index an int. Left over from the situation
from using str.rpartition to str.rindex.

Closes Issue5213.
2009-02-27 03:38:28 +00:00
Tarek Ziadé b5fc89ee57 removed unused import 2009-02-26 23:44:00 +00:00
Benjamin Peterson b3dd5485da remove deprecated symtable.Symbol methods 2009-02-26 19:07:18 +00:00
Tarek Ziadé e3bc0eff25 Fixed #5316 : test failure in test_site 2009-02-25 22:29:27 +00:00
Brett Cannon b7019d8e9e Expand upon test_site.test_s_option to try to debug its failure. 2009-02-24 22:01:02 +00:00
Raymond Hettinger 8c56f8890e Backport 69934: Register xrange() as a Sequence. 2009-02-24 12:23:23 +00:00
Neil Schemenauer c9332fada6 Fix call to os.waitpid, it does not take keyword args. 2009-02-24 04:23:25 +00:00
Tarek Ziadé 11b34d07d8 more test coverage 2009-02-23 12:41:29 +00:00
Tarek Ziadé 7b47172bec Removing unused __main__ sections 2009-02-22 20:15:41 +00:00
Tarek Ziadé 28bba74b7f removing map and lambda usage, so the test is similar to py3k's branch one 2009-02-22 20:11:46 +00:00
Tarek Ziadé 90b7d56d91 moved distutils.text_file tests into a real unittest class 2009-02-22 19:58:12 +00:00
Antoine Pitrou b03f532fe5 Revert debugging statements, culprit is possibly test_distutils (see #5316) 2009-02-22 18:20:46 +00:00
Antoine Pitrou 13d1690ecd Try to make sense of the test_site buildbot failures 2009-02-22 17:25:52 +00:00
Mark Dickinson 3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
Raymond Hettinger be9b765c07 Speedup and simplify negative counter using count's new step argument. 2009-02-21 08:58:42 +00:00
Raymond Hettinger aa681c7b99 Fix keyword arguments for itertools.count().
Step arg without a start arg was ignored.
2009-02-21 07:17:22 +00:00
Mark Dickinson 2752e9b527 Issue #5295: Typos in turtle.py 2009-02-20 20:42:53 +00:00
Collin Winter 8725dce2ae Issue 5176: special-case string formatting in BINARY_MODULO implementation. This shows a modest (1-3%) speed-up in templating systems, for example. 2009-02-20 19:30:41 +00:00
Vinay Sajip 1a0d2befea #5287: Add exception handling around findCaller() call to help out IronPython. 2009-02-19 12:31:32 +00:00
Raymond Hettinger 8f9a1eee0d Inline coefficients in gamma(). Add reflection formula. Add comments. 2009-02-19 09:50:24 +00:00
Raymond Hettinger f9bce83e71 Add some cross-references to the docs. Simplify the python code equivalent for izip(). Supply an optional argument for the nth() recipe. 2009-02-19 05:34:35 +00:00
Raymond Hettinger 182edaefb5 Add keyword arg support to itertools.repeat(). 2009-02-19 02:38:25 +00:00
Raymond Hettinger 2e2909f584 Add keyword arg support to itertools.compress(). 2009-02-19 02:15:14 +00:00
Tarek Ziadé 0e5001eff9 fixed the data_files inclusion behavior 2009-02-17 23:06:51 +00:00
Hirokazu Yamamoto 17a837e4db Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0,
The file was resized to wrong size.
2009-02-17 13:17:26 +00:00
Hirokazu Yamamoto f6bbd0e71d Issue #5292: Fixed mmap crash on its boundary access m[len(m)]. 2009-02-17 10:12:10 +00:00
Tarek Ziadé f68b5b8046 #2279 added the plain path case for data_files 2009-02-17 09:42:44 +00:00
Tarek Ziadé ae9dc8c48a #2279: use os.sep so the MANIFEST file test work on win32 2009-02-16 21:41:54 +00:00
Tarek Ziadé 7dd533963f Fixed #2279: distutils.sdist.add_defaults now add files listed in package_data and data_files 2009-02-16 21:38:01 +00:00
Raymond Hettinger b21d8109af Add GC support to count() objects. Backport candidate. 2009-02-16 20:39:12 +00:00
Mark Dickinson 2ffb26fb83 Issue #5260: Various portability and standards compliance fixes, optimizations
and cleanups in Objects/longobject.c.  The most significant change is that
longs now use less memory:  average savings are 2 bytes per long on 32-bit
systems and 6 bytes per long on 64-bit systems.  (This memory saving already
exists in py3k.)
2009-02-15 10:13:41 +00:00
Georg Brandl f3715d2fc7 #5179: don't leak PIPE fds when child execution fails. 2009-02-14 17:01:36 +00:00
Benjamin Peterson 95777bb019 this needn't be a shebang line 2009-02-14 17:00:51 +00:00
Benjamin Peterson 76afd3b8d0 we're no longer using CVS, so this doesn't have to be binary 2009-02-14 16:51:03 +00:00
Tarek Ziadé 09d3d2ded6 Replace variable 2009-02-14 14:12:30 +00:00
Tarek Ziadé 1369900619 Fix for #5257: refactored all tests in distutils, so they use a temporary directory. 2009-02-14 14:10:23 +00:00
Raymond Hettinger a4038038c6 Add keyword argument support to itertools.count(). 2009-02-14 00:25:51 +00:00
Tarek Ziadé 544c3e19e6 fix the environ for distutils test_util 2009-02-13 23:41:57 +00:00
Tarek Ziadé 2432b0b367 Fixed #4524: distutils build_script command failed with --with-suffix=3 2009-02-13 23:00:43 +00:00
Tarek Ziadé 275958aacf Issue #2461: added tests for distutils.util 2009-02-13 22:22:03 +00:00
Tarek Ziadé 6f1d931495 reverted leak fix, to use the one done in py3k branch (r67382) 2009-02-13 16:13:16 +00:00
Georg Brandl 0638a08a4b #3694: add test for fix committed in r66693. 2009-02-13 11:03:59 +00:00
Gregory P. Smith ea38826ab2 - Issue #3745: Fix hashlib to always reject unicode and non buffer-api
supporting objects as input no matter how it was compiled (built in
  implementations or external openssl library).
(backported from a py3k branch)
2009-02-13 03:00:00 +00:00
Tarek Ziadé b516c126ef fixing the leak introduced in r69304 2009-02-12 20:56:21 +00:00
Raymond Hettinger dbe3bfbb30 One more test. 2009-02-12 12:43:01 +00:00
Raymond Hettinger aa04461260 Add an extra testcase. 2009-02-12 12:04:26 +00:00
Raymond Hettinger 31c769ca89 Issue 5032: added a step argument to itertools.count() and allowed non-integer arguments. 2009-02-12 05:39:46 +00:00
Benjamin Peterson 4bb96feb60 no need for this __bases__ trick anymore 2009-02-12 04:17:04 +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
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
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 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
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
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
Nick Coghlan 0194f5bc98 Issue #4512 closeout: Make ZipImport.get_filename() a public method 2009-02-08 03:17:00 +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 096c3ad41d make destinsrc private 2009-02-07 19:08:22 +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
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
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
Tarek Ziadé c5ed5ba585 Fixed #3987 : removed unused import 2009-02-06 08:20:15 +00:00