[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

2010-03-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Test failing on 3.1.2rc1.  Should this be considered a release blocker?  
Perhaps just disable temporarily?

--
nosy: +benjamin.peterson, ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8133
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

But should PYTHON_API_VERSION be increased for the 2.7 release?  

I think it should because of the binary incompatible differences between 2.5 
and 2.6. In a perfect world that would have resulted in an increase of 
PYTHON_API_VERSION for the 2.6.0 release, but that's something that slipped 
through the cracks. By increasing the value in 2.7.0 users that switch from 2.5 
to 2.7 get warnings that should help then find why their compiled extension 
stopped working (users migrating from 2.6 to 2.7 would also get the warning 
while it is technically not necessary, but that's harmless because you 
shouldn't reuse extensions  anyway).

The primary reason for posting this issue was that a colleague ran into this 
problem: he compiled an extension on a machine with python2.5 and ran the 
result on a machine with python2.6 and that misteriously didn't work  (in his 
defense: he thought that both machines ran the same version of python).  A 
warning at import would have made it more clear what was going wrong.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8118
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 But should PYTHON_API_VERSION be increased for the 2.7 release?  

Sounds like a good idea.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8118
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8167] test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory

2010-03-18 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

When installation tests are run on a user system using the OS X installer, the 
three tests fail with a crash.  Similar results would be expected on other 
unix-y platforms when tests are run from the install destination, and not the 
source or build directories (which do not exist on user systems using 
installers). On 3.1.2rc1 and py3k, each crashes on an import error:

  test test_{tk,ttk_guionly,ttk_textonly} crashed -- class 'ImportError': No 
module named test

On trunk (2.7), they crash with;
  test test_{tk,ttk_guionly,ttk_textonly} crashed -- type 
'exceptions.ImportError': No module named runtktests

The problem is that the test subdirectories are not being installed by the 
libinstall Makefile target.  For 3.1.2rc1 and py3k, adding the directories to 
LIBSUBDIRS should get them installed:
  LIBSUBDIRS= tkinter site-packages test test/output test/data \
tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \
test/decimaltestdata \ {...}
(Trunk is slightly different.)

--
components: Tests
messages: 101256
nosy: benjamin.peterson, gpolo, ned.deily
severity: normal
status: open
title: test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from 
install directory
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8167
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8168] python3 py_compile does not ignore UTF-8 BOM characters

2010-03-18 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

$ cat bom3.py
# coding: utf-8
print(BOM BOOM!)
$ file bom3.py 
bom3.py: UTF-8 Unicode (with BOM) text
$ python3.1
Python 3.1.1+ (r311:74480, Jan 20 2010, 00:37:31) 
[GCC 4.4.3 20100108 (prerelease)] on linux2
Type help, copyright, credits or license for more information.
 import bom3
BOM BOOM!
 import py_compile
 py_compile.compile(bom3.py)
  File bom3.py, line 1
# coding: utf-8
  ^
SyntaxError: invalid character in identifier

The same test does not fail with python2.6.4.
(Same results on OS X.)

--
components: Library (Lib)
messages: 101257
nosy: ned.deily
severity: normal
status: open
title: python3 py_compile does not ignore UTF-8 BOM characters
versions: Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8168
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8169] SyntaxError messages during install due to compilation of lib2to3 test files

2010-03-18 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

On Python 3.1.2rc1 and py3k, make install results in two identical spurious 
error messages:

Compiling /path/to/lib/python3.1/lib2to3/tests/data/bom.py ...
***   File /usr/local/lib/python3.1/lib2to3/tests/data/bom.py, line 1
# coding: utf-8
  ^
SyntaxError: invalid character in identifier

The messages are triggered by the libinstall Makefile which calls compileall 
twice to generate .pyc and .pyo files for all modules in the installed library. 
 compileall uses py_compile which, due to the problem documented in Issue8168, 
stumbles over the lib2to3 data file bom.py.  While fixing that issue would make 
this problem go away, it seems like it would be better to avoid compiling the 
lib2to3 test files altogether.  Modifying the '-x regexp on the two relevant 
calls to compileall in Makefile.pre.in accomplishes this:

