ANN: ActivePython 3.2.0.0 is now available

2011-02-23 Thread Sridhar Ratnakumar
ActiveState is pleased to announce ActivePython 3.2.0.0, a complete, ready-to-install binary distribution of Python 3.2. http://www.activestate.com/activepython/downloads What's New in ActivePython-3.2.0.0 == New Features Upgrades --- -

Re: Accelerating For Loop

2011-02-23 Thread Stefan Behnel
Şansal Birbaş, 23.02.2011 07:34: I needed to find the cheapest combination among given data and I developed an algorithm for this task. It works correctly. But it takes much time (nearly 2 minutes) for second function to find the result while it is just one second for the first function. How

Re: How to use Python well?

2011-02-23 Thread Anssi Saari
Grant Edwards invalid@invalid.invalid writes: I've lost track of how many times I've tried to learn to use the Gnu info command and gave up in frustration. I've never seen a program with a more difficult to use UI. As I recall, there are other info viewers like tkinfo for example. But

2to3 chokes on bad character

2011-02-23 Thread Frank Millman
Hi all I don't know if this counts as a bug in 2to3.py, but when I ran it on my program directory it crashed, with a traceback but without any indication of which file caused the problem. Here is the traceback - Traceback (most recent call last): File C:\Python32\Tools\Scripts\2to3.py,

Re: Accelerating For Loop

2011-02-23 Thread Peter Otten
Şansal Birbaş wrote: for i in range(1,5): for j in i*range(max_expander+1): for k in i*range(max_expander+1): for m in i*range(max_expander+1): for r in i*range(max_expander+1): I must be missing something, but I can't see why you

Re: Is setdefaultencoding bad?

2011-02-23 Thread moerchendiser2k3
Ok, but that the interface handles UTF-8 strings are still ok? The defaultencoding is still ascii. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use Python well?

2011-02-23 Thread Ben Finney
Anssi Saari a...@sci.fi writes: Grant Edwards invalid@invalid.invalid writes: I've lost track of how many times I've tried to learn to use the Gnu info command and gave up in frustration. I've never seen a program with a more difficult to use UI. As I recall, there are other info

Re: subprocess pipe question

2011-02-23 Thread Rita
This is a good solution thanks. You should wiki this somewhere. For extra points is there a way to speed up the p.stdout.read(bufsize) ? On Tue, Feb 22, 2011 at 7:57 PM, Rob Williscroft r...@rtw.me.uk wrote: Rita wrote in news:AANLkTi=w95gxosc1tkt2bntgjqys1cbmdnojhokq4...@mail.gmail.com in

Re: Is setdefaultencoding bad?

2011-02-23 Thread Chris Rebert
On Wed, Feb 23, 2011 at 3:07 AM, moerchendiser2k3 googler.1.webmas...@spamgourmet.com wrote: Ok, but that the interface handles UTF-8 strings are still ok? The defaultencoding is still ascii. Yes, that's fine. UTF-8 is an excellent encoding choice, and encoding/decoding should always be done

Re: Yappi error context not found

2011-02-23 Thread k3xji
On 10 Şubat, 08:38, Brian dribna...@gmail.com wrote: I'm posting here because I can't find a Yappi specific mailing list. I've been using the rather brilliant Yappi fromhttp://code.google.com/p/yappi/ It works well for small programs with a few threads. However, when trying to run it over

Re: Creating Long Lists

2011-02-23 Thread Jorgen Grahn
On Tue, 2011-02-22, Ben Finney wrote: Kelson Zawack zawack...@gis.a-star.edu.sg writes: I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting and further processing. What is the nature of the further processing?

Re: Creating Long Lists

2011-02-23 Thread Tim Wintle
On Wed, 2011-02-23 at 13:57 +, Jorgen Grahn wrote: If that's the *only* such use, I'd experiment with writing them as sortable text to file, and run GNU sort (the Unix utility) on the file. It seems to have a clever file-backed sort algorithm. +1 - and experiment with the different flags

Re: Python fails on math

