Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote What's the trick win comp? The window disappears quickly. Its a command line tool, you need to run it from a CMD window. Like so: H:\PROJECTS\Python>comp foo.py foo.tst /L /A Comparing foo.py and foo.tst... Compare error at LINE 1 file1 = g file2 =

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Kent Johnson
On Thu, Oct 9, 2008 at 7:48 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Well, maybe I'll give Cygwin a go again. I tried it 2-3 years ago and it was > troublesome. I'd really like to have Unix/Linux available, so maybe. I > really don't use Linux any longer, but it does have some very good featur

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html Make that "with" and not "win" comp. Wayne Watson wrote: Well, maybe I'll give Cygwin a go again. I tried it 2-3 years ago and it was troublesome. I'd really like to have Unix/Linux available, so maybe. I really don't use Linux any longer, but it does have some very g

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html Well, maybe I'll give Cygwin a go again. I tried it 2-3 years ago and it was troublesome. I'd really like to have Unix/Linux available, so maybe. I really don't use Linux any longer, but it does have some very good features like diff than can be helpful even in a Win env.

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html I'm sure you're correct, but I posted a similar message about diff on the Newsgroup, and got nowhere. Anyway, it looks like there are some good choices. Thanks. Kent Johnson wrote: On Thu, Oct 9, 2008 at 12:03 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Is

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread W W
Vim also has a diff mode. -Wayne ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] return a dictionary?

2008-10-09 Thread Alan Gauld
"Bill Gibson" <[EMAIL PROTECTED]> wrote Can I ‘return’ a dictionary from an imported Python script? Yes. I have a utility module (NameAddress.py) done using Tkinter. ...I wanted to return the values as a dictionary to the module that imported but this does not seem to work. I'm not totally

Re: [Tutor] Installation Problems

2008-10-09 Thread Pierre Dagenais
Matthew Hill wrote: I am a newly beginning aspiring programmer. I have been learning Blender 3D and I want to use python with it. I downloaded the newest version of python and I tried running it with Blender 2.47. Python would work alone but would not with Blender. I read on a forum that I nee

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Is there a Win Python environment that provides Linux like facilities like diff (compare) and checking in and out program files? Cygwin provides a fill Unix like environment on Windows and if you know Unix at all is a must-have addon IMHO! :-) But

Re: [Tutor] return a dictionary?

2008-10-09 Thread Kent Johnson
2008/10/9 Bill Gibson <[EMAIL PROTECTED]>: > Traceback (most recent call last): > > File "C:\Python24\Lib\SITE-P~1\PYTHON~1\pywin\framework\scriptutils.py", > line 310, in RunScript > > exec codeObject in __main__.__dict__ > > File "C:\Users\B\Desktop\Inter_module.py", line 6, in ? > >

Re: [Tutor] Reading Files and Such

2008-10-09 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Yes, listdir does not read files, it just prepares a list of all files in the folder. I work my way through them as needed. It looks like glob does something similar. Yes but glob can use wildcards to select only files matching the pattern (eg *.txt t

[Tutor] Output parameters from a stored procedure

2008-10-09 Thread Hansen, Mike
Does anyone know how to get the output parameters from a stored procedure? I'm using pymssql on a linux box to call a stored procedure on a mssql database. I'm not sure of the correct syntax to get the output parameters. import pymssql con = pymssql.connect(host='x',user='',password='xx

[Tutor] return a dictionary?

2008-10-09 Thread Bill Gibson
Can I ‘return’ a dictionary from an imported Python script? I have a utility module (NameAddress.py)  done using Tkinter. (For example, Name/Address City,State,Zip,Email, Phone) that I want to use as imported module. I wanted to return the values as a dictionary to the module that imported but t

Re: [Tutor] Pyserial and general python serial help

2008-10-09 Thread Chris Fuller
Are you reading everything in the buffer? How much data is sent every 10ms? At 9600/8/N/1, the throughput is 960 byes a second, so if there's more than 9 bytes, something will give. Similarly, at 115200 baud, the limit is 115 bytes. Some general advice: don't try to sync your program to the 10m

Re: [Tutor] Pyserial and general python serial help

2008-10-09 Thread Kent Johnson
On Thu, Oct 9, 2008 at 1:28 PM, Damon McCartney <[EMAIL PROTECTED]> wrote: > Im trying to read data from the serial port which is being sent from a > device every 10ms, I seem to be able to read the data in a while loop but > eventually the buffer seems to overflow and the data gets scrambled. It

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Kent Johnson
On Thu, Oct 9, 2008 at 12:03 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Is there a Win Python environment that provides Linux like facilities like > diff (compare) and checking in and out program files? This is not really a Python question. There are many good diff programs for Windows, a coupl

[Tutor] Pyserial and general python serial help

2008-10-09 Thread Damon McCartney
Hi! New to python but finding it fast and effective to use! But heres my problem, Im trying to read data from the serial port which is being sent from a device every 10ms, I seem to be able to read the data in a while loop but eventually the buffer seems to overflow and the data gets scrambled.

[Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html Is there a Win Python environment that provides Linux like facilities like diff (compare) and checking in and out program files? For starters, I'm particularly interested in diff-ing two files. I'm  modifying someone else's Python program and would like to see the line b

Re: [Tutor] Reading Files and Such

2008-10-09 Thread Wayne Watson
Title: Signature.html bob gailer wrote: Wayne Watson wrote: I have a Python application that requires the program be run in a specific folder, Win XP. It analyzes and modifies txt files there, and only txt files. The mods require creating a tmp file. The tmp files could just as well be a