-x 
'bad_coding|badsyntax|site-packages|py2_test_grammar|crlf|different_encoding|lib2to3/tests'
 \

A similar change should be considered for trunk and 2.6 as well.

--
components: Installation
messages: 101258
nosy: benjamin.peterson, ned.deily
severity: normal
status: open
title: SyntaxError messages during install due to compilation of lib2to3 test 
files
versions: Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8169
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2010-03-18 Thread Robin Becker

New submission from Robin Becker rgbec...@users.sourceforge.net:

When building extensions on win32 distutils with --plat-name=win-amd64 adds 
PCBuild/AMD64 in the wrong place.

This patch ensures the AMD64 location comes first

--
assignee: tarek
components: Distutils
files: patch.txt
messages: 101259
nosy: rgbecker, tarek
severity: normal
status: open
title: Wrong Paths for distutils build --plat-name=win-amd64
versions: Python 2.6
Added file: http://bugs.python.org/file16574/patch.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8170
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2010-03-18 Thread Robin Becker

New submission from Robin Becker rgbec...@users.sourceforge.net:

I notice this from win32 setup.py bdist_wininst --plat-name=win-amd64

 running bdist_wininst
 running build
 running build_py
 creating build
 creating build\lib.win32-2.6
 creating build\lib.win32-2.6\reportlab
 copying src\reportlab\rl_config.py - build\lib.win32-2.6\reportlab
..
 C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nolog

followed by errors related to a missing library (the amd64 version won't work 
with a win32 build).

I do have the x86_amd64 stuff installed and after applying a patch to fix 
another small cross compile error I do see a proper build ie

setup.py build --plat-name=win-amd64

and then use

setup.py bdist_wininst --plat-name=win-amd64 --skip-build 

does work. I believe that bdist_wininst is wrongly relying on build to get the 
right plat_name, but that isn't happening.

The attached patch seems to make things work for me by forcing plat_name down 
from the top

--
assignee: tarek
components: Distutils
files: patch.txt
messages: 101260
nosy: rgbecker, tarek
severity: normal
status: open
title: bdist_wininst builds wrongly for --plat-name=win-amd64
versions: Python 2.6
Added file: http://bugs.python.org/file16575/patch.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8171
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-18 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Fixed this in r79047. If we are to backport this to release26-maint, we need 
barry's approval. Barry, any thoughts? The change is a minor improvement, we 
have lived with normal case percent escape for long, mixed case would be bonus 
in release26.

--
nosy: +barry
resolution: accepted - fixed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8172] Documentation of Property needs example

2010-03-18 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

Strangely, the extensive documentation of the property function in the 
Built-in Functions of the documentation has no example of the use of a 
property. Readers unfamiliar with properties should be told that obj.x invokes 
the getter, obj.x=value the setter, etc. The lack of parentheses is 
particularly significant.

--
assignee: georg.brandl
components: Documentation
messages: 101262
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Documentation of Property needs example
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8172
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8142] libffi update to 3.0.9

2010-03-18 Thread Thomas Heller

Thomas Heller thel...@ctypes.org added the comment:

 the ports which are maintained separately still need an update:
 
 libffi_msvc
   libffi trunk now has a port to x86/msvc. might require some
   extra updates from libffi.

I'll take care of this one.
Would it be a good idea to upgrade to libffi trunk
in Modules/_ctypes/libffi, and get rid of the libffi_msvc
fork completely (by applying an additional small patch)?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8142
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8142] libffi update to 3.0.9

2010-03-18 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

 no access to solaris hardware. please could you run the libffi
 testsuite on this machine? make sure that expect is installed.

I don't have access to such hardware.
I noticed the buildbot failures since libffi was upgraded.

--
keywords: +buildbot
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8142
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6081] str.format_from_mapping()

2010-03-18 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

I have created a small patch, that adds method that formats using a dict. It's 
the first time I have written anything in python implementation, so I would 
very appreciate any advice. Change allows the following:

 m = Mapping(a='b')
 '{a} {c}'.format_using_mapping(m)
'b c'


--
keywords: +patch
nosy: +gruszczy
Added file: http://bugs.python.org/file16576/6081_1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6081
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen

Bill Janssen bill.jans...@gmail.com added the comment:

I'm seeing this on Python 2.6.4 on Windows XP with the latest MinGW/msys.

--
nosy: +janssen

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen

Bill Janssen bill.jans...@gmail.com added the comment:

Re-opening.

--
keywords: +26backport
priority: high - normal
resolution: invalid - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Bill Janssen

Bill Janssen bill.jans...@gmail.com added the comment:

My bad.  Adding --compiler=mingw32 eliminates this error.

--
resolution:  - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6081] str.format_from_mapping()

2010-03-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Thanks for the patch. It would be nice if you could include unit tests too.

--
priority:  - normal
stage:  - test needed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6081
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7713] implement ability to disable automatic search path additions

2010-03-18 Thread Jesus Rivero

Changes by Jesus Rivero jesus.rive...@gmail.com:


--
nosy: +Neurogeek

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7713
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Crash reproduced under Mandriva Linux 2010.0 (glibc-2.10.1-6.2mnb2). Stack 
trace is as follows:

(gdb) bt
#0  0x7fb59f2eba9a in strrchr () from /lib64/libc.so.6
#1  0x004010ae in ?? ()
#2  0x00400ff3 in ?? ()
#3  0x7fb59f29091d in __libc_start_main () from /lib64/libc.so.6
#4  0x00400d79 in ?? ()
#5  0x7fff00162fa8 in ?? ()
#6  0x001c in ?? ()
#7  0x in ?? ()

Also, please add the missing test when backporting the patch.

--
nosy: +pitrou
priority:  - high
stage:  - patch review
type:  - crash
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Thomas Heller

Thomas Heller thel...@ctypes.org added the comment:

 Thomas,
 
 Do you remember why your patch for issue1039 was not backported?

Probably an oversight only.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6081] str.format_from_mapping()

2010-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I don't think this patch satisfies Raymond's request.  It is explicitly 
checking for a __missing__ attribute, but Raymond was talking about a more 
general facility whereby you can pass in an arbitrary object that implements 
the mapping interface.  Using the __missing__ facility was just an example of 
why this would be useful.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6081
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6081] str.format_from_mapping()

2010-03-18 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I agree with David.

Although it's not clear to my why the code doesn't just work with the addition 
of do_string_format_using_mapping and without the other code. It's possible the 
existing code is too dict-specific and should be calling a more generic 
PyObject interface, like PyMapping_GetItemString instead of PyDict_GetItem.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6081
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I agree that this should be fixed, since we presumably want to be strictly 
conforming to the posix standards, but it looks like this is a regression in 
either linux or glibc.  From the standard's rational section:

Early proposals required that the value of argc passed to main() be one or 
greater. This was driven by the same requirement in drafts of the ISO C 
standard. In fact, historical implementations have passed a value of zero when 
no arguments are supplied to the caller of the exec functions. This requirement 
was removed from the ISO C standard and subsequently removed from this volume 
of IEEE Std 1003.1-2001 as well. The wording, in particular the use of the word 
should, requires a Strictly Conforming POSIX Application to pass at least one 
argument to the exec function, thus guaranteeing that argc be one or greater 
when invoked by such an application. In fact, this is good practice, since many 
existing applications reference argv[0] without first checking the value of 
argc.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8156] pybsddb 4.8.3+ integration

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

issue7975 finally reproduced. Solved in pybsddb 4.8.3+, and added relevant 
testcases.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

This bug was introduced in pybsddb 4.7.2, when migration to ABC (Abstract Base 
Classes).

I have solved it in 4.8.3+, and added relevant testcases.

I plan to integrate 4.8.3+ in Python 2.7. See issue8156.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-18 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Fixed with r79049 and r79050.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8155
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

On Thu, Mar 18, 2010 at 3:32 PM, R. David Murray rep...@bugs.python.org wrote:
..
 I agree that this should be fixed, since we presumably want to be strictly 
 conforming to the posix standards,
 but it looks like this is a regression in either linux or glibc.  From the 
 standard's rational section:


Let me add just make a few observations without drawing a conclusion:

1.  This is not a crash of python.  As far as I can tell, it is the
executed program that crashes attempting to dereference argv[0]
without checking argc first.   On the platforms that support execution
with argc=0, this is a bug in the application or in the C library.

