Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread alex23
On Jan 3, 3:39 pm, Rick Johnson wrote: > It's NOT a fork Alex. It IS in fact the next logical step in Python's > future evolution. Link to the repo please, or STFU. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python education survey

2012-01-02 Thread Evan Driscoll
On 1/3/2012 0:27, Rick Johnson wrote: > Yes, i used the word "work" improperly here. Just another example of > the corrupting influence of garage verbiage. Thanks for bring this to > my attention! "Diction" would be a far better word than "verbiage" there. Evan signature.asc Description: Open

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 22:58:23 -0700, Ian Kelly wrote: > On Mon, Jan 2, 2012 at 8:52 PM, Steven D'Aprano > wrote: >> On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: >> >>> On Jan 2, 4:00 pm, Ethan Furman wrote: %-style formatting isn't going away. >>> >>> You may want to freshen up on

Re: Python education survey

2012-01-02 Thread Dominic Binks
On 1/2/2012 9:27 PM, Rick Johnson wrote: On Dec 31 2011, 11:12 pm, Dominic Binks wrote: I doubt you could validate or invalidate a word. A word is, there is no ... taken off list -- Dominic Binks: dbi...@codeaurora.org Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Cente

Re: .format vs. %

2012-01-02 Thread Ian Kelly
On Mon, Jan 2, 2012 at 8:52 PM, Steven D'Aprano wrote: > On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: > >> On Jan 2, 4:00 pm, Ethan Furman wrote: >>> %-style formatting isn't going away. >> >> You may want to freshen up on the definition of "deprecation". > > I'm sure Ethan knows the d

Setting an environment variable.

2012-01-02 Thread Ashton Fagg
Hi list. A bit new to Python so please forgive my potential ignorance. I'm working with an embedded machine, which is using a Python script to oversee the acquisition of some data. The supervisor script, which is run by crontab every 5 minutes, relies on an environment variable to be set. I'v

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread Rick Johnson
On Jan 2, 8:38 pm, alex23 wrote: > Conversely, you could pitch in behind Rick Johnson's Python 4000 fork, > I sure it's progressing nicely given how long Rick has been talking it > up. It's NOT a fork Alex. It IS in fact the next logical step in Python's future evolution. -- http://mail.python.

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Ned Deily
In article , K Richard Pixley wrote: > On 1/2/12 13:03 , Benjamin Kaplan wrote: [...] > > Have you tried building through Macports? > No, I haven't. Macports scares me. When I tried them, or fink, in the > past, they rapidly polluted my boot disk and I didn't have any way to > unpollute it ot

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-02 Thread Ned Deily
In article , K Richard Pixley wrote: > On 1/1/12 19:04 , K Richard Pixley wrote: > > On 1/1/12 16:49 , K Richard Pixley wrote: > >> I'm having trouble finding a reasonable python environment on mac. > >> > >> The supplied binaries, (2.7.2, 3.2.2), are built with old versions of > >> macosx and ar

