Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
15c82d21
Commit
15c82d21
authored
Apr 29, 2010
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add various items
parent
3945c867
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
13 deletions
+51
-13
Doc/whatsnew/2.7.rst
Doc/whatsnew/2.7.rst
+51
-13
No files found.
Doc/whatsnew/2.7.rst
View file @
15c82d21
...
...
@@ -12,6 +12,8 @@
.. unittest test discovery
.. hyperlink all the methods & functions.
.. T_STRING_INPLACE not described in main docs
.. $Id$
Rules for maintenance:
...
...
@@ -654,6 +656,11 @@ across operating systems and shells, so it may be different for you.)
export PYTHONWARNINGS=all,error:::Cookie:0
When running a module using the interpreter's :option:`-m` switch,
``sys.argv[0]`` will now be set to the string ``'-m'`` while the
module is being imported. This will let modules determine when
they're being executed using :option:`-m`. (Suggested by Michael
Foord; implemented by Nick Coghlan; :issue:`8202`.)
.. ======================================================================
...
...
@@ -909,11 +916,14 @@ changes, or look through the Subversion logs for all the details.
more sensible for numeric types. (Changed by Mark Dickinson; :issue:`6857`.)
* The :mod:`difflib` module now produces output that is more
compatible with modern :command:`diff`/:command:`patch` tools thanks
to two changes: 1) the header giving the filename now uses a tab
character instead of spaces as a separator, and 2) the date format
used is now ISO-8601 style, ``2005-01-26 23:30:50``. (Fixed by
Anatoly Techtonik; :issue:`7585`.)
compatible with modern :command:`diff`/:command:`patch` tools
through one small change, using a tab character instead of spaces as
a separator in the header giving the filename. (Fixed by Anatoly
Techtonik; :issue:`7585`.)
* The :mod:`doctest` module's :const:`IGNORE_EXCEPTION_DETAIL` flag
will now ignore the name of the module containing the exception
being tested. (Patch by Lennart Regebro; :issue:`7490`.)
* The :class:`~fractions.Fraction` class now accepts a single float or
:class:`~decimal.Decimal` instance, or two rational numbers, as
...
...
@@ -1151,6 +1161,11 @@ changes, or look through the Subversion logs for all the details.
code being returned from :meth:`recv` operations that trigger an SSL
renegotiation (fix by Antoine Pitrou; :issue:`8222`).
Another changes makes the extension load all of OpenSSL's ciphers
and digest algorithms. Some SSL certificates couldn't be verified,
reporting an 'unknown algorithm' error. (Reported by Beda Kosata, and
fixed by Antoine Pitrou; :issue:`8484`.)
The version of OpenSSL being used is now available as the module
attributes :attr:`OPENSSL_VERSION` (a string),
:attr:`OPENSSL_VERSION_INFO` (a 5-tuple), and
...
...
@@ -1216,6 +1231,10 @@ changes, or look through the Subversion logs for all the details.
false for ones that are implicitly global.
(Contributed by Jeremy Hylton.)
* The :mod:`syslog` module will now use the value of ``sys.argv[0]`` as the
identifier instead of the previous default value of ``'python'``.
(Changed by Sean Reifschneider; :issue:`8451`.)
* The ``sys.version_info`` value is now a named tuple, with attributes
named :attr:`major`, :attr:`minor`, :attr:`micro`,
:attr:`releaselevel`, and :attr:`serial`. (Contributed by Ross
...
...
@@ -1623,6 +1642,12 @@ Changes to Python's build process and to the C API include:
being raised when an interpreter shuts down.
(Patch by Adam Olsen; :issue:`1722344`.)
* When using the :ctype:`PyMemberDef` structure to define attributes
of a type, Python will no longer let you try to delete or set a
:const:`T_STRING_INPLACE` attribute.
.. rev 79644
* Global symbols defined by the :mod:`ctypes` module are now prefixed
with ``Py``, or with ``_ctypes``. (Implemented by Thomas
Heller; :issue:`3102`.)
...
...
@@ -1672,6 +1697,14 @@ Port-Specific Changes: Windows
and :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`.
(Contributed by David Cournapeau; :issue:`4365`.)
* The :mod:`_winreg` module for accessing the registry now implements
the :func:`CreateKeyEx` and :func:`DeleteKeyEx` functions, extended
versions of previously-supported functions that take several extra
arguments. The :func:`DisableReflectionKey`,
:func:`EnableReflectionKey`, and :func:`QueryReflectionKey` were also
tested and documented.
(Implemented by Brian Curtin: :issue:`7347`.)
* The new :cfunc:`_beginthreadex` API is used to start threads, and
the native thread-local storage functions are now used.
(Contributed by Kristjan Valur Jonsson; :issue:`3582`.)
...
...
@@ -1747,14 +1780,8 @@ Porting to Python 2.7
This section lists previously described changes and other bugfixes
that may require changes to your code:
* When using :class:`Decimal` instances with a string's
:meth:`format` method, the default alignment was previously
left-alignment. This has been changed to right-alignment, which might
change the output of your programs.
(Changed by Mark Dickinson; :issue:`6857`.)
Another :meth:`format`-related change: the default precision used
for floating-point and complex numbers was changed from 6 decimal
* The string :meth:`format` method changed the default precision used
for floating-point and complex numbers from 6 decimal
places to 12, which matches the precision used by :func:`str`.
(Changed by Eric Smith; :issue:`5920`.)
...
...
@@ -1768,14 +1795,25 @@ that may require changes to your code:
nothing when a negative length is requested, as other file-like
objects do. (:issue:`7348`).
In the standard library:
* When using :class:`Decimal` instances with a string's
:meth:`format` method, the default alignment was previously
left-alignment. This has been changed to right-alignment, which might
change the output of your programs.
(Changed by Mark Dickinson; :issue:`6857`.)
* The ElementTree library, :mod:`xml.etree`, no longer escapes
ampersands and angle brackets when outputting an XML processing
instruction (which looks like `<?xml-stylesheet href="#style1"?>`)
or comment (which looks like `<!-- comment -->`).
(Patch by Neil Muller; :issue:`2746`.)
* The :mod:`syslog` module will now use the value of ``sys.argv[0]`` as the
identifier instead of the previous default value of ``'python'``.
(Changed by Sean Reifschneider; :issue:`8451`.)
For C extensions:
* C extensions that use integer format codes with the ``PyArg_Parse*``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment