]> granicus.if.org Git - python/log
python
16 years agoUpdate Tix build procedure.
Martin v. Löwis [Fri, 13 Feb 2009 20:26:16 +0000 (20:26 +0000)]
Update Tix build procedure.

16 years agoMove amd64 properties further to the top, so that they override
Martin v. Löwis [Fri, 13 Feb 2009 20:11:34 +0000 (20:11 +0000)]
Move amd64 properties further to the top, so that they override
the linker options correctly.

16 years agoreverted leak fix, to use the one done in py3k branch (r67382)
Tarek Ziadé [Fri, 13 Feb 2009 16:13:16 +0000 (16:13 +0000)]
reverted leak fix, to use the one done in py3k branch (r67382)

16 years agoFix compiler warning (gcc)
Antoine Pitrou [Fri, 13 Feb 2009 13:57:40 +0000 (13:57 +0000)]
Fix compiler warning (gcc)

16 years agoIssue #5186: Reduce hash collisions for objects with no __hash__ method by
Antoine Pitrou [Fri, 13 Feb 2009 13:52:33 +0000 (13:52 +0000)]
Issue #5186: Reduce hash collisions for objects with no __hash__ method by
rotating the object pointer by 4 bits to the right.

16 years agoFix warnings GCC emits where the argument of PyErr_Format is a single variable.
Georg Brandl [Fri, 13 Feb 2009 11:10:04 +0000 (11:10 +0000)]
Fix warnings GCC emits where the argument of PyErr_Format is a single variable.

16 years agoFix warnings GCC emits where the argument of PyErr_Format is a single variable.
Georg Brandl [Fri, 13 Feb 2009 11:06:59 +0000 (11:06 +0000)]
Fix warnings GCC emits where the argument of PyErr_Format is a single variable.

16 years ago#3694: add test for fix committed in r66693.
Georg Brandl [Fri, 13 Feb 2009 11:03:59 +0000 (11:03 +0000)]
#3694: add test for fix committed in r66693.

16 years ago#1661108: note that urlsafe encoded string can contain "=".
Georg Brandl [Fri, 13 Feb 2009 10:56:50 +0000 (10:56 +0000)]
#1661108: note that urlsafe encoded string can contain "=".

16 years ago#3734: document complex coercing behavior better.
Georg Brandl [Fri, 13 Feb 2009 10:44:17 +0000 (10:44 +0000)]
#3734: document complex coercing behavior better.

16 years ago#4894: document "newurl" parameter to redirect_request().
Georg Brandl [Fri, 13 Feb 2009 10:40:14 +0000 (10:40 +0000)]
#4894: document "newurl" parameter to redirect_request().

16 years ago#5158: added documentation on the depends option in distutils extensions
Tarek Ziadé [Fri, 13 Feb 2009 09:12:33 +0000 (09:12 +0000)]
#5158: added documentation on the depends option in distutils extensions

16 years agoAdd links to the other versions we have in stock.
Georg Brandl [Fri, 13 Feb 2009 09:08:34 +0000 (09:08 +0000)]
Add links to the other versions we have in stock.

16 years ago- Issue #3745: Fix hashlib to always reject unicode and non buffer-api
Gregory P. Smith [Fri, 13 Feb 2009 03:00:00 +0000 (03:00 +0000)]
- 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)

16 years agofixing the leak introduced in r69304
Tarek Ziadé [Thu, 12 Feb 2009 20:56:21 +0000 (20:56 +0000)]
fixing the leak introduced in r69304

16 years agoTypo fix.
Mark Dickinson [Thu, 12 Feb 2009 17:55:42 +0000 (17:55 +0000)]
Typo fix.

16 years agoOne more test.
Raymond Hettinger [Thu, 12 Feb 2009 12:43:01 +0000 (12:43 +0000)]
One more test.

16 years agoAdd an extra testcase.
Raymond Hettinger [Thu, 12 Feb 2009 12:04:26 +0000 (12:04 +0000)]
Add an extra testcase.

16 years agoFix spaces/tabs in example.
Raymond Hettinger [Thu, 12 Feb 2009 10:16:19 +0000 (10:16 +0000)]
Fix spaces/tabs in example.

16 years agoIssue 5032: added a step argument to itertools.count() and allowed non-integer argum...
Raymond Hettinger [Thu, 12 Feb 2009 05:39:46 +0000 (05:39 +0000)]
Issue 5032:  added a step argument to itertools.count() and allowed non-integer arguments.

