[issue12967] AttributeError distutils\log.py
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 python 3.2 version (clean without extentions). when I type in (on the command line) import sys sys.stdout.error 'strict' However on the IDLE when I do the same. a AttributeError is being raised. Not sure why the difference between the two (I thought these were the same). Ben From: Éric Araujo rep...@bugs.python.org To: thelen_...@yahoo.com Sent: Thursday, 15 September 2011 10:54 PM Subject: [issue12967] AttributeError distutils\log.py Éric Araujo mer...@netwok.org added the comment: How? Please tell exactly what command you ran with what Python version. It does, in 3.x. Do you think Python has no tests or no users? :) -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ -- Added file: http://bugs.python.org/file23170/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___htmlbodydiv style=color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12ptdiv style=RIGHT: autoSPAN style=RIGHT: autoHi Eric,/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoI'm not suggesting that python does not test the applications. just reporting what I experience./SPAN/div div style=RIGHT: autoSPAN style=RIGHT: autoThe python version installed is r32:88445/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoWhat I did, I opened the setup file (in IDLE) from the distribute 0.6.21 and run this./SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoOn my python 3.2 version (clean without extentions). when I type in (on the command line)/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autogt;gt;gt;import sys/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: autogt;gt;gt;sys.stdout.error/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto'strict'/SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoHowever on the IDLE when I do the same./SPAN/div div style=RIGHT: autoSPAN style=RIGHT: autoa AttributeError is being raised./SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoNot sure why the difference between the two (I thought these were the same)./SPAN/div div style=RIGHT: autoSPAN style=RIGHT: auto/SPANnbsp;/div div style=RIGHT: autoSPAN style=RIGHT: autoBenVAR id=yui-ie-cursor/VAR/SPAN/div divBR/div DIV style=FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt DIV style=FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12ptFONT size=2 face=Arial DIV style=BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px class=hr contentEditable=false readonly=true/DIVBSPAN style=FONT-WEIGHT: boldFrom:/SPAN/B Ãric Araujo lt;rep...@bugs.python.orggt;BRBSPAN style=FONT-WEIGHT: boldTo:/SPAN/B thelen_...@yahoo.comBRBSPAN style=FONT-WEIGHT: boldSent:/SPAN/B Thursday, 15 September 2011 10:54 PMBRBSPAN style=FONT-WEIGHT: boldSubject:/SPAN/B [issue12967] AttributeError distutils\log.pyBR/FONTBRBRÃric Araujo lt;A href=mailto:mer...@netwok.org; ymailto=mailto:mer...@netwok.org;mer...@netwok.org/Agt; added the comment:BRBRgt; when installing the distribute packageBRHow?nbsp; Please tell exactly what command you ran with what Python version.BRBRgt; it could be raised on any other usage as sys.stdout does not haveBRgt; an 'error' attribute.BRIt does, in 3.x.nbsp; Do you think Python has no tests or no users? :)BRBR--BRassignee: tarek -gt; eric.araujoBRBR___BRPython tracker lt;A href=mailto:rep...@bugs.python.org; ymailto=mailto:rep...@bugs.python.org;rep...@bugs.python.org/Agt;BRlt;A href=http://bugs.python.org/issue12967; target=_blankhttp://bugs.python.org/issue12967/Agt;BR___BRBRBR/DIV/DIV/div/body/html___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8237] multiprocessing.Queue() blocks program
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 children processes join the feeder thread on exit (to make sure all data has been flushed to pipe), they block. -- nosy: +neologix resolution: invalid - duplicate stage: test needed - committed/rejected status: open - closed superseder: - multiprocessing.Queue fails to get() very large objects ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8237 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6103] Static library (libpythonX.Y.a) installed in incorrect location
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1222585] C++ compilation support for distutils
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12974] array module: deprecate '__int__' conversion support for array elements
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): ... return self.value ... struct.pack('P', IDX(9)) b'\t\x00\x00\x00\x00\x00\x00\x00' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1172711] long long support for array module
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
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 a few more tests, and get the module to compile on Windows. But that can wait.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12876] Make Test Error : ImportError: No module named _sha256
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 full file. However, since I am not using this module in my application, I am going to bypass correcting this error for time being: openssl -- A.00.09.08g.031 Secure Network Communications Protocol fips_1_1_2 -- FIPS-OPENSSL-1.1.2.031 Secure Network Communications Protocol 2.) Ok I got my HP C compiler and the build outcome gives me more headaches. I am going to open a new thread of discussion just talk about the build options. Thanks guys for answering to this earlier. Regards, Wah Meng -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
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 C.06.26.EVAL HP C/aC++ Compiler C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler COMPLIBS B.11.31Compiler Support Libraries I encountered more failures in module build with my HP-UX ANSI C Compiler versus gcc. I wonder why. I need a Oracle plug-in later, i.e. cx_Oracle and the reason I do not want to ignore these errors now because I thought cx_Oracle will have to (or, better) be built using HP compiler, not gcc for support from Oracle. I read through the README file, I followed the instruction to set the required environment variables before the configure is run, and unset them before make is run, also edited Makefile to remove Optimization and the -Olimit 1500. However, it gives me a lot more modules that are failed to be built versus 2 when gcc is used. At the bottom of the mail we can see what failed to be built. I have summarized my inquiry as follow:- 1.) Despite following the instruction to edit the Makefile before make is run, I am surprise to see that the Makefile content is changed again when the executable is generated. The changed I edited is restored. Is this expected and did the compiler make use of the content that I edited when it did the build and link? $ diff Makefile Makefile_Original 61,62c61,62 OPT= -DNDEBUG -O BASECFLAGS= +DD64 -Olimit 1500 --- OPT= -DNDEBUG BASECFLAGS= +DD64 2.) A lot of failed module and I suspected it is due +DD64 nopt recognized by the compiler. Why the HP-UX compiler did not recognize the option? ld -b +DD64 -lxnet build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/mathmodule.o build/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/_math.o -L/usr/local/lib -lm -o build/lib.hp-ux-B.11.31-ia64-2.7/math.so ld: Unrecognized argument: +DD64 Fatal error. 3.) This is a general question, in the README file there isn't specific instruction on how to enable gcc for 64-bit build. Does gcc support 64-bit build and how to? 4.) These are warning message. I have seen a lot of them. Am I right I can ignore them? I don't see them when I use gcc though. cc -Ae -c +DD64 -g -DNDEBUG -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c Include/pyfpe.h, line 8: warning #3750-D: \ followed by white space is not a line splice Thanks in advance for your input. Here is the output of my make using HP C compiler. Python build finished, but the necessary bits to build these modules were not found: _bsddb _curses_curses_panel _sqlite3 _ssl _tkinter bsddb185 bz2dl gdbm imageoplinuxaudiodev ossaudiodevreadline spwd sunaudiodevzlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bisect_codecs_cn _codecs_hk _codecs_iso2022_codecs_jp _codecs_kr _codecs_tw _collections _csv _ctypes_ctypes_test _elementtree _functools _heapq _hotshot _io_json _locale _lsprof_md5 _multibytecodec _multiprocessing _random_sha _socket_struct_testcapi array audioopbinascii cmath cPicklecrypt cStringIO datetime dbm fcntl future_builtinsgrp itertools math mmap nisoperator parser pyexpatresource select strop syslog termios time unicodedata running build_scripts -- components: Build messages: 144123 nosy: wah meng priority: normal severity: normal status: open title: Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler type: compile error versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
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 http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1172711] long long support for array module
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12974] array module: deprecate '__int__' conversion support for array elements
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 you remember?) So we added use of __index__ at that point. I think __index__ is the right interface for something to expose if it wants to be usable as an integer, and this usage is consistent with the original __index__ PEP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7201] double Endian problem and more on arm
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7201] double Endian problem and more on arm
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12992] Python build finished, but the necessary bits to build these modules were not found: _tkinter
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 certain directory and the configure will do the build accordingly. Can someone let me know what files are needed and where should I place them in terms of directory structure, so that I can build python with that built-in module successfully? Thanks! (PS: I am able to build tcl tk 8.5.9 successfully on the same box however I am not sure how to link that piece of work into python build) -- components: Tkinter messages: 144128 nosy: wah meng priority: normal severity: normal status: open title: Python build finished, but the necessary bits to build these modules were not found: _tkinter versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12993] prepared statements in sqlite3 module
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 statements using special SQL statements (e.g. PREPARE), so there is no need to change the python DBI for those database systems. But unfortunately, sqlite3 only offers a C/C++ function, which returns a handle to the prepared statement. I have sought a way to call this from the python DBI, but I simply don't think it's exposed. Since my application interleaves several SQL commands, depending on the results of the last iteration, I can't immediately use executemany() to obtain maximum performance on my code. Precompiled statements offer me the best opportunity to optimize. I can prepare the 2 or 3 most expensive queries in my loop and call them in whatever order I need. There are some estimates that prepared statements can accelerate complex queries by an order of magnitude, as the parser and optimizers don't need to come into play for every call. Would you consider an extension to the sqlite3 DBI to expose prepared statements? Thanks. -- components: Library (Lib) messages: 144129 nosy: Mayur..Angela.Patel-Lam priority: normal severity: normal status: open title: prepared statements in sqlite3 module type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12994] cx_Oracle failed to load in newly build python 2.7.1
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 B.11.31Compiler Support Libraries I downloaded cx_Oracle5.1 source code and run python setup.py build and able to build the module. However, when I import the module it just cannot load without giving any explicit indication what goes wrong. Does anyone knows why? $ python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.hp-ux-B.11.31-ia64-2.7-11g cc -Ae -Olimit 1500 -g -DNDEBUG -O +z -I/opt/oracle/product/11.1.0/rdbms/demo -I/opt/oracle/product/11.1.0/rdbms/public -I/home/r32813/Build/2.7.1/Python-2.7.1/Include -I/home/r32813/Build/2.7.1/Python-2.7.1/Lib/.. -c cx_Oracle.c -o build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.0 cc: warning 1913: `1500' does not exist or cannot be read /home/r32813/Build/2.7.1/Python-2.7.1/Include/pyfpe.h, line 8: warning #3750-D: \ followed by white space is not a line splice / Copyright (c) 1996. \ ^ NumberVar.c, line 306: warning #4232-D: conversion from PyObject * to a more strictly aligned type PyFloatObject * may cause misaligned access doubleValue = PyFloat_AS_DOUBLE(value); ^ NumberVar.c, line 579: warning #4232-D: conversion from PyObject * to a more strictly aligned type PyFloatObject * may cause misaligned access var-data[pos] = PyFloat_AS_DOUBLE(value); ^ creating build/lib.hp-ux-B.11.31-ia64-2.7-11g ld -b build/temp.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.o -L/opt/oracle/product/11.1.0/lib32 -L/opt/oracle/product/11.1.0 -lclntsh -o build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $ ls -lrt build total 0 drwx-- 2 r32813 users 96 Sep 16 20:33 temp.hp-ux-B.11.31-ia64-2.7-11g drwx-- 2 r32813 users 96 Sep 16 20:33 lib.hp-ux-B.11.31-ia64-2.7-11g $ cp build/lib.hp-ux-B.11.31-ia64-2.7-11g/cx_Oracle.so $PYTHONPATH $ python iPython 2.7.1 (r271:86832, Sep 15 2011, 14:46:37) [C] on hp-ux11 Type help, copyright, credits or license for more information. import cx_Oracle Traceback (most recent call last): File stdin, line 1, in module ImportError: Failed to load /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so $ env | grep PYTHON PYTHONPATH=/home/r32813/Build/2.7.1/Python-2.7.1/Lib $ -- components: Extension Modules messages: 144130 nosy: wah meng priority: normal severity: normal status: open title: cx_Oracle failed to load in newly build python 2.7.1 type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12974] array module: deprecate '__int__' conversion support for array elements
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 struct.pack. (I don't recall which issue; Meador, do you remember?) So we added use of __index__ at that point. Yes, I think that's #1530559, and the bug report was about PyCUDA. I can see why 'bBhHiIlLqQ' allow __index__(), since they previously allowed __int__(). 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 is an object with an __int__() method: '\x07\x00\x00\x00\x00\x00\x00\x00' struct.pack('P', INT(7)) Traceback (most recent call last): File stdin, line 1, in module File /home/stefan/hg/r25/Lib/struct.py, line 63, in pack return o.pack(*args) struct.error: cannot convert argument to long -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
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. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12992] Python build finished, but the necessary bits to build these modules were not found: _tkinter
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: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12974] array module: deprecate '__int__' conversion support for array elements
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 python2.5.0; INT is an object with an __int__() method: '\x07\x00\x00\x00\x00\x00\x00\x00' struct.pack('P', INT(7)) Traceback (most recent call last): File stdin, line 1, in module File /home/stefan/hg/r25/Lib/struct.py, line 63, in pack return o.pack(*args) struct.error: cannot convert argument to long Huh, that's interesting. It doesn't allow 'unsigned long' packs either (2.6.7): Python 2.6.7+ (unknown, Sep 16 2011, 09:53:25) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux2 Type help, copyright, credits or license for more information. import struct class IDX(object): ... def __init__(self, value): ... self.value = value ... def __int__(self): ... return self.value ... for code in ['l', 'L', 'P']: ...try: ... struct.pack(code, IDX(9)) ...except Exception as e: ... print pack('%s'): %s % (code, e) ... '\t\x00\x00\x00' pack('L'): unsupported operand type(s) for : 'IDX' and 'long' pack('P'): cannot convert argument to long The behavior around '__int__' in previous versions seems somewhat accidental. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12953] Function calls missing from profiler output
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 in range(10): len({})') ncalls tottime percall cumtime percall filename:lineno(function) 10.0000.0000.0000.000 :0(exec) 100.0000.0000.0000.000 :0(len) 10.0160.0160.0160.016 :0(setprofile) 10.0000.0000.0000.000 string:1(module) 10.0000.0000.0160.016 profile:0(for i in range(10): len({})) 00.000 0.000 profile:0(profiler) profile.run('for i in range(10): range(1)') ncalls tottime percall cumtime percall filename:lineno(function) 10.0000.0000.0000.000 :0(exec) 10.0000.0000.0000.000 :0(setprofile) 10.0000.0000.0000.000 string:1(module) 10.0000.0000.0000.000 profile:0(for i in range(10): range(1)) 00.000 0.000 profile:0(profiler) The one call to range(10) and in the second case, the 10 calls to range(1) are missing while in the first case, the 10 calls to len(()) are reported. This looks like a bug to me. As far as I know, len and range are equal status builtin functions. The only Limitations reported in the doc are about timing accuracy. A minimal test for this would be to look for :0(range) in the output, to match the way :0(len) does now. -- nosy: +terry.reedy stage: - needs patch versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12974] array module: deprecate '__int__' conversion support for array elements
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. See also #12965 or http://bugs.python.org/issue1172711#msg48086. But I think that the decision to accept __index__() for both signed and unsigned integer formats is good for consistency. For 'P' I'm not sure, but course it might be used in the wild by now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12953] Function calls missing from profiler output
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 rep...@bugs.python.org http://bugs.python.org/issue12953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12953] Function calls missing from profiler output
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 percall filename:lineno(function) 10.0000.0000.0000.000 :0(exec) 10.0000.0000.0000.000 :0(setprofile) 10.0000.0000.0000.000 string:1(module) 10.0000.0000.0000.000 profile:0(itertools.permutations(range(10), 3)) 00.000 0.000 profile:0(profiler) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib2.build_opener().open() is not friendly to with ... as:
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 be the case, this is a feature request for 3.3. I am unable to test whether this feature is already present (in 3.2.2). Your example line with urllib2.build_opener().open() as: has an obvious syntax error. When I correct that and adjust for 3.x import urllib.request as ur with ur.build_opener().open() as f: pass # TypeError: open() takes at least 2 arguments (1 given) The doc for build_opener says it returns an OpenerDirector instance. help(ur.OpenerDirector.open) just says it needs a 'fullurl'. But when I add 'http:www.python.org' as an argument, I get urllib.error.URLError: urlopen error no host given I do not know what else is needed. Please copy and paste the ACTUAL (minimal) code you ran to get the AttributeError. -- components: -Documentation, IO nosy: +terry.reedy stage: - test needed type: resource usage - feature request versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib2.build_opener().open() is not friendly to with ... as:
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 requested, a simple snippet would help us understand the problem and original poster's expectation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12995] Different behaviours with class str between v3.1.2 and v3.2.2
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 = ['/home/vincent/image.jpg', '/home/vincent/àéèîö.jpg'] for path in paths: print('\n', type(path)) try: print(path) except UnicodeEncodeError as why: print('print {0}'.format(why)) try: if not os.path.exists(path): print('File not found!') else: print('File exists') except UnicodeEncodeError as why: print('os.path.exist {0}'.format(why)) try: stats = os.stat(path) print(stats.st_atime) except UnicodeEncodeError as why: print('os.stat {0}'.format(why)) try: f = open(path, 'b') f.close() except Exception as why: print('open {0}'.format(why)) on python 3.1.2: vincent@tiemoko:~/Python/oqapy/devel$ python3 test_string.py Python version: 3.1.2 Linux-2.6.32-33-generic-i686-with-Ubuntu-10.04-lucid class 'str' /home/vincent/image.jpg File exists 1316179838.94 open Must have exactly one of read/write/append mode class 'str' /home/vincent/àéèîö.jpg File exists 1316179838.81 open Must have exactly one of read/write/append mode vincent@tiemoko:~/Python/oqapy/devel$ on python 3.2.2: [vincent@myhost ~]$ python test_string.py Python version: 3.2.2 Linux-3.0-ARCH-x86_64-Pentium-R-_Dual-Core_CPU_T4500_@_2.30GHz-with-glibc2.2.5 class 'str' /home/vincent/image.jpg File exists 1316187109.6772401 open Must have exactly one of read/write/append mode and at most one plus class 'str' print 'ascii' codec can't encode characters in position 14-18: ordinal not in range(128) os.path.exist 'ascii' codec can't encode characters in position 14-18: ordinal not in range(128) os.stat 'ascii' codec can't encode characters in position 14-18: ordinal not in range(128) open 'ascii' codec can't encode characters in position 14-18: ordinal not in range(128) [vincent@myhost ~]$ --- Any 'path = path.decode('utf-8')', 'encode(bhla)', 'sys.getfilesystemencoding()', 'magic_transform(abracadabra)' don't change anythings. Thanks for yours advice. vince -- components: Unicode messages: 144143 nosy: VinsS priority: normal severity: normal status: open title: Different behaviours with class str between v3.1.2 and v3.2.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12995 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12953] Function calls missing from profiler output
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 range used to be non-class functions, which means the output of profile must have once included them (in 2.7 for range). Classes *are* functions in the wider sense, as used in the title of the 'Builtin functions'. User callables can also switch implementations. A closure might be replaced by a class; a class might be replaced by a factory function. One could argue that this is such a long time bug (probably) that it should be handled as a feature request. The docs are a bit vague as to what is profiled, except that 26.3.1. Introduction to the profilers does refer to 'C-level functions'. However, the more important issue, at present, is keeping profile and cProfile, which wraps lsprof, in sync. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12995] Different behaviours with class str between v3.1.2 and v3.2.2
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: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12995 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib2.build_opener().open() is not friendly to with ... as:
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 = Request('http://example.com') with build_opener().open(request) as f: txt = f.read() print '%d characters fetched' % len(txt) Traceback (most recent call last): File stdin, line 1, in module AttributeError: addinfourl instance has no attribute '__exit__' 2. @Senthil, regarding the statement being a feature. I assume, that to open a connection, to read from a connection and to close it -- are the fundamental functions for what urllib2 was in particular created for. I was looking in docs for some hints of canonical way of doing this using urllib2.opener. After I have failed to find any guidance in docs, I've created this ticket. That is, I assume that no new feature is needed, but just a documented 5-lines example about a typical way of doing the above operations, especially *closing* the connection. regards, Valery -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12961] unlabelled balls in boxes
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 tools. An extensive combinatorics package would be a different project. (And I have done a bit of work in this direction.) -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12961 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12996] multiprocessing.Connection endianness issue
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 are on machine with different endianness. Patch attached (it also removes an unnecessary computation of the length of the data being sent). -- components: Library (Lib) files: multiprocessing_conn_endianness.diff keywords: needs review, patch messages: 144148 nosy: haypo, neologix priority: normal severity: normal stage: patch review status: open title: multiprocessing.Connection endianness issue type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file23171/multiprocessing_conn_endianness.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12966] cookielib.LWPCookieJar breaks on cookie values with a newline
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 2965 says it has already been obsoleted. Of course, what matters in practice is what sites do. Cookielib was written to work with obsolete 2109 because that is what was mostly used at the time. Paulie, please check what the older standards, that are the basis of cookielib, say about newlines in cookies. Also, please load the current 2.7 and 3.2 and test with 'non-compliant' sites. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12972] Color prompt + readline
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12973] int_pow() implementation is incorrect
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12979] tkinter.font.Font object not usable as font option
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12979] tkinter.font.Font object not usable as font option
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Tkinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12982] .pyo file cannot be imported
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 However, one must use the python -O option to search for and import .pyo files, as well as for creating them. An alternative is to rename them to .pyc. Or make whatever suggestion you think is better. Also, please test with 3.2 if you possible can. -- assignee: - docs@python components: +Documentation -Interpreter Core nosy: +docs@python, terry.reedy type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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: http://bugs.python.org/file23172/0001-Rework-_hashlib-caching-moving-per-hash-cached-data-.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9216] FIPS support for hashlib
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 to only use _hashlib, rather than falling back on _md5 etc, since otherwise you get confusing error messages from hashlib.md5() when it defers to _md5 due to FIPS enforcement. In my downstream builds we can be sure of building against OpenSSL, but this other part of the patch seems less appropriate for upstream python, given that upstream python tries to be flexible in terms of its dependencies. Hope this makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9216 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12976] add support for MirBSD platform
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. Even though it is a rather exotic platform, I encourage you to take these changes, as they are quite minimal. -- components: +Build -Extension Modules keywords: +patch title: select module: only use EVFILT_TIMER if available (kqueue backend) - add support for MirBSD platform versions: +Python 2.7 -Python 2.6 Added file: http://bugs.python.org/file23176/python27-MirBSD.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12976 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12976] add support for MirBSD platform
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable
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() uuids = {} for u in [uuid.uuid4() for i in range(1000)]: uuids[u] = 1 equal(len(uuids.keys()), 1000) could be updated to use sets rather than a fake dict: uuids = set() for u in [uuid.uuid4() for i in range(1000)]: uuids.add(u) equal(len(uuids), 1000) -- nosy: +rhettinger, terry.reedy versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12988] IDLE on Win7 crashes when saving to Documents Library
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 rep...@bugs.python.org http://bugs.python.org/issue12988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12967] AttributeError distutils\log.py
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, like errors. sys.stdout idlelib.rpc.RPCProxy object at 0x1282b30 If that is the only problem, perhaps this issue should be reassigned to IDLE to support errors and any other relevant new attributes. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12988] IDLE on Win7 crashes when saving to Documents Library
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 IDLE without saving. Win Explorer moves into that directory just fine. Tried it again, and double click into dirs now works. Saving still crashes. But I still see two versions of the directory when accessing from IDLE (until I redeleted the older one). Saving still crashes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12989] Consistently handle path separator in Py_GetPath on Windows
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 rep...@bugs.python.org http://bugs.python.org/issue12989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12993] prepared statements in sqlite3 module
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
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 compiled with mingw, but we have to be sure that is uses the correct MSCRT C runtime, and what about debug builds? - All extension modules use static libraries: zlib, expat, sqlite. But a gcc static library can't be used by Visual Studio. - The way recommended by XZ is to use a precompiled liblzma.dll; Then it should be easy to build an extension module, but its would be the first time that we distribute an extension module which needs a non-system DLL. Is it enough to copy it next to _lzma.pyd? Is there some work to do in the installer? Too many buts :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12994] cx_Oracle failed to load in newly build python 2.7.1
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 will certainly have people with 2.7 experience and perhaps someone with HP-UX experience. I am closing this issue for now. You can reopen if discussion on that list suggests that there is a bug with CPython or setup.py. PS. an ImportError, or any other exception, is not a crash. A crash is when CPython quits working without saying why. -- nosy: +terry.reedy resolution: - postponed status: open - closed type: crash - behavior versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib.request example should use with ... as:
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 make the implementation better match the intended language. Prior to the addition of with..., the standard way to close things was with explicit .close() or implicit closing when the function returned or the program exited. In the 3.2 docs, 20.5.21. Examples, there are several examples with f = some opener do something with f (closing ignored) Where possible, these could and should be changed in 3.2+ docs to with some opener as f: do something with f to promote the new idiom. This had been done in other chapters. Perhaps there is also a need for 'X supports the context manager protocol' to be added here or there. But showing that in the examples would make the point. I have changed the title of this issue to match. -- components: +Documentation -Library (Lib) stage: test needed - needs patch title: urllib2.build_opener().open() is not friendly to with ... as: - urllib.request example should use with ... as: versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work
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 issue as I'm not sure solving 10740 is required to solve this one. -- components: None files: t.py messages: 144166 nosy: Mark.Bucciarelli priority: normal severity: normal status: open title: sqlite3: PRAGMA foreign_keys = ON doesn't work type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file23177/t.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib.request example should use with ... as:
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 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12911] Expose a private accumulator C API
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 list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12955] urllib.request example should use with ... as:
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 rep...@bugs.python.org http://bugs.python.org/issue12955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12537] mailbox's _become_message is very fragile
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 http://bugs.python.org/issue12537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com