2011-02-23 Thread Grant Edwards
On 2011-02-23, Terry Reedy tjre...@udel.edu wrote: On 2/22/2011 2:42 PM, Grant Edwards wrote: Except that Python (and computer languages in general) don't deal with real numbers. They deal with floating point numbers, which aren't the same thing. [In case anybody is still fuzzy about that.]

Trouble installing numpy on QNX

2011-02-23 Thread Nelson Powell
I'm currently using QNX 6.4.1 with Python 2.5. I went to install numpy 1.4.1, but the install kicks bakc an error saying that it cannot find Python.h and that I should install python-dev|python-devel. I look online and I can only find those two packages in relation to Ubuntu, which obviously

Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
Hello, I am trying to get a compiled module to work with Python3. The code I am compiling was originally intended to be used in a Python 2.* environment, but I updated all the Python 2.* elements and the swig commands used by the setup.py script. I got the library to successfully compile, but I

Re: Trouble installing numpy on QNX

2011-02-23 Thread Robert Kern
On 2/23/11 10:16 AM, Nelson Powell wrote: I'm currently using QNX 6.4.1 with Python 2.5. I went to install numpy 1.4.1, but the install kicks bakc an error saying that it cannot find Python.h and that I should install python-dev|python-devel. I look online and I can only find those two

CentOS 5.5 x86_64 rpmbuild from source

2011-02-23 Thread William S .
When I run I'm attempting to run rpmbuild -ba SPECS/python-2.7.spec I get the following error: ERROR 0001: file '/usr/lib/python2.7/lib-dynload/_bsddb.so' contains a standard rpath '/usr/lib64' in [/usr/lib64] ERROR 0001: file '/usr/lib/python2.7/lib-dynload/_sqlite3.so' contains a

Re: ctypes inheritance issue

2011-02-23 Thread Steve
On Feb 23, 12:38 am, Carl Banks pavlovevide...@gmail.com wrote: Steve wrote: I've filed a bug in python but I wanted to see if other ctypes users/ experts viewed this issue as a bug. Consider the following: python code: import ctypes class my_array( ctypes.Array ):     _type_    =

Re: Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread casevh
On Feb 23, 8:54 am, Adam Pridgen adam.prid...@thecoverofnight.com wrote: Hello, I am trying to get a compiled module to work with Python3.  The code I am compiling was originally intended to be used in a Python 2.* environment, but I updated all the Python 2.* elements and the swig commands

Securing files

2011-02-23 Thread Timothy W. Grove
Hello Folks, In a python application that I'm developing I've been asked to add security to databases that the program might create and access; the database is to be password protected by its creator. The application uses an SQLite database, which could be changed for another back-end if

Re: Securing files

2011-02-23 Thread geremy condra
On Wed, Feb 23, 2011 at 11:48 AM, Timothy W. Grove tim_gr...@sil.org wrote: Hello Folks, In a python application that I'm developing I've been asked to add security to databases that the program might create and access; the database is to be password protected by its creator. The application

Re: Securing files

2011-02-23 Thread Roy Smith
In article mailman.351.1298490632.1189.python-l...@python.org, Timothy W. Grove tim_gr...@sil.org wrote: The problem isn't so much the database itself, as I can think of a number of way to encrypt the data it contains, but some of the data is simply names of image and video files contained

Re: How to compile on OS X PPC? was: Re: [RELEASED] Python 3.2

2011-02-23 Thread Irmen de Jong
On 23-02-11 02:15, Ned Deily wrote: Unfortunately, this is a variation of an old issue that hasn't yet been fixed (http://bugs.python.org/issue1099). The simplest workaround is to include the --enable-universalsdk option to configure, so something like this: ./configure --enable-framework

Re: Python fails on math

2011-02-23 Thread John Nagle
On 2/22/2011 9:59 AM, Roy Smith wrote: In articleik0rmr$ck4$1...@reader1.panix.com, Grant Edwardsinvalid@invalid.invalid wrote: Python doesn't do equations. Python does floating point operations. More generally, all general-purpose programming languages have the same problem. You'll see

Running Scripts vs Interactive mode

