Re: Python suitable for Midi ?

2008-10-29 Thread J Kenneth King
Derek Martin <[EMAIL PROTECTED]> writes: > On Tue, Oct 28, 2008 at 06:54:57PM +0200, Chuckk Hubbard wrote: >> The problem I've run into is that I can't set the audio to a higher >> priority than the GUI (Tkinter). If I move the mouse over the app, no >> matter what, I get audio dropouts. AFAICT

Re: Python/Numeric users be aware!

2008-10-29 Thread Robert Kern
Benyang Tang wrote: I also found that the a[5:] problem is Python version dependent. On a 64-bit linux, of the following combinations I have tried, only the first one has the problem. The other two are ok. * Python 2.5.1 and Numeric 24.2 * Python 2.4.5 and Numeric 24.2 * Python 2.3.7 and Numeric

Re: project in python

2008-10-29 Thread asit
On Oct 28, 10:02 am, alex23 <[EMAIL PROTECTED]> wrote: > On Oct 26, 2:51 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > > The more you spam people with your repetitive postings, the less likely it > > becomes that they are willing to answer you. > > In asit's defence, the Google Groups interface

Re: Python Regex Question

2008-10-29 Thread Terry Reedy
MalteseUnderdog wrote: Hi there I just started python (but this question isn't that trivial since I couldn't find it in google :) ) I have the following text file entries (simplified) start #frag 1 start x=Dog # frag 1 end stop start# frag 2 start x=Cat # frag 2 end stop start #fra

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Terry Reedy
Stef Mientki wrote: hello, Why gives "k = 09" a syntax error ? You have gotten the 2.x answer. In 3.0, 0b,0o,0x prefixes are valid and required for binary, octal, and hexadecimal literals. 0digits is invalid. tjr -- http://mail.python.org/mailman/listinfo/python-list

win32pipe.popen4 howto example

2008-10-29 Thread yaipa
trying to remind myself that running a subprocess under Win32 isn't a pain in the ass... ];^) ### #!/usr/bin/env python ''' original author credits: chris levis original sources found: http://mail.python.org/pipermail/python-list/2

Re: Filter function and lists

2008-10-29 Thread Terry Reedy
John Townsend wrote: I’m trying to figure out how to use filter to walk through a list. If I try a simple scripts like this: def greaterthanten (number): #pdb.set_trace() if (number > 10): ret_val = 1

Re: project in python

2008-10-29 Thread Terry Reedy
asit wrote: On Oct 28, 10:02 am, alex23 <[EMAIL PROTECTED]> wrote: On Oct 26, 2:51 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: The more you spam people with your repetitive postings, the less likely it becomes that they are willing to answer you. In asit's defence, the Google Groups interfac

Re: math equation, svg and matplotlib

2008-10-29 Thread kib2
André a écrit : Would anyone have a "quick and dirty" code sample to create an svg output of a sample math equation using matplotlib? André Hi André, maybe that's not what you want be there's something like this here (a converter from DVI to SVG in pure Python), look at the samples at the bo

Re: how to get the thighest bit position in big integers?

2008-10-29 Thread Mensanator
On Oct 29, 4:16 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote: > On approximately 10/29/2008 11:51 AM, came the following characters from > the keyboard of Mensanator: > > > or in 2.6 > > > print 'highest bit position: %d' % (len(bin(3328)[2:])-1) > > > highest bit position: 11 > > This works, but

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Mensanator
On Oct 29, 4:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > Stef Mientki wrote: > > hello, > > > Why gives "k = 09"  a syntax error ? > > You have gotten the 2.x answer.  In 3.0, 0b,0o,0x prefixes are valid and > required for binary, octal, and hexadecimal literals.  0digits is invalid. > > tjr I

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Robert Kern
Mensanator wrote: On Oct 29, 4:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: Stef Mientki wrote: hello, Why gives "k = 09" a syntax error ? You have gotten the 2.x answer. In 3.0, 0b,0o,0x prefixes are valid and required for binary, octal, and hexadecimal literals. 0digits is invalid. tjr