2. Currently 3.x and 2.x python throw different exceptions from
os.execlp('xyz') if xyz does not exist.   Maybe os.execlp(one_arg)
should raise OSError instead of ValueError.

3. Another alternative would be to change the signature from
os.execlp(path, ...) to os.execlp(path, name, ...) and make
os.execlp() raise TypeError if name is not supplied.   This is an
attractive possibility because it can be done by a trivial change in
os.py while preserving the ability to exec with argc=0 for those who
know what they are doing.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8166] hashlib constructors for sha224, sha256, sha384, sha512 missing in Python 3.1.2rc1 with openssl 0.9.7

2010-03-18 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
assignee:  - gregory.p.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8166
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Florent you are right, good catch. I can not use context managers because 
with is invalid syntax in python 2.3 and 2.4, that I must support for a while.

I have implemented a context manager manually, following the description in PEP 
343. This change is available in pybsddb 4.8.3+. I plan to integrate pybsddb 
4.8.3, see issue8156.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Florent you are right, good catch. I can not use context managers because 
with is invalid syntax in python 2.3 and 2.4, that I must support for a while.

I have implemented a context manager manually, following the description in PEP 
343. This change is available in pybsddb 4.8.3+. I plan to integrate pybsddb 
4.8.3+, see issue8156.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1083] Confusing error message when dividing timedelta using /

2010-03-18 Thread Miki Tebeka

Miki Tebeka miki.teb...@gmail.com added the comment:

I see the same problem when from __future__ import division on the 2.x 
series. Seem like the timedelta objects is missing the __truediv__ method.

--
nosy: +tebeka
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1083
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8156] pybsddb 4.8.3+ integration

2010-03-18 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8169] SyntaxError messages during install due to compilation of lib2to3 test files

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Hopefully fixed in r79051. Can you try the 3.1 branch?

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8169
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8166] hashlib constructors for sha224, sha256, sha384, sha512 missing in Python 3.1.2rc1 with openssl 0.9.7

2010-03-18 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
priority:  - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8166
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6081] str.format_from_mapping()

2010-03-18 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

My first intention was simply to push mapping from args to kwargs, just like 
Eric suggested, but that didn't help with __missing__, only with accepting a 
dict instead of pushing keyword arguments.

I didn't like explicitly asking for __missing__ either, but since I have little 
knowledge of what should be called, I didn't know what to use. I too believe 
something else the PyDict_GetItem should be called, something that would take 
care of __missing__ and other possibilities (I don't know what exactly and 
really would like to know what these are) internally.

I am going to check, whether PyMapping_GetItemString is going to help. But can 
this really be called on a dict (or a subclass of dict)? What about retrieving 
getitem method from the given object and simply calling it? Wouldn't that do 
the trick?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6081
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8166] hashlib constructors for sha224, sha256, sha384, sha512 missing in Python 3.1.2rc1 with openssl 0.9.7

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Nice catch! Reverted in r79054.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8166
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8167] test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r79056.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8167
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8173] test_subprocess leaks

2010-03-18 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

test_subprocess has been leaking since the recent changes in py3k:

test_subprocess leaked [2, 2] references, sum=4

--
assignee: gregory.p.smith
components: Library (Lib), Tests
messages: 101286
nosy: gregory.p.smith, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: test_subprocess leaks
type: resource usage
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8173
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8024] upgrade to Unicode 5.2

2010-03-18 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Done with r79059 and r79062.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8024
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8168] python3 py_compile does not ignore UTF-8 BOM characters

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r79068.

--
nosy: +benjamin.peterson
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8168
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8169] SyntaxError messages during install due to compilation of lib2to3 test files

2010-03-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

'bad_coding' is still needed in the -x regexp.  BTW, it's easy enough to test 
by doing something like:
   make install DESTDIR=/tmp/p/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8169
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7643] What is a Unicode line break character?

2010-03-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: http://bugs.python.org/file15806/issue7643_remove_deprecation.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7643] What is a Unicode line break character?

2010-03-18 Thread Michael Foord

Changes by Michael Foord mich...@voidspace.org.uk:


