Re: are int, float, long, double, side-effects of computer engineering?

2012-03-13 Thread John Nagle
On 3/7/2012 2:02 PM, Russ P. wrote: On Mar 6, 7:25 pm, rusi wrote: On Mar 6, 6:11 am, Xah Lee wrote: I might add that Mathematica is designed mainly for symbolic computation, whereas IEEE floating point numbers are intended for numerical computation. Those are two very different endeavors.

Re: Python-list Digest, Vol 102, Issue 64

2012-03-13 Thread David Shi
I am looking very simple and straightforward open source Python REST and SOAP demo modules. I really need things which are very simple and convincing.   I want to demonstrate these to other people. I want to promote you guys' interest.   I find asp and others frustrating and occupy too much in

Re: Adopting ‘lockfile’

2012-03-13 Thread Ben Finney
Chris Withers writes: > On 03/03/2012 21:43, Ben Finney wrote: > > I don't see a need to horse around with Git either :-) It's currently in > > Subversion, right? Can you not export the VCS history from Google Code's > > Subversion repository […] > What's wrong with a "git svn clone svn-url-here

[ANN] pyspread 0.2.1

2012-03-13 Thread Martin Manns
== pyspread 0.2.1 == Pyspread 0.2.1 is released. The new version improves GPG integration. About pyspread == Pyspread is a non-traditional spreadsheet application that is based on and written in the programming language Python. The goal of pyspread is to

Re: Enchancement suggestion for argparse: intuit type from default

2012-03-13 Thread Ben Finney
r...@panix.com (Roy Smith) writes: > Using argparse, if I write: > > parser.add_argument('--foo', default=100) > > it seems like it should be able to intuit that the type of foo should > be int (i.e. type(default)) […] -0.5. That feels too magical to me. I don't see a need to special-case th

Enchancement suggestion for argparse: intuit type from default

2012-03-13 Thread Roy Smith
Using argparse, if I write: parser.add_argument('--foo', default=100) it seems like it should be able to intuit that the type of foo should be int (i.e. type(default)) without my having to write: parser.add_argument('--foo', type=int, default=100) Does this seem like a reasonable enhanc

Re: Fast file data retrieval?

2012-03-13 Thread Jorgen Grahn
On Mon, 2012-03-12, MRAB wrote: > On 12/03/2012 19:39, Virgil Stokes wrote: >> I have a rather large ASCII file that is structured as follows >> >> header line >> 9 nonblank lines with alphanumeric data >> header line >> 9 nonblank lines with alphanumeric data >> ... >> ... >> ... >> header line >>

Re: concatenate function

2012-03-13 Thread Chris Rebert
On Tue, Mar 13, 2012 at 1:35 PM, Robert Kern wrote: > On 3/13/12 6:01 PM, ferreirafm wrote: >> Robert Kern-2 wrote >>> When you report a problem, you should copy-and-paste the output that you >>> got and >>> also state the output that you expected. I have no idea what you mean >>> when >>> you >>>

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 6:01 PM, ferreirafm wrote: Robert Kern-2 wrote When you report a problem, you should copy-and-paste the output that you got and also state the output that you expected. I have no idea what you mean when you say "subprocess.Popen seems not accept to run "qsub" over a second program."

Re: Windows Contextmenu

2012-03-13 Thread Terry Reedy
On 3/13/2012 5:41 AM, Szabo, Patrick (LNG-VIE) wrote: Hi, I wrote the following Script which I want to run from the open with contextmenu in Windows. Now the script runs fine but I don’t get all arguments from sys.argv. No mather how many files I mark in the explorer I only get one as an arg

Re: Installing Python Apps on Mac Lion

2012-03-13 Thread Benjamin Kaplan
On Tue, Mar 13, 2012 at 12:42 PM, wrote: > > Sábado, 25 de Junho de 2011 02h20min49s UTC+1, JKPeck escreveu: > > The Lion version of the OS on the Mac comes with Python 2.7 installed, > > but it is in /System/Library/Frameworks/..., and this area is not writable > > by third party apps. > > > > So

Re: concatenate function

2012-03-13 Thread ferreirafm
Robert Kern-2 wrote > > When you report a problem, you should copy-and-paste the output that you > got and > also state the output that you expected. I have no idea what you mean when > you > say "subprocess.Popen seems not accept to run "qsub" over a second > program." > Code goes here: htt

RE: Windows Contextmenu

2012-03-13 Thread Prasad, Ramit
> > Now the script runs fine but I don't get all arguments from sys.argv. > > > > No mather how many files I mark in the explorer I only get one as an > > argument. > > You're missing out vital information: > > * How have you attached this code to the context menu? What was > the exact registry e

Re: Software Engineer -

2012-03-13 Thread Neil Cerutti
On 2012-03-13, Pedro H. G. Souto wrote: > On 2012-03-13 12:44 PM, Paul Rudin wrote: >> Just out of interest why do people object to job adverts here? >> Seems harmless enough... > > Wannabe list admins... Or list admins with a need to proof > themselves... Or none of the above. A job listing here

Re: Software Engineer -

2012-03-13 Thread Pedro H. G. Souto
On 2012-03-13 12:44 PM, Paul Rudin wrote: Just out of interest why do people object to job adverts here? Seems harmless enough... Wannabe list admins... Or list admins with a need to proof themselves... Or none of the above. -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python Apps on Mac Lion

