Skip to content

Commit 9aa4299

Browse files
committed
Merged revisions 66337,66347,66350,66352,66358 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66337 | vinay.sajip | 2008-09-09 08:42:08 -0500 (Tue, 09 Sep 2008) | 1 line Issue python#3809: Fixed spurious 'test.blah' file left behind by test_logging. ........ r66347 | georg.brandl | 2008-09-09 14:26:00 -0500 (Tue, 09 Sep 2008) | 2 lines Fix varname in docstring. python#3822. ........ r66350 | georg.brandl | 2008-09-09 15:28:31 -0500 (Tue, 09 Sep 2008) | 2 lines python#3472: update Mac-bundled Python version info. ........ r66352 | benjamin.peterson | 2008-09-09 15:55:01 -0500 (Tue, 09 Sep 2008) | 4 lines Fix python#3634 invalid return value from _weakref.ref(Exception).__init__ Reviewers: Amaury, Antoine, Benjamin ........ r66358 | benjamin.peterson | 2008-09-09 18:16:48 -0500 (Tue, 09 Sep 2008) | 1 line use the latest pygments version ........
1 parent 5e19e44 commit 9aa4299

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

Doc/using/mac.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ the IDE and the Package Manager that are worth pointing out.
1717
Getting and Installing MacPython
1818
================================
1919

20-
Mac OS X 10.5 comes with Python 2.5 pre-installed by Apple. However, you are
21-
encouraged to install the most recent version of Python from the Python website
22-
(http://www.python.org). A "universal binary" build of Python 2.5, which runs
23-
natively on the Mac's new Intel and legacy PPC CPU's, is available there.
20+
Mac OS X 10.5 comes with Python 2.5.1 pre-installed by Apple. If you wish, you
21+
are invited to install the most recent version of Python from the Python website
22+
(http://www.python.org). A current "universal binary" build of Python, which
23+
runs natively on the Mac's new Intel and legacy PPC CPU's, is available there.
2424

2525
What you get after installing is a number of things:
2626

@@ -38,7 +38,10 @@ What you get after installing is a number of things:
3838
The Apple-provided build of Python is installed in
3939
:file:`/System/Library/Frameworks/Python.framework` and :file:`/usr/bin/python`,
4040
respectively. You should never modify or delete these, as they are
41-
Apple-controlled and are used by Apple- or third-party software.
41+
Apple-controlled and are used by Apple- or third-party software. Remember that
42+
if you choose to install a newer Python version from python.org, you will have
43+
two different but functional Python installations on your computer, so it will
44+
be important that your paths and usages are consistent with what you want to do.
4245

4346
IDLE includes a help menu that allows you to access Python documentation. If you
4447
are completely new to Python you should start reading the tutorial introduction

Lib/test/test_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,10 @@ class ConfigFileTest(BaseTest):
615615
args=(sys.stdout,)
616616
617617
[handler_hand2]
618-
class=FileHandler
618+
class=StreamHandler
619619
level=NOTSET
620620
formatter=form1
621-
args=('test.blah', 'a')
621+
args=(sys.stderr,)
622622
623623
[formatter_form1]
624624
format=%(levelname)s ++ %(message)s

Lib/test/test_weakref.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,14 @@ def __del__(self):
660660

661661
w = Target()
662662

663+
def test_init(self):
664+
# Issue 3634
665+
# <weakref to class>.__init__() doesn't check errors correctly
666+
r = weakref.ref(Exception)
667+
self.assertRaises(TypeError, r.__init__, 0, 0, 0, 0, 0)
668+
# No exception should be raised here
669+
gc.collect()
670+
663671

664672
class SubclassableWeakrefTestCase(TestBase):
665673

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8190,8 +8190,8 @@ unicode_upper(PyUnicodeObject *self)
81908190
PyDoc_STRVAR(zfill__doc__,
81918191
"S.zfill(width) -> str\n\
81928192
\n\
8193-
Pad a numeric string x with zeros on the left, to fill a field\n\
8194-
of the specified width. The string x is never truncated.");
8193+
Pad a numeric string S with zeros on the left, to fill a field\n\
8194+
of the specified width. The string S is never truncated.");
81958195

81968196
static PyObject *
81978197
unicode_zfill(PyUnicodeObject *self, PyObject *args)

Objects/weakrefobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ weakref___init__(PyObject *self, PyObject *args, PyObject *kwargs)
328328
if (parse_weakref_init_args("__init__", args, kwargs, &tmp, &tmp))
329329
return 0;
330330
else
331-
return 1;
331+
return -1;
332332
}
333333

334334

0 commit comments

Comments
 (0)