[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: I cannot reproduce the crash on: Linux debian-armel 2.6.32-5-versatile #1 Wed Jan 12 23:05:11 UTC 2011 armv5tejl GNU/Linux Since the old (arm) port is deprecated, I'm closing this. -- resolution: -> wont fix stage: test needed -> committed/rejected st

[issue12998] Memory leak with CTypes Structure

2011-09-16 Thread M
M added the comment: If it is a cache, shouldn't it be garbage-collected or limited in size? Why does it grow without bounds? -- ___ Python tracker ___

[issue12998] Memory leak with CTypes Structure

2011-09-16 Thread Alex Gaynor
Alex Gaynor added the comment: This is caused by a cache which is kept of array's for different (Structure, length) pairs. -- nosy: +alex ___ Python tracker ___ ___

[issue12998] Memory leak with CTypes Structure

2011-09-16 Thread M
M added the comment: Correction to the above link: See: http://stackoverflow.com/questions/7452625/python-ctypes-memory-leak-with-structure -- ___ Python tracker ___ __

[issue12998] Memory leak with CTypes Structure

2011-09-16 Thread M
New submission from M : When using Python 2.5.4 on Windows (and potentially other versions and platforms), usage of CTypes like the following cause a memory leak. The memory leak can be verified with ProcessExplorer, as the memory Python takes up keeps increasing until eventually Python will

[issue12537] mailbox's _become_message is very fragile

2011-09-16 Thread R. David Murray
R. David Murray 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

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

2011-09-16 Thread Senthil Kumaran
Senthil Kumaran 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

[issue12911] Expose a private accumulator C API

2011-09-16 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-09-16 Thread Valery Khamenya
Valery Khamenya 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 -- ___

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

2011-09-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-09-16 Thread Mark Bucciarelli
New submission from Mark Bucciarelli : 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 issue as I'm not sure sol

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 make the implemen

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 will certainly have

[issue6715] xz compressor support

2011-09-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 compiled with mingw, but

[issue12993] prepared statements in sqlite3 module

2011-09-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 IDLE without sav

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

2011-09-16 Thread Matt Chaput
Matt Chaput added the comment: Passed all tests OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12967] AttributeError distutils\log.py

2011-09-16 Thread Ned Deily
Ned Deily 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, like errors.

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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() uuids = {}

[issue12976] add support for MirBSD platform

2011-09-16 Thread Benny Siegert
Changes by Benny Siegert : Removed file: http://bugs.python.org/file23153/patch-az ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12976] add support for MirBSD platform

2011-09-16 Thread Benny Siegert
Benny Siegert 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. Even though it is a

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm 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 to only use _hashli

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm added the comment: [and yes, I used git to generate the 4 patches; sorry ] -- ___ Python tracker ___ ___ Python-bugs-list

[issue9216] FIPS support for hashlib

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

[issue9216] FIPS support for hashlib

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

[issue9216] FIPS support for hashlib

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

[issue9216] FIPS support for hashlib

2011-09-16 Thread Dave Malcolm
Dave Malcolm 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: http://bugs.python.org/file23172/0001-Rewor

[issue12982] .pyo file cannot be imported

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 "However, one must us

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

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tkinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12973] int_pow() implementation is incorrect

2011-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: duplicate -> stage: committed/rejected -> commit review ___ Python tracker ___ ___ Python-

[issue12972] Color prompt + readline

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 __

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 2965 says it has alr

[issue12996] multiprocessing.Connection endianness issue

2011-09-16 Thread Charles-François Natali
New submission from Charles-François Natali : 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 are on machine wit

[issue12961] unlabelled balls in boxes

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 tools. An extensiv

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

2011-09-16 Thread Valery Khamenya
Valery Khamenya 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 = Request('http://exampl

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

2011-09-16 Thread Benjamin Peterson
Benjamin Peterson 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: +benjamin.peterson resolution:

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 range used to be

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

2011-09-16 Thread Vincent Vande Vyvre
New submission from Vincent Vande Vyvre : Hi, Trying this code: -- # -*- coding: utf-8 -*- import os import sys import platform print('\nPython version: ', sys.version.split()[0]) print(platform.platform()) paths = ['/home/vincent/image.jpg', '/home/vincent/àéèî

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

2011-09-16 Thread Senthil Kumaran
Senthil Kumaran 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 requested, a simple s

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

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 be the case, this

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Hagen Fürstenau
Hagen Fürstenau 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 percall filename:line

[issue12953] Function calls missing from profiler output

2011-09-16 Thread R. David Murray
R. David Murray 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

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

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: Meador Inge 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. See also #12965 or http://bugs.python.org/issue11

[issue12953] Function calls missing from profiler output

2011-09-16 Thread Terry J. Reedy
Terry J. Reedy 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 in range(10):

[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 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 _

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

2011-09-16 Thread Meador Inge
Meador Inge 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 python2.5.0; INT

[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 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 ___ Pytho

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

2011-09-16 Thread Ezio Melotti
Ezio Melotti 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: +ezio.melotti resolution:

[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 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. -- nosy: +skrah _

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

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson 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 struct.pack. > (I don't recall which issue; Mead

[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 : 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 B.11.31Compiler Supp

[issue12993] prepared statements in sqlite3 module

2011-09-16 Thread Mayur & Angela Patel-Lam
New submission from Mayur & Angela Patel-Lam : 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 statements using special SQL sta

[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 : 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 certain directory and the c

[issue7201] double Endian problem and more on arm

2011-09-16 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7201] double Endian problem and more on arm

2011-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: "won't fix" seems reasonable to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2011-09-16 Thread Mark Dickinson
Mark Dickinson 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 you remember?) So

[issue1172711] long long support for array module

2011-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed. Commit first; worry about __int__ and __index__ later. -- ___ Python tracker ___ ___ Py

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

2011-09-16 Thread Ronald Oussoren
New submission from Ronald Oussoren : Could you please add some more information on how I can reproduce this issue? -- stage: -> test needed type: -> behavior ___ Python tracker __

[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 : 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 C.06.26.EVAL HP C/aC

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

2011-09-16 Thread Wong Wah Meng
Wong Wah Meng 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 full file. However,

[issue6715] xz compressor support

2011-09-16 Thread Nadeem Vawda
Nadeem Vawda 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 a few more tests, and g

[issue1172711] long long support for array module

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: > I am OK with applying the fix for this issue first. I also think this should be committed first. -- ___ Python tracker ___ __

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

2011-09-16 Thread Stefan Krah
Stefan Krah 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): ... return s

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

2011-09-16 Thread Ricky Teng
Changes by Ricky Teng : -- 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 ___ Pyth

[issue6715] xz compressor support

2011-09-16 Thread Martin v . Löwis
Martin v. Löwis 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. -- ___ Python tra

[issue1222585] C++ compilation support for distutils

2011-09-16 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Could this get some attention, please? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2011-09-16 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: It would be nice to get some feedback on this. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue8237] multiprocessing.Queue() blocks program

2011-09-16 Thread Charles-François Natali
Charles-François Natali 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 children processes join

[issue12967] AttributeError distutils\log.py

2011-09-16 Thread ben
ben 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 python 3.2 version (clea