[issue3547] Ctypes is confused by bitfields of varying integer types

2008-09-18 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Updated patch. Added file: http://bugs.python.org/file11514/bitfields-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3547 ___

[issue3547] Ctypes is confused by bitfields of varying integer types

2008-09-18 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11513/bitfields.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3547 ___

[issue3187] os.listdir can return byte strings

2008-09-18 Thread Helmut Jarausch
Helmut Jarausch [EMAIL PROTECTED] added the comment: Hi, is this assumed to be fixed in 3.0rc1 ? with SVN 66506 (3.0rc1+) for dirname, subdirs, files in os.walk(bytes(Top,'iso-8859-1')) : still gives an error here: for dirname, subdirs, files in os.walk(bytes(Top,'iso-8859-1')) : File

[issue3547] Ctypes is confused by bitfields of varying integer types

2008-09-18 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Updated the unittest so that it works on Windows, too. Added file: http://bugs.python.org/file11515/bitfields-3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3547

[issue3547] Ctypes is confused by bitfields of varying integer types

2008-09-18 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11514/bitfields-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3547 ___

[issue3897] collections

2008-09-18 Thread Dieter Kadelka
New submission from Dieter Kadelka [EMAIL PROTECTED]: Line 179 in Setup.dist should be replaced by #_collections _collectionsmodule.c # Container types _collectionsmodule.c doesn't exist any longer -- components: Extension Modules messages: 73365 nosy: kadelka severity: normal status:

[issue3862] test_array fails on FreeBSD7 amd64

2008-09-18 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Thanks, Alan. I realised my answer was a shallow one after reading (too late!) the thread you started on python-dev. However, I have a suspicion that that particular array test (test_alloc_overflow) was merely meant to test the code in

[issue3893] timedelta overflows in a surprising way

2008-09-18 Thread Shannon -jj Behrens
Shannon -jj Behrens [EMAIL PROTECTED] added the comment: Yes, that makes perfect sense. Sorry, I missed that part of the docs. Please feel free to close this bug. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3893

[issue3862] test_array fails on FreeBSD7 amd64

2008-09-18 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: s/Alan/Andrew/. Need more coffee. Apologies. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3862 ___ ___

