Kaydet (Commit) b6453a90 authored tarafından Georg Brandl's avatar Georg Brandl

Merged revisions…

Merged revisions 77120,77151,77155,77209,77229,77256,77317,77331,77333,77359-77360,77382,77561,77570 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77120 | georg.brandl | 2009-12-29 22:09:17 +0100 (Di, 29 Dez 2009) | 1 line

  #7595: fix typo in argument default constant.
........
  r77151 | georg.brandl | 2009-12-30 19:32:50 +0100 (Mi, 30 Dez 2009) | 1 line

  #7487: update Pygments version.
........
  r77155 | georg.brandl | 2009-12-30 20:03:00 +0100 (Mi, 30 Dez 2009) | 1 line

  We only support Windows NT derivatives now.
........
  r77209 | georg.brandl | 2010-01-01 14:07:05 +0100 (Fr, 01 Jan 2010) | 1 line

  More yearly updates.
........
  r77229 | georg.brandl | 2010-01-02 13:35:01 +0100 (Sa, 02 Jan 2010) | 1 line

  Fix casing.
........
  r77256 | georg.brandl | 2010-01-02 23:55:55 +0100 (Sa, 02 Jan 2010) | 1 line

  Fix typo.
........
  r77317 | georg.brandl | 2010-01-05 19:14:52 +0100 (Di, 05 Jan 2010) | 1 line

  Add Stefan.
........
  r77331 | georg.brandl | 2010-01-06 18:43:06 +0100 (Mi, 06 Jan 2010) | 1 line

  Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, add option to run the custom Cmd class.
........
  r77333 | georg.brandl | 2010-01-06 19:26:08 +0100 (Mi, 06 Jan 2010) | 1 line

  #5950: document that zip files with comments are unsupported in zipimport.
........
  r77359 | georg.brandl | 2010-01-07 21:54:45 +0100 (Do, 07 Jan 2010) | 1 line

  Fix description for Py_GetPath(); it sounded like it always returned sys.path.
........
  r77360 | georg.brandl | 2010-01-07 22:48:47 +0100 (Do, 07 Jan 2010) | 1 line

  #7653: clarify how the PythonPath registry key should look like.
........
  r77382 | georg.brandl | 2010-01-09 10:47:11 +0100 (Sa, 09 Jan 2010) | 1 line

  #7422: make it clear that getargspec() only works on Python functions.
........
  r77561 | georg.brandl | 2010-01-17 09:42:30 +0100 (So, 17 Jan 2010) | 1 line

  #7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
........
  r77570 | georg.brandl | 2010-01-17 13:14:42 +0100 (So, 17 Jan 2010) | 1 line

  Add note about usage of STRINGLIB_EMPTY.