--
nosy:  -michael.foord

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8169] SyntaxError messages during install due to compilation of lib2to3 test files

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2010/3/18 Ned Deily rep...@bugs.python.org:

 Ned Deily n...@acm.org added the comment:

 'bad_coding' is still needed in the -x regexp.  BTW, it's easy enough to test 
 by doing something like:
   make install DESTDIR=/tmp/p/

Ok. :) Refixed in r79076.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8169
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6837] Mark the compiler package as deprecated

2010-03-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Promoted warning to full DeprecationWarning in r79078.

--
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6837
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8166] hashlib constructors for sha224, sha256, sha384, sha512 missing in Python 3.1.2rc1 with openssl 0.9.7

2010-03-18 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Fix verified.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8166
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen

Craig McQueen pyt...@craig.mcqueen.id.au added the comment:

This bug was confirmed to no longer be present for Python 2.6.4, however it is 
still present for Python 3.1.1. Could someone with open privileges re-open 
this please?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7643] What is a Unicode line break character?

2010-03-18 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Cleanup committed as r78982

Patch for LineBreak.txt updated after UCD upgrade to 5.2.
See details: http://bugs.python.org/issue7643#msg97483

Tests added to test_unicodedata.

Backward compatibility concern:
 * it adds VT u'\x0b' and FF u'\x0c' as line breaks.

The choice is either to preserve backward compatibility, or to comply with the 
specification (UAX #14).

--
priority:  - normal
Added file: http://bugs.python.org/file16577/issue7643_use_LineBreak_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2445] Use The CygwinCCompiler Under Cygwin

2010-03-18 Thread Bill Janssen

Bill Janssen bill.jans...@gmail.com added the comment:

Shouldn't the import library name end with .lib?  I've run up against this 
building PyLucene with MinGW.  There seems to be code to figure this out 
already in CygwinCCompiler, but it's commented out (and arguably incomplete).

--
nosy: +janssen

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2445
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8173] test_subprocess leaks

2010-03-18 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

Pretty sure I know off the top of my head what this is.  Ill fix it.

--
Added file: http://bugs.python.org/file16578/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8173
___pPretty sure I know off the top of my head what this is.  Ill fix it./p
p--br
Tapped out or dictated on my Nexus One./p
pblockquote type=citeOn Mar 18, 2010 2:49 PM, quot;Antoine Pitrouquot; 
lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt; 
wrote:brbrbr
New submission from Antoine Pitrou lt;a 
href=mailto:pit...@free.fr;pit...@free.fr/agt;:br
br
test_subprocess has been leaking since the recent changes in py3k:br
br
test_subprocess leaked [2, 2] references, sum=4br
br
--br
assignee: gregory.p.smithbr
components: Library (Lib), Testsbr
messages: 101286br
nosy: gregory.p.smith, pitroubr
priority: normalbr
severity: normalbr
stage: needs patchbr
status: openbr
title: test_subprocess leaksbr
type: resource usagebr
versions: Python 3.2br
br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue8173; 
target=_blankhttp://bugs.python.org/issue8173/agt;br
___br
/blockquote/p
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8024] upgrade to Unicode 5.2

2010-03-18 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Reverted in 3.x: it triggers some failures.

Symptoms:
 * repr('\uaaa') gives an empty string
 * test_bigmem fails

--
resolution: fixed - accepted
stage: committed/rejected - commit review
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8024
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8174] Misleading reported number of given arguments on function call TypeError

2010-03-18 Thread George Sakkis

New submission from George Sakkis george.sak...@gmail.com:

The following exception message seems misleading, or at least not obvious:

 def f(a,b,c): pass
... 
 f(c=0,a=0)
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: f() takes exactly 3 non-keyword arguments (1 given)

Why 1 given ? One could argue for either 0 or 2 given arguments but I fail to 
see how 1 is a reasonable answer.

--
components: Interpreter Core
messages: 101298
nosy: gsakkis
severity: normal
status: open
title: Misleading reported number of given arguments on function call TypeError
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8174
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8174] Misleading reported number of given arguments on function call TypeError

2010-03-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Duplicate of #6474.

--
nosy: +ezio.melotti
priority:  - normal
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8174
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments

2010-03-18 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti, gsakkis
superseder:  - Misleading reported number of given arguments on function call 
TypeError

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments

