]> granicus.if.org Git - python/log
python
16 years ago#3986 replacing string and types call (like in the Py3k branch), and put exec_msg...
Tarek Ziadé [Sat, 7 Feb 2009 00:05:39 +0000 (00:05 +0000)]
#3986 replacing string and types call (like in the Py3k branch), and put exec_msg call at the right place

16 years agoIssue #1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that will
Guilherme Polo [Fri, 6 Feb 2009 22:48:07 +0000 (22:48 +0000)]
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.

16 years agoPartial fix to issue #1731706: memory leak in Tkapp_Call when calling
Guilherme Polo [Fri, 6 Feb 2009 22:26:22 +0000 (22:26 +0000)]
Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
from a thread different than the one that created the Tcl interpreter.

16 years agoConvert "srcdir" into an absolute path if that seems prudent. Currrently
Neil Schemenauer [Fri, 6 Feb 2009 21:33:45 +0000 (21:33 +0000)]
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.

16 years agoOverhaul Lib/compiler block ordering. The previous code was filled with
Neil Schemenauer [Fri, 6 Feb 2009 21:08:52 +0000 (21:08 +0000)]
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.

16 years agoFixed #5167: test_customize_compiler does not apply under non unix compilers
Tarek Ziadé [Fri, 6 Feb 2009 13:27:38 +0000 (13:27 +0000)]
Fixed #5167: test_customize_compiler does not apply under non unix compilers

16 years agoIvan on IRC in #twisted reported this crasher.
Armin Rigo [Fri, 6 Feb 2009 11:46:26 +0000 (11:46 +0000)]
Ivan on IRC in #twisted reported this crasher.

16 years agoFix a number of Win32ErrorTests error cases. chmod wasn't being tested. 'access...
Kristján Valur Jónsson [Fri, 6 Feb 2009 10:17:34 +0000 (10:17 +0000)]
Fix a number of Win32ErrorTests error cases.  chmod wasn't being tested.  'access' never raises an error.