........
üst 9fed6d8d
...@@ -258,13 +258,14 @@ Initialization, Finalization, and Threads ...@@ -258,13 +258,14 @@ Initialization, Finalization, and Threads
single: path (in module sys) single: path (in module sys)
Return the default module search path; this is computed from the program name Return the default module search path; this is computed from the program name
(set by :cfunc:`Py_SetProgramName` above) and some environment variables. The (set by :cfunc:`Py_SetProgramName` above) and some environment variables.
returned string consists of a series of directory names separated by a platform The returned string consists of a series of directory names separated by a
dependent delimiter character. The delimiter character is ``':'`` on Unix and platform dependent delimiter character. The delimiter character is ``':'``
Mac OS X, ``';'`` on Windows. The returned string points into static storage; on Unix and Mac OS X, ``';'`` on Windows. The returned string points into
the caller should not modify its value. The value is available to Python code static storage; the caller should not modify its value. The list
as the list ``sys.path``, which may be modified to change the future search path :data:`sys.path` is initialized with this value on interpreter startup; it
for loaded modules. can be (and usually is) modified later to change the search path for loading
modules.
.. XXX should give the exact rules .. XXX should give the exact rules
......
This diff is collapsed.
...@@ -457,7 +457,7 @@ Classes and functions ...@@ -457,7 +457,7 @@ Classes and functions
.. function:: getargspec(func) .. function:: getargspec(func)
Get the names and default values of a function's arguments. A tuple of four Get the names and default values of a Python function's arguments. A tuple of four
things is returned: ``(args, varargs, varkw, defaults)``. *args* is a list of things is returned: ``(args, varargs, varkw, defaults)``. *args* is a list of
the argument names (it may contain nested lists). *varargs* and *varkw* are the the argument names (it may contain nested lists). *varargs* and *varkw* are the
names of the ``*`` and ``**`` arguments or ``None``. *defaults* is a tuple of names of the ``*`` and ``**`` arguments or ``None``. *defaults* is a tuple of
......
...@@ -153,6 +153,4 @@ Other Functions ...@@ -153,6 +153,4 @@ Other Functions
.. function:: heapmin() .. function:: heapmin()
Force the :cfunc:`malloc` heap to clean itself up and return unused blocks to Force the :cfunc:`malloc` heap to clean itself up and return unused blocks to
the operating system. This only works on Windows NT. On failure, this raises the operating system. On failure, this raises :exc:`IOError`.
:exc:`IOError`.
...@@ -50,7 +50,7 @@ The module defines the following: ...@@ -50,7 +50,7 @@ The module defines the following:
.. versionadded:: 2.6 .. versionadded:: 2.6
.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0) .. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)
(Only supported on BSD.) Returns a kernel event object object; see section (Only supported on BSD.) Returns a kernel event object object; see section
:ref:`kevent-objects` below for the methods supported by kqueue objects. :ref:`kevent-objects` below for the methods supported by kqueue objects.
......
...@@ -33,6 +33,8 @@ Using the built-in :func:`reload` function will fail if called on a module ...@@ -33,6 +33,8 @@ Using the built-in :func:`reload` function will fail if called on a module
loaded from a ZIP archive; it is unlikely that :func:`reload` would be needed, loaded from a ZIP archive; it is unlikely that :func:`reload` would be needed,
since this would imply that the ZIP has been altered during runtime. since this would imply that the ZIP has been altered during runtime.
ZIP archives with an archive comment are currently not supported.
.. seealso:: .. seealso::
`PKZIP Application Note <http://www.pkware.com/documents/casestudies/APPNOTE.TXT>`_ `PKZIP Application Note <http://www.pkware.com/documents/casestudies/APPNOTE.TXT>`_
......
...@@ -168,12 +168,13 @@ separated by semicolons, though, to distinguish them from drive identifiers ...@@ -168,12 +168,13 @@ separated by semicolons, though, to distinguish them from drive identifiers
.. `` .. ``
Modifying the module search path can also be done through the Windows registry: Modifying the module search path can also be done through the Windows registry
Edit under the key :file:`HKLM\\SOFTWARE\\Python\\PythonCore\\{version}\\PythonPath`.
:file:`HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\{version}\\PythonPath\\`, Subkeys which have semicolon-delimited path strings as their default value will
as described above for the environment variable :envvar:`%PYTHONPATH%`. A cause each path to be searched. Multiple subkeys can be created and are
convenient registry editor is :program:`regedit` (start it by typing "regedit" appended to the path in alphabetical order. A convenient registry editor is
into :menuselection:`Start --> Run`). :program:`regedit` (start it by typing "regedit" into :menuselection:`Start -->
Run`).
Executing scripts Executing scripts
......
# Copyright (C) 2001-2006 Python Software Foundation # Copyright (C) 2001-2010 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org # Contact: email-sig@python.org
"""Classes to generate plain text from a message object tree.""" """Classes to generate plain text from a message object tree."""
......
# Copyright (C) 2001-2007 Python Software Foundation # Copyright (C) 2001-2010 Python Software Foundation
# Contact: email-sig@python.org # Contact: email-sig@python.org
# email package unit tests # email package unit tests
......
# Copyright (C) 2001-2009 Python Software Foundation # Copyright (C) 2001-2010 Python Software Foundation
# Author: Barry Warsaw # Author: Barry Warsaw
# Contact: email-sig@python.org # Contact: email-sig@python.org
......
...@@ -1212,7 +1212,7 @@ class IMAP4_stream(IMAP4): ...@@ -1212,7 +1212,7 @@ class IMAP4_stream(IMAP4):
Instantiate with: IMAP4_stream(command) Instantiate with: IMAP4_stream(command)
where "command" is a string that can be passed to Subprocess.Popen() where "command" is a string that can be passed to subprocess.Popen()
for more documentation see the docstring of the parent class IMAP4. for more documentation see the docstring of the parent class IMAP4.
""" """
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# turtle.py: a Tkinter based turtle graphics module for Python # turtle.py: a Tkinter based turtle graphics module for Python
# Version 1.0.1 - 24. 9. 2009 # Version 1.0.1 - 24. 9. 2009
# #
# Copyright (C) 2006 - 2009 Gregor Lingl # Copyright (C) 2006 - 2010 Gregor Lingl
# email: glingl@aon.at # email: glingl@aon.at
# #
# This software is provided 'as-is', without any express or implied # This software is provided 'as-is', without any express or implied
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
Logging package for Python. Based on PEP 282 and comments thereto in Logging package for Python. Based on PEP 282 and comments thereto in
comp.lang.python, and influenced by Apache's log4j system. comp.lang.python, and influenced by Apache's log4j system.
Copyright (C) 2001-2009 Vinay Sajip. All Rights Reserved. Copyright (C) 2001-2010 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away! To use, simply 'import logging' and log away!
""" """
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
__copyright__ = """ __copyright__ = """
Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com
Permission to use, copy, modify, and distribute this software and its Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee or royalty is hereby granted, documentation for any purpose and without fee or royalty is hereby granted,
......
...@@ -143,7 +143,7 @@ class samplecmdclass(cmd.Cmd): ...@@ -143,7 +143,7 @@ class samplecmdclass(cmd.Cmd):
print "complete command" print "complete command"
return return
def do_shell(self): def do_shell(self, s):
pass pass
def do_add(self, s): def do_add(self, s):
...@@ -169,8 +169,8 @@ def test_main(verbose=None): ...@@ -169,8 +169,8 @@ def test_main(verbose=None):
from test import test_support, test_cmd from test import test_support, test_cmd
test_support.run_doctest(test_cmd, verbose) test_support.run_doctest(test_cmd, verbose)
import trace, sys
def test_coverage(coverdir): def test_coverage(coverdir):
import trace
tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,], tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
trace=0, count=1) trace=0, count=1)
tracer.run('reload(cmd);test_main()') tracer.run('reload(cmd);test_main()')
...@@ -181,5 +181,7 @@ def test_coverage(coverdir): ...@@ -181,5 +181,7 @@ def test_coverage(coverdir):
if __name__ == "__main__": if __name__ == "__main__":
if "-c" in sys.argv: if "-c" in sys.argv:
test_coverage('/tmp/cmd.cover') test_coverage('/tmp/cmd.cover')
elif "-i" in sys.argv:
samplecmdclass().cmdloop()
else: else:
test_main() test_main()
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# $Id$ # $Id$
# #
# Copyright (C) 2005 Gregory P. Smith (greg@krypto.org) # Copyright (C) 2005-2010 Gregory P. Smith (greg@krypto.org)
# Licensed to PSF under a Contributor Agreement. # Licensed to PSF under a Contributor Agreement.
# #
......
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2001-2004 by Vinay Sajip. All Rights Reserved. # Copyright 2001-2010 by Vinay Sajip. All Rights Reserved.
# #
# Permission to use, copy, modify, and distribute this software and its # Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, # documentation for any purpose and without fee is hereby granted,
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"""Test harness for the logging module. Run all tests. """Test harness for the logging module. Run all tests.
Copyright (C) 2001-2002 Vinay Sajip. All Rights Reserved. Copyright (C) 2001-2010 Vinay Sajip. All Rights Reserved.
""" """
import logging import logging
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>Python</string> <string>Python</string>
<key>CFBundleGetInfoString</key> <key>CFBundleGetInfoString</key>
<string>%version%, (c) 2004-2009 Python Software Foundation.</string> <string>%version%, (c) 2004-2010 Python Software Foundation.</string>
<key>CFBundleHelpBookFolder</key> <key>CFBundleHelpBookFolder</key>
<array> <array>
<string>Documentation</string> <string>Documentation</string>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleLongVersionString</key> <key>CFBundleLongVersionString</key>
<string>%version%, (c) 2004-2009 Python Software Foundation.</string> <string>%version%, (c) 2004-2010 Python Software Foundation.</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>Python</string> <string>Python</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
......
...@@ -17,7 +17,31 @@ the format to accommodate documentation needs as they arise. ...@@ -17,7 +17,31 @@ the format to accommodate documentation needs as they arise.
Permissions History Permissions History
------------------- -------------------
- Tarek Ziadé as given SVN access on Decmeber 21 2008 by NCN, - Stefan Krah was given SVN access on January 5 2010 by GFB, at
suggestion of Mark Dickinson, for work on the decimal module.
- Doug Hellmann was given SVN access on September 19 2009 by GFB, at
suggestion of Jesse Noller, for documentation work.
- Ezio Melotti was given SVN access on June 7 2009 by GFB, for work on and
fixes to the documentation.
- Paul Kippes was given commit privileges at PyCon 2009 by BAC to work on 3to2.
- Ron DuPlain was given commit privileges at PyCon 2009 by BAC to work on 3to2.
- Several developers of alternative Python implementations where
given access for test suite and library adaptions by MvL:
Allison Randal (Parrot), Michael Foord (IronPython),
Jim Baker, Philip Jenvey, and Frank Wierzbicki (all Jython).
- R. David Murray was given SVN access on March 30 2009 by MvL, after
recommendation by BAC.
- Chris Withers was given SVN access on March 8 2009 by MvL,
after recommendation by GvR.
- Tarek Ziadé was given SVN access on December 21 2008 by NCN,
for maintenance of distutils. for maintenance of distutils.
- Hirokazu Yamamoto was given SVN access on August 12 2008 by MvL, - Hirokazu Yamamoto was given SVN access on August 12 2008 by MvL,
......
/* Module that wraps all OpenSSL hash algorithms */ /* Module that wraps all OpenSSL hash algorithms */
/* /*
* Copyright (C) 2005 Gregory P. Smith (greg@krypto.org) * Copyright (C) 2005-2010 Gregory P. Smith (greg@krypto.org)
* Licensed to PSF under a Contributor Agreement. * Licensed to PSF under a Contributor Agreement.
* *
* Derived from a skeleton of shamodule.c containing work performed by: * Derived from a skeleton of shamodule.c containing work performed by:
......
...@@ -1161,7 +1161,7 @@ static PyTypeObject pyEpoll_Type = { ...@@ -1161,7 +1161,7 @@ static PyTypeObject pyEpoll_Type = {
#endif #endif
PyDoc_STRVAR(kqueue_event_doc, PyDoc_STRVAR(kqueue_event_doc,
"kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)\n\ "kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)\n\
\n\ \n\
This object is the equivalent of the struct kevent for the C API.\n\ This object is the equivalent of the struct kevent for the C API.\n\
\n\ \n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment