]> granicus.if.org Git - python/log
python
16 years ago#4048 make the parser module accept relative imports as valid
Benjamin Peterson [Mon, 3 Nov 2008 15:14:51 +0000 (15:14 +0000)]
#4048 make the parser module accept relative imports as valid

16 years agorephrase has_key doc
Benjamin Peterson [Fri, 31 Oct 2008 20:41:44 +0000 (20:41 +0000)]
rephrase has_key doc

16 years agomake sure the parser flags and passed onto the compiler
Benjamin Peterson [Fri, 31 Oct 2008 02:16:05 +0000 (02:16 +0000)]
make sure the parser flags and passed onto the compiler

This fixes "from __future__ import unicode_literals" in an exec statment
See #4225

16 years agomove unprefixed error into .c file
Benjamin Peterson [Thu, 30 Oct 2008 23:59:18 +0000 (23:59 +0000)]
move unprefixed error into .c file

16 years agofinish backporting binary literals and new octal literals docs
Benjamin Peterson [Thu, 30 Oct 2008 22:44:18 +0000 (22:44 +0000)]
finish backporting binary literals and new octal literals docs

16 years agobackport bin() documentation
Benjamin Peterson [Thu, 30 Oct 2008 22:39:25 +0000 (22:39 +0000)]
backport bin() documentation

16 years agoIssue #4237: io.FileIO() was raising invalid warnings caused by insufficient initiali...
Christian Heimes [Thu, 30 Oct 2008 21:26:15 +0000 (21:26 +0000)]
Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.

16 years agoIssue #4176: Pickle would crash the interpreter when a __reduce__ function
Amaury Forgeot d'Arc [Thu, 30 Oct 2008 21:18:34 +0000 (21:18 +0000)]
Issue #4176: Pickle would crash the interpreter when a __reduce__ function
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)

A list is not an iterator...

Will backport to 2.6 and 2.5.

16 years agoFixed a modulefinder crash on certain relative imports.
Thomas Heller [Thu, 30 Oct 2008 20:18:13 +0000 (20:18 +0000)]
Fixed a modulefinder crash on certain relative imports.

16 years agoCorrect error message in io.open():
Amaury Forgeot d'Arc [Wed, 29 Oct 2008 23:15:57 +0000 (23:15 +0000)]
Correct error message in io.open():
closefd=True is the only accepted value with a file name.

16 years agomention the version gettempdir() was added
Benjamin Peterson [Wed, 29 Oct 2008 20:33:00 +0000 (20:33 +0000)]
mention the version gettempdir() was added

16 years agoFix one of the tests: it relied on being present in an "output test" in
Armin Rigo [Tue, 28 Oct 2008 17:01:21 +0000 (17:01 +0000)]
Fix one of the tests: it relied on being present in an "output test" in
order to actually test what it was supposed to test, i.e. that the code
in the __del__ method did not crash.  Use instead the new helper
test_support.captured_output().

16 years agoadd forgotten test for r67030
Benjamin Peterson [Sun, 26 Oct 2008 20:33:19 +0000 (20:33 +0000)]
add forgotten test for r67030

16 years agofix __future__ imports when multiple features are given
Benjamin Peterson [Sun, 26 Oct 2008 20:21:13 +0000 (20:21 +0000)]
fix __future__ imports when multiple features are given

16 years agodon't use a catch-all
Benjamin Peterson [Sat, 25 Oct 2008 23:27:07 +0000 (23:27 +0000)]
don't use a catch-all

16 years agoTypo fix.
Georg Brandl [Sat, 25 Oct 2008 07:00:52 +0000 (07:00 +0000)]
Typo fix.

16 years agogive a py3k warning when 'nonlocal' is used as a variable name
Benjamin Peterson [Sat, 25 Oct 2008 02:53:28 +0000 (02:53 +0000)]
give a py3k warning when 'nonlocal' is used as a variable name

16 years agoonly nonempty __slots__ don't work
Benjamin Peterson [Thu, 23 Oct 2008 21:43:48 +0000 (21:43 +0000)]
only nonempty __slots__ don't work