Re: Python education survey

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 11:12 pm, Dominic Binks wrote: > I doubt you could validate or invalidate a word.  A word is, there is no > validation necessary.  You could potentially try to validate it's use > but again that's not in your power. Usage begets validation. By using words in a manner that is impr

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Ned Deily
In article , K Richard Pixley wrote: > Where would I look to find the current expected status of python3 on > MacOsX Lion? > > The distributed binaries aren't capable of allowing extensions that use gcc. > > I can build the source naked, but then it lacks some libraries, notably, > readline.

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Cameron Simpson
On 02Jan2012 19:16, Adam Skutt wrote: | On Jan 2, 8:44 pm, Cameron Simpson wrote: | > On 02Jan2012 20:31, Devin Jeanpierre wrote: | > | > I think that catching the exception is probably the most Pythonic way. | > | | > | It's the only correct way. | > | > Indeed, but be precise - chek that it _i

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: > On Jan 2, 4:00 pm, Ethan Furman wrote: >> %-style formatting isn't going away. > > You may want to freshen up on the definition of "deprecation". I'm sure Ethan knows the definition of deprecation. I'm sure he also knows that % formatti

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 17:51:48 -0800, Rick Johnson wrote: > You may find the format spec to be cryptic at first. Well, most find > regexes cryptic also -- but would anyone recommend NOT using regexes > just because of crypti-ness? I think not. It's a non-starter. I would. If you have a task that d

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Adam Skutt
On Jan 2, 8:44 pm, Cameron Simpson wrote: > On 02Jan2012 20:31, Devin Jeanpierre wrote: > | > I think that catching the exception is probably the most Pythonic way. > | > | It's the only correct way. > > Indeed, but be precise - chek that it _is_ error 3, or more portably, > errno.ESRCH. POSIX pr

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread alex23
On Dec 27 2011, 8:01 pm, Eelco wrote: > But I consider it a reasonable change for a > 'python 4', or whatever the next major version change will be called. You do realise there were 8 years between 2 & 3? You might be waiting for quite some time. Conversely, you could pitch in behind Rick Johnso

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread David Goldsmith
On Jan 2, 6:09 am, Dave Angel wrote: > On 01/01/2012 10:14 PM, David Goldsmith wrote: > > > > > > > > > On Jan 1, 7:05 am, Tim Golden  wrote: > >> On 01/01/2012 12:05, David Goldsmith wrote: > >>   >>  ie can the Python process creating the directories, > > >>   >  Yes. > > >>   >>  and a subproce

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Benjamin Kaplan
On Mon, Jan 2, 2012 at 6:03 PM, Tamer Higazi wrote: > Hi Rich! > Why don't you ask the maintainer who built the macport?! > Why don't you try to to figure out with "WHAT" kind of tools they have built > the mac port and "WHERE" to get them either. And ask him also how to set the > flags to build t

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 12:19 pm, davidfx wrote: > Hello everyone, > I just have a quick question about .format and %r %s %d. > > Should we always be using .format() for formatting strings or %? ALWAYS use the format method over the old and dumpy string interpolation. Why? Well because the format method

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Jan 2, 4:00 pm, Ethan Furman wrote: > %-style formatting isn't going away. You may want to freshen up on the definition of "deprecation". If it was NOT going away, why the need to deprecate it? hmm? It would be more beneficial if you DO NOT encourage continued usage of this "end- of-life" feat

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Cameron Simpson
On 02Jan2012 20:31, Devin Jeanpierre wrote: | > I think that catching the exception is probably the most Pythonic way. | | It's the only correct way. Indeed, but be precise - chek that it _is_ error 3, or more portably, errno.ESRCH. POSIX probably mandates that that is a 3, but the symbol should

Re: Idiot-proof installs for python+pygame+pyopenal+app

2012-01-02 Thread alex23
On Jan 2, 1:58 pm, Tim Chase wrote: > I'm looking at developing some tools that involve pygame+pyopenal > and would like to make cross-platform distribution as painless as > possible. Hey Tim, I don't have an answer, sorry, just two suggestions: 1. Maybe PyInstaller could be useful: http://www.

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Devin Jeanpierre
> I think that catching the exception is probably the most Pythonic way. It's the only correct way. -- Devin On Mon, Jan 2, 2012 at 6:51 PM, MRAB wrote: > On 02/01/2012 23:09, Jérôme wrote: >> >> Hi all. >> >> When a subprocess is running, it can be sent a signal with the send_signal >> method

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Adam Skutt
On Jan 2, 6:09 pm, Jérôme wrote: > Hi all. > > When a subprocess is running, it can be sent a signal with the send_signal > method : > > process = Popen( args) > process.send_signal(signal.SIGINT) > > If the SIGINT is sent while the process has already finished, an error is > raised : > >   File "

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Devin Jeanpierre
> Because that's something that no one desires, nor is it the logical > conclusion of anything that anyone has expressed here. Please don't invent > strawmen. You're right, sorry. I let myself say something dumb. I'll try not to do it again. -- Devin On Mon, Jan 2, 2012 at 5:43 PM, Robert Kern

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread MRAB
On 02/01/2012 23:09, Jérôme wrote: Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has already finished, an error is raised : File "/usr/lib/python2

Avoid race condition with Popen.send_signal

2012-01-02 Thread Jérôme
Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has already finished, an error is raised : File "/usr/lib/python2.7/subprocess.py", line 1457, in send

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Tamer Higazi
Hi Rich! Why don't you ask the maintainer who built the macport?! Why don't you try to to figure out with "WHAT" kind of tools they have built the mac port and "WHERE" to get them either. And ask him also how to set the flags to build the 64bit edition. Then you don't have to be afraid of any

Re: .format vs. %

2012-01-02 Thread Ethan Furman
Andrew Berg wrote: On 12/31/2011 12:19 PM, davidfx wrote: Should we always be using .format() for formatting strings or %? >> %-style formatting will eventually go away, but probably not for a long time. %-style formatting isn't going away. ~Ethan~ -- http://mail.python.org/mailman/listinfo

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Robert Kern
On 1/2/12 8:56 PM, Devin Jeanpierre wrote: But, hey, inertia. As long as we're trying to make this dude get rid of the offensive part, might as well get rid of the rest too. Why not make him get rid of everything he's written, too? Because that's something that no one desires, nor is it the lo

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Ben Finney
Devin Jeanpierre writes: > > Nonsense. Felinx is free to make sexist jokes, and others are free > > to howl him down when he does so. PyPI has no obligation to be a > > platform to amplify anyone's prejudice. > > A module named "girlfriend" won't amplify anyone's prejudice. It is, > at that point