2012-03-13 Thread dilvanezanardine
Sábado, 25 de Junho de 2011 02h20min49s UTC+1, JKPeck escreveu: > The Lion version of the OS on the Mac comes with Python 2.7 installed, but it > is in /System/Library/Frameworks/..., and this area is not writable by third > party apps. > > So is there a consensus on what apps that typically ins

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: [...] Sorry for triple posting. I hadn't noticed the follow up and I was blaming my newsserver. BTW, Python is the next language (right after Perl) I'm going to learn. Then I'll probably have a look at Ruby... Kiuhnm -- http://mail.python.org/mai

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 3:59 PM, ferreirafm wrote: Hi Robert, Thanks for you kind replay and I'm sorry for my semantic mistakes. Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly, that's not the best approach and the only problem. It's not a problem to write out a script and have q

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 16:02, ferreirafm wrote: > Hi James, thank you for your replay. Indeed, the problem is qsub. And as > warned by Robert, I don't have functions properly, but just scripts. > > > -- > View this message in context: > http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.

Re: Software Engineer -

2012-03-13 Thread Paul Rudin
Chris Withers writes: > On 11/03/2012 09:00, Blue Line Talent wrote: >> Blue Line Talent is looking for a mid-level software engineer with >> experience in a combination of > > Please don't spam this list with jobs, use the Python job board instead: > > http://www.python.org/community/jobs/ Just

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi James, thank you for your replay. Indeed, the problem is qsub. And as warned by Robert, I don't have functions properly, but just scripts. -- View this message in context: http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html Sent from the Python - python-list mailing lis

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi Robert, Thanks for you kind replay and I'm sorry for my semantic mistakes. Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly, that's not the best approach and the only problem. I've unsuccessfully tried to set an os.environ and call qsub from it. However, subprocess.Po

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 14:35, ferreirafm wrote: > Hi List, > I've coded three functions that I would like to concatenate. I mean, run > them one after another. The third function depends on the results of the > second function, which depends on the results of the first one. When I call > one function after an

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi Ian, That what I have: > burst.py Your job 46665 ("top_n_pdb.qsub") has been submitted Your job 4 ("extr_pdb.qsub") has been submitted Your job 46667 ("combine_top.qsub") has been submitted The first job runs quite well. The second is still runing and the third issue the following: > more

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 2:35 PM, ferreirafm wrote: Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after another,

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots Af

2012-03-13 Thread Seymour J.
In , on 03/12/2012 at 07:00 PM, Albert van der Horst said: >I know, but what the mathematicians do make so much more sense: Not really; Mathematical notation is a matter of convention, and the conventions owe as much to History as they do to logical necessity. The conventions aren't even the

Re: concatenate function

2012-03-13 Thread Ian Kelly
On Tue, Mar 13, 2012 at 8:35 AM, ferreirafm wrote: > Hi List, > I've coded three functions that I would like to concatenate. I mean, run > them one after another. The third function depends on the results of the > second function, which depends on the results of the first one. When I call > one fu

concatenate function

2012-03-13 Thread ferreirafm
Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after another, python runs them at the same time causin

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article<4f5df4b3$0$1375$4fafb...@reader1.news.tin.it>, Kiuhnm wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativ

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article<4f5df4b3$0$1375$4fafb...@reader1.news.tin.it>, Kiuhnm wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativ

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-13 Thread Albert van der Horst
In article <5aaded58-af09-41dc-9afd-56d7b7ced...@d7g2000pbl.googlegroups.com>, Xah Lee wrote: > >what i meant to point out is that Mathematica deals with numbers at a >high-level human way. That is, one doesn't think in terms of float, >long, int, double. These words are never mentioned. Instead

Re: Windows Contextmenu

2012-03-13 Thread Tim Golden
On 13/03/2012 09:41, Szabo, Patrick (LNG-VIE) wrote: I wrote the following Script which I want to run from the open with contextmenu in Windows. For that purpose I used py2exe to make an exe out of it. [... snip ...] Now the script runs fine but I don’t get all arguments from sys.argv. No

Re: How to break long method name into more than one line?

2012-03-13 Thread Chris Angelico
On Tue, Mar 13, 2012 at 9:30 PM, Jean-Michel Pichavant wrote: > Chris Angelico wrote: >> >> Just never treat them as laws of physics (in >> Soviet Physics, rules break you!). > > hum ... > I wonder how this political message is relevant to the OP problem. Ehh, it's a reference to the "in Soviet R

Re: How to break long method name into more than one line?

2012-03-13 Thread Jean-Michel Pichavant
Chris Angelico wrote: Just never treat them as laws of physics (in Soviet Physics, rules break you!). ChrisA hum ... I wonder how this political message is relevant to the OP problem. JM -- http://mail.python.org/mailman/listinfo/python-list

Windows Contextmenu

2012-03-13 Thread Szabo, Patrick (LNG-VIE)
Hi, I wrote the following Script which I want to run from the open with contextmenu in Windows. For that purpose I used py2exe to make an exe out of it. import sys, time, webbrowser def main(): for para in sys.argv[1:]: print sys.argv print "##