16 years agoUse the correct names of the stateless codec functions (Fixes issue 4178).
Walter Dörwald [Thu, 23 Oct 2008 13:11:39 +0000 (13:11 +0000)]
Use the correct names of the stateless codec functions (Fixes issue 4178).

16 years agoIssue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
Hirokazu Yamamoto [Thu, 23 Oct 2008 00:37:33 +0000 (00:37 +0000)]
Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.

16 years agofix #4150: pdb's up command didn't work for generators in post-mortem
Benjamin Peterson [Wed, 22 Oct 2008 21:16:34 +0000 (21:16 +0000)]
fix #4150: pdb's up command didn't work for generators in post-mortem

16 years agoand another typo...
Benjamin Peterson [Wed, 22 Oct 2008 21:05:30 +0000 (21:05 +0000)]
and another typo...

16 years agofix a few typos
Benjamin Peterson [Wed, 22 Oct 2008 20:57:43 +0000 (20:57 +0000)]
fix a few typos

16 years agoadd NEWs note for last change
Benjamin Peterson [Tue, 21 Oct 2008 22:20:31 +0000 (22:20 +0000)]
add NEWs note for last change

16 years agoreturn ArgInfo from inspect.getargvalues #4092
Benjamin Peterson [Tue, 21 Oct 2008 22:18:29 +0000 (22:18 +0000)]
return ArgInfo from inspect.getargvalues #4092

16 years ago#4157 move two test functions out of platform.py.
Amaury Forgeot d'Arc [Tue, 21 Oct 2008 22:01:38 +0000 (22:01 +0000)]
#4157 move two test functions out of platform.py.

Turn them into unit tests, and correct an obvious typo:
    (("a", "b") ("c", "d") ("e", "f"))
compiles even with the missing commas, but does not execute very well...

16 years agomake sure to call iteritems()
Benjamin Peterson [Tue, 21 Oct 2008 20:51:13 +0000 (20:51 +0000)]
make sure to call iteritems()

16 years ago- install versioned manpage
Matthias Klose [Tue, 21 Oct 2008 09:12:25 +0000 (09:12 +0000)]
- install versioned manpage

16 years agoFixed #4062, added import for _ast.__version__ to ast to match the documented behavior.
Armin Ronacher [Mon, 20 Oct 2008 21:29:08 +0000 (21:29 +0000)]
Fixed #4062, added import for _ast.__version__ to ast to match the documented behavior.

16 years agomention -n
Benjamin Peterson [Sun, 19 Oct 2008 19:39:16 +0000 (19:39 +0000)]
mention -n

16 years agofix compiler warning
Benjamin Peterson [Sun, 19 Oct 2008 13:59:01 +0000 (13:59 +0000)]
fix compiler warning

16 years agoFixed #4067 by implementing _attributes and _fields for the AST root node.
Armin Ronacher [Sun, 19 Oct 2008 08:27:43 +0000 (08:27 +0000)]
Fixed #4067 by implementing _attributes and _fields for the AST root node.

16 years agoFix duplicate word.
Georg Brandl [Fri, 17 Oct 2008 21:41:49 +0000 (21:41 +0000)]
Fix duplicate word.

16 years agoclarify CALL_FUNCTION #4141
Benjamin Peterson [Fri, 17 Oct 2008 20:01:01 +0000 (20:01 +0000)]
clarify CALL_FUNCTION #4141

16 years agoIssue #4091: Install pythonxy.dll in system32 again.
Martin v. Löwis [Fri, 17 Oct 2008 13:43:01 +0000 (13:43 +0000)]
Issue #4091: Install pythonxy.dll in system32 again.

16 years agofix more possible ref leaks in _json and use Py_CLEAR
Benjamin Peterson [Thu, 16 Oct 2008 21:48:06 +0000 (21:48 +0000)]
fix more possible ref leaks in _json and use Py_CLEAR

16 years ago#4083: add "as" to except handler grammar as per PEP 3110.
Georg Brandl [Thu, 16 Oct 2008 21:38:48 +0000 (21:38 +0000)]
#4083: add "as" to except handler grammar as per PEP 3110.

