Re: Newcomer to Python tutorial question

2009-05-07 Thread Peter Otten
Alan Cameron wrote: Alan Cameron alan.came...@iname.com wrote in message news:hrfml.50224$tb.4...@newsfe07.ams2... I am not sure of this is the right place to ask a question about the tutorial http://docs.python.org/3.0/tutorial/datastructures.html#sets why is the printed result of basket

Re: Threading and GIL

2009-05-07 Thread googler . 1 . webmaster
hey, thanks, that works fine. I wrapped it around, done a lot of tests and it works fine. Just had done a few other things to make it stable. cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1 beta 1

2009-05-07 Thread pruebauno
On May 6, 9:32 pm, Benjamin Peterson benja...@python.org wrote: On behalf of the Python development team, I'm thrilled to announce the first and only beta release of Python 3.1. Python 3.1 focuses on the stabilization and optimization of features and changes Python 3.0 introduced.  For

Re: Which python version do I use with virtualenv?

2009-05-07 Thread OldGrantonian
On May 7, 12:34 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: OldGrantonian oldgranton...@googlemail.com wrote: Thanks to both Steven D'Aprano and Ant :)  Sounds like you've downloaded the Python 2.5 version of Easy Install. There's no Python 2.6 version of EasyInstall :( I

Re: P2P text chat engine

2009-05-07 Thread Emile van Sebille
On 5/7/2009 11:23 AM Diez B. Roggisch said... Navanjo schrieb: If you have the source code of a p2p text chat engine please send to me I found that a pot of gold under my bed. Care to give me your address so that I can send it to you? Yeah -- this is how it starts. Before too long

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Piet van Oostrum
elwinter elwin...@verizon.net (e) wrote: e Hi Ned. The Python module I am building is actually the Python module e for ROOT, a large package from CERN. However, the problem arises e before that code enters the picture, when I am building Python itself. e All I want to do is create

Best practice for operations on streams of text

2009-05-07 Thread James
Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the input, filter out

Re: Which python version do I use with virtualenv?

2009-05-07 Thread Emile van Sebille
On 5/7/2009 12:53 PM OldGrantonian said... On May 7, 12:34 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: OldGrantonian oldgranton...@googlemail.com wrote: Thanks to both Steven D'Aprano and Ant :) Sounds like you've downloaded the Python 2.5 version of Easy Install. There's no Python

Re: Best practice for operations on streams of text

2009-05-07 Thread J Kenneth King
James rent.lupin.r...@gmail.com writes: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have

Re: list comprehension question

2009-05-07 Thread Terry Reedy
J Kenneth King wrote: Keep in mind that nested comprehensions are still available because they do have a use case that justifies their existence. Nested comprehensions are available because because the syntax makes them available by default and making a fiddly exception would be contrary to

Re: Which one is best Python or Java for developing GUI applications?

2009-05-07 Thread norseman
Tim Rowe wrote: 2009/5/6 Dennis Lee Bieber wlfr...@ix.netcom.com: (the near is because I feel Ada is stricter than any other language) Try SPARK -- it's Ada based, but /much/ stricter. It's just right for some really critical stuff, but is no sort of an answer to Which one is best Python or

Re: Which python version do I use with virtualenv?

2009-05-07 Thread OldGrantonian
On May 7, 9:03 pm, Emile van Sebille em...@fenx.com wrote: On 5/7/2009 12:53 PM OldGrantonian said... On May 7, 12:34 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: OldGrantonian oldgranton...@googlemail.com wrote: Thanks to both Steven D'Aprano and Ant :)  Sounds like you've

Re: Python 3.1 beta 1

2009-05-07 Thread Terry Reedy
bearophileh...@lycos.com wrote: Is the order inside OrderedDict kept with a double linked list of the items? That is one of the things Raymond tried. Check the code for what he settled on for the Python version. I believe he thinks the best C implementation might be different from the

Re: Best practice for operations on streams of text

2009-05-07 Thread Gary Herron
James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the

Re: Which python version do I use with virtualenv?