Re: Finding the instance reference of an object

2008-10-29 Thread Chuckk Hubbard
On Wed, Oct 29, 2008 at 5:27 PM, Dale Roberts <[EMAIL PROTECTED]> wrote: > Don't you know? There is really only *ONE* case, and, you are right, > it is Pass By Value. There is no such thing as Pass By Reference at > the physical CPU level at all, right? If there is, show it to me. Pass > By Referen

Re: How to Implement an XMLRPC Server in Python?

2008-10-29 Thread Zix
On Oct 29, 11:26 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > These pages might be useful, they include example code: Thanks Daniel, they do help. On Oct 29, 11:42 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > Why did you decide to "expose" a web service through xmlrpc instead of > ac

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mensanator <[EMAIL PROTECTED]> wrote: >On Oct 29, 2:44 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >> Guilherme Polo wrote: >> > On 10/29/08, Stef Mientki <[EMAIL PROTECTED]> wrote: >> >> >> hello, >> >> >>  Why gives "k = 09"  a syntax error ? >> >> > 09 is not a v

Re: free IDE with removing import and refactoring

2008-10-29 Thread Fabio Zadrozny
> I am looking for a python IDE which can remove my unused imports, and > can do basic refactoring under windows. If you have Pydev Extensions, it analyzes your source for undefined tokens and is able to make the imports for you (but it doesn't remove the unused imports... especially because this

Re: beutifulsoup

2008-10-29 Thread Peter Pearson
On Wed, 29 Oct 2008 09:45:31 -0700 (PDT), luca72 <[EMAIL PROTECTED]> wrote: > Hello > I try to use beautifulsoup > i have this: > sito = urllib.urlopen('http://www.prova.com/') > esamino = BeautifulSoup(sito) > luca = esamino.findAll('tr', align='center') > > print luca[0] > [The following long str

Re: 2.6, 3.0, and truly independent intepreters

2008-10-29 Thread Patrick Stinson
If you are dealing with "lots" of data like in video or sound editing, you would just keep the data in shared memory and send the reference over IPC to the worker process. Otherwise, if you marshal and send you are looking at a temporary doubling of the memory footprint of your app because the data

Re: Finding the instance reference of an object

2008-10-29 Thread Fuzzyman
On Oct 28, 3:59 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 27, 2008, at 11:28 PM, Gabriel Genellina wrote: > > > > > En Tue, 28 Oct 2008 00:58:10 -0200, greg   > > <[EMAIL PROTECTED]> escribió: > > >> Let's look at the definitions of the terms: > > >> (1) Call by value: The actual parameter

Re: how to get the thighest bit position in big integers?

2008-10-29 Thread Terry Reedy
Mensanator wrote: You would think when you add a new function, you would also add it's documentation, but maybe that was an oversight. I don't have 3.0, but maybe it can be found in that set of docs. 3.0c1 >>> help(bin) Help on built-in function bin in module builtins: bin(...) bin(number)

Re: Finding the instance reference of an object

2008-10-29 Thread Steven D'Aprano
On Wed, 29 Oct 2008 08:27:07 -0700, Dale Roberts wrote: > On Oct 28, 11:59 am, Joe Strout <[EMAIL PROTECTED]> wrote: >> ... >> >> There are only the two cases, which Greg quite succinctly and >> accurately described above.  One is by value, the other is by >> reference.  Python quite clearly uses

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Terry Reedy
Mensanator wrote: On Oct 29, 4:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: Stef Mientki wrote: hello, Why gives "k = 09" a syntax error ? You have gotten the 2.x answer. In 3.0, 0b,0o,0x prefixes are valid and required for binary, octal, and hexadecimal literals. 0digits is invalid. exc

Re: Filter function and lists

2008-10-29 Thread Mensanator
On Oct 29, 4:28 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > John Townsend wrote: > > I’m trying to figure out how to use filter to walk through a list. > > > If I try a simple scripts like this: > > > def greaterthanten (number): > >                 #pdb.set_trace() > >                 if (number

Re: Finding the instance reference of an object

2008-10-29 Thread Joe Strout
On Oct 29, 2008, at 4:52 PM, Fuzzyman wrote: You're pretty straightforwardly wrong. In Python the 'value' of a variable is not the reference itself. That's the misconception that is leading some folks around here into tangled nots of twisty mislogic, ultimately causing them to make up new

Re: Graphical object browser

2008-10-29 Thread Jason
Hooray! I discovered PyCrust. I made this script (for Linux - under Win, you could just have all but the first line as a python file and run it directly): #!/usr/bin/python import wx import wx.py.PyCrust if __name__ == '__main__' : app = wx.App() pc = wx.py.PyCrust.App(app) pc.MainLoo

Re: guenstige kredite

2008-10-29 Thread [EMAIL PROTECTED]
http://www.officeformac.com/ProductForums/WindowsMediaPlayerMac/275 - kredit ohne schufa ohne kredit ohne schufa ohne vorkosten http://www.officeformac.com/ProductForums/WindowsMediaPlayerMac/275 - kredit ohne schufa ohne kredit ohne schufa ohne vorkosten http://www.officeformac.com/ProductForums/W

Re: math equation, svg and matplotlib

2008-10-29 Thread André
On Oct 29, 6:34 pm, kib2 <[EMAIL PROTECTED]> wrote: > André a écrit : > > > Would anyone have a "quick and dirty" code sample to create an svg > > output of a sample math equation using matplotlib? > > > André > > Hi André, > > maybe that's not what you want be there's something like this here (a >

Earn 5000$ To 10000$ In every Month.

2008-10-29 Thread chinu
hai, i am srinu from india. i am sending a blog url for yours use. Right side Of The Blog Awsurvey Banner will appear. click on the banner and get a free signup with 6$ bonus and you will get more surveys. once you have completed one survey you will get minimem 4$ and more left side of the blog

Need some help speeding up this loop

2008-10-29 Thread erikcw
Hi all, I'm trying to write a loop that will build a list of "template strings". My current implementation is *really slow*. It took 15 minutes to finish. (final len(list) was about 16k entries.) #combinations = 12 small template strings ie "{{ city }}, {{ state }}..." #states = either a django

Re: set/dict comp in Py2.6

2008-10-29 Thread Benjamin
On Oct 27, 3:38 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 25 Oct 2008 23:44:46 -0200, Benjamin <[EMAIL PROTECTED]>   > escribió: > > > On Oct 25, 3:13 am, [EMAIL PROTECTED] wrote: > >> I'd like to know why Python 2.6 doesn't have the syntax to create sets/ > >> dicts of Python 3.

download image from flickr.com

2008-10-29 Thread He Jibo
Dear Pythoners, Could you please help me look at a code, which is to download image from flickr.com? I wish to download images from flickr.com automatically. You can get the code at http://cid-bbc15003189d7799.skydrive.live.com/self.aspx/Public/FImageCrawl.py. There is still some problem with the

Regarding shared memory

2008-10-29 Thread gaurav kashyap
Dear all, I have a server program that listens to a particular port and a number of client programs that connect to the server. Now i want to put some data in form of python list in main memory on server.Hence whenver a client program is run it connects to the server and access the data in main m

Re: Improving interpreter startup speed

2008-10-29 Thread Steve Holden
BJörn Lindqvist wrote: > 2008/10/27 James Mills <[EMAIL PROTECTED]>: >> On Mon, Oct 27, 2008 at 5:40 PM, David Cournapeau <[EMAIL PROTECTED]> wrote: >>> Depends on the tool: build tool and source control tools are example >>> it matters (specially when you start interfaciing them with IDE or >>> ed

Re: [Novice]Installing eric4 with python 2.6

2008-10-29 Thread Steve Holden
Saurabh Agrawal wrote: > > PyQt supported Python 2.6 on the day it was released. > > A snapshot of the PyQt Windows installer for Python 2.6 can be > downloaded > from the same page as you downloaded the installer for Python 2.5. > > Phil > -- >

Re: how to use logging module to log an object like print()

2008-10-29 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On 29 Ott, 12:24, Steve Holden <[EMAIL PROTECTED]> wrote: >> Diez B. Roggisch wrote: >>> davy zhang schrieb: mport logging import pickle # create logger logger = logging.getLogger("simple_example") logger.setLevel(logging.DEBUG) # create cons

Re: is there a way to access postgresql in python3.0rc1

2008-10-29 Thread Steve Holden
Terry Reedy wrote: > davy zhang wrote: >> I'm currently on a project, it could last for at least 1 or 2 years. >> so I choose python3 as server side programing language. >> All I found on are python2.x ready libraries, Is there any library is >> python3.0 ready? or just under alpha ,beta or someth

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Mensanator
On Oct 29, 4:17�pm, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>, > > > > Mensanator �<[EMAIL PROTECTED]> wrote: > >On Oct 29, 2:44�pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> Guilherme Polo wrote: > >> > On 10/29/08, Stef Mientki <[EMAIL PROTECTED]> wrote: > > >>

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Steve Holden
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Mensanator <[EMAIL PROTECTED]> wrote: >> On Oct 29, 2:44 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >>> Guilherme Polo wrote: On 10/29/08, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > Why gives "k = 09" a syntax error ?

Re: how to use logging module to log an object like print()

2008-10-29 Thread Steve Holden
Diez B. Roggisch wrote: > Steve Holden schrieb: >> Diez B. Roggisch wrote: >>> davy zhang schrieb: mport logging import pickle # create logger logger = logging.getLogger("simple_example") logger.setLevel(logging.DEBUG) # create console handler and set level t

Re: Finding the instance reference of an object

2008-10-29 Thread Steve Holden
Joe Strout wrote: > On Oct 29, 2008, at 4:52 PM, Fuzzyman wrote: > >> You're pretty straightforwardly wrong. In Python the 'value' of a >> variable is not the reference itself. > > That's the misconception that is leading some folks around here into > tangled nots of twisty mislogic, ultimately c

Re: Fastest way to convert sql result into a dict or list ?

2008-10-29 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hello, > > I'm trying to find the fastest way to convert an sql result into a > dict or list. > What i mean, for example: > my sql result: > contact_id, field_id, field_name, value > sql_result=[[1, 1, 'address', 'something street'], > [1, 2, 'telnumber'

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Terry Reedy
Mensanator wrote: On Oct 29, 4:17�pm, [EMAIL PROTECTED] (Cameron Laird) wrote: I contest that; my observation is that it's entirely an artifact of legacy software, Really? Don't they still use octal for this stuff? $ ls -l total 1717 -r-xr-x---+ 1 mensanator Users 57 Mar 29 2008 Cygwin

How to open a shell prompt from an existing shell prompt

2008-10-29 Thread gaurav kashyap
Dear all. On windows platform python 2.4,i can use os.startfile("filename") to execute a file on a new command prompt but on unix platform and python 2.3 what is the alternate for executing a file like above in a new shell prompt -- http://mail.python.org/mailman/listinfo/python-list

Re: beutifulsoup

2008-10-29 Thread Stefan Behnel
Peter Pearson wrote: > Like you, I struggle with BeautifulSoup Well, there's always lxml.html if you need it. http://codespeak.net/lxml/ Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: beutifulsoup

2008-10-29 Thread Kay Schluehr
On 29 Okt., 17:45, luca72 <[EMAIL PROTECTED]> wrote: > Hello > I try to use beautifulsoup > i have this: > sito = urllib.urlopen('http://www.prova.com/') > esamino = BeautifulSoup(sito) > luca = esamino.findAll('tr', align='center') > > print luca[0] > > >> >>href="#">#144.4MB >>align="left"> Pc-pr

Re: is there a way to access postgresql in python3.0rc1

2008-10-29 Thread davy zhang
thanks, I'll wait a month and see, in the mean time I can use 2.x for my prototyping, hope python3.0 final can drop a nuke on the ground :D On Thu, Oct 30, 2008 at 12:31 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Terry Reedy wrote: >> davy zhang wrote: >>> I'm currently on a project, it could

<    1   2