16 years agopart of #4012: kill off old name "processing".
Georg Brandl [Thu, 16 Oct 2008 21:36:39 +0000 (21:36 +0000)]
part of #4012: kill off old name "processing".

16 years agofix possible ref leak
Benjamin Peterson [Thu, 16 Oct 2008 21:27:54 +0000 (21:27 +0000)]
fix possible ref leak

16 years ago#4131: FF3 doesn't write cookies.txt files.
Georg Brandl [Thu, 16 Oct 2008 21:20:15 +0000 (21:20 +0000)]
#4131: FF3 doesn't write cookies.txt files.

16 years agocheck for error conditions in _json #3623
Benjamin Peterson [Thu, 16 Oct 2008 21:09:28 +0000 (21:09 +0000)]
check for error conditions in _json #3623

16 years agoAdd more TOC to the whatsnew index page.
Georg Brandl [Thu, 16 Oct 2008 20:20:56 +0000 (20:20 +0000)]
Add more TOC to the whatsnew index page.

16 years agoFix wording (2.6.1 backport candidate)
Andrew M. Kuchling [Thu, 16 Oct 2008 20:15:47 +0000 (20:15 +0000)]
Fix wording (2.6.1 backport candidate)

16 years agouse new showwarnings signature for idle #3391
Benjamin Peterson [Thu, 16 Oct 2008 19:40:14 +0000 (19:40 +0000)]
use new showwarnings signature for idle #3391

16 years agodocument that deque indexing is O(n) #4123
Benjamin Peterson [Thu, 16 Oct 2008 18:52:14 +0000 (18:52 +0000)]
document that deque indexing is O(n) #4123

16 years agoremoved unused _PyUnicode_FromFileSystemEncodedObject.
Hirokazu Yamamoto [Thu, 16 Oct 2008 06:25:25 +0000 (06:25 +0000)]
removed unused _PyUnicode_FromFileSystemEncodedObject.
made win32_chdir, win32_wchdir static.

16 years agoMerged revisions 66805,66841,66860,66884-66886,66893,66907,66910 via svnmerge from
Benjamin Peterson [Wed, 15 Oct 2008 23:10:28 +0000 (23:10 +0000)]
Merged revisions 66805,66841,66860,66884-66886,66893,66907,66910 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r66805 | benjamin.peterson | 2008-10-04 20:11:02 -0500 (Sat, 04 Oct 2008) | 1 line

  mention what the fixes directory is for
........
  r66841 | benjamin.peterson | 2008-10-07 17:48:12 -0500 (Tue, 07 Oct 2008) | 1 line

  use assertFalse and assertTrue
........
  r66860 | benjamin.peterson | 2008-10-08 16:05:07 -0500 (Wed, 08 Oct 2008) | 1 line

  instead of abusing the pattern matcher, use start_tree to find a next binding
........
  r66884 | benjamin.peterson | 2008-10-13 15:50:30 -0500 (Mon, 13 Oct 2008) | 1 line

  don't print tokens to stdout when -v is given
........
  r66885 | benjamin.peterson | 2008-10-13 16:28:57 -0500 (Mon, 13 Oct 2008) | 1 line

  add the -x option to disable fixers
........
  r66886 | benjamin.peterson | 2008-10-13 16:33:53 -0500 (Mon, 13 Oct 2008) | 1 line

  cut down on some crud
........
  r66893 | benjamin.peterson | 2008-10-14 17:16:54 -0500 (Tue, 14 Oct 2008) | 1 line

  add an optional set literal fixer
........
  r66907 | benjamin.peterson | 2008-10-15 16:59:41 -0500 (Wed, 15 Oct 2008) | 1 line

  don't write backup files by default
........
  r66910 | benjamin.peterson | 2008-10-15 17:43:10 -0500 (Wed, 15 Oct 2008) | 1 line

  add the -n option; it stops backupfiles from being written
........

16 years agoadd a much requested newline
Benjamin Peterson [Wed, 15 Oct 2008 21:58:46 +0000 (21:58 +0000)]
add a much requested newline

