[ANN] BleachBit 0.2.0

2008-12-31 Thread Andrew Ziem
BleachBit is a registry, Internet history, privacy, and file cleaner for Linux and Python v2.4 - v2.6. Notable changes for 0.2.0 * Clean broken personal menu entries (.desktop files) * Clean Firefox session restore (crashed sessions) * Clean /var/tmp/ when cleaning /tmp/ * Clean VIM's .viminfo *

[ANN] PyYAML-3.08: Now with Python 3 support

2008-12-31 Thread Kirill Simonov
Announcing PyYAML-3.08 A new release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML This release features complete support for Python 3. For compatibility notes between Python 2 and Python 3 versions, please see

Re: New Python 3.0 string formatting - really necessary?

2008-12-31 Thread r
You know, it is so much easier to find my posts now that someone has been thoughtful enough to mark them for me. Thank you kind chaps, i shall leave a shiny new nickel for you, just send me your name, address, and phone numbers. I'll get them in the mail right away. --

Re: string in files

2008-12-31 Thread Glauco
Steven D'Aprano ha scritto: On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote: thanks brother i mean how do i particularly assign (u = this) (y = is) in the strings up there. i have been able to split strings with any character sign. If i'm not wrong

Re: MemoryError when list append... plz help

2008-12-31 Thread Francesco Bochicchio
[BON] ha scritto: == s=[] for i in range(11000-1): for j in range(i+1, 11000): s.append(((i,j),sim)) == above sim is floating type. s.append is totally coducted 60,494,500 times. but this code raise MemoryError. My computer

Re: MemoryError when list append... plz help

2008-12-31 Thread Steven D'Aprano
On Tue, 30 Dec 2008 22:02:49 -0800, [BON] wrote: == s=[] for i in range(11000-1): for j in range(i+1, 11000): s.append(((i,j),sim)) == above sim is floating type. s.append is totally coducted 60,494,500 times. but this code

Re: Memory leak problem (while using tkinter)

2008-12-31 Thread Marc 'BlackJack' Rintsch
On Tue, 30 Dec 2008 20:21:06 -0800, André wrote: I have written a small program (my first Tkinter-based app) to play around the idea mentioned on http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona- lisa/ and, in doing so, have encountered a memory leak problem. I have

Re: MemoryError when list append... plz help

2008-12-31 Thread bearophileHUGS
[BON]: above sim is floating type. s.append is totally coducted 60,494,500 times. but this code raise MemoryError. My computer has 4G RAM. i think it's enough. but it doesn't... Try creating it in a more clean way, here an array of doubles: from array import array a = array(d, [0.0]) *

Re: select.select and socket.setblocking

