[issue12967] AttributeError distutils\log.py

2011-09-16 Thread ben
ben thelen_...@yahoo.com added the comment: Hi Eric,   I'm not suggesting that python does not test the applications. just reporting what I experience. The python version installed is r32:88445   What I did, I opened the setup file (in IDLE) from the distribute 0.6.21 and run this.   On my

[issue8237] multiprocessing.Queue() blocks program

2011-09-16 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's a dupe of issue #8426: the Queue isn't full, but the underlying pipe is, so the feeder thread blocks on the write to the pipe (actually when trying to acquire the lock protecting the pipe from concurrent access). Since the

[issue6103] Static library (libpythonX.Y.a) installed in incorrect location

2011-09-16 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: It would be nice to get some feedback on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6103 ___

[issue1222585] C++ compilation support for distutils

2011-09-16 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Could this get some attention, please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585 ___

[issue6715] xz compressor support

2011-09-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Nadeem, I started reviewing this path, but now stopped since the patch I reviewed isn't available anymore. Please let us know when the patch has a state where you don't plan to make more changes. --

[issue12990] launcher can't work on path including tradition chinese char

2011-09-16 Thread Ricky Teng
Changes by Ricky Teng ricky.t...@gmail.com: -- assignee: ronaldoussoren components: Macintosh nosy: Ricky.Teng, ronaldoussoren priority: normal severity: normal status: open title: launcher can't work on path including tradition chinese char versions: Python 2.7

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I just discovered that struct packs pointers from objects with an __index__() method. Is that intentional? import struct class IDX(object): ... def __init__(self, value): ... self.value = value ... def __index__(self):

[issue1172711] long long support for array module

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I am OK with applying the fix for this issue first. I also think this should be committed first. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172711

[issue6715] xz compressor support

2011-09-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Ah, sorry about that. It probably wasn't necessary to regenerate the patch after I addressed the comments in each review. The patch should be stable now; I don't plan to make any further changes for a while. (At some point I'll want to add

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-16 Thread Wong Wah Meng
Wong Wah Meng wahm...@freescale.com added the comment: I revert to this after I got my HP-UX ANSI-C compiler installed on my server (HP-UX 11.31 ia64). 1.) Going back to SSL question, here is the software and version that is found on my server. I am not sure if this is the header only or the

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Wong Wah Meng
New submission from Wong Wah Meng wahm...@freescale.com: Server Info: HP-UX B.11.31 Itanium ia64. Evaluation copy is used however the license is being purchased, hopefully this are not these errors are not caused by evaluation copy. # swlist -l product | grep Compiler ACXX

[issue12990] launcher can't work on path including tradition chinese char

2011-09-16 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: Could you please add some more information on how I can reproduce this issue? -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org

[issue1172711] long long support for array module

2011-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Agreed. Commit first; worry about __int__ and __index__ later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172711 ___

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, that's intentional. When use of __int__ was deprecated, a bug report popped up from someone who wanted to be able to have their own objects treated as integers for the purposes of struct.pack. (I don't recall which issue; Meador, do

[issue7201] double Endian problem and more on arm

2011-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: won't fix seems reasonable to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7201 ___

[issue7201] double Endian problem and more on arm

2011-09-16 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7201 ___ ___ Python-bugs-list

[issue12992] Python build finished, but the necessary bits to build these modules were not found: _tkinter

2011-09-16 Thread Wong Wah Meng
New submission from Wong Wah Meng wahm...@freescale.com: Hello there, I am building python on HP-UX 11.31 (Itanium ia64). I would like to utilize the _tkinter module in my application however I failed to build it. I think this module requires additional tcl + tk source code placed into

[issue12993] prepared statements in sqlite3 module

2011-09-16 Thread Mayur Angela Patel-Lam
New submission from Mayur Angela Patel-Lam patel.lam.fam...@gmail.com: The sqlite3 module is wonderful, but the one advantage that C/C++ coders have using that system is the ability to use precompiled/prepared SQL statements. Some SQL databases like Postgresql allow you to precompile

[issue12994] cx_Oracle failed to load in newly build python 2.7.1

2011-09-16 Thread Wong Wah Meng
New submission from Wong Wah Meng wahm...@freescale.com: Platform : HP-UX 11.31 on Itanium ia64. HP Compiler: # swlist -l product | grep Compiler ACXX C.06.26.EVAL HP C/aC++ Compiler C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler COMPLIBS

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: Yes, that's intentional. When use of __int__ was deprecated, a bug report popped up from someone who wanted to be able to have their own objects treated as integers for the purposes of

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think you may want to ask these questions on the Python mailing list: http://mail.python.org/mailman/listinfo/python-list This is the Python bug-tracker, and it's not obvious to me that any of your points is a bug in Python.

[issue12992] Python build finished, but the necessary bits to build these modules were not found: _tkinter