16 years agosupport the optional line argument for idle
Benjamin Peterson [Wed, 15 Oct 2008 21:05:55 +0000 (21:05 +0000)]
support the optional line argument for idle

16 years agodon't recurse into directories that start with '.'
Benjamin Peterson [Wed, 15 Oct 2008 20:34:09 +0000 (20:34 +0000)]
don't recurse into directories that start with '.'

16 years agoeaster egg
Skip Montanaro [Wed, 15 Oct 2008 11:49:10 +0000 (11:49 +0000)]
easter egg

16 years agoremove set compat cruft
Benjamin Peterson [Tue, 14 Oct 2008 22:37:18 +0000 (22:37 +0000)]
remove set compat cruft

16 years ago#4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
Amaury Forgeot d'Arc [Tue, 14 Oct 2008 21:47:22 +0000 (21:47 +0000)]
#4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
compilation fails with "undefined reference to _Py_ascii_whitespace"

Will backport to 2.6.

16 years agodocument how to disable fixers
Benjamin Peterson [Mon, 13 Oct 2008 21:51:40 +0000 (21:51 +0000)]
document how to disable fixers

16 years agoIssue #4018: Disable "for me" installations on Vista.
Martin v. Löwis [Mon, 13 Oct 2008 11:23:35 +0000 (11:23 +0000)]
Issue #4018: Disable "for me" installations on Vista.

16 years agogive poplib a real test suite
Benjamin Peterson [Sat, 11 Oct 2008 17:25:36 +0000 (17:25 +0000)]
give poplib a real test suite

#4088 from Giampaolo Rodola'x

16 years agoPyGILState_Acquire -> PyGILState_Ensure
Benjamin Peterson [Fri, 10 Oct 2008 22:23:41 +0000 (22:23 +0000)]
PyGILState_Acquire -> PyGILState_Ensure

16 years agotalk about how you can unzip with zip
Benjamin Peterson [Fri, 10 Oct 2008 20:51:37 +0000 (20:51 +0000)]
talk about how you can unzip with zip

16 years agofix a small typo
Benjamin Peterson [Fri, 10 Oct 2008 20:38:49 +0000 (20:38 +0000)]
fix a small typo

16 years agoTypo: "ThreadError" is the name in the C source.
Armin Rigo [Fri, 10 Oct 2008 08:40:44 +0000 (08:40 +0000)]
Typo: "ThreadError" is the name in the C source.

16 years ago- Makefile.pre.in(PROFILE_TASK): search files in srcdir
Matthias Klose [Fri, 10 Oct 2008 07:24:20 +0000 (07:24 +0000)]
- Makefile.pre.in(PROFILE_TASK): search files in srcdir

16 years agoupdate paragraph about __future__ for 2.6
Benjamin Peterson [Thu, 9 Oct 2008 20:54:43 +0000 (20:54 +0000)]
update paragraph about __future__ for 2.6

16 years agor66862 contained memory leak.
Hirokazu Yamamoto [Thu, 9 Oct 2008 10:11:21 +0000 (10:11 +0000)]
r66862 contained memory leak.

16 years agoOn windows, os.chdir given unicode was not working if GetCurrentDirectoryW
Hirokazu Yamamoto [Thu, 9 Oct 2008 10:00:30 +0000 (10:00 +0000)]
On windows, os.chdir given unicode was not working if GetCurrentDirectoryW
returned a path longer than MAX_PATH. (But It's doubtful this code path is
really executed because I cannot move to such directory on win2k)

16 years agoquiet sphinx warnings
Benjamin Peterson [Wed, 8 Oct 2008 21:11:33 +0000 (21:11 +0000)]
quiet sphinx warnings

16 years agoMake all whatsnew docs accessible.
Georg Brandl [Wed, 8 Oct 2008 18:57:13 +0000 (18:57 +0000)]
Make all whatsnew docs accessible.

16 years ago#3935: properly support list subclasses in the C impl. of bisect.
Georg Brandl [Wed, 8 Oct 2008 18:47:17 +0000 (18:47 +0000)]
#3935: properly support list subclasses in the C impl. of bisect.
Patch reviewed by Raymond.