2009-05-07 Thread Duncan Booth
OldGrantonian oldgranton...@googlemail.com wrote: Where do I find the win32 extensions? http://www.google.com/search?q=python+win32 Any of the first 4 hits should help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Downloading most recently modified files

2009-05-07 Thread Shawn Milochik
On Thu, May 7, 2009 at 2:19 PM, AllenLars allenr...@gmail.com wrote: I am trying to code a script that will allow me to go to ftp site and download files based on most recently modified file (date, time).  I am brand new to programming.  Any and all help is appreciated. --snip I've actually

Re: SimpleXMLRPCServer and creating a new object on for each new client request.

2009-05-07 Thread Piet van Oostrum
Jelle Smet je...@smetj.net (JS) wrote: JS Hi list, JS My goals is to have concurrent and separated client sessions using xmlrpc. JS Initially my though was that SimpleXMLRPCServer was able to create a new JS object instance for each incoming request. JS But this doesn't appear to be the case,

Re: Best practice for operations on streams of text

2009-05-07 Thread MRAB
James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the

Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import commands import array import itertools import sys

Re: Python 3.1 beta 1

2009-05-07 Thread bearophileHUGS
Terry Reedy: bearophile: Well, I'd like function call semantics pass-in keyword arguments to use OrderedDicts then... :-) [...] It would require a sufficiently fast C implementation. Right. Such dict is usually small, so if people want it ordered, it may be better to just use an array of

Re: Newcomer to Python tutorial question

2009-05-07 Thread Terry Reedy
Alan Cameron wrote: why is the printed result of basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) {'orange', 'banana', 'pear', 'apple'} in the sequence given? It appears that I used a reserved term when I used 'sequence'. No and Sort-of. No: We often

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:31 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora

Re: subprocess.Popen howto?

2009-05-07 Thread norseman
Øystein Johansen (OJOHANS) wrote: Hi, I have problems understanding the subprocess.Popen object. I have a iterative calculation in a process running and I want to pipe the output (stdout) from this calculation to a Python script. Let me include a simple code that simulates the calculating

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:47 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: On May 7, 3:31 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:58 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: On May 7, 3:47 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: On May 7, 3:31 pm, danmcle...@yahoo.com danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It

Re: Best practice for operations on streams of text

2009-05-07 Thread Terry Reedy
MRAB wrote: James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which

Re: Python 3.1 beta 1

2009-05-07 Thread Benjamin Peterson
pruebauno at latinmail.com writes: Congratulations! Thanks! Is it just me or was some nice summary output added to the make process? I get a nice list of modules that didn't compile and the ones where the library could not be found. Are you compiling on a different platform? The nice

Re: Python 3.1 beta 1

2009-05-07 Thread Benjamin Peterson
bearophileHUGS at lycos.com writes: collections.Counter and collections.OrderedDict: very nice and useful. Is the order inside OrderedDict kept with a double linked list of the items? There's a doubly-linked list containing the values. Another dictionary maps keys to the list. --

Re: Python 2.4.3 array memory leak

2009-05-07 Thread Terry Reedy
danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import commands import

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 4:41 pm, Terry Reedy tjre...@udel.edu wrote: danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about

Re: subprocess.Popen howto?

2009-05-07 Thread Chris Rebert
2009/5/7 Øystein Johansen (OJOHANS) ojoh...@statoilhydro.com: Hi, I have problems understanding the subprocess.Popen object. I have a iterative calculation in a process running and I want to pipe the output (stdout) from this calculation to a Python script. Let me include a simple code that

Re: Python 2.4.3 array memory leak

2009-05-07 Thread Robert Kern
On 2009-05-07 16:31, danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import

Re: subprocess.Popen howto?

2009-05-07 Thread Carl Banks
On May 7, 2:58 pm, norseman norse...@hughes.net wrote: If you don't like a lot of typing that obscures the process, take a look at os.Popen2  Pg.39 or so in Lib.pdf for 2.5.2 In this case - the popen3 is probably your best bet. I took a test run on subprocess a few months ago. My review:

regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the first and last parentheses. In this case, I want: someParam = value1 anotherParam = (value2,

Pygame

2009-05-07 Thread cripplemeal
I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, as the last version it states on the tutorial is 2.6. It is telling me the module does not exist after I download, and I even tried placing it in

Re: Pygame

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 4:52 PM, cripplem...@gmail.com wrote: I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, as the last version it states on the tutorial is 2.6. It is telling me the

Re: Pygame

2009-05-07 Thread Mensanator
On May 7, 6:52 pm, cripplem...@gmail.com wrote: I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, as the last version it states on the tutorial is 2.6. If the module says 2.6, then that's the

Re: regular expression for getting content between parentheses

2009-05-07 Thread Emile van Sebille
On 5/7/2009 4:51 PM Rajanikanth Jammalamadaka said... Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the first and last parentheses. In this case,

Re: regular expression for getting content between parentheses

2009-05-07 Thread Rhodri James
On Fri, 08 May 2009 00:51:14 +0100, Rajanikanth Jammalamadaka rajanika...@gmail.com wrote: Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the

Re: Pygame

2009-05-07 Thread Dave Angel
cripplem...@gmail.com wrote: I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, and what version would that be? What release, and what platform? print sys.version and include the output in your

Re: Code works fine except...

2009-05-07 Thread Ross
On May 7, 1:11 am, John Yeung gallium.arsen...@gmail.com wrote: On May 7, 12:30 am, Ross ross.j...@gmail.com wrote: If I were to set up a dictionary that counted players used in the bye list and only allowed players to be added to the bye list if they were within 2 of the least used

Re: IIR filter conversion routines for Python?

2009-05-07 Thread Aahz
In article af91e679-e8cf-4db5-9c88-6436e520c...@z7g2000vbh.googlegroups.com, wzab wza...@gmail.com wrote: I'm looking for procedures converting the IIR filters into cascade and/ or parallel forms. Something like dir2cas.m or dir2par.m known in the Matlab/Octave world. Unfortunately SciPy does

Call a function when a thread exits

2009-05-07 Thread Giampaolo Rodola'
Hi, I'm searching for a smooth way to call a certain function when a thread has finished its job. I guess I can keep calling isAlive() in a loop and call my function when it returns False but it's not very elegant. Actually I'm a bit surprised it doesn't exists an atexit function. Something like:

Re: regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
Thanks for your replies. I changed the file to look like this: { testName : {someParam: value1, anotherParam: (value2, value3)}, } to make it look like a hash to Python. Thanks, Raj On Thu, May 7, 2009 at 5:19 PM, Rhodri James rho...@wildebst.demon.co.uk wrote: On Fri, 08 May 2009 00:51:14

Re: Call a function when a thread exits

2009-05-07 Thread Carl Banks
On May 7, 6:12 pm, Giampaolo Rodola' gne...@gmail.com wrote: Hi, I'm searching for a smooth way to call a certain function when a thread has finished its job. I guess I can keep calling isAlive() in a loop and call my function when it returns False but it's not very elegant. Actually I'm a

Web Based Front End?

2009-05-07 Thread baseelinger
I have been using Python for several years now and although my main occupation is not directly related to writing code I have been able to use Python to accomplish writing complex configuration files and analyzing data against standards, etc. I now have a requirement to provide a web based

Re: Code works fine except...

2009-05-07 Thread John Yeung
On May 7, 8:32 pm, Ross ross.j...@gmail.com wrote: I've managed to solve the problem. If you go in order, the discrepancy between the player with the least amount of byes and the greatest amount of byes is only 1. I don't mean to rain on your parade, but that's not the case for all values.

update python version

2009-05-07 Thread km
Hi all, Is there a way to update python 2.6.1 to 2.6.2 using easy_install ? thanks, regards, KM -- http://mail.python.org/mailman/listinfo/python-list

free chart lib for Python?

2009-05-07 Thread oyster
I mean chart, not plot. If you don't know the difference, you can check www.advsofteng.com, which is a commercial program is there such a thing with many kinds of chart, i.e. pie-chart, line-chart, ..? A long time ago, I programmed a rmchart interface, however rmchart is windows only, and

Re: SQL and CSV

2009-05-07 Thread John Machin
On May 8, 1:45 am, Nick nic...@gmail.com wrote: On May 5, 8:27 pm, Tim Golden m...@timgolden.me.uk wrote: Nick wrote: Part of the problem is that the 'selection' needs to be in a config file. I can put the if row['status'] != 'Cancelled': return True into a config, read it and eval

Re: Which one is best Python or Java for developing GUI applications?

2009-05-07 Thread David Cook
On 2009-05-05, srinivasan srinivas sri_anna...@yahoo.co.in wrote: Could you tell me does Python have any advantages over Java for the development of GUI applications? You don't have to choose between them. You can program Swing applications in Jython. And Jython is just a jar that you can

Re: free chart lib for Python?

2009-05-07 Thread alex23
On May 8, 12:27 pm, oyster lepto.pyt...@gmail.com wrote: is there such a thing with many kinds of chart, i.e. pie-chart, line-chart, ..? The best place to look is PyPI, there are several possible candidates there: http://pypi.python.org/pypi?%3Aaction=searchterm=chartssubmit=search I've

heapq.merge with key=

2009-05-07 Thread Kevin D . Smith
I need the behavior of heapq.merge to merge a bunch of results from a database. I was doing this with sorted(itertools.chain(...), key=...), but I would prefer to do this with generators. My issue is that I need the key= argument to sort on the correct field in the database. heapq.merge

Re: heapq.merge with key=

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 2:23 PM, Kevin D. Smith kevin.sm...@sas.com wrote: I need the behavior of heapq.merge to merge a bunch of results from a database.  I was doing this with sorted(itertools.chain(...), key=...), but I would prefer to do this with generators.  My issue is that I need the

Python 2.6, File read() problems in Windows Xp

2009-05-07 Thread Li Wang
Hi all: I am trying to read a non-text file as a string by using Python read(), however, it seems there is some thing wrong with it. I can use read() on text file correctly, but unable to read .xls file correctly. (The program can read any file correctly in Fedora 10) Any idea how to solve this

Re: Python 2.6, File read() problems in Windows Xp

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 10:04 PM, Li Wang li.wan...@gmail.com wrote: Hi all: I am trying to read a non-text file as a string by using Python read(), however, it seems there is some thing wrong with it. I can use read() on text file correctly, but unable to read .xls file correctly. (The

[issue5954] PyFrame_GetLineNumber

2009-05-07 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin jyass...@gmail.com: Most uses of PyCode_Addr2Line (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get the line number of a specified frame, but there's no way to do that directly. Forcing people to go through the code object makes them

[issue1731717] race condition in subprocess module

2009-05-07 Thread djc
Changes by djc dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list mailing list

[issue5846] Deprecate obsolete functions in unittest

2009-05-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm sure Gerhard wouldn't say no to changing the sqlite3 test prefix to test_... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5846 ___

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I still don't see the need to : - rename Log to Logger - remove DEBUG, INFO, WARN, ERROR, FATAL from the module In the next version of python we will have to keep them in any case and add a deprecation warning because third party tools

[issue5918] test_parser crashes when run after some other tests

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's actually an array bounds read error in parsermodule.c::validate_try. Purify detects it, if you disable pymalloc; distutils is innocent. Patch attached. -- keywords: +patch nosy: +amaury.forgeotdarc Added file:

[issue5952] AttributeError exception in urllib.urlopen

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, we need more information to diagnose the problem. What did you try? Can you provide a minimal example? Does this reproduce with newer python versions? 2.4 is quite an old version and will not be corrected. -- nosy:

[issue5955] aifc: close() does not close the underlying file

2009-05-07 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: Seen on Windows buildbot: 'test_aifc' left behind file '@test' and it couldn't be removed: [Error 32] The process cannot access the file because it is being used by another process: '@test' This is because Aifc_read.close() does not

[issue5442] [3.1alpha1, 2, beta1] test_importlib fails on Mac OSX 10.5.6

2009-05-07 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Fails in beta1. -- title: [3.1alpha1,2] test_importlib fails on Mac OSX 10.5.6 - [3.1alpha1,2,beta1] test_importlib fails on Mac OSX 10.5.6 ___ Python tracker rep...@bugs.python.org

[issue5941] customize_compiler broken

2009-05-07 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Ok, here is a patch which fixes the issue while retaining the AR customization. Here is what it does: - configure defines both AR and ARFLAGS in the configure script, and those are used in the Makefile - ARFLAGS is used instead

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Still fails in 3.1 beta1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___ ___

[issue5955] aifc: close() does not close the underlying file

2009-05-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r72422. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5955 ___

[issue5955] aifc: close() does not close the underlying file

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, but the problem still exists. self._file is a chunk.Chunk object, and its close() method does nothing. Adding self.file = None at the end of chunk.Chunk.close() helps, even if this relies on reference counting to close the file.

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I tried to track this down, but ran out of time. Here's the little that I discovered; maybe someone else with access to OS X (which I have) and an understanding of poll (which I lack) can build on this. The failure has to do with

[issue5951] email.message : get_payload args's documentation is confusing

2009-05-07 Thread Loic Jaquemet
Loic Jaquemet loic.jaquemet+pyt...@gmail.com added the comment: Ok, I understand. Thx + - I need to learn python :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5951 ___

[issue5951] email.message : get_payload args's documentation is confusing

2009-05-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No fault of yours, it's a real doc bug. I've been programming in python since 1997 or so, and I had to read the source code to figure it out when I went to use get_payload a couple months ago. That's why your bug report caught my eye.

[issue3992] removed custom log from distutils

2009-05-07 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, there is a new patch. - Logger is now back to Log - put back INFO/DEBUG etc. - Wrapped the code inside a try/except I removed the _global_logger/logger variables, because they're superfluous: so the cound of the

[issue3992] removed custom log from distutils

2009-05-07 Thread Antonio Cavallo
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Removed file: http://bugs.python.org/file13908/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: r56632 looks relevant: When running asynchat tests on OS X (darwin), the test client now overrides asyncore.dispatcher.handle_expt to do nothing, since select.poll gives a POLLHUP error at the completion of these tests. Added timeout count

[issue5955] aifc: close() does not close the underlying file

2009-05-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Fixed in r72425. -- components: +Library (Lib) priority: - normal resolution: - fixed stage: - committed/rejected type: - behavior ___ Python tracker rep...@bugs.python.org

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Here is a (new?) failure of test_asynchat with Python 3.1b1 on MacOS X 10.4.11 (Intel). % make test test test_asynchat produced unexpected output: ** *** lines 2-16 of

[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-07 Thread Jean Brouwers
New submission from Jean Brouwers mrje...@gmail.com: % make test test_distutils test test_distutils failed -- Traceback (most recent call last): File ../Python-3.1b1/Lib/distutils/tests/test_bdist_wininst.py, line 23, in test_get_exe_bytes exe_file = cmd.get_exe_bytes() File

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 1161031, especially Giampaolo's suggestion near the end. Seems like it might be relevant. I was the one who merged Josiah's trunk fix into othe other branches, to get things back into sync, but I don't claim to understand

[issue5909] Segfault in typeobject.c

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a bug in pygobject, which has been already corrected btw: http://git.gnome.org./cgit/pygobject/commit/?id=84706c9a73ad8b2e1dbd3eada09e4425a01d4d05 The corrupted base object is actually an old-style class... [the gdb trace

[issue5957] Possible mistake regarding writeback in documentation of shelve.open()

2009-05-07 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: The documentation of shelve.open() states (paragraph 3) that By default, mutations to persistent-dictionary mutable entries are not automatically written back. It then goes on to describe what happens if the writeback parameter is True, which

[issue5958] Typo in documentation of shelve.sync

2009-05-07 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: In the documentation of shelve.sync, 'shelf' is mispelled 'Shelf' -- both the word and case are wrong. -- assignee: georg.brandl components: Documentation messages: 87382 nosy: MLModel, georg.brandl severity: normal status: open title:

[issue5952] AttributeError exception in urllib.urlopen

2009-05-07 Thread Sergey Prigogin
Sergey Prigogin sprigo...@google.com added the comment: The problem is pretty obvious from the code. URLopener.open_http contains the following code: if data is not None: h.send(data) errcode, errmsg, headers = h.getreply() fp = h.getfile() if

[issue5957] Possible mistake regarding writeback in documentation of shelve.open()

2009-05-07 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: OK, I've figured out from the comments in the example later on in the shelf documentation what the paragraph is supposed to mean. I still think it should be stated clearly. The distinction to be made is that modifications to the dictionary

[issue5959] PyCode_NewEmpty

2009-05-07 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin jyass...@gmail.com: Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Looking at trunk, it seems like one reasonable option is to swap the order of handle_close() and handle_expt_event() testing and calls. That would keep all reading/writing before handle_close(), which should be correct.

[issue5960] Windows Installer Error 1722 when opting for compilation at install time - once again

2009-05-07 Thread Eric Devolder
New submission from Eric Devolder eric.devol...@gmail.com: Hi, Same problem as issue 4407, but on release 3.1b1 this time. Guessing the same cure would apply... for reference, here is the updated text, taken from event viewer: Product: Python 3.1b1 -- Error 1722. There is a problem with

[issue5961] Missing labelside option for Tix option menu (fix included)

2009-05-07 Thread Cary R.
New submission from Cary R. cygc...@yahoo.com: The Tix Optionmenu is documented to support a labelside option that is used to specify where the label should be relative to the selection. I have verified that adding 'labelside' to the static_options when calling the base constructor

[issue5442] [3.1alpha1, 2, beta1] test_importlib fails on Mac OSX 10.5.6

2009-05-07 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file13622/tester.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5442 ___

[issue5962] Ambiguity about the semantics of sys.exit() and os._exit() in multithreaded program

2009-05-07 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: Hello I once was rather confused, because nothing in the sys and os modules mentionned the behaviours that the exit() and _exit() functions were supposed to have when called inside a non-main thread. I've eventually found in

[issue5442] [3.1alpha1, 2, beta1] test_importlib fails on Mac OSX 10.5.6

2009-05-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Bloody OS X and its default case-insensitivity. Ismail, please try the attached patch to double-check this solves the issue ASAP so this doesn't hold up Python 3.1 rc1. -- keywords: +patch priority: low - release blocker stage: - patch

[issue5442] [3.1alpha1, 2, beta1] test_importlib fails on Mac OSX 10.5.6

2009-05-07 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Tested with: ./python -m test.regrtest -v test_importlib 3 failures: == FAIL: test_case_insensitivity

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Josiah, that solution isn't working for me; it looks as though there's a deeper weirdness: what I'm seeing is that on OS X, in e.g. test_emptyline, we end up calling the readwrite function in asyncore.py with flags = POLLIN | POLLPRI |

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: So the sequence of events seems to be: asyncore.readwrite calls obj.handle_read_event ... which calls obj.handle_read (3rd branch of handle_read_event) ... which is defined in asynchat.py; it calls obj.recv ... (back in asyncore now):

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: String Services / Format Specification Mini-Language (7.1.3.1 in 3.1) The precision is ignored for integer values. in 3.0.1 and 3.1.b1 and, I presume in 2.6/7 doc should be A precision is not allowed for integer values. (3.0.1) format(10,

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This may be a format error rather than a doc error. Eric? -- nosy: +eric.smith, marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5963

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Sorry; ignore me. I should have read more carefully, and paid attention to what was going on on python-dev as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5963

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: PEP 3101 says it's ignored. I chose to be strict. I don't see the advantage of allowing but ignoring it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5963

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- assignee: georg.brandl - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5963 ___ ___

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I updated the docs to say precision is not allowed for integers. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5963

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-07 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: re: gedit I'm by no means an expert (I did not design the original python module extension), we simply copied from vim at the beginning. That said, it seems there are issues if you embed the python interpreter and do not explicitly set

<    1   2   3   >