16 years agono need for this __bases__ trick anymore
Benjamin Peterson [Thu, 12 Feb 2009 04:17:04 +0000 (04:17 +0000)]
no need for this __bases__ trick anymore

16 years agoos.fsync() should be used to ensure that data is written to disk
Benjamin Peterson [Thu, 12 Feb 2009 03:50:00 +0000 (03:50 +0000)]
os.fsync() should be used to ensure that data is written to disk

16 years agoIssue #1008086: Fixes socket.inet_aton() to always return 4 bytes even
Gregory P. Smith [Wed, 11 Feb 2009 23:45:25 +0000 (23:45 +0000)]
Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes even
on LP64 platforms (most 64-bit Linux, bsd, unix systems).

16 years agoIssue #5204: Define _PyVerify_fd on VC6 to make
Hirokazu Yamamoto [Wed, 11 Feb 2009 04:13:06 +0000 (04:13 +0000)]
Issue #5204: Define _PyVerify_fd on VC6 to make
test_fdopen (test_os.py) pass.

16 years agoClean-up named tuple docs.
Raymond Hettinger [Wed, 11 Feb 2009 00:06:17 +0000 (00:06 +0000)]
Clean-up named tuple docs.

16 years agoIssue#5203: ctypes segfaults when passing a unicode string to a
Thomas Heller [Tue, 10 Feb 2009 18:43:01 +0000 (18:43 +0000)]
Issue#5203: ctypes segfaults when passing a unicode string to a
function without argtypes, if HAVE_USABLE_WCHAR_T is false.

16 years ago_testcapi depends on testcapi_long.h
Mark Dickinson [Tue, 10 Feb 2009 16:17:16 +0000 (16:17 +0000)]
_testcapi depends on testcapi_long.h

Thanks Lisandro Dalcin.

16 years agoIssue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for
Mark Dickinson [Tue, 10 Feb 2009 15:46:50 +0000 (15:46 +0000)]
Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for
negative arguments.  Previously, it raised TypeError.

Thanks Lisandro Dalcin.

16 years agoIssue 4804. Add a function to test the validity of file descriptors on Windows,...
Kristján Valur Jónsson [Tue, 10 Feb 2009 13:32:24 +0000 (13:32 +0000)]
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.

16 years agoFixed svn:eol-style.
Hirokazu Yamamoto [Tue, 10 Feb 2009 13:31:28 +0000 (13:31 +0000)]
Fixed svn:eol-style.

16 years agoSet eol-style to native
Martin v. Löwis [Tue, 10 Feb 2009 13:12:12 +0000 (13:12 +0000)]
Set eol-style to native

16 years agoIssue #5134: Silence compiler warnings when compiling sqlite with VC++.
Martin v. Löwis [Tue, 10 Feb 2009 13:09:19 +0000 (13:09 +0000)]
Issue #5134: Silence compiler warnings when compiling sqlite with VC++.

16 years agoFixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils...
Tarek Ziadé [Tue, 10 Feb 2009 12:31:09 +0000 (12:31 +0000)]
Fixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib

16 years agocompileall used the ctime of bytecode and source to determine if the bytecode
Brett Cannon [Tue, 10 Feb 2009 02:07:38 +0000 (02:07 +0000)]
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.

16 years agoIssue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames.
Raymond Hettinger [Tue, 10 Feb 2009 01:24:05 +0000 (01:24 +0000)]
Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames.

16 years agoEnforcing Tk 8.3.1 requirement.
Guilherme Polo [Mon, 9 Feb 2009 20:57:45 +0000 (20:57 +0000)]
Enforcing Tk 8.3.1 requirement.

16 years agoFixed issue #5122: Synchronize tk load failure check to prevent a
Guilherme Polo [Mon, 9 Feb 2009 20:50:27 +0000 (20:50 +0000)]
Fixed issue #5122: Synchronize tk load failure check to prevent a
potential deadlock.