Re: Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
On 1/2/12 13:03 , Benjamin Kaplan wrote: On Mon, Jan 2, 2012 at 2:32 PM, K Richard Pixley wrote: Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but the

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Benjamin Kaplan
On Mon, Jan 2, 2012 at 2:32 PM, K Richard Pixley wrote: > Where would I look to find the current expected status of python3 on MacOsX > Lion? > > The distributed binaries aren't capable of allowing extensions that use gcc. > > I can build the source naked, but then it lacks some libraries, notably

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Devin Jeanpierre
> Nonsense. Felinx is free to make sexist jokes, and others are free to > howl him down when he does so. PyPI has no obligation to be a platform > to amplify anyone's prejudice. A module named "girlfriend" won't amplify anyone's prejudice. It is, at that point, just a joke. The punchline is "impor

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article <24123dfe-b2fc-4f4c-8dfe-23bfef19b...@m10g2000vbc.googlegroups.com>, ÉΪÉ«É»όλαος Κούρας wrote: > On 2 ÉßÉΩÉΥ, 20:42, Roy Smith wrote: > > In article > > , > > †ÉΪÉ«É»όλαος Κούρας wrote: > > > > > I'am trying to present myself through my web

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith wrote: > In article > , >  ÉΪÉ«É»όλαος Κούρας wrote: > > > I'am trying to present myself through my webpage as computer tech. > > Is the background music so bad?! :-) > > Yes.  Background music on web sites is evil. Evil?!?! How come? :) -- http://mail.python.org/mail

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith wrote: > In article > , >  ÉΪÉ«É»όλαος Κούρας wrote: > > > I'am trying to present myself through my webpage as computer tech. > > Is the background music so bad?! :-) > > Yes.  Background music on web sites is evil. Evil?!?! How come? :) -- http://mail.python.org/mail

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > Felinx Lee wrote: > > > I have removed those packages (girlfriend and others) from PyPI > > forever, I apologize for that. > > The thought police has won :( Nonsense. Felinx is free to make sexist jokes, and others are free to howl him down when he does so

Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but then it lacks some libraries, notably, readline. Attempting to build the full Mac packages fails, e

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-02 Thread K Richard Pixley
On 1/1/12 19:04 , K Richard Pixley wrote: On 1/1/12 16:49 , K Richard Pixley wrote: I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built with old versions of macosx and are not capable of building any third party packages that requi

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article , ÉΪÉ«É»όλαος Κούρας wrote: > I'am trying to present myself through my webpage as computer tech. > Is the background music so bad?! :-) Yes. Background music on web sites is evil. -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:47, Roy Smith wrote: > In article > <6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com>, >  ÉΪÉ«É»όλαος Κούρας wrote: > > > > > > > > > > > On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram wrote: > > > Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: > > > > > On 23 Δεκ 2011, 19:14,

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:49, Thomas Rachel wrote: > Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: > > > Hello when i try to visit my webpage i get the error it displays. Iam > > not posting it since you can see it by visiting my webpage at > >http://superhost.gr > > > Please if you can tell me what might be wr

Re: InvalidResponseError: headers must be str

2012-01-02 Thread Waldek M.
On Sat, 31 Dec 2011 17:40:15 -0800 (PST), Niklas Rosencrantz wrote: > Thanks for the replies here. I will have patience but this bug > is blocking my integration efforts. I tried logging the TCP > packets with tcpdump and nothing special appeared. Well, it's free software, isn't it? You may either

Re: Generating sin/square waves sound

2012-01-02 Thread Paulo da Silva
Em 30-12-2011 07:17, Paulo da Silva escreveu: > Hi, > Sorry if this is a FAQ, but I have googled and didn't find any > satisfatory answer. > > Is there a simple way, preferably multiplataform (or linux), of > generating sinusoidal/square waves sound in python? > > Thanks for any answers/suggestio

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Lie Ryan
On 01/02/2012 11:20 PM, Peter Otten wrote: Felinx Lee wrote: I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. The thought police has won :( I think the community has a right to defend themselves against trolls. If it's just bad naming, we can p

Re: Generating sin/square waves sound

2012-01-02 Thread Dave Angel
On 01/02/2012 02:24 AM, Paulo da Silva wrote: Em 30-12-2011 10:05, Dave Angel escreveu: On 12/30/2011 02:17 AM, Paulo da Silva wrote: Hi, Sorry if this is a FAQ, but I have googled and didn't find any satisfatory answer. Is there a simple way, preferably multiplataform (or linux), of generatin

Re: Python education survey

2012-01-02 Thread Grant Edwards
On 2012-01-01, Alexander Kapps wrote: > On 01.01.2012 03:36, Grant Edwards wrote: >> On 2011-12-31, Alexander Kapps wrote: >>> On 31.12.2011 19:23, Roy Smith wrote: >>> >> Why do I waste my time reading your pretentious self-important nonsense? > > http://xkcd.com/386/ > > ;)

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Thomas Rachel
Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can tell me what might be wrong. What is wrong on this site? Mainly the unwanted so

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article <6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com>, ÉΪÉ«É»όλαος Κούρας wrote: > On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram wrote: > > Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: > > > > > On 23 Δεκ 2011, 19:14, Νικόλαος

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 16:00, Heiko Wundram wrote: > Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: > > > On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας  wrote: > >> I dont know why this line host = > >> socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes > >> and some other times works ok retrieving t

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Dave Angel
On 01/01/2012 10:14 PM, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Golden wrote: On 01/01/2012 12:05, David Goldsmith wrote: >> ie can the Python process creating the directories, > > Yes. > >> and a subprocess called from it create a simple file? > > No. > >> Dependin

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Heiko Wundram
Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας wrote: I dont know why this line host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes and some other times works ok retrieving the hostnames correctly. Please i need some help. My webpa

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας wrote: > On 23 Äåê, 12:41, becky_lewis wrote: > > > Is there any possibility that you can tell us what the script actually > > is or provide a code listing (use pastebin if it's big)? > > The script is about retrieving and storing the visitros hostnames to >

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Chris Angelico
On Mon, Jan 2, 2012 at 11:20 PM, Peter Otten <__pete...@web.de> wrote: > Felinx Lee wrote: > >> I have removed those packages (girlfriend and others) from PyPI forever, I >> apologize for that. > > The thought police has won :( There's nothing wrong with cracking jokes, but sometimes a large centr

Re: Spamming PyPI with stupid packages

2012-01-02 Thread David Monaghan
On Mon, 2 Jan 2012 02:52:06 -0500, Devin Jeanpierre wrote: >> Perhaps I'm just slow, but what is sexist about this package? Do you even >> know what the package does? > >The dependencies are "car", "house", and "money" (and "workhard", of >course). The joke being that women only care about how we

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
Hi, On 2012-01-02 11:03:25 +, Felinx Lee said: > I am the author of girlfriend module, a serious Python programmer. > This project is nothing about sexist or racism, > it is just a joke, a famous joke in China, please be cool down. Yeah, quite funny. Why not put this on an own web server? >

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Peter Otten
Felinx Lee wrote: > I have removed those packages (girlfriend and others) from PyPI forever, I > apologize for that. The thought police has won :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. -- Felinx Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Chris Withers
On 02/01/2012 11:03, Felinx Lee wrote: The girlfriend module just depends on workhard module now. I will remove girlfriend module forever if you still think it is a spam or illegal. What is the point of these packages? Why do they exist? Chris -- Simplistix - Content Management, Batch Process

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Kai Diefenbach
Hi, On 2012-01-02 11:03:25 +, Felinx Lee said: I am the author of girlfriend module, a serious Python programmer. This project is nothing about sexist or racism,  it is just a joke, a famous joke in China, please be cool down. Yeah, quite funny. Why not put this on an own web server? An

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Tim Golden
On 02/01/2012 03:14, David Goldsmith wrote: Here's my script, in case that helps: It certainly does. A few things occur to me. First, you shouldn't need to double-quote the path; the subprocess.call should do that for you as long as you're using the list version of the param -- which you are.

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
Hi guys, I am the author of girlfriend module, a serious Python programmer. This project is nothing about sexist or racism, it is just a joke, a famous joke in China, please be cool down. And now, I have removed money, car, house packages from PyPi, and remove their dependences in girlfriend modu

Re: .format vs. %

2012-01-02 Thread Terry Reedy
On 1/1/2012 4:11 PM, Miki Tebeka wrote: s = "{0} {1} {2} {3}" s.format(1, 2, 3, 4) '1 2 3 4' Or even In [4]: fmt = '{0} {1} {2} {3}'.format In [5]: print(fmt(1, 2, 3, 4)) 1 2 3 4 I have done this, except for using a more informative name, like 'emsg' for error message. exce

Re: Generating sin/square waves sound

2012-01-02 Thread Peter Billam
On 2012-01-02, Paulo da Silva wrote: > Em 30-12-2011 11:23, mblume escreveu: >> Am Fri, 30 Dec 2011 07:17:13 + schrieb Paulo da Silva: >> Alternatively you might just generate (t,signal) samples, write >> them to a file and convert them using "sox" (under Linux, might >> also be available unde