2010-03-18 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
superseder: Misleading reported number of given arguments on function call 
TypeError - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Craig, 

did you run the command like this under 3.x ? :

$ python setup.py build --compiler=mingw32 --verbose

Also, what is your gcc version ? and your PATH environment ?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen

Craig McQueen pyt...@craig.mcqueen.id.au added the comment:

I ran it as follows:

\python31\python.exe setup.py build --compiler=mingw32 --verbose

and got:

running build
running build_py
running build_ext
building 'cobs._cobsext' extension
error: Unable to find vcvarsall.bat

If I run:

gcc --version

I get:

gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Path:
PATH=C:\Program Files\CollabNet\Subversion Server;C:\WINNT\Microsoft.NET\Framewo
rk\v1.1.4322\;C:\WINNT\system32;C:\WINNT;C:\Program Files\Microsoft Visual Studi
o 8\VC\bin;C:\Program Files\Subversion\bin;C:\Program Files\IVI Foundation\IVI\b
in;C:\Program Files\IVI Foundation\VISA\WinNT\Bin\;C:\PROGRA~1\IVIFOU~1\VISA\Win
NT\Bin;C:\Program Files\IVI Foundation\VISA\WinNT\Bin;c:\python26\;C:\Program Fi
les\TortoiseSVN\bin;C:\Program Files\TortoiseHg;c:\MinGW\bin

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen

Craig McQueen pyt...@craig.mcqueen.id.au added the comment:

And, I should add, doing nearly the same thing, except with Python 2.6.4, works 
fine. Same machine, same console window, same path:

\python26\python.exe setup.py build --compiler=mingw32 --verbose

running build
running build_py
running build_ext
building 'cobs._cobsext' extension
c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python26\include -IC:\Pytho
n26\PC -c src/_cobsext2.c -o build\temp.win32-2.6\Release\src\_cobsext2.o
writing build\temp.win32-2.6\Release\src\_cobsext.def
c:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\_co
bsext2.o build\temp.win32-2.6\Release\src\_cobsext.def -LC:\Python26\libs -LC:\P
ython26\PCbuild -lpython26 -lmsvcr90 -o build\lib.win32-2.6\cobs\_cobsext.pyd

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3135] inspect.getcallargs()

2010-03-18 Thread George Sakkis

George Sakkis george.sak...@gmail.com added the comment:

I reverted the function to the original API (return just the dict with the 
bindings), cleaned it up, wrote thorough unit tests and made a patch against 
Python 2.7a4.

--
keywords: +patch
Added file: http://bugs.python.org/file16579/getcallargs.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8068] OS X Installer: merge python2 and python3 build-installer.py script

2010-03-18 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Does this still affect 2.6 then?

--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8068
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Benjamin, can I fix this bug before you tag 3.1.2 ?

Basically, I'll apply on 3.1 what was applied on 2.6 :

MacZiade:release31-maint tarek$ svn di
Index: Lib/distutils/command/build_ext.py
===
--- Lib/distutils/command/build_ext.py  (révision 79090)
+++ Lib/distutils/command/build_ext.py  (copie de travail)
@@ -310,7 +310,7 @@
 
 # Setup the CCompiler object that we'll use to do all the
 # compiling and linking
-self.compiler = new_compiler(compiler=None,
+self.compiler = new_compiler(compiler=self.compiler,
  verbose=self.verbose,
  dry_run=self.dry_run,
  force=self.force)


Then, after you have tagged 3.1, I will revert distutils in py3 branch so it's 
back to 3.1 state then frozen, like what I am doing for 2.7.

--
nosy: +benjamin.peterson
resolution: rejected - accepted

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2698
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7643] What is a Unicode line break character?

2010-03-18 Thread Chris Carter

Chris Carter jesdisci...@gmail.com added the comment:

unwatched

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3135] inspect.getcallargs()

2010-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +Alexander.Belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments

2010-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +Alexander.Belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8174] Misleading reported number of given arguments on function call TypeError

2010-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +Alexander.Belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8174
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3690] sys.getsizeof wrong for Py3k bool objects

2010-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +Alexander.Belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3690
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com