]> granicus.if.org Git - python/log
python
16 years agoThe docs for httplib.HTTPConnection.putheader() have claimed for quite a while
Brett Cannon [Sat, 15 Nov 2008 22:40:44 +0000 (22:40 +0000)]
The docs for httplib.HTTPConnection.putheader() have claimed for quite a while
that their could be an arbitrary number of values passed in. Turns out the code
did not match that. The code now matches the docs.

16 years agoClarify the docs for the 'strict' argument to httplib.HTTPConnection.
Brett Cannon [Sat, 15 Nov 2008 22:33:25 +0000 (22:33 +0000)]
Clarify the docs for the 'strict' argument to httplib.HTTPConnection.

16 years ago#4324: fix getlocale() argument.
Georg Brandl [Sat, 15 Nov 2008 08:10:04 +0000 (08:10 +0000)]
#4324: fix getlocale() argument.

16 years agouse correct name
Benjamin Peterson [Tue, 11 Nov 2008 21:56:06 +0000 (21:56 +0000)]
use correct name

16 years agoMerged revisions 66985,67170,67173,67177-67179 via svnmerge from
Benjamin Peterson [Mon, 10 Nov 2008 22:11:12 +0000 (22:11 +0000)]
Merged revisions 66985,67170,67173,67177-67179 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r66985 | benjamin.peterson | 2008-10-20 16:43:46 -0500 (Mon, 20 Oct 2008) | 1 line

  no need to use nested try, except, finally
........
  r67170 | benjamin.peterson | 2008-11-08 12:28:31 -0600 (Sat, 08 Nov 2008) | 1 line

  fix #4271: fix_imports didn't recognize imports with parenthesis (ie from x import (a, b))
........
  r67173 | benjamin.peterson | 2008-11-08 17:42:08 -0600 (Sat, 08 Nov 2008) | 1 line

  consolidate test
........
  r67177 | benjamin.peterson | 2008-11-09 21:52:52 -0600 (Sun, 09 Nov 2008) | 1 line

  let the metclass fixer handle complex assignments in the class body gracefully
........
  r67178 | benjamin.peterson | 2008-11-10 15:26:43 -0600 (Mon, 10 Nov 2008) | 1 line

  the metaclass fixers shouldn't die when bases are not a simple name
........
  r67179 | benjamin.peterson | 2008-11-10 15:29:58 -0600 (Mon, 10 Nov 2008) | 1 line

  allow the fix_import pattern to catch from imports with parenthesis
........

16 years agofix comment
Benjamin Peterson [Sun, 9 Nov 2008 01:52:32 +0000 (01:52 +0000)]
fix comment

16 years agoupdate link
Benjamin Peterson [Sun, 9 Nov 2008 01:44:32 +0000 (01:44 +0000)]
update link

16 years agocheck for assignment to __debug__ during AST generation
Benjamin Peterson [Sat, 8 Nov 2008 18:38:54 +0000 (18:38 +0000)]
check for assignment to __debug__ during AST generation

Also, give assignment to None a better error message

16 years agoclarify what was added
Benjamin Peterson [Sat, 8 Nov 2008 17:07:06 +0000 (17:07 +0000)]
clarify what was added

16 years agomove context clue to versionchanged tag
Benjamin Peterson [Sat, 8 Nov 2008 17:04:18 +0000 (17:04 +0000)]
move context clue to versionchanged tag

16 years agoa few compile() and ast doc improvements
Benjamin Peterson [Sat, 8 Nov 2008 16:55:33 +0000 (16:55 +0000)]
a few compile() and ast doc improvements

16 years agoFix warning.
Georg Brandl [Sat, 8 Nov 2008 12:52:25 +0000 (12:52 +0000)]
Fix warning.

16 years agoUpdate "Documenting" a bit. Concentrate on Python-specifics.
Georg Brandl [Sat, 8 Nov 2008 11:48:20 +0000 (11:48 +0000)]
Update "Documenting" a bit. Concentrate on Python-specifics.

16 years agoDon't use "HOWTO" as the title for all howto .tex files.
Georg Brandl [Sat, 8 Nov 2008 11:47:44 +0000 (11:47 +0000)]
Don't use "HOWTO" as the title for all howto .tex files.

16 years agoIssue #4071: ntpath.abspath returned an empty string for long unicode path.
Hirokazu Yamamoto [Sat, 8 Nov 2008 03:46:17 +0000 (03:46 +0000)]
Issue #4071: ntpath.abspath returned an empty string for long unicode path.

16 years agoIssue #1656675: Register a drop handler for .py* files on Windows.
Martin v. Löwis [Fri, 7 Nov 2008 18:51:50 +0000 (18:51 +0000)]
Issue #1656675: Register a drop handler for .py* files on Windows.

16 years agoFix syntax.
Georg Brandl [Fri, 7 Nov 2008 08:27:39 +0000 (08:27 +0000)]
Fix syntax.

16 years agoStop including fake manifest file in DLLs directory.
Martin v. Löwis [Thu, 6 Nov 2008 19:46:03 +0000 (19:46 +0000)]
Stop including fake manifest file in DLLs directory.

16 years agoFix grammar error; reword two paragraphs
Andrew M. Kuchling [Thu, 6 Nov 2008 19:23:02 +0000 (19:23 +0000)]
Fix grammar error; reword two paragraphs

16 years ago#4247: add "pass" examples to tutorial.
Georg Brandl [Thu, 6 Nov 2008 18:49:15 +0000 (18:49 +0000)]
#4247: add "pass" examples to tutorial.

16 years agoIssue #4120: Exclude manifest from extension modules in VS2008.
Martin v. Löwis [Thu, 6 Nov 2008 16:43:00 +0000 (16:43 +0000)]
Issue #4120: Exclude manifest from extension modules in VS2008.

16 years ago#4245: move Thread section to the top.
Georg Brandl [Thu, 6 Nov 2008 10:20:49 +0000 (10:20 +0000)]
#4245: move Thread section to the top.

16 years ago#4267: small fixes in sqlite3 docs.
Georg Brandl [Thu, 6 Nov 2008 10:19:11 +0000 (10:19 +0000)]
#4267: small fixes in sqlite3 docs.

16 years ago#4268: Use correct module for two toplevel functions.
Georg Brandl [Thu, 6 Nov 2008 10:17:58 +0000 (10:17 +0000)]
#4268: Use correct module for two toplevel functions.

16 years ago#4167: fix markup glitches.
Georg Brandl [Tue, 4 Nov 2008 20:49:35 +0000 (20:49 +0000)]
#4167: fix markup glitches.

16 years agoIssue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis [Tue, 4 Nov 2008 20:40:09 +0000 (20:40 +0000)]
Issue #4204: Fixed module build errors on FreeBSD 4.

16 years agomove a FileIO test to test_fileio
Benjamin Peterson [Mon, 3 Nov 2008 22:34:57 +0000 (22:34 +0000)]
move a FileIO test to test_fileio

16 years agoclarify by splitting into multiple paragraphs
Benjamin Peterson [Mon, 3 Nov 2008 20:43:20 +0000 (20:43 +0000)]
clarify by splitting into multiple paragraphs

16 years agoIssue #3774: Fixed an error when create a Tkinter menu item without command
Hirokazu Yamamoto [Mon, 3 Nov 2008 18:03:06 +0000 (18:03 +0000)]
Issue #3774: Fixed an error when create a Tkinter menu item without command
and then remove it. Written by Guilherme Polo (gpolo).

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.