Re: [Tutor] optional sys.argv parsing

2009-10-29 Thread Andre Walker-Loud
Hi Sander, On Thu, 2009-10-29 at 17:30 -0400, Andre Walker-Loud wrote: I have a simple question. I am writing a little program that will make some plots of data files. I want to have optional args to pass, for example to specify the plot ranges. I have never written a script/ code that ta

[Tutor] Shortcut key calls TWO instances of IDLE

2009-10-29 Thread Richard D. Moores
I just bought my first laptop, with 64-bit Vista SP1 on it. I'm trying to learn a bit of Python 3.1.1 using IDLE. I've set up a shortcut to idle.pyw (with C:\Python31\pythonw.exe c:\Python31\Lib\idlelib\idle.pyw as its Target). The shortcut has a shortcut key, Ctrl + Alt + F. When I call IDLE b

Re: [Tutor] How to manipulate a variable whose value depends on nextvalues of list using LC or reduce()

2009-10-29 Thread Alan Gauld
"Shashwat Anand" wrote sum([1, 2, 3], 4) 10 sum( ) -> sum: (sequence[, start]), so shouldn't 4 be the 'start' that's second case ? Try help(sum): help(sum) Help on built-in function sum in module __builtin__: sum(...) sum(sequence, start=0) -> value Returns the sum of a sequence

[Tutor] How to manipulate a variable whose value depends on next values of list using LC or reduce()

2009-10-29 Thread Shashwat Anand
Shashwat Anand to Bangalore show details 5:31 AM (2 minutes ago) *# 1:* >>> sum([1, 2, 3], 4) 10 How does it actually work ? ( ( (1 + 2) + 3) + 4) or ( ( (4 + 1) + 2 + 3) sum( ) -> sum: (sequence[, start]), so shouldn't 4 be the 'start' that's second case ? "Note that sum(range(n), m) is equi

Re: [Tutor] optional sys.argv parsing

2009-10-29 Thread Sander Sweers
On Thu, 2009-10-29 at 17:30 -0400, Andre Walker-Loud wrote: > I have a simple question. I am writing a little program that will > make some plots of data files. I want to have optional args to pass, > for example to specify the plot ranges. I have never written a script/ > code that takes o

[Tutor] optional sys.argv parsing

2009-10-29 Thread Andre Walker-Loud
Hi All, I have a simple question. I am writing a little program that will make some plots of data files. I want to have optional args to pass, for example to specify the plot ranges. I have never written a script/ code that takes optional args (but I have used plenty) - so I am feeling

Re: [Tutor] PyQT forum?

2009-10-29 Thread Chris Fuller
Start with the main site. There are links to wikis/mailing lists/etc there. http://www.riverbankcomputing.co.uk/software/pyqt/ Also, you might be interested in the fully-free alternate, PySide, sponsored by Nokia: http://www.pyside.org/ Cheers On Wednesday 28 October 2009 11:17, Christopher S

Re: [Tutor] Generating unique ID

2009-10-29 Thread Alan Gauld
"Timo" wrote I'm using SQLite as database and will try the ROWID. Take a look at my working with databases topic under the heading Linking Data Across Tables which gives an exampler and discussion of using an autoincementing key in SqlLite. -- Alan Gauld Author of the Learn to Program w

Re: [Tutor] New to Python

2009-10-29 Thread Tim Golden
asteri...@petlover.com wrote: I am running Windows Vista. OK. Definite points for giving useful info up front. Do you know what remote desktop is? Yes. This is the tool I use to connect to my other severs on the network or alternatively I use my "Run" option (Start/Run) where you add in

Re: [Tutor] New to Python

2009-10-29 Thread asterix09
I am running Windows Vista. Do you know what remote desktop is? This is the tool I use to connect to my other severs on the network or alternatively I use my "Run" option (Start/Run) where you add in the IP address and connect to the server. I want to use python to do this for me. I can do it

Re: [Tutor] Sorting points on a 2D plane

2009-10-29 Thread Robert Berman
Kent and Alan, Thank you both for providing me with tools I can use to develop the sort portion of my algorithm. They are invaluable. I really appreciate Luke's willingness to examine and advise on the full algorithm and once it is written (only the function that determines distance between two p

Re: [Tutor] Generating unique ID

2009-10-29 Thread Timo
Thanks for all the answers. I'm using SQLite as database and will try the ROWID. Timo Modulok schreef: I'm writing an application which will hold a database of people. Ofcourse, people can have the same name, so I want to stock them with an unique ID. I've searched and found some things: - u