16 years agoChecking for tk availability before continuing (basically the same that is done in...
Guilherme Polo [Mon, 9 Feb 2009 19:57:04 +0000 (19:57 +0000)]
Checking for tk availability before continuing (basically the same that is done in test_ttk_guionly)

16 years agoSome tests for Tkinter.Text.search
Guilherme Polo [Mon, 9 Feb 2009 19:21:21 +0000 (19:21 +0000)]
Some tests for Tkinter.Text.search

16 years agoIssue 5171: itertools.product docstring missing 'repeat' argument
Raymond Hettinger [Mon, 9 Feb 2009 18:39:41 +0000 (18:39 +0000)]
Issue 5171: itertools.product docstring missing 'repeat' argument

16 years agoFixed issue #4890: Handle empty text search pattern in
Guilherme Polo [Mon, 9 Feb 2009 16:41:09 +0000 (16:41 +0000)]
Fixed issue #4890: Handle empty text search pattern in
Tkinter.Text.search

16 years agoTurned setup_master public
Guilherme Polo [Mon, 9 Feb 2009 16:09:17 +0000 (16:09 +0000)]
Turned setup_master public

16 years agoIssue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.
Mark Dickinson [Mon, 9 Feb 2009 14:18:43 +0000 (14:18 +0000)]
Issue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.
It now forces its argument to double before testing for infinity.

16 years agoIssue #5170: Fixed Unicode output bug in logging and added test case. This is a regre...
Vinay Sajip [Sun, 8 Feb 2009 19:06:08 +0000 (19:06 +0000)]
Issue #5170: Fixed Unicode output bug in logging and added test case. This is a regression which did not occur in 2.5.

16 years agoSilence 'arg may be used uninitialized in this function' warning from gcc.
Mark Dickinson [Sun, 8 Feb 2009 17:33:11 +0000 (17:33 +0000)]
Silence 'arg may be used uninitialized in this function' warning from gcc.

16 years agoa few edits and typos
Benjamin Peterson [Sun, 8 Feb 2009 15:14:57 +0000 (15:14 +0000)]
a few edits and typos

16 years agoIssue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit
Mark Dickinson [Sun, 8 Feb 2009 14:42:28 +0000 (14:42 +0000)]
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.

16 years agodocument numliterals fixer
Benjamin Peterson [Sun, 8 Feb 2009 14:38:13 +0000 (14:38 +0000)]
document numliterals fixer

16 years agoRemove redundant assignment in _PyObject_LengthHint
Mark Dickinson [Sun, 8 Feb 2009 13:58:10 +0000 (13:58 +0000)]
Remove redundant assignment in _PyObject_LengthHint

16 years agoIssue #4512 closeout: Make ZipImport.get_filename() a public method
Nick Coghlan [Sun, 8 Feb 2009 03:17:00 +0000 (03:17 +0000)]
Issue #4512 closeout: Make ZipImport.get_filename() a public method

16 years agoMention patch submitter in NEWS entry for r69419
Nick Coghlan [Sun, 8 Feb 2009 01:46:01 +0000 (01:46 +0000)]
Mention patch submitter in NEWS entry for r69419

16 years agoIssue 4195: Restore the ability to execute packages with the -m switch (but this...
Nick Coghlan [Sun, 8 Feb 2009 01:26:34 +0000 (01:26 +0000)]
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)

16 years agodocument individual 2to3 fixers
Benjamin Peterson [Sat, 7 Feb 2009 23:01:19 +0000 (23:01 +0000)]
document individual 2to3 fixers

16 years agomake destinsrc private
Benjamin Peterson [Sat, 7 Feb 2009 19:08:22 +0000 (19:08 +0000)]
make destinsrc private

16 years agomake "super only for new-style classes" a note.
Georg Brandl [Sat, 7 Feb 2009 18:49:54 +0000 (18:49 +0000)]
make "super only for new-style classes" a note.

16 years agoAdd test for issue #999042, explict global statement works.
Neil Schemenauer [Sat, 7 Feb 2009 18:35:16 +0000 (18:35 +0000)]
Add test for issue #999042, explict global statement works.

16 years agoFix broken test in test_hotshot. Treating the current directory as an
Neil Schemenauer [Sat, 7 Feb 2009 14:53:31 +0000 (14:53 +0000)]
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.

16 years ago#5174: fix wrong file closing in example.
Georg Brandl [Sat, 7 Feb 2009 12:21:17 +0000 (12:21 +0000)]
#5174: fix wrong file closing in example.

16 years agoEliminated the need to use ttk.__loadtk__ and the problems related it.
Guilherme Polo [Sat, 7 Feb 2009 02:20:29 +0000 (02:20 +0000)]
Eliminated the need to use ttk.__loadtk__ and the problems related it.

16 years agoIssue #999042: The Python compiler now handles explict global statements
Neil Schemenauer [Sat, 7 Feb 2009 00:54:41 +0000 (00:54 +0000)]
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.

16 years agoMake names generated for 'with' variables match the built-in compiler.
Neil Schemenauer [Sat, 7 Feb 2009 00:13:39 +0000 (00:13 +0000)]
Make names generated for 'with' variables match the built-in compiler.

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.