Guilherme Polo | 1 Dec 2008 01:12
Favicon

[issue4475] More verbose error message for Py_FindMethod


Guilherme Polo <ggpolo <at> gmail.com> added the comment:

Yes, it was a mistake to set the version for py3k too, that is why I
removed after noticing it.

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4475>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Michael Aivazis | 1 Dec 2008 01:32
Favicon

[issue4476] compileall.py fails if current dir has a "types" subdir with 3.0 (ok with 2.5)


Changes by Michael Aivazis <aivazis <at> orthologue.com>:

----------
components: Library (Lib)
nosy: aivazis
severity: normal
status: open
title: compileall.py  fails if current dir has a "types" subdir with 3.0 (ok with 2.5)
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Jeffrey Yasskin | 1 Dec 2008 05:33
Favicon

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.


New submission from Jeffrey Yasskin <jyasskin <at> gmail.com>:

Tracing support shows up fairly heavily an a Python profile, even
though it's nearly always turned off. The attached patch against the
trunk speeds up PyBench by 2% for me. All tests pass. I have 2
questions:

1) Can other people corroborate this speedup on their machines? I'm
running on a Macbook Pro (Intel Core2 processor, probably Merom) with
a 32-bit build from Apple's gcc-4.0.1. (Apple's gcc consistently
produces a faster python than gcc-4.3.)

2) Assuming this speeds things up for most people, should I check it
in anywhere besides the trunk? I assume it's out for 3.0; is it in for
2.6.1 or 3.0.1?

Pybench output:

-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* using CPython 2.7a0 (trunk:67458M, Nov 30 2008, 17:14:10) [GCC 4.0.1
(Apple Inc. build 5488)]
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.time

-------------------------------------------------------------------------------
Benchmark: pybench.out
(Continue reading)

steve21 | 1 Dec 2008 05:38
Favicon

[issue4478] shutil.copyfile documentation


New submission from steve21 <steve872929-bv <at> yahoo.com.au>:

$ python3.0
Python 3.0rc3 (r30rc3:67312, Nov 22 2008, 21:38:46)
>>> import shutil
>>> shutil.copyfile('/tmp/f', '/tmp/f')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/a/lib/python3.0/shutil.py", line 47, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
shutil.Error: `/tmp/f` and `/tmp/f` are the same file

The Python 3 docs at
http://docs.python.org/dev/3.0/library/shutil.html#module-shutil
mention that copyfile can raise IOError, but they omit to mention that
copyfile can also raise shutil.Error.

Also, just out of interest, I notice that Sphinx now supports the
':raises:' field. Are there any plans for the Python documentation to
start using it?

----------
assignee: georg.brandl
components: Documentation
messages: 76673
nosy: georg.brandl, steve21
severity: normal
status: open
title: shutil.copyfile documentation
(Continue reading)

Brett Cannon | 1 Dec 2008 05:39
Favicon

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.


Changes by Brett Cannon <brett <at> python.org>:

----------
nosy: +brett.cannon

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Martin v. Löwis | 1 Dec 2008 05:39
Favicon

[issue4073] distutils build_scripts and install_data commands need 2to3 support


Martin v. Löwis <martin <at> v.loewis.de> added the comment:

Committed as r67464.

----------
resolution:  -> fixed
status: open -> closed

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4073>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Martin v. Löwis | 1 Dec 2008 05:53
Favicon

[issue4365] Add CRT version info in msvcrt module


Martin v. Löwis <martin <at> v.loewis.de> added the comment:

Merged into 2.6 as r67466, Benjamin had already merged it for 3k as r67461.

----------
status: open -> closed
versions:  -Python 2.6, Python 3.0

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4365>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Martin v. Löwis | 1 Dec 2008 06:06
Favicon

[issue4476] compileall.py fails if current dir has a "types" subdir with 3.0 (ok with 2.5)


New submission from Martin v. Löwis <martin <at> v.loewis.de>:

I can't reproduce that:

/tmp/h$ echo "pass" > x.py
/tmp/h$ mkdir types
:/tmp/h$ /tmp/py3/bin/python3.0 -mcompileall .
Listing . ...
Listing ./types ...
Compiling ./x.py ...
/tmp/h$ ls
types  x.py  x.pyc

----------
nosy: +loewis

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Martin v. Löwis | 1 Dec 2008 06:08
Favicon

[issue4477] Speed up PyEval_EvalFrameEx when tracing is off.


Martin v. Löwis <martin <at> v.loewis.de> added the comment:

I don't think anything performance-related should be checked in before 3.0.

----------
nosy: +loewis

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Michael Aivazis | 1 Dec 2008 06:12
Favicon

[issue4476] compileall.py fails if current dir has a "types" subdir with 3.0 (ok with 2.5)


Michael Aivazis <aivazis <at> orthologue.com> added the comment:

sorry for the sloppy report. add a __init__.py in the types subdir. you 
should get a "Could not import runpy module" error.

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue4476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org


Gmane