16 years ago#4058: fix some whatsnew markup.
Georg Brandl [Wed, 8 Oct 2008 17:30:55 +0000 (17:30 +0000)]
#4058: fix some whatsnew markup.

16 years ago#4059: patch up some sqlite docs.
Georg Brandl [Wed, 8 Oct 2008 17:20:20 +0000 (17:20 +0000)]
#4059: patch up some sqlite docs.

16 years agoNote how bytes alias is expected to be used
Andrew M. Kuchling [Wed, 8 Oct 2008 13:21:27 +0000 (13:21 +0000)]
Note how bytes alias is expected to be used

16 years ago#4069: aSet.remove(otherSet) would always report the empty frozenset([]) as the missi...
Amaury Forgeot d'Arc [Tue, 7 Oct 2008 20:32:10 +0000 (20:32 +0000)]
#4069: aSet.remove(otherSet) would always report the empty frozenset([]) as the missing key.
Now it correctly refers to the initial otherset.

Reviewed by Raymond. Will backport to 2.6.

16 years agomore intensive test on dbm.
Hirokazu Yamamoto [Tue, 7 Oct 2008 18:10:47 +0000 (18:10 +0000)]
more intensive test on dbm.

16 years agosave/restore stdout/stderr instead of relying on __*__ versions
Skip Montanaro [Tue, 7 Oct 2008 15:03:40 +0000 (15:03 +0000)]
save/restore stdout/stderr instead of relying on __*__ versions

16 years agoPay attention to -R entries in LDFLAGS.
Skip Montanaro [Tue, 7 Oct 2008 02:02:00 +0000 (02:02 +0000)]
Pay attention to -R entries in LDFLAGS.

16 years agoSimplify individual tests by defining setUp and tearDown methods.
Skip Montanaro [Tue, 7 Oct 2008 01:55:20 +0000 (01:55 +0000)]
Simplify individual tests by defining setUp and tearDown methods.

16 years agoAdd the 'patchcheck' build target to .PHONY.
Brett Cannon [Mon, 6 Oct 2008 22:44:37 +0000 (22:44 +0000)]
Add the 'patchcheck' build target to .PHONY.

Re-closes issue 3758. Thanks to Ralph Corderoy for the catch.

16 years agoIssue #4014: Don't claim that Python has an Alpha release status, in addition
Martin v. Löwis [Mon, 6 Oct 2008 15:15:40 +0000 (15:15 +0000)]
Issue #4014: Don't claim that Python has an Alpha release status, in addition
to claiming it is Mature.

16 years agoPer Greg Ward, optparse is no longer being externally maintained.
Andrew M. Kuchling [Mon, 6 Oct 2008 12:07:04 +0000 (12:07 +0000)]
Per Greg Ward, optparse is no longer being externally maintained.
I'll look at the bugs in the Optik bug tracker and copy them to the Python bug
tracker if they're still relevant.

16 years agoMore strict test. Consider the case sys.executable itself is symlink.
Hirokazu Yamamoto [Mon, 6 Oct 2008 02:41:59 +0000 (02:41 +0000)]
More strict test. Consider the case sys.executable itself is symlink.

16 years agoAdded the test for issue3762.
Hirokazu Yamamoto [Mon, 6 Oct 2008 01:57:03 +0000 (01:57 +0000)]
Added the test for issue3762.

16 years ago#1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable...
Andrew M. Kuchling [Sun, 5 Oct 2008 00:11:56 +0000 (00:11 +0000)]
#1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable_interspersed_args()

16 years agofix typo
Benjamin Peterson [Sat, 4 Oct 2008 22:15:31 +0000 (22:15 +0000)]
fix typo

16 years agoPunctuation fix; expand dict.update docstring to be clearer
Andrew M. Kuchling [Sat, 4 Oct 2008 21:51:59 +0000 (21:51 +0000)]
Punctuation fix; expand dict.update docstring to be clearer