2008-12-31 Thread Francesco Bochicchio
Grant Edwards ha scritto: On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote: 3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in select between blocking and non-blocking mode. The difference is in the recv (again, assuming that you use TCP as protocol, that is

Re: select.select and socket.setblocking

2008-12-31 Thread Francesco Bochicchio
Jean-Paul Calderone ha scritto: On Tue, 30 Dec 2008 19:19:08 +0100, Francesco Bochicchio bock...@virgilio.it wrote: [snip] If you are interested in socket errors, you should also fill the third 'fd-set' in the select call, and after select returns check that fd is not in it anymore: ready =

Re: select.select and socket.setblocking

2008-12-31 Thread Francesco Bochicchio
Francesco Bochicchio ha scritto: No, in blocking mode it will wait to receive _some_ data (1 or more bytes). The requested amount is strictly an upper limit: recv won't return more than the requested number of bytes, but it might return less. Uhm. In my experience, with TCP protocol recv

Re: Easy-to-use Python GUI

2008-12-31 Thread Dotan Cohen
I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Re: select.select and socket.setblocking

2008-12-31 Thread Saju Pillai
On Dec 31, 2:01 pm, Francesco Bochicchio bock...@virgilio.it wrote: Grant Edwards ha scritto: On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote: 3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in select between blocking and non-blocking mode. The difference

Pass by reference

2008-12-31 Thread iu2
Hi, Is it possible somehow to change a varible by passing it to a function? I tried this: def change_var(dict0, varname, val): dict0[varname] = val def test(): a = 100 change_var(locals(), 'a', 3) print a But test() didn't work, the value a remains 100. I have several variables

Re: Pass by reference

2008-12-31 Thread Chris Rebert
On Wed, Dec 31, 2008 at 3:30 AM, iu2 isra...@elbit.co.il wrote: Hi, Is it possible somehow to change a varible by passing it to a function? I tried this: def change_var(dict0, varname, val): dict0[varname] = val def test(): a = 100 change_var(locals(), 'a', 3) print a But

Re: Pass by reference

2008-12-31 Thread Bruno Desthuilliers
iu2 a écrit : Hi, Is it possible somehow to change a varible by passing it to a function? For which definition of change a variable ? I tried this: def change_var(dict0, varname, val): dict0[varname] = val Ok, this is mutating dict0, so it works. def test(): a = 100

Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Benjamin Blundell
Hi all. I've had a look around the forums and the we and im looking for a library (or a set of libraries) for dealing with Visualisation and Interaction in Python. At the moment i've been using Flash with the Five3D library to do most of the work. Sadly this isnt an option anymore but it is a good

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Python
On 31 dec 2008, at 13:37, Benjamin Blundell wrote: Hi all. I've had a look around the forums and the we and im looking for a library (or a set of libraries) for dealing with Visualisation and Interaction in Python. At the moment i've been using Flash with the Five3D library to do most of the

Re: Pass by reference

2008-12-31 Thread iu2
On Dec 31, 1:48 pm, Chris Rebert c...@rebertia.com wrote: ... Not really, or at the very least it'll be kludgey. Python uses call-by-object (http://effbot.org/zone/call-by-object.htm), not call-by-value or call-by-reference. Could you explain why you have to set so many variables to the same

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Benjamin Blundell
On Dec 31, 12:55 pm, Python pyt...@rgbaz.eu wrote: On 31 dec 2008, at 13:37, Benjamin Blundell wrote: Hi all. I've had a look around the forums and the we and im looking for a library (or a set of libraries) for dealing with Visualisation and Interaction in Python. At the moment i've

Re: Pass by reference

2008-12-31 Thread Chris Rebert
On Wed, Dec 31, 2008 at 5:04 AM, iu2 isra...@elbit.co.il wrote: snip For the 2 targets I have the variables comm1 and comm2. They are of some class I wrote, representing many properties of the communication, including the IP address. There is one function that sends data, and it receives a

Re: TypeError: list indices must be integers

2008-12-31 Thread John Machin
On Dec 31 2008, 3:26 pm, dubux wx1...@gmail.com wrote: thanks for help everyone. it turned out the function itself worked fine.. it was the way i was calling it that was messing everything up. i ended up re-doing the whole thing as follows, and it now works perfectly. def news(x,y):        

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Stef Mientki
Maybe VPython (Visual) or Panda fits your needs. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

change only the nth occurrence of a pattern in a string

2008-12-31 Thread TP
Hi everybody, I would like to change only the nth occurence of a pattern in a string. The problem with replace method of strings, and re.sub is that we can only define the number of occurrences to change from the first one. v=coucou v.replace(o,i,2) 'ciuciu' import re re.sub( o, i, v,2)

Re: select.select and socket.setblocking

2008-12-31 Thread Francesco Bochicchio
... Uhm. In my experience, with TCP protocol recv only returned less than the required bytes if the remote end disconnects. I always check the What if the sending end actually sent less than you asked for ? -srp In blocking mode and with TCP protocol, the recv waits until more bytes

Re: select.select and socket.setblocking

2008-12-31 Thread Saju Pillai
On Dec 31, 7:48 pm, Francesco Bochicchio bock...@virgilio.it wrote: ... Uhm. In my experience, with TCP protocol recv only returned less than the required bytes if the remote end disconnects. I always check the What if the sending end actually sent less than you asked for ? -srp In

Re: Parsing Excel spreadsheets

2008-12-31 Thread John Machin
On Dec 31 2008, 4:02 pm, brooklineTom brookline...@gmail.com wrote: andyh...@gmail.com wrote: Hi, Can anybody recommend an approach for loading and parsing Excel spreadsheets in Python. Any well known/recommended libraries for this? The only thing I found in a brief search

Re: select.select and socket.setblocking

2008-12-31 Thread Karen Tracey
On Wed, Dec 31, 2008 at 5:39 AM, Francesco Bochicchio bock...@virgilio.itwrote: Francesco Bochicchio ha scritto: No, in blocking mode it will wait to receive _some_ data (1 or more bytes). The requested amount is strictly an upper limit: recv won't return more than the requested number of

Re: change only the nth occurrence of a pattern in a string

2008-12-31 Thread Roy Smith
In article 0scs26-7a5@rama.fbx.proxad.net, TP tribulati...@paralleles.invalid wrote: Hi everybody, I would like to change only the nth occurence of a pattern in a string. It's a little ugly, but the following looks like it works. The gist is to split the string on your pattern, then

Re: select.select and socket.setblocking

2008-12-31 Thread Jean-Paul Calderone
On Wed, 31 Dec 2008 15:48:50 +0100, Francesco Bochicchio bock...@virgilio.it wrote: ... Uhm. In my experience, with TCP protocol recv only returned less than the required bytes if the remote end disconnects. I always check the What if the sending end actually sent less than you asked for ?

Re: change only the nth occurrence of a pattern in a string

2008-12-31 Thread Steven D'Aprano
On Wed, 31 Dec 2008 15:40:32 +0100, TP wrote: Hi everybody, I would like to change only the nth occurence of a pattern in a string. The problem with replace method of strings, and re.sub is that we can only define the number of occurrences to change from the first one. v=coucou

Re: change only the nth occurrence of a pattern in a string

2008-12-31 Thread Tim Chase
I would like to change only the nth occurence of a pattern in a string. The problem with replace method of strings, and re.sub is that we can only define the number of occurrences to change from the first one. v=coucou v.replace(o,i,2) 'ciuciu' import re re.sub( o, i, v,2) 'ciuciu'

How to initialize an array with a large number of members ?

2008-12-31 Thread David
Thanks to those who have helped a beginner in Python. Using version 3.0 # script23 from array import array see failed initialization attempts below tally = array('H',for i in range(75) : [0]) tally = array('H',[for i in range(75) : 0]) tally = array('H',range(75) : [0])

Re: select.select and socket.setblocking

2008-12-31 Thread Grant Edwards
On 2008-12-31, Francesco Bochicchio bock...@virgilio.it wrote: Grant Edwards ha scritto: On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote: 3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in select between blocking and non-blocking mode. The difference is in

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Grant Edwards
On 2008-12-31, Benjamin Blundell onida...@gmail.com wrote: Hi all. I've had a look around the forums and the we and im looking for a library (or a set of libraries) for dealing with Visualisation and Interaction in Python. Have you looked at VTK? http://www.vtk.org/ I've only used some of

Solved. was: Memory leak problem (while using tkinter)

2008-12-31 Thread André
On Dec 31, 12:21 am, André andre.robe...@gmail.com wrote: I have written a small program (my first Tkinter-based app) to play around the idea mentioned on http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mo... and, in doing so, have encountered a memory leak problem.   I have

Re: How to initialize an array with a large number of members ?

2008-12-31 Thread MRAB
da...@bag.python.org wrote: Thanks to those who have helped a beginner in Python. Using version 3.0 # script23 from array import array see failed initialization attempts below tally = array('H',for i in range(75) : [0]) tally = array('H',[for i in range(75) : 0]) tally =

Desktop/File management support on MS Windows

2008-12-31 Thread riklau...@gmail.com
Are there any Python libraries that can trash files (move to Trash, not delete) or for example return a list of applications that can open given file? I can't find anything related to this for Windows. -- http://mail.python.org/mailman/listinfo/python-list

RE: error on windows with commands.getstatusoutput

2008-12-31 Thread Lee Harr
Anyhow, I've replaced it with this: from subprocess import Popen, PIPE, STDOUT p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True) output, unused = p.communicate() status = p.returncode Does that look more

Re: Desktop/File management support on MS Windows

2008-12-31 Thread r
On Dec 31, 11:08 am, riklau...@gmail.com riklau...@gmail.com wrote: Are there any Python libraries that can trash files (move to Trash, not delete) or for example return a list of applications that can open given file? I can't find anything related to this for Windows. try pywin32

Why not Ruby?

2008-12-31 Thread Xah Lee
Just spent 3 hours looking into Ruby today. Here's my short impression for those interested. * Why Not Ruby? http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html plain text version follows: -- Why Not Ruby? Xah Lee, 2008-12-31 Spent about 3 hours

Re: SQL, lite lite lite

2008-12-31 Thread Joel Koltner
Gerhard Häring g...@ghaering.de wrote in message news:6rvgihf3je6...@mid.uni-berlin.de... Using an ORM when you don't grasp the relational model and/or the SQL query language is futile. You'd probably be surprised just how many people there are out there using SQLlite (and other databases)

Re: How to get back a list object from its string representation?

2008-12-31 Thread Gabriel Genellina
En Wed, 31 Dec 2008 04:27:01 -0200, Steven D'Aprano st...@remove-this-cybersource.com.au escribió: On Wed, 31 Dec 2008 03:08:29 -0200, Gabriel Genellina wrote: eval is like Pandora´s box, all kind of bad things can come from it. Do not use it with any user-supplied string. If you can

Re: How to initialize an array with a large number of members ?

2008-12-31 Thread bearophileHUGS
MRAB:   # With a list   tally = array('H', [0] * 75)     # With a generator   tally = array('H', (0 for i in range(75))) Time ago we have had a long discussion about this, the right way is: tally = array(someformat, [0]) * 75 (If you need to initialize it to something that isn't constant

Re: MemoryError when list append... plz help

2008-12-31 Thread Gabriel Genellina
En Wed, 31 Dec 2008 06:34:48 -0200, Steven D'Aprano st...@remove-this-cybersource.com.au escribió: Each time you are appending to the list, you append a tuple: ((i, j), sim) where sim is a float and i and j are ints. How much memory does each of those take? sys.getsizeof( ((0, 1), 1.1) )

Re: select.select and socket.setblocking

2008-12-31 Thread Scott David Daniels
Jean-Paul Calderone wrote: ... On a LAN, it's likely that you'll generally get the exact number of bytes which the sender passed to one call of send (until the sender starts to pass really huge strings to send, then it'll get split up) just because the network has lots of capacity compared to

Re: select.select and socket.setblocking

2008-12-31 Thread Francesco Bochicchio
Saju Pillai ha scritto: On Dec 31, 7:48 pm, Francesco Bochicchio bock...@virgilio.it wrote: Is this correct ? IIRC even in blocking mode recv() can return with less bytes than requested, unless the MSG_WAITALL flag is supplied. Blocking mode only guarantees that recv() will wait for a message

Re: Why not Ruby?

2008-12-31 Thread Roger
On Dec 31, 12:55 pm, Xah Lee xah...@gmail.com wrote: Just spent 3 hours looking into Ruby today. Here's my short impression for those interested. Who are you? In case no one tells you, you are a cocky, egotistical windbag with opinions that border constructive but never gets there. Why would

[ANN] Builds of PyWebkitGtk and Webkit-Glib-Gtk (r39359+#16401.master) for Debian i386, Debian AMD64 and Macports MacOSX 10.4

2008-12-31 Thread Luke Kenneth Casson Leighton
webkit-glib-gtk provides gobject bindings to webkit's DOM model. pywebkitgtk provides python bindings to the gobject bindings of webkit's DOM model. files are available for download at: https://sourceforge.net/project/showfiles.php?group_id=236659package_id=290457release_id=650548 separate

Re: Why not Ruby?

2008-12-31 Thread Giampaolo Rodola'
On 31 Dic, 18:55, Xah Lee xah...@gmail.com wrote: Just spent 3 hours looking into Ruby today. Here's my short impression for those interested. * Why Not Ruby? http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html plain text version follows: -- Why

Re: PIL on 3.x?

2008-12-31 Thread Daniel Fetchinson
Does anyone know if PIL will be ported to the 3.x branch? Actually, Guilherme Polo has ported PIL 1.1.6 to python 3.0: http://mail.python.org/pipermail/image-sig/2008-December/005338.html Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

Re: Why not Ruby?

2008-12-31 Thread Tim Greer
Giampaolo Rodola' wrote: This is not a Ruby group. I recommend you to go waste your time there. That poster has a frequent habit of cross posting to multiple, irrelevant news groups. There's no rhyme or reason to it. It's best to just filter the guy's posts. -- Tim Greer, CEO/Founder/CTO,

type conversion

2008-12-31 Thread Hamish McKenzie
sometimes I want to be able to initialize an instance with a variety of different data types. as an obvious example I might want to initialize a 4x4 matrix with either 16 floats, a list/tuple or 16 floats, another matrix or a quaternion. is there any other way to do it other than putting case

Creating an application for Linux

2008-12-31 Thread Mike Driscoll
Hi, My boss wants me to port one of my applications to Ubuntu. I successfully ported it without too many headaches but now I need a way to distribute it to people that may or may not already have the dependencies my application requires. I'm a newb with Linux so I'm not even sure what they call

Re: Creating an application for Linux

2008-12-31 Thread Benjamin Kaplan
On Wed, Dec 31, 2008 at 4:06 PM, Mike Driscoll kyoso...@gmail.com wrote: Hi, My boss wants me to port one of my applications to Ubuntu. I successfully ported it without too many headaches but now I need a way to distribute it to people that may or may not already have the dependencies my

Re: Creating an application for Linux

2008-12-31 Thread lkcl
hiya mike: where do i know you from? i've heard your name somewhere and for the life of me can't remember where! anyway... onwards. your simplest bet is to take advantage of the .deb install system, which, if you follow that, will allow you to pull in all of the dependencies _without_ screwing

PyS60, GPS and SMS

2008-12-31 Thread makobu
# Send an SMS with your current GPS co-ordinates using a # Nokia SmartPhone and PyS60 # # Timothy Makobu, 01-01-2009 import positioning import messaging import appuifw import sys #

Re: Creating an application for Linux

2008-12-31 Thread Mike Driscoll
On Dec 31, 3:36 pm, lkcl luke.leigh...@googlemail.com wrote: hiya mike: where do i know you from?  i've heard your name somewhere and for the life of me can't remember where!  anyway... onwards. I don't know...while your username looks vaguely familiar, I don't think I've communicated with you

Re: type conversion

2008-12-31 Thread Steven D'Aprano
On Wed, 31 Dec 2008 12:35:20 -0800, Hamish McKenzie wrote: sometimes I want to be able to initialize an instance with a variety of different data types. Type conversion is a bit of a misleading subject line. You're not really converting different types, just initialising from different types.

Re: math module for Decimals

2008-12-31 Thread Steven D'Aprano
On Sun, 28 Dec 2008 06:38:32 -0800, Mark Dickinson wrote: On Dec 28, 7:28 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: Ah crap, I forgot that from_float() has been left out of the decimal API. That's very annoying. Agreed. It's maybe even annoying enough that a feature

Re: multiprocessing vs thread performance

2008-12-31 Thread Aaron Brady
On Dec 29, 9:29 am, mk mrk...@gmail.com wrote: Christian Heimes wrote: mk wrote: Am I doing smth wrong in code below? Or do I have to use multiprocessing.Pool to get any decent results? You have missed an important point. A well designed application does neither create so many threads

Re: greenlets and how they can be used

2008-12-31 Thread Aaron Brady
On Dec 30, 9:40 pm, James Mills prolo...@shortcircuit.net.au wrote: Hey all, The greenlet fromhttp://codespeak.net/py/dist/greenlet.html is a rather interesting way of handling flow of control. I can't seem to find anything else on the subject except for the above link and the most recent

Re: Easy-to-use Python GUI

2008-12-31 Thread Aaron Brady
On Dec 29, 5:49 pm, Joel Koltner zapwiredashgro...@yahoo.com wrote: Thanks to everyone who responded; I'll be checking out the various toolkits people have listed! ---Joel There is wxFormBuilder, which stores a GUI design in XML format. It may be lengthy, but your data reside in a data

Re: How to initialize an array with a large number of members ?

2008-12-31 Thread Scott David Daniels
David Lemper wrote: ... Python. Using version 3.0 # script23 from array import array see failed initialization attempts below tally = array('H',for i in range(75) : [0]) tally = array('H',[for i in range(75) : 0]) tally = array('H',range(75) : [0]) tally =

Re: type conversion

2008-12-31 Thread Benjamin Kaplan
On Wed, Dec 31, 2008 at 5:26 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Wed, 31 Dec 2008 12:35:20 -0800, Hamish McKenzie wrote: sometimes I want to be able to initialize an instance with a variety of different data types. Type conversion is a bit of a misleading

Re: Pass by reference

2008-12-31 Thread Aaron Brady
On Dec 31, 5:30 am, iu2 isra...@elbit.co.il wrote: Hi, Is it possible somehow to change a varible by passing it to a function? I tried this: def change_var(dict0, varname, val):   dict0[varname] = val def test():   a = 100   change_var(locals(), 'a', 3)   print a But test() didn't

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Mirage
On Dec 31, 6:18 am, Stef Mientki stef.mien...@gmail.com wrote: Maybe VPython (Visual) or Panda fits your needs. cheers, Stef I second that. Panda3D is awesome in so many ways. -- http://mail.python.org/mailman/listinfo/python-list

Re: SQL, lite lite lite

2008-12-31 Thread Aaron Brady
On Dec 30, 2:52 pm, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: Aaron Brady a écrit : On Dec 30, 11:16 am, prueba...@latinmail.com wrote: (snip) You really do like to reinvent the wheels do you? :-) Nothing wrong with that. Just be aware that most people that really

Re: multiprocessing vs thread performance

2008-12-31 Thread Paul Rubin
Aaron Brady castiro...@gmail.com writes: I had an idea. You could use 'multiprocessing' for synchronization, and just use an mmap for the actual communication. (I think it's a good idea.) Are you reinventing POSH? (http://poshmodule.sourceforge.net) --

Re: why cannot assign to function call

2008-12-31 Thread Aaron Brady
On Dec 31, 1:39 am, Tim Roberts t...@probo.com wrote: Aaron Brady castiro...@gmail.com wrote: I think the problem goes deeper than just English.  In any language that has a plural, the propositions in question come out as, 'one thing is two things' or 'two things are one thing'.  According to

Re: multiprocessing vs thread performance

2008-12-31 Thread Philip Semanchuk
On Dec 31, 2008, at 7:19 PM, Paul Rubin wrote: Aaron Brady castiro...@gmail.com writes: I had an idea. You could use 'multiprocessing' for synchronization, and just use an mmap for the actual communication. (I think it's a good idea.) Are you reinventing POSH?

Re: multiprocessing vs thread performance

2008-12-31 Thread Aaron Brady
On Dec 31, 6:19 pm, Paul Rubin http://phr...@nospam.invalid wrote: Aaron Brady castiro...@gmail.com writes: I had an idea.  You could use 'multiprocessing' for synchronization, and just use an mmap for the actual communication.  (I think it's a good idea.) Are you reinventing POSH?  

Re: Why not Ruby?

2008-12-31 Thread Bruno Desthuilliers
Roger a écrit : On Dec 31, 12:55 pm, Xah Lee xah...@gmail.com wrote: (snip) Who are you? His name is Xah Lee, and he's a well(hem)known troll. Just ignore him. -- http://mail.python.org/mailman/listinfo/python-list

multiprocessing BaseManager doesn't clean up net connections?

2008-12-31 Thread Chris Brooks
Hi, I'm trying to use remote managers in the multiprocessing module to listen for some events synchronously while my program goes off and does other things. I use the .start() method which forks a new process to handle communication. When I catch the sigint and call sys.exit() though, the

Re: Easy-to-use Python GUI

2008-12-31 Thread Gerhard Häring
Dotan Cohen wrote: I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. A few years ago, I've had bad experiences with wxPython (random things not actually working on Linux, only

Re: greenlets and how they can be used

2008-12-31 Thread James Mills
On Thu, Jan 1, 2009 at 9:24 AM, Aaron Brady castiro...@gmail.com wrote: (snip) I had a dream for a while that in a GUI framework, every event would spawn a unique thread. The GUI would remain responsive even while executing minor tasks. Of course, shaving a second off running time isn't

Videocapture in python

2008-12-31 Thread koranthala
I face issues in videocapture in python. Cant find anyplace where we can raise bug reports, so mentioning here. Also help required if somebody has solved it earlier. On using videocapture (python 2.4), I am facing the following issues while creating a video sort of application. - Pull out the usb

Re: Why not Ruby?

2008-12-31 Thread Kenneth Tilton
Xah Lee wrote: Just spent 3 hours looking into Ruby today. Here's my short impression for those interested. * Why Not Ruby? http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html plain text version follows: -- Why Not Ruby? Xah Lee,

Re: Why not Ruby?

2008-12-31 Thread member thudfoo
2008/12/31 Giampaolo Rodola' gne...@gmail.com: On 31 Dic, 18:55, Xah Lee xah...@gmail.com wrote: Just spent 3 hours looking into Ruby today. Here's my short impression [...] --- Giampaolo http://code.google.com/p/pyftpdlib Hey, Giampaolo: I had gone to the trouble to filter out the posts

Re: Why not Ruby?

2008-12-31 Thread sln
On Wed, 31 Dec 2008 23:16:41 -0500, Kenneth Tilton kentil...@gmail.com wrote: Xah Lee wrote: Just spent 3 hours looking into Ruby today. Here's my short impression for those interested. * Why Not Ruby? http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html plain text version

Re: select.select and socket.setblocking

2008-12-31 Thread Hendrik van Rooyen
Francesco Bochicchio b...@virgilio.it wrote: but then, IIRC TCP guarantees that the packet is fully received by hand-shaking at transport level between sender and receiver. Ad once the packet is fully in the receiver buffer, why should recv choose to give back to the application only a

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: I disagree the feature is not needed, for several reasons: - complex(repr(..)) roundtrip should work, whatever the value of complex is - it is supported for float, so why not for complex ? - I believe on the contrary it solves a

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: complex(repr(..)) roundtrip should work, Nice-to-have but not a requirement that the entire input domain be supported. it is supported for float, so why not for complex ? It made sense for floats because of prevalence of

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Nice-to-have but not a requirement that the entire input domain be supported. Ok. It made sense for floats because of prevalence of use cases and because we wanted to match IEEE-754R as much as possible. But why shouldn't

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Ok, I found out how to make tests, and I found some problems while using this on numpy. A third version of the patch, with unit tests: all tests in test_complex.py pass. Added file: http://bugs.python.org/file12504/nan_parse.patch

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Changes by Cournapeau David da...@ar.media.kyoto-u.ac.jp: Removed file: http://bugs.python.org/file12503/nan_parse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2121 ___

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Changes by Cournapeau David da...@ar.media.kyoto-u.ac.jp: Removed file: http://bugs.python.org/file12502/nan_parse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2121 ___

[issue4263] BufferedWriter non-blocking overage

2008-12-31 Thread Sever Băneșiu
Sever Băneșiu banesiu.se...@gmail.com added the comment: Thanks for the new implementation of MockNonBlockWriterIO class. It makes tests so much easier to read. There are some minor things in your patch that I would change. For example: # 1 byte will be written, the rest will be buffered

[issue4787] Curses Unicode Support

2008-12-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python 2.5 also requires the addition of libcursesw but it was working for the Ubuntu release because they specifically added it. What do you mean by the addition of libcursesw? _curses.so of Python 2.5 is linked to

[issue4263] BufferedWriter non-blocking overage

2008-12-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The comment is misleading because in fact no byte is written at raw level. That's because the data size is smaller than the buffer size and the buffer is empty (was emptied by the last write call). It depends on the implementation. A different

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-31 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: The patch seemed to work for me. Should I worry that I don't see -fPIC or -fpic in the compile commands? Also, running make test before at least installing libpython2.7.dylib appears to be impossible: % otool -L python.exe python.exe:

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib

2008-12-31 Thread Christopher Mahan
New submission from Christopher Mahan chris.ma...@gmail.com: The python program crashes (stops responding) both from the command line and in IDLE (ver 3.0), after listing all the files in the approprate directory, both with ftp.dir() and with ftp.retrlines('LIST') (see prog listing below). I

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2008-12-31 Thread Christopher Mahan
Changes by Christopher Mahan chris.ma...@gmail.com: -- title: retrlines('LIST') and dir hang at end of listing in ftplib - retrlines('LIST') and dir hang at end of listing in ftplib (python3.0) ___ Python tracker rep...@bugs.python.org

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2008-12-31 Thread Christopher Mahan
Christopher Mahan chris.ma...@gmail.com added the comment: Update: Ran the same code with python 2.6.1 on the same computer, and that worked fine. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4791

[issue4539] askdirectory() in tkinter.filedialog is broken

2008-12-31 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I was about to mark this as invalid when I found out I had patched tkinter/filedialog.py myself. Nevertheless, this is a duplicate of issue4406 -- nosy: +gpolo resolution: - duplicate status: open - closed

[issue4263] BufferedWriter non-blocking overage

2008-12-31 Thread Sever Băneșiu
Sever Băneșiu banesiu.se...@gmail.com added the comment: The comment is misleading because in fact no byte is written at raw level. That's because the data size is smaller than the buffer size and the buffer is empty (was emptied by the last write call). It depends on the implementation. A

[issue4406] In Lib\tkinter\filedialog.py, class Directory define loss a_

2008-12-31 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I'm moving this to release blocker since it went unnoticed in the 3.0 release. -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4406

[issue4263] BufferedWriter non-blocking overage

2008-12-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I feel that no matter what implementation algorithm BufferedWriter uses it shouldn't write smaller chunks of data than buffer's size or else the buffer is useless. If you rewrite the above sentence using the word statistically, then I can

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-31 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Skip: * GCC always generates position-independent code on OSX * I'll look in the test issue, that's probably caused by a broken definition for RUNSHARED. Roumen: * The SHLIB_EXT definition in pyconfig.h is an issue. And I have to

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2008-12-31 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - vsajip nosy: +vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749 ___ ___

  1   2   >