2011-09-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The bug tracker is not the right place for this kind of questions (the fact that some modules are not built is not a bug). You might want to try installing the tk-dev package and see if that solves the problem though. -- nosy:

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: 1) I cannot reproduce this. 2) ld is the linker and not the compiler. 3) and 4) Should definitely be asked on python-list. -- resolution: - works for me stage: - committed/rejected status: open - closed

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I specifically meant the 'P' format. As far as I can see, PyLong_AsVoidPtr() never allowed __int__(), but now index objects can be packed as pointers. It isn't a big deal, I just have to know for features/pep-3118. To illustrate, this is

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I encountered more failures in module build with my HP-UX ANSI C Compiler versus gcc. I wonder why. That's really simple to answer. HP-UX is not well supported. You are pretty much on your own. -- nosy: +loewis

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks for the report, which I verified on 3.2.2, Win7. When reporting a bug, please give a minimal example of code showing the bug, and the buggy output. I presume you mean something like the following (slightly edited): profile.run('for i

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Meador Inge rep...@bugs.python.org wrote: The behavior around '__int__' in previous versions seems somewhat accidental. I think struct followed the functions in longobject.c, which is not really consistent with respect to duck typing.

[issue12953] Function calls missing from profiler output

2011-09-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I wonder if it has something to do with range returning a special type? range and len are very different things under the hood. -- nosy: +r.david.murray ___ Python tracker

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Hagen Fürstenau
Hagen Fürstenau ha...@zhuliguan.net added the comment: It happens for other C functions as well, e.g. itertools.permutations: profile.run('itertools.permutations(range(10), 3)') 4 function calls in 0.000 seconds Ordered by: standard name ncalls tottime percall cumtime

[issue12955] urllib2.build_opener().open() is not friendly to with ... as:

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: As I understand this, you are asking that 2.7 urllib2.build_opener().open(), which in 3.x is urllib.request.build_opener().open(), be upgraded to return an object that works as a context manager. Unless the docs say that this should already

[issue12955] urllib2.build_opener().open() is not friendly to with ... as:

2011-09-16 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Just as a quick guideline. If you are talking about context manager support for urlopen, it is available and present in 3.x but not on 2.7. And I fear, it is late to make it available on 2.7, because it is a feature. In any case, as Terry

[issue12995] Different behaviours with class str between v3.1.2 and v3.2.2

2011-09-16 Thread Vincent Vande Vyvre
New submission from Vincent Vande Vyvre vincent.vandevy...@swing.be: Hi, Trying this code: -- # -*- coding: utf-8 -*- import os import sys import platform print('\nPython version: ', sys.version.split()[0]) print(platform.platform()) paths =

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Range and most of the itertools functions are exposed at the Python level as iterator classes. (But since C does not have classes, they must be C-level functions!) The int 'class' is also not profiled. I think this is wrong behavior. Int and

[issue12995] Different behaviours with class str between v3.1.2 and v3.2.2

2011-09-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is because how the filesystem encoding is determined has changed. You probably need to explicity discover how non-ascii characters like those in '/home/vincent/àéèîö.jpg' are encoded in your filesystem. -- nosy:

[issue12955] urllib2.build_opener().open() is not friendly to with ... as:

2011-09-16 Thread Valery Khamenya
Valery Khamenya khame...@gmail.com added the comment: Terry, Senthil, thanks, for replying to this ticket. OK, to the question: 1. @Terry, here is the full example as for CPython 2.7 I am talking about and the output: # from urllib2 import Request, build_opener request =

[issue12961] unlabelled balls in boxes

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Feature requests only apply to 3.3. To echo Mark: there are an indefinite number of combinatorial generators that could be added. The itertools module should only have a few of the most generally useful, especially in combination with other

[issue12996] multiprocessing.Connection endianness issue

2011-09-16 Thread Charles-François Natali
New submission from Charles-François Natali neolo...@free.fr: Since the rewrite in pure Python of multiprocessing.Connection (issue #11743), multiprocessing.Connection sends and receives the length of the data (used as header) in host byte order. This will break if the connection's endpoints

[issue12966] cookielib.LWPCookieJar breaks on cookie values with a newline

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Some notes: In 3.x, cookielib is http.cookiejar. LWPCookieJar is a subclass of FileCookieJar. The module follows RFC 2109 and RFC 2965. RFC 6265 is labelled a 'PROPOSED STANDARD' that 'obsoletes' 2965, but its status is unclear to me. RFC

[issue12972] Color prompt + readline

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: From your version choice, you apparently are using 2.6, which is in security-fix only mode. Please test with the latest 2.7 and/or 3.2. -- nosy: +terry.reedy stage: - test needed versions: +Python 2.7 -Python 2.6

[issue12973] int_pow() implementation is incorrect

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: duplicate - stage: committed/rejected - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___

[issue12979] tkinter.font.Font object not usable as font option

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12979 ___ ___ Python-bugs-list

[issue12979] tkinter.font.Font object not usable as font option

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Tkinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12979 ___ ___ Python-bugs-list

[issue12982] .pyo file cannot be imported

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Eric, you can initially give a doc patch as text in a message, though an actual diff in nicer and may get action sooner. I agree that something could be added. Perhaps the quote It is possible should be followed with something like

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I've refreshed this patch against the latest version of the code in hg. In an attempt to make it easier to review, I've split it up into four (so far) thematic patches, which apply in sequence. -- Added file:

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: Added file: http://bugs.python.org/file23173/0002-Add-error-handling-to-initialization-of-_hashlib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: Added file: http://bugs.python.org/file23174/0003-Add-optional-usedforsecurity-argument-in-various-pla.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: Added file: http://bugs.python.org/file23175/0004-_hashlib-Add-selftest-for-FIPS-mode-and-usedforsecur.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: [and yes, I used git to generate the 4 patches; sorry ] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216 ___

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: The cumulative effect of the above patches (to _hashlib) are equivalent to what I've applied downstream to python 2 in RHEL 6.0 and Fedora 17 onwards, and python 3 in Fedora 17 onwards. In those environments I've additionally patched hashlib

[issue12976] add support for MirBSD platform

2011-09-16 Thread Benny Siegert
Benny Siegert bsieg...@gmail.com added the comment: As requested, here is the full patch for MirBSD support. The diff was taken against version 2.7.2. It is really quite easy, you just need to handle MirBSD like OpenBSD. With this patch, I can successfully compile and run Python on MirBSD.

[issue12976] add support for MirBSD platform

2011-09-16 Thread Benny Siegert
Changes by Benny Siegert bsieg...@gmail.com: Removed file: http://bugs.python.org/file23153/patch-az ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12976 ___

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You could help this along by both running Lib.test.test_uuid with your patch applied and reporting that it passes. Raymond, I added you because this is about changing random functions. Side note: This code in test_uuid.test_uuid4()

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I got same with 3.2.2. I did it first from editor window and it only crashed that window, leaving the shell window ok until I tried it there also. -- nosy: +terry.reedy ___ Python tracker

[issue12967] AttributeError distutils\log.py

2011-09-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That won't work in IDLE because IDLE replaces the standard sys.stdout file object with a special proxy object to capture stdout across its processes and the proxy object does not currently support all of the attributes of a io.TextTIOWrapper object,

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2011-09-16 Thread Matt Chaput
Matt Chaput m...@whoosh.ca added the comment: Passed all tests OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12986 ___ ___ Python-bugs-list

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The view of MyDocuments in the save dialog is different from that of Windows Explorer. In particular, it shows a directory twice, the current version and an older version. Double clicking the current version, to see the contents, also crashed

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Barry, Benjamin, do you agree that this is a security issue as far as future 2.6 and 3.1 security fix releases are concerned? -- nosy: +barry, benjamin.peterson, terry.reedy ___ Python tracker

[issue12993] prepared statements in sqlite3 module

2011-09-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12993 ___ ___ Python-bugs-list mailing list

[issue6715] xz compressor support

2011-09-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm a bit worried by the Windows version: - liblzma can't be compiled by Visual Studio: too many C99 isms, mostly variables declared in the middle of a block. It's doable for sure, but it's a lot of work. - liblzma is normally

[issue12994] cx_Oracle failed to load in newly build python 2.7.1

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This tracker is for issues (bugs and feature requests) involving CPython. Your problem appears to be with the 3rd-party extension. Please ask your question on its mailing list https://lists.sourceforge.net/lists/listinfo/cx-oracle-users It

[issue12955] urllib.request example should use with ... as:

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On 3.2.2, your example (adapted) produces 2945 characters fetched So, as Senthil said, the requested feature already exists. But it cannot be added to the 2.7 series; the Python 2.7 *language* is feature frozen. 2.7.z bug fixes serve to

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-16 Thread Mark Bucciarelli
New submission from Mark Bucciarelli m...@crosscutmedia.com: If I read http://bugs.python.org/issue10740#msg132470 correctly, the foreign_keys PRAGMA is a no-op b/c The python sqlite module automatically commits open transactions when it encounters a DDL statement. Entering as a separate

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12997 ___ ___ Python-bugs-list mailing list

[issue12955] urllib.request example should use with ... as:

2011-09-16 Thread Valery Khamenya
Valery Khamenya khame...@gmail.com added the comment: Guys, in my item 2 the simplistic goal was stated clearly: open, read and close. Do you confirm that this basic sequence is not supported by urllib2 under 2.7 ? (I just requested for a tiny documentation update entry) regards, Valery

[issue12911] Expose a private accumulator C API

2011-09-16 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12911 ___ ___ Python-bugs-list mailing

[issue12955] urllib.request example should use with ... as:

2011-09-16 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Valery, yes. I shall update 2.7 documentation with this known limitation and 3.x documentation with the example usage scenarios. Thanks! -- assignee: docs@python - orsenthil ___ Python tracker

[issue12537] mailbox's _become_message is very fragile

2011-09-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Unfortunately I don't think there is any way except going through each subclass to see what special attributes it creates. -- ___ Python tracker rep...@bugs.python.org