16 years agoMerged revisions 66707,66775,66782 via svnmerge from
Benjamin Peterson [Sat, 4 Oct 2008 20:55:50 +0000 (20:55 +0000)]
Merged revisions 66707,66775,66782 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r66707 | benjamin.peterson | 2008-09-30 18:27:10 -0500 (Tue, 30 Sep 2008) | 1 line

  fix #4001: fix_imports didn't check for __init__.py before converting to relative imports
........
  r66775 | collin.winter | 2008-10-03 12:08:26 -0500 (Fri, 03 Oct 2008) | 4 lines

  Add an alternative iterative pattern matching system that, while slower, correctly parses files that cause the faster recursive pattern matcher to fail with a recursion error. lib2to3 falls back to the iterative matcher if the recursive one fails.

  Fixes http://bugs.python.org/issue2532. Thanks to Nick Edds.
........
  r66782 | benjamin.peterson | 2008-10-03 17:51:36 -0500 (Fri, 03 Oct 2008) | 1 line

  add Victor Stinner's fixer for os.getcwdu -> os.getcwd #4023
........

16 years ago#4041: don't refer to removed and outdated modules.
Georg Brandl [Sat, 4 Oct 2008 18:26:01 +0000 (18:26 +0000)]
#4041: don't refer to removed and outdated modules.

16 years agosilence Sphinx warning
Benjamin Peterson [Sat, 4 Oct 2008 17:10:14 +0000 (17:10 +0000)]
silence Sphinx warning

16 years agoAdd What's New for 2.7
Andrew M. Kuchling [Sat, 4 Oct 2008 16:52:31 +0000 (16:52 +0000)]
Add What's New for 2.7

16 years agoSet svn:keywords
Andrew M. Kuchling [Sat, 4 Oct 2008 16:52:01 +0000 (16:52 +0000)]
Set svn:keywords

16 years agotwo corrections
Andrew M. Kuchling [Sat, 4 Oct 2008 03:08:56 +0000 (03:08 +0000)]
two corrections

16 years agoDocstring change for *partition: use same tense as other docstrings.
Andrew M. Kuchling [Sat, 4 Oct 2008 01:05:56 +0000 (01:05 +0000)]
Docstring change for *partition: use same tense as other docstrings.
Hyphenate left- and right-justified.
Fix 'registerd' typo

16 years agoDocstring changes: Specify exceptions raised
Andrew M. Kuchling [Sat, 4 Oct 2008 01:04:24 +0000 (01:04 +0000)]
Docstring changes: Specify exceptions raised

16 years agoDocstring change: Specify exception raised
Andrew M. Kuchling [Sat, 4 Oct 2008 01:03:42 +0000 (01:03 +0000)]
Docstring change: Specify exception raised

16 years agoUse correct capitalization of NaN
Andrew M. Kuchling [Sat, 4 Oct 2008 01:02:29 +0000 (01:02 +0000)]
Use correct capitalization of NaN

16 years agoIssue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite...
Hirokazu Yamamoto [Fri, 3 Oct 2008 17:34:49 +0000 (17:34 +0000)]
Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found.

16 years agoTypo fix
Andrew M. Kuchling [Fri, 3 Oct 2008 16:42:52 +0000 (16:42 +0000)]
Typo fix

16 years agoMention exception in docstring
Andrew M. Kuchling [Fri, 3 Oct 2008 16:29:19 +0000 (16:29 +0000)]
Mention exception in docstring

16 years agoFixed following error when DocXMLRPCServer failed.
Hirokazu Yamamoto [Fri, 3 Oct 2008 16:18:42 +0000 (16:18 +0000)]
Fixed following error when DocXMLRPCServer failed.
  UnboundLocalError: local variable 'serv' referenced before assignment

16 years agoFollows to python's version change (VC6)
Hirokazu Yamamoto [Fri, 3 Oct 2008 16:07:28 +0000 (16:07 +0000)]
Follows to python's version change (VC6)

16 years agoDocstring typo.
Andrew M. Kuchling [Fri, 3 Oct 2008 12:26:42 +0000 (12:26 +0000)]
Docstring typo.

16 years agoupdate the mac installer script
Benjamin Peterson [Fri, 3 Oct 2008 11:52:06 +0000 (11:52 +0000)]
update the mac installer script