[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-18 Thread vila
vila [EMAIL PROTECTED] added the comment: Here you are Added file: http://bugs.python.org/file11516/issue3879.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3879 ___

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Adding Nelson to the nosy list, since I'm unable to debug any Windows issue by myself. I'm very interested in the report saying that MS Windows Berkeley DB correctly sends the db.DB_EVENT_REP_STARTUPDONE event in his setup. That could

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: ¿Somebody can try this issue in a Windows box?. It could be a Berkeley DB bug in that platform, but I would like to verify this before informing Oracle. Thanks. ___ Python tracker [EMAIL PROTECTED]

[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- keywords: +needs review priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3879 ___

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-18 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: http://bugs.python.org/issue3026 is about the same issue (with a working patch added 2 months ago). It's really sad that it sat there for so long. I could have spent that time on something else... (btw. my patch also made the hash functions

[issue3026] integer overflow in hashlib causes wrong results for cryptographic hash functions [was: mmap broken with large files on 64bit system]

2008-09-18 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: same issue in http://bugs.python.org/issue3886. it's sad that no one took a look at the patch... now, it should probably be closed... ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3026

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: As a security issue, the patch should also be backport to 2.5 (and 2.4 if applicable) -- nosy: +loewis versions: +Python 2.4, Python 2.5 ___ Python tracker [EMAIL PROTECTED]

[issue3026] integer overflow in hashlib causes wrong results for cryptographic hash functions [was: mmap broken with large files on 64bit system]

2008-09-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ok, closing. Thanks for the patch, anyway. -- resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3026

[issue3666] atexit.register with bad input segfaults on exit

2008-09-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Why not just have atexit_callfuncs call atexit_cleanup at the end of its execution? -- nosy: +skip.montanaro ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3666

[issue3898] 3.0 documentation fails to build

2008-09-18 Thread Martin v. Löwis
New submission from Martin v. Löwis [EMAIL PROTECTED]: In 3.0rc1, I get, for make htmlhelp ... contents copyright distutils/apiref Exception occurred: File /cygdrive/c/loewis/3k/python/Doc/tools/pygments/lexers/__init__.py, lin e 83, in get_lexer_by_name raise ClassNotFound('no lexer for

[issue3666] atexit.register with bad input segfaults on exit

2008-09-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: The attached patch causes an exception to print at exit on my Mac: import sys, atexit atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0) function lambda at 0x5c91e0 sys.exit() Error in atexit._run_exitfuncs: TypeError:

[issue3898] 3.0 documentation fails to build

2008-09-18 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: You'll have to update the Pygments library; try a rm -r tools/pygments; make update. -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3899] test_ssl.py doesn't properly test ssl integration with asyncore

2008-09-18 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' [EMAIL PROTECTED]: The AsyncoreEchoServer class in test_ssl.py doesn't actually test a real integration with asyncore since the do_handshake_on_connect flag is set to True and hence temporarily blocks the asyncore polling loop as long as the ssl handshake

[issue3102] ctypes defines global symbols

2008-09-18 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Is it too late to fix this for Python 2.6 and Python 3.0? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3102 ___

[issue3666] atexit.register with bad input segfaults on exit

2008-09-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: New patch. This also makes the various atexit_* functions static. Added file: http://bugs.python.org/file11519/atexit.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3666

[issue3900] ctypes: wrong calling convention for _string_at

2008-09-18 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: Our application server running on top of Twisted crashs 1 to 3 times per day. It uses a ctypes binding for libnetfilter_conntrack (dump Linux conntrack table) which is running in a dedicated thread. So we get: - Python 2.5.2 - Twisted

[issue3900] ctypes: wrong calling convention for _string_at

2008-09-18 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: -- type: - crash ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3900 ___ ___ Python-bugs-list mailing list

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I've tried this issue on VC6 + db4.7.25.0 + win2k, and I could reproduce error. I added following patch for investigation. Index: Lib/bsddb/test/test_replication.py === ---

[issue3885] errors on _bsddb creation and dealloc

2008-09-18 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Not only in these functions, but anywhere dummy= is followed by a Py_XDECREF(dummy); Please, clarify this. I don't see your point. And code like this must also be changed (in DB_open): if (makeDBError(err)) { PyObject *dummy;

[issue3900] ctypes: wrong calling convention for _string_at

2008-09-18 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: This is already fixed in SVN, see issue #3554. -- assignee: - theller nosy: +theller resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3900] ctypes: wrong calling convention for _string_at

2008-09-18 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: This is already fixed in SVN, see issue #3554 Oh... cool because next release will fix it, and fuck because it took me hours to found this bug... ___ Python tracker [EMAIL PROTECTED]

[issue3885] errors on _bsddb creation and dealloc

2008-09-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Not only in these functions, but anywhere dummy= is followed by a Py_XDECREF(dummy); Please, clarify this. I don't see your point. If dummy is NULL, a pending exception has been set (with PyErr_SetString or another similar

[issue3901] Slight readme.txt fix (VC9)

2008-09-18 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto [EMAIL PROTECTED]: I'm not VC9 guy, but it looks not up-to-date on _bsddb section. -- assignee: georg.brandl components: Documentation files: slight_readme_fix.patch keywords: patch messages: 73391 nosy: georg.brandl, ocean-city severity: normal

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Sorry about missing your work, Ralf. In the rush to getting a fix in for 2.6rc2 we went with the patch Apple sent to the security mailing list when the CVE was reported to us. And 2.5 has already been patched by r66497, so removing that as a

[issue3902] distutils does not correctly create packages for compiled extensions

2008-09-18 Thread Eyal Lotem
New submission from Eyal Lotem [EMAIL PROTECTED]: When using either the ext_package keyword argument to setup, or when using the pkg.name module name notation to Extension instances, distutils installs the compiled extensions into the appropriate package directory. However, distutils does not

[issue3853] Windows SQLite DLL should be built with multithreading enabled

2008-09-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I agree with Amaury's analysis (except that the preferred way to override it is to define SQLITE_THREADSAFE directly). If it's not defined, it defaults to 1. Closing as works-for-me. -- resolution: - works for me status: open -

[issue3885] errors on _bsddb creation and dealloc

2008-09-18 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Very good point, Amaury. I would open a new bug to track this (probably for 2.6.1 time). Can you?. In the meanwhile, I need review for the inmediate patch, since the crash is 100% reproductible. ___

[issue3887] Python 2.6 doesn't run after installation on amd64

2008-09-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I can't reproduce the problem. Did you install for all users, or just for you? Do you have the CRT already installed or not? Can you try replacing the manifest with the attached one (not sure why it says x86)? You then also need to replace

[issue3887] Python 2.6 doesn't run after installation on amd64

2008-09-18 Thread John Ehresman
John Ehresman [EMAIL PROTECTED] added the comment: This is on a fresh Vista Ultimate install. There is no msvcr90.dll anywhere on the system, if windows file search according to windows file search (I did check the hidden / system file box). The first report is from a for me install. After

[issue3899] test_ssl.py doesn't properly test ssl integration with asyncore

2008-09-18 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: The server wasn't meant to be non-blocking. The non-blocking test is performed when the client (which is non-blocking) connects to it. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3899

[issue3903] pickle error in python3.0rc1

2008-09-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Pickled files should *always* be used in binary mode. The 3.0 pickle documentation states this: Be sure to always open pickle files created with protocols = 1 in binary mode. For the old ASCII-based pickle protocol 0 you can use either

[issue3893] timedelta overflows in a surprising way

2008-09-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3893 ___

[issue3897] collections

2008-09-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Why do you think it doesn't exist? It appears to be alive and healthy in Modules/_collectionsmodule.c. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue2550] SO_REUSEADDR doesn't have the same semantics on Windows as on Unix

2008-09-18 Thread Forest Wilkinson
Changes by Forest Wilkinson [EMAIL PROTECTED]: -- nosy: +forest ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2550 ___ ___ Python-bugs-list mailing

[issue3723] Py_NewInterpreter does not work

2008-09-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Maybe, I'm not seeing the whole problem, but can't we just add _PySys_Init and _PyBuiltin_Init to config.c like in the attached patch? Obviously, we will eventually want to make a separate state to store module globals in, but I think this

[issue3102] ctypes defines global symbols

2008-09-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Formally, I can't answer that question; you need to ask the RM. Informally, I think only serious bugs can be fixed now; this bug is not serious. ___ Python tracker [EMAIL PROTECTED]

[issue3904] asynchat async_chat __init__() arguments changed in python 2.6

2008-09-18 Thread Forest Wilkinson
New submission from Forest Wilkinson [EMAIL PROTECTED]: In python 2.6rc2, the async_chat.__init__() parameters have changed. The first arg was called 'conn' in python 2.5, and it is now called 'sock'. This change breaks code that worked with previous python 2.x versions, if that code followed

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-18 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Python 2.4 uses an 'int' for ob_size so it does not appear at first glance that its sha module (what hashlib was derived from) is susceptible to this bug when compiled as 64-bit. -- keywords: +64bit nosy: +gregory.p.smith versions:

[issue3904] asynchat async_chat __init__() arguments changed in python 2.6

2008-09-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - josiahcarlson nosy: +josiahcarlson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3904 ___

[issue3708] os.urandom(1.1): infinite loop

2008-09-18 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: It seems to me that test case will fail on windows and vms platforms. The case contain os.urandom(1.1) but in posixmodule.c for urandon functions (windows and vms) exits: PyArg_ParseTuple(args, i:urandom, howMany)) ./python.exe -c 'import os;

[issue3905] subprocess failing in GUI applications on Windows

2008-09-18 Thread Todd Whiteman
Todd Whiteman [EMAIL PROTECTED] added the comment: This seems to be somewhat related to issue1124861: http://bugs.python.org/issue1124861 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3905 ___

[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Georg, you applied the offending patch. Can you comment? -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3879

[issue586680] -S hides standard dynamic modules

2008-09-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: If we think once can reliably add the directory based purely on whether it starts with build/lib., and then potentially check for a suffix of -pydebug if we are in a debug build, I will support adding this to getpath.c to ditch the distutils

[issue3906] lib2to3\main.py will not run

2008-09-18 Thread Roger Upole
New submission from Roger Upole [EMAIL PROTECTED]: On first try: File H:\Python-3.0rc1\Lib\lib2to3\main.py, line 10, in module from . import refactor ValueError: Attempted relative import in non-package And after changing that line to from lib2to3 import refactor it still dies with

[issue3904] asynchat async_chat __init__() arguments changed in python 2.6

2008-09-18 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: Fixed documentation in revision 66510. Also, the parameters changed long before rc2. ;) -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue586680] -S hides standard dynamic modules

