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
af72d522
Commit
af72d522
authored
Dec 29, 2002
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newsitem for the two new unittest methods.
Also, made some whitespace cleanup.
parent
79f57833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
Misc/NEWS
Misc/NEWS
+21
-15
No files found.
Misc/NEWS
View file @
af72d522
...
...
@@ -437,6 +437,12 @@ Extension modules
Library
-------
- unittest.py now has two additional methods called assertAlmostEqual()
and failIfAlmostEqual(). They implement an approximate comparision
by rounding the difference between the two arguments and comparing
the result to zero. Approximate comparision is essential for
unit tests of floating point results.
- calendar.py now depends on the new datetime module rather than
the time module. As a result, the range of allowable dates
has been increased.
...
...
@@ -964,26 +970,26 @@ Mac
with an interpreter living in such a .app bundle, this interpreter should
be used to run any Python script using the window manager (including
Tkinter or wxPython scripts).
- A new utility PythonLauncher will start a Python interpreter when a .py or
.pyw script is double-clicked in the Finder. By default .py scripts are
run with a normal Python interpreter in a Terminal window and .pyw
files are run with a window-aware pythonw interpreter without a Terminal
window, but all this can be customized.
- MacPython-OS9 is now Carbon-only, so it runs on Mac OS 9 or Mac OS X and
possibly on Mac OS 8.6 with the right CarbonLib installed, but not on earlier
releases.
- Many tools such as BuildApplet.py and gensuitemodule.py now support a command
line interface too.
- All the Carbon classes are now PEP253 compliant, meaning that you can
subclass them from Python. Most of the attributes have gone, you should
now use the accessor function call API, which is also what Apple'
s
documentation
uses
.
Some
attributes
such
as
grafport
.
visRgn
are
still
available
for
convenience
.
-
New
Carbon
modules
File
(
implementing
the
APIs
in
Files
.
h
and
Aliases
.
h
)
and
Folder
(
APIs
from
Folders
.
h
).
The
old
macfs
builtin
module
is
gone
,
and
replaced
by
a
Python
wrapper
around
the
new
modules
.
...
...
@@ -991,16 +997,16 @@ Mac
-
Pathname
handling
should
now
be
fully
consistent
:
MacPython
-
OSX
always
uses
unix
pathnames
and
MacPython
-
OS9
always
uses
colon
-
separated
Mac
pathnames
(
also
when
running
on
Mac
OS
X
).
-
New
Carbon
modules
Help
and
AH
give
access
to
the
Carbon
Help
Manager
.
There
are
hooks
in
the
IDE
to
allow
accessing
the
Python
documentation
(
and
Apple
's Carbon and Cocoa documentation) through the Help Viewer.
See Mac/OSX/README for converting the Python documentation to a
Help Viewer comaptible form and installing it.
- OSA support has been redesigned and the generated Python classes now
mirror the inheritance defined by the underlying OSA classes.
- MacPython no longer maps both \r and \n to \n on input for any text file.
This feature has been replaced by universal newline support (PEP278).
...
...
@@ -1645,13 +1651,13 @@ Windows
signal.signal(signal.SIGBREAK, signal.default_int_handler)
try:
while 1:
pass
while 1:
pass
except KeyboardInterrupt:
# We get here on Ctrl+C or Ctrl+Break now; if we had not changed
# SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
# program without the possibility for any Python-level cleanup).
print "
Clean
exit
"
# We get here on Ctrl+C or Ctrl+Break now; if we had not changed
# SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
# program without the possibility for any Python-level cleanup).
print "
Clean
exit
"
What's New in Python 2.2a4?
...
...
@@ -2008,7 +2014,7 @@ C API
double x = PyLong_AsDouble(some_long_object);
if (x == -1.0 && PyErr_Occurred()) {
/* The conversion failed. */
/* The conversion failed. */
}
- The GC API has been changed. Extensions that use the old API will still
...
...
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