2011-02-23 Thread grobs456
Hi, I am trying to work through the tutorial at: http://docs.python.org/tutorial/ The issue I am facing is with regards to the discussion about Invoking the Interpreter and Executable Python Scripts. It was rather hazy in my opinion. see: http://docs.python.org/tutorial/interpreter.html I

urllib2 header casing discrepancy

2011-02-23 Thread Darren Spruell
Spent some time tripping today over HTTP headers being added to the Request object in proper header case (all components title cased) but finding that the resulting header dictionary object had the headers keyed with first component only capitalized. ## http://paste.pound-python.org/show/3273/

Re: QWebView: notify python when I clicked on a certain web eleemnt

2011-02-23 Thread Gelonida
Hi Damjan, Thanks for your answer On 02/21/2011 05:09 PM, Дамјан Георгиевски wrote: I have a web page (existing page, can't modify it) and I would like to browse it in a QtWebview. (This is already working When I click on a certain element e.g. span id=clickme/a I would like to notify my

Re: Securing files

2011-02-23 Thread entliczek
Can't you just create a new user and a special group for him and limit access privileges to that precise folder only to that user/group? That way only the mysterious application would be able to access them. It's perfect and very simple solution. Storing especially video files (that are

Re: QWebView: notify python when I clicked on a certain web eleemnt

2011-02-23 Thread Ian Kelly
On Wed, Feb 23, 2011 at 4:02 PM, Gelonida gelon...@gmail.com wrote: so make a Python object with some methods you'd wish to call, then evaluate some small JS that will bind the click event on your element to the method of the Python object. OK, but how do I make sure, that I don't override

Re: Running Scripts vs Interactive mode

2011-02-23 Thread n00m
Add into each your *.py script and as the very last line this: raw_input('Press any key to exit...') Or, even better, I'd recommend this free Python Editor: http://pythonide.stani.be/ SPE IDE - Stani's Python Editor Free python IDE for Windows,Mac Linux with UML,PyChecker,Debugger, GUI

Re: Python programming books

2011-02-23 Thread Joel Koltner
John Bokma j...@castleamber.com wrote in message news:87oc63nvuo@castleamber.com... I also like the Python Essential Reference a lot. I'd second that. Python Essential Reference effectively documents the batteries included aspect of Python, using lots of good examples in a quite

Python for embedded systems?

2011-02-23 Thread Paulito
Apologies if this has been asked; I haven't yet Googled the archives. From a brief email conversation, Guido pointed me to this newsgroup to ask the following questions: Is Python 'mature' enough to be considered the primary language for embedded systems? Is the performance there for real-time

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Ben Finney
grobs456 gregory.alexander.robe...@gmail.com writes: I am trying to work through the tutorial at: http://docs.python.org/tutorial/ Excellent! I heartily encourage everyone to do this when learning Python: *work through* (not just read) the tutorial. Good for you! I realize I can double click

lxml

2011-02-23 Thread Colin J. Williams
Could someone please let me know whether lxml is available for Windows XP?. If so, is it available for Python 2.7? Thanks, Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
Thanks for the help. That information got me started in the right direction. I put my notes up on paste bin for others to use in the future. For the future reference of others, I have included the pertinent details below. My process for identifying the various issues was compiling and running

Re: Porting Python2 C-API/Swig based modules to Python 3

2011-02-23 Thread Adam Pridgen
Link to pastebin: http://pastebin.com/102fhkgp On Wed, Feb 23, 2011 at 6:18 PM, Adam Pridgen adam.prid...@thecoverofnight.com wrote: Thanks for the help.  That information got me started in the right direction.  I put my notes up on paste bin for others to use in the future. For the future

Re: lxml

2011-02-23 Thread MRAB
On 24/02/2011 00:10, Colin J. Williams wrote: Could someone please let me know whether lxml is available for Windows XP?. If so, is it available for Python 2.7? The latest stable release is here: http://pypi.python.org/pypi/lxml/2.2.8 -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Rhodri James
On Wed, 23 Feb 2011 23:54:22 -, Ben Finney ben+pyt...@benfinney.id.au wrote: grobs456 gregory.alexander.robe...@gmail.com writes: I realize I can double click on a .py file and Windows treats it as an executable but the command prompt pops in and out so quickly that I can't see the

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Terry Reedy
On 2/23/2011 5:22 PM, grobs456 wrote: Hi, I am trying to work through the tutorial at: http://docs.python.org/tutorial/ The issue I am facing is with regards to the discussion about Invoking the Interpreter and Executable Python Scripts. It was rather hazy in my opinion. An alternative to

Re: QWebView: notify python when I clicked on a certain web eleemnt

2011-02-23 Thread Gelonida
Damjan, Thanks once more for your help. You pointed me in the right direction. On 02/24/2011 12:25 AM, Ian Kelly wrote: On Wed, Feb 23, 2011 at 4:02 PM, Gelonida gelon...@gmail.com wrote: so make a Python object with some methods you'd wish to call, then evaluate some small JS that will bind

Re: QWebView: notify python when I clicked on a certain web eleemnt

2011-02-23 Thread Gelonida
Thanks Ian, Pls see my other reply. Is that what you meant? On 02/24/2011 12:25 AM, Ian Kelly wrote: On Wed, Feb 23, 2011 at 4:02 PM, Gelonida gelon...@gmail.com wrote: so make a Python object with some methods you'd wish to call, then evaluate some small JS that will bind the click event on

Re: subprocess pipe question

2011-02-23 Thread Rob Williscroft
Rita wrote in news:AANLkTi=88dcpm_kqrs2g620obsnxz0majubfwpeme...@mail.gmail.com in gmane.comp.python.general: [Top post relocated] On Tue, Feb 22, 2011 at 7:57 PM, Rob Williscroft r...@rtw.me.uk wrote: Rita wrote in news:AANLkTi=w95gxosc1tkt2bntgjqys1cbmdnojhokq4...@mail.gmail.com in

pattern matching

2011-02-23 Thread monkeys paw
if I have a string such as 'td01/12/2011/td' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat them into a DDMM format? I have: import re test = re.compile('\d\d\/') f = open('test.html') # This file contains the html dates for line in

Re: Is setdefaultencoding bad?

2011-02-23 Thread Nobody
On Wed, 23 Feb 2011 04:14:29 -0800, Chris Rebert wrote: Ok, but that the interface handles UTF-8 strings are still ok? The defaultencoding is still ascii. Yes, that's fine. UTF-8 is an excellent encoding choice, and encoding/decoding should always be done explicitly in Python, so the

Re: Re: Running Scripts vs Interactive mode

2011-02-23 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Ben Finney wrote: grobs456gregory.alexander.robe...@gmail.com writes: snip I realize I can double click on a .py file and Windows treats it as an executable but the command prompt pops in and out so quickly that I can't see the results of my script. Don't do that,

Re: pattern matching

2011-02-23 Thread Roy Smith
In article kaidnysdesvyi_jqnz2dnuvz_qgdn...@insightbb.com, monkeys paw mon...@joemoney.net wrote: if I have a string such as 'td01/12/2011/td' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat them into a DDMM format? I have: import

Re: pattern matching

2011-02-23 Thread Steven D'Aprano
On Wed, 23 Feb 2011 21:11:53 -0500, monkeys paw wrote: if I have a string such as 'td01/12/2011/td' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat them into a DDMM format? data = 'td01/12/2011/td' # Throw away tags. data = data[4:-5] #

Re: pattern matching

2011-02-23 Thread Chris Rebert
On Wed, Feb 23, 2011 at 6:37 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 23 Feb 2011 21:11:53 -0500, monkeys paw wrote: if I have a string such as 'td01/12/2011/td' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat

Re: pattern matching

2011-02-23 Thread Roy Smith
In article mailman.364.1298517901.1189.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: regex = compile((\d\d)/(\d\d)/(\d{4})) I would probably write that as either r(\d{2})/(\d{2})/(\d{4}) or (somewhat less likely) r(\d\d)/(\d\d)/(\d\d\d\d) Keeping to one consistent style

Re: pattern matching

2011-02-23 Thread Dr Vangel
if I have a string such as 'td01/12/2011/td' and i want to reformat it as '20110112', how do i pull out the components of the string and reformat them into a DDMM format? I have: import re test = re.compile('dd/') f = open('test.html') # This file contains the html dates for line in f:

Re: Re: Securing files

2011-02-23 Thread Dr Vangel
On Wed, Feb 23, 2011 at 11:48 AM, Timothy W. Grove tim_gr...@sil.org wrote: Hello Folks, In a python application that I'm developing I've been asked to add security to databases that the program might create and access; the database is to be password protected by its creator. The

Re: Python for embedded systems?

2011-02-23 Thread Paul Rubin
Paulito paul...@gmail.com writes: Is Python 'mature' enough to be considered the primary language for embedded systems? Is the performance there for real-time applications (eg avionics, real-time control systems) or is it still more suitable ...as a glue language, used to combine components

Re: Python for embedded systems?

2011-02-23 Thread Rafe Kettler
On Feb 23, 6:53 pm, Paulito paul...@gmail.com wrote: Apologies if this has been asked; I haven't yet Googled the archives. From a brief email conversation, Guido pointed me to this newsgroup to ask the following questions: Is Python 'mature' enough to be considered the primary language for

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide programming errors. -- nosy: +lemburg title: Some trivial python 2.x pickles fails to load in

[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread Duncan Booth
Duncan Booth kupu...@gmail.com added the comment: If anyone knows how to reproduce the two bugs with a short Python script, I can try to convert it into a test. If you don't mind kicking off some sub-processes then here's a script that shows the bugs. I couldn't figure out how to do a

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: Attaching a documentation patch. -- assignee: rhettinger files: chainmap.diff keywords: patch messages: 129161 nosy: rhettinger priority: low severity: normal status: open title: Make ChainMap() public in the

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is nice, but IMO there is some information lacking, e.g.: - when an underlying mapping is mutated, does the ChainMap get updated too? - does it work with arbitrary mappings or only with dicts or dicts subclasses? I think new_child() isn't

[issue11297] Make ChainMap() public in the collections module.

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (too specialized, sorry) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11297 ___ ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide programming errors. Well, this could break some third-party code. -- title: Some trivial python 2.x pickles fails to load in

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Works fine for me (Windows 7, 64-bit, 32-bit Python-3.2). I do have the plain US English version. Do you have localized versions? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide programming errors. Well, this could break some

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not. That would hide programming errors. Well, this could break some

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Definitely not.

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Hmm. Note that this problem does *not* occur if i don't install Python but run it in place, e.g. 'cd Lib/test; ../../python.exe -m test -v -uall test_iter' works just perfect. -- ___

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: ... and the problem is all gone with 8c2935f180fa/r88525. So i'm faitful now and close this early alpha-stage problem. One of the nosy ones may add a nice description, re-open it or so. --

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (.. should close it, then.) -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11285 ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: PyUnicode_Decode() et al. are conversion functions and these require valid content to work on. Passing in a NULL pointer does not fit that specification and so allowing for this would hide programming errors. Valid content doesn't mean a lot

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record: e.g. 'cd Lib/test; ../../python.exe -m test -v -uall test_iter' works just perfect. You don't need to cd. Just ./python -m test (etc.). See http://docs.python.org/devguide/runtests.html for more information. --

[issue11285] io.py standart stream setup crash

2011-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11285 ___ ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: PyUnicode_Decode() et al. are conversion functions and these require valid content to work on. Passing in a NULL pointer does not fit that specification and so

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, IMO, practicality beats purity here. Especially since it is bound to land in a bugfix release (3.2.1), which users don't expect to produce regressions in their own code. Nope. Your suggestion would be a new feature and those are not

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
New submission from blokeley bloke...@gmail.com: `python -m unittest discover` caught me out. I had a test module called `test-foo.py` and no test was loaded. When I renamed to `test_foo.py` it worked. The documentation says For a project’s tests to be compatible with test discovery they

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I append a doc_lib_mmap.patch which may be helpful for those poor creatures who plan to write Python scripts for Mac OS X. (It may be a useful add-on anyway.) -- Added file:

[issue11224] 3.2: tarfile.getmembers causes 100% cpu usage on Windows

2011-02-23 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Thanks for your great report. This is fixed now in r88528 (py3k) and r88529 (release32-maint). -- keywords: +3.2regression resolution: - accepted stage: - committed/rejected status: open - closed versions: +Python 3.3

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Sounds like a good change to the docs. Care to provide a patch? -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___ ___

[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed in 3.3 (r88530) and 3.2 (r88531). Others versions are not affected. Thanks Duncan Booth, I added tests based on your stdintests.py script. I used directly stdin argument of Popen() instead of using cmd.exe to create the pipe

[issue10830] PyUnicode_FromFormatV(%c) doesn't support non-BMP characters on narrow build

2011-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed in 3.2 too (r88532). -- resolution: - fixed status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10830

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20859/doc_lib_mmap.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: What if we commit Antoine patch for 3.2.x, and the correct patch for py3k trunk?. I am actually +1 to Marc-Andre. I feel in my guts that the provided patch is hidding a deeper issue. But avoiding surprises for third parties in 3.2.1 is a good

[issue2650] re.escape should not escape underscore

2011-02-23 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Added file: http://bugs.python.org/file20860/test_re.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2650 ___

[issue2650] re.escape should not escape underscore

2011-02-23 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file20389/test_re.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2650 ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nope. Your suggestion would be a new feature and those are not allowed in patch level releases. What new feature are you talking about? I think you misunderstood the actual issue: NULL as an empty string *worked* in 3.1 And, with a very

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Sorry, i've got that kid running around which sometimes doesn't know what it is doing. But this documentation patch may really be a help. It's my first doc-patch, so it surely needs to be revised, if interest exists in such a

[issue3080] Full unicode import system

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This new failure is perhaps related: http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x/builds/572/steps/test/logs/stdio == FAIL: test_module

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Please go with Alexander's solution of fixing the higher level code rather than silently trying to introduce a new feature in PyUnicode_Decode() that hides programming errors. Thanks. -- ___

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: Bump. This is still broken in Python 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10791 ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please go with Alexander's solution of fixing the higher level code rather than silently trying to introduce a new feature in PyUnicode_Decode() that hides programming errors. I'm sorry, I'm perfectly fine with my own patch, so someone else

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley bloke...@gmail.com added the comment: Will do but I haven't submitted a patch before and it's impossible to tell from python.org/dev whether to use the svn or hg repositories. If possible, please just let me know the URL of the hg repository against which I should make the patch (I

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: http://code.python.org/hg/branches/py3k/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Bartosz
Bartosz sspame...@gmail.com added the comment: I've got English version too. Python is 32 bit and operating system is also 32 bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11288 ___

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Jesús Cea Avión wrote: Jesús Cea Avión j...@jcea.es added the comment: What if we commit Antoine patch for 3.2.x, and the correct patch for py3k trunk?. I am actually +1 to Marc-Andre. I feel in my guts that the provided patch is

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, I hadn't seen Alexander's patch. Sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11286 ___

[issue11288] Python installed from MSI doesn't work

2011-02-23 Thread Bartosz
Bartosz sspame...@gmail.com added the comment: I have found a problem and sollution: previously I have used Python 2.x and when I removed that version and next installed Python32, PYTHONPATH in system variabled indicated still to Python2.x. Removing all python paths to old version solved the

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, about Alexander's patch: - it lacks a test - it doesn't solve the issue with PyUnicode_Decode's confusing error message when a NULL is passed (ValueError: operation forbidden on released memoryview object); if we want to disallow NULL, we

[issue3080] Full unicode import system

2011-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This new failure is perhaps related: (...) test_reprlib Ah yes, yesterday, I tried to remember which test was impacted by the module change, but all tests passed on Linux. Anyway, it's now fixed by r88533. --

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley bloke...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley bloke...@gmail.com: Removed file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley bloke...@gmail.com: Added file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks blokely, looks good. Needs applying to 2.7 / 3.2 and 3.3 branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___

  1   2   >