2008-09-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Thu, Sep 18, 2008 at 6:58 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added the comment: If we think once can reliably add the directory based purely on whether it starts with build/lib., and then potentially

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Mark Hammond
Mark Hammond [EMAIL PROTECTED] added the comment: We are seeing one more error almost identical to the one I fixed (even the method name is the same), but its at line 315 - this is the last error in the Windows buildbot! Please let me know if you would like me to make a similar fix to this

[issue1641] asyncore delayed calls feature

2008-09-18 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: I have an updated sched.py module which significantly improves the performance of the cancel() operation on scheduled events (amortized O(log(n)), as opposed to O(n) as it is currently). This is sufficient to make sched.py into the

[issue3899] test_ssl.py doesn't properly test ssl integration with asyncore

2008-09-18 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: Being able to test the async features of both sides of the SSL connection is a good thing. Also, the subclass provides a useful example for users who want to use asyncore and ssl servers without blocking on an incoming connection.

[issue3906] lib2to3\main.py will not run

2008-09-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: lib2to3/main.py is not an entry point. You should use the top level 2to3 script. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3907] for line in file doesn't work for pipes

2008-09-18 Thread endolith
New submission from endolith [EMAIL PROTECTED]: One of the principles of Python is that There should be one-- and preferably only one --obvious way to do it. It seems that the for line in file idiom is The Way to iterate over the lines of a file, and older more explicit methods are deprecated.

[issue3851] IDLE: Pressing Home on Windows places cursor before instead of after. Solution offered.

2008-09-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3851 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3851] IDLE: Pressing Home on Windows places cursor before instead of after. Solution offered.

2008-09-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11483/issue_3851.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3851 ___

[issue3905] subprocess failing in GUI applications on Windows

2008-09-18 Thread Trent Mick
Trent Mick [EMAIL PROTECTED] added the comment: The failure is in the DuplicateHandle call that subprocess makes on, in this case, the stdin handle (as returned by `GetStdHandle(STD_INPUT_HANDLE)`) call earlier. Two cases here: 1. When this is run in a subsystem:windows process (like PythonWin

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-18 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: just make a similar fix for now. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3892 ___ ___