16 years agoremoved types usage and added test coverage (work for #3986)
Tarek Ziadé [Fri, 6 Feb 2009 08:55:23 +0000 (08:55 +0000)]
removed types usage and added test coverage (work for #3986)

16 years agoFixed #3987 : removed unused import
Tarek Ziadé [Fri, 6 Feb 2009 08:20:15 +0000 (08:20 +0000)]
Fixed #3987 : removed unused import

16 years agofix download link
Benjamin Peterson [Fri, 6 Feb 2009 01:47:31 +0000 (01:47 +0000)]
fix download link

16 years agofixed #1520877: now distutils reads Read from the environment/Makefile
Tarek Ziadé [Fri, 6 Feb 2009 01:15:51 +0000 (01:15 +0000)]
fixed #1520877: now distutils reads Read  from the environment/Makefile

16 years agousing >= so setting verbose to 2 will work as well
Tarek Ziadé [Fri, 6 Feb 2009 00:49:45 +0000 (00:49 +0000)]
using >= so setting verbose to 2 will work as well

16 years agoImplement issue #4285, convert sys.version_info to a named
Eric Smith [Fri, 6 Feb 2009 00:48:26 +0000 (00:48 +0000)]
Implement issue #4285, convert sys.version_info to a named
tuple. Patch by Ross Light.

16 years agoREADME now reflects the current state
Tarek Ziadé [Fri, 6 Feb 2009 00:46:57 +0000 (00:46 +0000)]
README now reflects the current state

16 years agoFixed #1276768: verbose option was not used in the code.
Tarek Ziadé [Fri, 6 Feb 2009 00:31:59 +0000 (00:31 +0000)]
Fixed #1276768: verbose option was not used in the code.

16 years agoDistutils apparently requires an absolute path so provide one.
Neil Schemenauer [Fri, 6 Feb 2009 00:21:55 +0000 (00:21 +0000)]
Distutils apparently requires an absolute path so provide one.

16 years agoFixed #5132: enable extensions to link on Solaris
Tarek Ziadé [Thu, 5 Feb 2009 22:52:52 +0000 (22:52 +0000)]
Fixed #5132: enable extensions to link on Solaris

16 years agoOops, Mac build needs the 'incdirlist' variable so restore it.
Neil Schemenauer [Thu, 5 Feb 2009 22:14:04 +0000 (22:14 +0000)]
Oops, Mac build needs the 'incdirlist' variable so restore it.

16 years agoMake setup.py work when building in a directory other than the
Neil Schemenauer [Thu, 5 Feb 2009 16:32:29 +0000 (16:32 +0000)]
Make setup.py work when building in a directory other than the
source directory.  Mainly use 'srcdir' rather than os.getcwd() or
'.'.

16 years agoFix test_build_ext.py to work when building in a separate directory.
Neil Schemenauer [Thu, 5 Feb 2009 16:25:16 +0000 (16:25 +0000)]
Fix test_build_ext.py to work when building in a separate directory.
Since "srcdir" should now be defined on all platforms, use it to
find the module source.

16 years agoSince sysconfig.get_python_inc() now works when building in a
Neil Schemenauer [Thu, 5 Feb 2009 16:19:05 +0000 (16:19 +0000)]
Since sysconfig.get_python_inc() now works when building in a
directory other than the source directory, simplify the test code in
test_sysconfig.py.

16 years agoFix get_python_inc() to work when building in a directory separate from
Neil Schemenauer [Thu, 5 Feb 2009 16:14:39 +0000 (16:14 +0000)]
Fix get_python_inc() to work when building in a directory separate from
the source.  Also, define 'srcdir' on non-posix platforms.

16 years ago#5031: fix Thread.daemon property docs.
Georg Brandl [Thu, 5 Feb 2009 11:40:35 +0000 (11:40 +0000)]
#5031: fix Thread.daemon property docs.

16 years ago#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.
Georg Brandl [Thu, 5 Feb 2009 11:38:23 +0000 (11:38 +0000)]
#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.

16 years ago#4820: use correct module for ctypes.util.
Georg Brandl [Thu, 5 Feb 2009 11:35:28 +0000 (11:35 +0000)]
#4820: use correct module for ctypes.util.

16 years ago#4827: fix callback example.
Georg Brandl [Thu, 5 Feb 2009 11:33:21 +0000 (11:33 +0000)]
#4827: fix callback example.

16 years ago#5015: document PythonHome API functions.
Georg Brandl [Thu, 5 Feb 2009 11:32:18 +0000 (11:32 +0000)]
#5015: document PythonHome API functions.

16 years agoPyErr_PrintEx is also in 2.x...
Georg Brandl [Thu, 5 Feb 2009 11:23:47 +0000 (11:23 +0000)]
PyErr_PrintEx is also in 2.x...

16 years ago#5059: fix example.
Georg Brandl [Thu, 5 Feb 2009 10:59:28 +0000 (10:59 +0000)]
#5059: fix example.

16 years ago#5144: document that PySys_SetArgv prepends the script directory (or the empty string...
Georg Brandl [Thu, 5 Feb 2009 10:37:07 +0000 (10:37 +0000)]
#5144: document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path.

16 years ago#5153: fix typo in example.
Georg Brandl [Thu, 5 Feb 2009 10:30:57 +0000 (10:30 +0000)]
#5153: fix typo in example.

16 years agoFix comment for #1835
Tarek Ziadé [Thu, 5 Feb 2009 09:06:23 +0000 (09:06 +0000)]
Fix comment for #1835

16 years agoClarify that named tuples do not have to subclass tuple.
Raymond Hettinger [Wed, 4 Feb 2009 19:25:17 +0000 (19:25 +0000)]
Clarify that named tuples do not have to subclass tuple.

16 years agoTweak the docs for Counter() objects.
Raymond Hettinger [Wed, 4 Feb 2009 11:31:30 +0000 (11:31 +0000)]
Tweak the docs for Counter() objects.

16 years agoDoc fixes. Remove overbroad, redundant warnings. Fixup example code.
Raymond Hettinger [Wed, 4 Feb 2009 11:14:18 +0000 (11:14 +0000)]
Doc fixes. Remove overbroad, redundant warnings.  Fixup example code.

16 years agoMinor doc fixups.
Raymond Hettinger [Wed, 4 Feb 2009 10:52:32 +0000 (10:52 +0000)]
Minor doc fixups.

16 years agoissue 4804: Provide checks for the format string of strftime, and for the "mode...
Kristján Valur Jónsson [Wed, 4 Feb 2009 10:05:25 +0000 (10:05 +0000)]
issue 4804:  Provide checks for the format string of strftime, and for the "mode" string of fopen on Windows.  These strings are user provided from python and so we can avoid invoking the C runtime invalid parameter handler by first checking that they are valid.

16 years agoMake importlib backwards-compatible to Python 2.2 (but this is not promised to
Brett Cannon [Tue, 3 Feb 2009 21:13:05 +0000 (21:13 +0000)]
Make importlib backwards-compatible to Python 2.2 (but this is not promised to
last; just doing it to be nice).

Also fix a message for an exception.

16 years agoThis refactoring should make it easier to add new calling conventions.
Thomas Heller [Tue, 3 Feb 2009 17:07:40 +0000 (17:07 +0000)]
This refactoring should make it easier to add new calling conventions.

Replace ffi_call_STDCALL and ffi_call_SYSV by a ffi_call_x86 function
that cleans up the stack when FFI_SYSV is used, and does nothing for
FFI_STDCALL.

Remove libffi_msvc\win32.S, which is out of date and also unused; it
was only used for building ctypes with the MingW compiler.

16 years agoBackport importlib to at least Python 2.5 by getting rid of use of str.format.
Brett Cannon [Tue, 3 Feb 2009 05:08:22 +0000 (05:08 +0000)]
Backport importlib to at least Python 2.5 by getting rid of use of str.format.

16 years agoIgnore bytecode files in importlib.
Brett Cannon [Tue, 3 Feb 2009 04:59:58 +0000 (04:59 +0000)]
Ignore bytecode files in importlib.

16 years agoMake importlib a package. This allows using svn:externals in the sandbox to
Brett Cannon [Tue, 3 Feb 2009 04:58:29 +0000 (04:58 +0000)]
Make importlib a package. This allows using svn:externals in the sandbox to
package up the code for separate distribution.

16 years agoRegister decimals as numbers.Number
Raymond Hettinger [Tue, 3 Feb 2009 03:37:03 +0000 (03:37 +0000)]
Register decimals as numbers.Number

16 years agoRecord operator deprecations in docs.
Raymond Hettinger [Tue, 3 Feb 2009 03:18:14 +0000 (03:18 +0000)]
Record operator deprecations in docs.

16 years agoValidate that __length_hint__ returns a usable result.
Raymond Hettinger [Tue, 3 Feb 2009 02:23:19 +0000 (02:23 +0000)]
Validate that __length_hint__ returns a usable result.

16 years agoIssue 1242657: list(obj) can swallow KeyboardInterrupt.
Raymond Hettinger [Mon, 2 Feb 2009 21:50:13 +0000 (21:50 +0000)]
Issue 1242657: list(obj) can swallow KeyboardInterrupt.

16 years agoNEWS entry for issue #1581476
Guilherme Polo [Mon, 2 Feb 2009 21:14:14 +0000 (21:14 +0000)]
NEWS entry for issue #1581476

16 years agoFix for issue #1581476
Guilherme Polo [Mon, 2 Feb 2009 21:08:32 +0000 (21:08 +0000)]
Fix for issue #1581476

16 years agoMoving to importlib
Guilherme Polo [Mon, 2 Feb 2009 20:28:59 +0000 (20:28 +0000)]
Moving to importlib

16 years agoRestore the previous geometry before leaving the test
Guilherme Polo [Mon, 2 Feb 2009 20:23:29 +0000 (20:23 +0000)]
Restore the previous geometry before leaving the test

16 years agoIssue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.
Martin v. Löwis [Mon, 2 Feb 2009 14:23:16 +0000 (14:23 +0000)]
Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.

16 years agoSet native svn:eol-style property for text files.
Hirokazu Yamamoto [Mon, 2 Feb 2009 08:01:17 +0000 (08:01 +0000)]
Set native svn:eol-style property for text files.

16 years agoUse a single Tcl interpreter through all these tests, this may help some
Guilherme Polo [Mon, 2 Feb 2009 00:38:54 +0000 (00:38 +0000)]
Use a single Tcl interpreter through all these tests, this may help some
failing buildbots.

16 years agoRestore Tkinter.Tk._loadtk so this test doesn't fail for problems
Guilherme Polo [Sun, 1 Feb 2009 02:56:16 +0000 (02:56 +0000)]
Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.

16 years agowording for for issue4903.
Gregory P. Smith [Sun, 1 Feb 2009 00:24:21 +0000 (00:24 +0000)]
wording for for issue4903.

16 years agoUpdate doc wording as suggested in issue4903.
Gregory P. Smith [Sun, 1 Feb 2009 00:16:01 +0000 (00:16 +0000)]
Update doc wording as suggested in issue4903.

16 years agomore flags which only work for function blocks
Benjamin Peterson [Sat, 31 Jan 2009 23:54:38 +0000 (23:54 +0000)]
more flags which only work for function blocks

16 years agoadd explanatory comment
Benjamin Peterson [Sat, 31 Jan 2009 23:43:25 +0000 (23:43 +0000)]
add explanatory comment

16 years ago- Issue #5104: The socket module now raises OverflowError when 16-bit port and
Gregory P. Smith [Sat, 31 Jan 2009 22:57:30 +0000 (22:57 +0000)]
- Issue #5104: The socket module now raises OverflowError when 16-bit port and
  protocol numbers are supplied outside the allowed 0-65536 range on bind()
  and getservbyport().

16 years agomarkup fix
David Goodger [Sat, 31 Jan 2009 22:53:46 +0000 (22:53 +0000)]
markup fix

16 years agofix indentation in comment
Benjamin Peterson [Sat, 31 Jan 2009 22:33:02 +0000 (22:33 +0000)]
fix indentation in comment

16 years agofix indentation; looks like all I managed to do the first time is make things uglier
Benjamin Peterson [Sat, 31 Jan 2009 22:03:19 +0000 (22:03 +0000)]
fix indentation; looks like all I managed to do the first time is make things uglier

16 years agofix indentation
Benjamin Peterson [Sat, 31 Jan 2009 21:47:42 +0000 (21:47 +0000)]
fix indentation

16 years agoI believe the intention here was to avoid a global lookup
Benjamin Peterson [Sat, 31 Jan 2009 21:00:10 +0000 (21:00 +0000)]
I believe the intention here was to avoid a global lookup

16 years agofix indentation
Benjamin Peterson [Sat, 31 Jan 2009 20:01:48 +0000 (20:01 +0000)]
fix indentation

16 years agoPyErr_BadInternalCall() raises a SystemError, not TypeError #5112
Benjamin Peterson [Sat, 31 Jan 2009 16:52:03 +0000 (16:52 +0000)]
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112

16 years agoAdd an extra test for long <-> float hash equivalence.
Mark Dickinson [Sat, 31 Jan 2009 16:44:04 +0000 (16:44 +0000)]
Add an extra test for long <-> float hash equivalence.

16 years agocompletely detabify unicodeobject.c
Benjamin Peterson [Sat, 31 Jan 2009 16:29:18 +0000 (16:29 +0000)]
completely detabify unicodeobject.c

16 years agoText edits and markup fixes
Andrew M. Kuchling [Sat, 31 Jan 2009 03:26:02 +0000 (03:26 +0000)]
Text edits and markup fixes

16 years agoAdd a section
Andrew M. Kuchling [Sat, 31 Jan 2009 02:50:09 +0000 (02:50 +0000)]
Add a section

16 years agocheck the errno in bad fd cases
Benjamin Peterson [Sat, 31 Jan 2009 01:42:55 +0000 (01:42 +0000)]
check the errno in bad fd cases

16 years agomake _tkinter._flatten check the result of PySequence_Size for errors #3880
Benjamin Peterson [Fri, 30 Jan 2009 02:24:39 +0000 (02:24 +0000)]
make _tkinter._flatten check the result of PySequence_Size for errors #3880

16 years agopep8tify conditionals
Benjamin Peterson [Fri, 30 Jan 2009 02:02:25 +0000 (02:02 +0000)]
pep8tify conditionals

16 years agofixed test_make_distribution so it runs on any platform, as long as tar an gzip are...
Tarek Ziadé [Thu, 29 Jan 2009 23:49:17 +0000 (23:49 +0000)]
fixed test_make_distribution so it runs on any platform, as long as tar an gzip are available

16 years agoIssue #2047: shutil.move() could believe that its destination path was
Antoine Pitrou [Thu, 29 Jan 2009 20:19:34 +0000 (20:19 +0000)]
Issue #2047: shutil.move() could believe that its destination path was
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").

16 years agoFix issue5075: bdist_wininst should not depend on the vc runtime?
Mark Hammond [Thu, 29 Jan 2009 12:13:31 +0000 (12:13 +0000)]
Fix issue5075: bdist_wininst should not depend on the vc runtime?

16 years agoFix typo.
Raymond Hettinger [Thu, 29 Jan 2009 03:43:44 +0000 (03:43 +0000)]
Fix typo.

16 years agoUpdate itertools.__doc__ to include all tools.
Raymond Hettinger [Thu, 29 Jan 2009 03:21:42 +0000 (03:21 +0000)]
Update itertools.__doc__ to include all tools.

16 years agofix download url
Benjamin Peterson [Thu, 29 Jan 2009 03:03:00 +0000 (03:03 +0000)]
fix download url

16 years agoIgnore .pyc and .pyo files.
Brett Cannon [Thu, 29 Jan 2009 00:55:33 +0000 (00:55 +0000)]
Ignore .pyc and .pyo files.

16 years agoMinor spelling mistake in datetime docs.
Brett Cannon [Thu, 29 Jan 2009 00:54:32 +0000 (00:54 +0000)]
Minor spelling mistake in datetime docs.

16 years agoClarify some __del__ stuff.
Brett Cannon [Thu, 29 Jan 2009 00:54:11 +0000 (00:54 +0000)]
Clarify some __del__ stuff.

16 years agoCorrect docs for ABCs (MutableSequence was missing __setiem). Simplify the table...
Raymond Hettinger [Wed, 28 Jan 2009 23:58:16 +0000 (23:58 +0000)]
Correct docs for ABCs (MutableSequence was missing __setiem).  Simplify the table by taking out inherited requirements for abstract methods.

16 years agoIssue 4920: Fixed next() vs __next__() issues in the ABCs
Raymond Hettinger [Wed, 28 Jan 2009 23:02:26 +0000 (23:02 +0000)]
Issue 4920:  Fixed next() vs __next__() issues in the ABCs
for Iterator and MutableSet.  Also added thorough test for
required abstractmethods.

16 years agoIssue #5083: New 'gui' resource for regrtest.
Guilherme Polo [Wed, 28 Jan 2009 20:03:26 +0000 (20:03 +0000)]
Issue #5083: New 'gui' resource for regrtest.

16 years agoMake sure the root windows gets destroyed
Guilherme Polo [Wed, 28 Jan 2009 20:02:01 +0000 (20:02 +0000)]
Make sure the root windows gets destroyed

16 years ago* Renaming test_tk_* to test_ttk_* since that is what they are testing.
Guilherme Polo [Wed, 28 Jan 2009 19:28:04 +0000 (19:28 +0000)]
* Renaming test_tk_* to test_ttk_* since that is what they are testing.
* Added ttk tests to the expected skips mapping just like where test_tcl
was expected to be skipped too.

16 years agoAdded support for collecting tests only from specific packages.
Guilherme Polo [Wed, 28 Jan 2009 19:23:28 +0000 (19:23 +0000)]
Added support for collecting tests only from specific packages.

16 years agoDemos for ttk added.
Guilherme Polo [Wed, 28 Jan 2009 15:56:01 +0000 (15:56 +0000)]
Demos for ttk added.

16 years agoAdded the ttk module. See issue #2983: Ttk support for Tkinter.
Guilherme Polo [Wed, 28 Jan 2009 13:09:03 +0000 (13:09 +0000)]
Added the ttk module. See issue #2983: Ttk support for Tkinter.

16 years agouse True and False
Benjamin Peterson [Tue, 27 Jan 2009 23:15:48 +0000 (23:15 +0000)]
use True and False

16 years agoOn Windows, use the Python 'Activation Context' when loading extensions
Mark Hammond [Tue, 27 Jan 2009 23:12:23 +0000 (23:12 +0000)]
On Windows, use the Python 'Activation Context' when loading extensions
to avoid problems loading the CRT from a private assembly.  Via bug 4566.

16 years agoAdd more tests for the powerset() recipe.
Raymond Hettinger [Tue, 27 Jan 2009 13:26:35 +0000 (13:26 +0000)]
Add more tests for the powerset() recipe.

16 years agoMore exhaustive combinatoric checks.
Raymond Hettinger [Tue, 27 Jan 2009 10:36:14 +0000 (10:36 +0000)]
More exhaustive combinatoric checks.

16 years agoIssue 5021: doctest.testfile should set __name__
Raymond Hettinger [Tue, 27 Jan 2009 10:03:04 +0000 (10:03 +0000)]
Issue 5021: doctest.testfile should set __name__

16 years agoStronger tests for combinatoric relationships.
Raymond Hettinger [Tue, 27 Jan 2009 09:52:35 +0000 (09:52 +0000)]
Stronger tests for combinatoric relationships.

16 years agoAdd tests to verify combinatoric relationships.
Raymond Hettinger [Tue, 27 Jan 2009 09:33:06 +0000 (09:33 +0000)]
Add tests to verify combinatoric relationships.

16 years agoexcellent place to use a set() #5069
Benjamin Peterson [Tue, 27 Jan 2009 03:07:53 +0000 (03:07 +0000)]
excellent place to use a set() #5069

16 years agoPromote combinations_with_replacement() from a recipe to a regular itertool.
Raymond Hettinger [Tue, 27 Jan 2009 02:58:49 +0000 (02:58 +0000)]
Promote combinations_with_replacement() from a recipe to a regular itertool.