Re: OT: unix newbie questions

2006-06-06 Thread Maric Michaud
Le Mardi 06 Juin 2006 08:36, Fredrik Lundh a écrit : > > *26. You observed that some of your group members are fiddling with your > > file  "myfile" and you wanted to remove the read permission to your > > group. How do you do? (1) > >  >>> os.chmod("myfile.txt", 0404) rather, >>> os.chmod("myfile

python socket proxy

2006-06-06 Thread jstobbs
Hi all I am trying to create a lighweight tcp proxy server. I got this code from ActivePython documentation. What I am trying to accomplish, is I need to connect to local instance of the proxyserver (127.0.0.1). This server must then connect to a remote jabber server, send data, and listen to inc

Re: Reading from a file and converting it into a list of lines

2006-06-06 Thread John Machin
On 6/06/2006 4:15 PM, Girish Sahani wrote: > Really sorry for that indentation thing :) > I tried out the code you have given, and also the one sreeram had written. > In all of these,i get the same error of this type: > Error i get in Sreeram's code is: > n1,_,n2,_ = line.split(',') > ValueError: n

Re: How to add few pictures into one

2006-06-06 Thread bearophileHUGS
Lad wrote: > I want to to do that as easy as possible. But not even more easy. > I think the easest way could be add( append) an image to another > into an image file so that I can use an image browser and see all > pictures in one file. Is that possible? Well, you can do it with PIL, creating

RE: embedding Python in COM server loaded with win32com

2006-06-06 Thread Stefan Schukat
Hi, when you are running in Python the PyInitialize() is not called and therefore you don't have a valid threadstate since the call in win32com uses the standard idiom Py_BEGIN_ALLOW_THREADS() CallComServer Py_END_ALLOW_THREADS() You could use PyNewInterpreter to get a valid state, but this w

Re: C# equivalent to range()

2006-06-06 Thread Ant
> That's because many of them have killfiled you. I actually wonder whether anyone does use killfiles. I just can''t imagine the sort of person who writes "plonk" or "welcome to my killfile" etc could bear to miss out on a reply to such a post in case there's more to get angry about! And people w

Re: C# equivalent to range()

2006-06-06 Thread Sybren Stuvel
Erik Max Francis enlightened us with: >> The other zilion persons who were not interested (other than the four I >> mentioned above) silently and peacefully ignored the question on went >> on with their happy lifes. > > That's because many of them have killfiled you. I can say that I didn't killfi

Re: Writing to a certain line?

2006-06-06 Thread Rene Pijlman
Tommy B: >I was wondering if there was a way to take a txt file and, while >keeping most of it, replace only one line. You'd need to read the file and parse it, to find the start position of the line you want to change. Then seek output to that position and write and flush the changes. You must k

Checking var is a number?

2006-06-06 Thread dav . phillips
Hi, I am very new to all this and need to know how to check a variable to see if it is a number or not. Also can anyone recommend a reference book apart from dive into python preferably a reference with good examples of how to impliment code. The project i have been given to work in is all CGI wri

Re: Writing to a certain line?

2006-06-06 Thread bruno at modulix
Tommy B wrote: > I was wondering if there was a way to take a txt file and, while > keeping most of it, replace only one line. This is a FAQ (while I don't know if it's in the FAQ !-), and is in no way a Python problem. FWIW, this is also CS101... You can't do this in place with a text file (wo

Re: the most efficient method of adding elements to the list

2006-06-06 Thread bruno at modulix
alf wrote: > Hi, > > Would it be .append()? Does it reallocate te list with each apend? > > l=[] > for i in xrange(n): > l.append(i) > FWIW, you'd have the same result with: l = range(n) More seriously (and in addition to other anwsers): you can also construct a list in one path: l

Re: Checking var is a number?

2006-06-06 Thread Laszlo Nagy
[EMAIL PROTECTED] írta: > Hi, > I am very new to all this and need to know how to check > a variable to see if it is a number or not. Also can anyone > recommend a reference book apart from dive into python > preferably a reference with good examples of how to impliment > code. > There are diffe

Re: Checking var is a number?

2006-06-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I am very new to all this and need to know how to check > a variable to see if it is a number or not. assuming that "variable" means "string object" and "number" means "integer", you can use the isdigit predicate: if var.isdigit(): print "all characters

Re: python socket proxy

2006-06-06 Thread Filip Wasilewski
[EMAIL PROTECTED] wrote: > Hi all > > I am trying to create a lighweight tcp proxy server. [...] There is a bunch of nice recipies in the Python Cookbook on port forwarding. In the [1] and [2] case it should be fairly simple to add an extra authentication step with pyOpenSSL. [1] http://aspn.acti

Re: Checking var is a number?

2006-06-06 Thread dav . phillips
> Good luck! >Laszlo I actually managed to get it sorted but i like that way of doing it much better actually :) Cheers David P -- http://mail.python.org/mailman/listinfo/python-list

Re: How to add few pictures into one

2006-06-06 Thread Lad
[EMAIL PROTECTED] wrote: > Lad wrote: > > I want to to do that as easy as possible. > > But not even more easy. > > > > I think the easest way could be add( append) an image to another > > into an image file so that I can use an image browser and see all > > pictures in one file. Is that possible?

Re: Checking var is a number?

2006-06-06 Thread dav . phillips
I took a variable to mean a container for diffirent kinds of information either strings or integers etc, as i am mainly a asp, php, asp.net developer. Thanks for the list of references, that will come in very handy Cheers Guys David P -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to a certain line?

2006-06-06 Thread Fredrik Lundh
bruno at modulix wrote: > > This is a FAQ (while I don't know if it's in the FAQ !-), and is in no > way a Python problem. FWIW, this is also CS101... > feel free to repost your response here: http://pyfaq.infogami.com/suggest -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to a certain line?

2006-06-06 Thread Rene Pijlman
bruno at modulix: >You can't do this in place with a text file (would be possible with a >fixed-length binary format). More precise: it's possible with any fixed-length change, in both binary and text files, with both fixed and variable formats. -- René Pijlman -- http://mail.python.org/mailman

Re: Checking var is a number?

2006-06-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I took a variable to mean a container for diffirent kinds of > information either strings or integers etc, as i am mainly a > asp, php, asp.net developer. in python, a variable is a name that refers to a specific object. it's the object that has a type and a value, n

Re: How to add few pictures into one

2006-06-06 Thread Fredrik Lundh
Lad wrote: > Open a picture file( download it from internet) and write it in a > result file( being open in binary mode). > Then download another file and append to the result file. > And so on... > But is it possible? Will be the pictures in the result file seen > well?? the internal structure o

Re: check for dictionary keys

2006-06-06 Thread bruno at modulix
John Machin wrote: > On 5/06/2006 10:46 PM, Bruno Desthuilliers wrote: > >> [EMAIL PROTECTED] a écrit : >> >>> hi >>> in my code, i use dict(a) to make to "a" into a dictionary , "a" comes >>> from user input, so my program does not know in the first place. Then >>> say , it becomes >>> >>> a = {

Re: Writing to a certain line?

2006-06-06 Thread bruno at modulix
Rene Pijlman wrote: > bruno at modulix: > >>You can't do this in place with a text file (would be possible with a >>fixed-length binary format). > > > More precise: it's possible with any fixed-length change, in both binary > and text files, with both fixed and variable formats. > Granted. But

Re: How to add few pictures into one

2006-06-06 Thread Lad
Fredrik Lundh wrote: > Lad wrote: > > > Open a picture file( download it from internet) and write it in a > > result file( being open in binary mode). > > Then download another file and append to the result file. > > And so on... > > But is it possible? Will be the pictures in the result file seen

Re: is it possible to find which process dumped core

2006-06-06 Thread [EMAIL PROTECTED]
if your core is from a python program you can check what file/function was running use this gdb macro: define pbt set $i = 0 set $j = 0 while $i < 1000 select $i if $eip >= &PyEval_EvalFrame if $eip < &PyEval_EvalCodeEx echo c frame # p $i echo py frame # p $j set $j

Re: check for dictionary keys

2006-06-06 Thread John Machin
On 6/06/2006 8:38 PM, bruno at modulix wrote: > John Machin wrote: >> On 5/06/2006 10:46 PM, Bruno Desthuilliers wrote: >> >>> [EMAIL PROTECTED] a écrit : >>> hi in my code, i use dict(a) to make to "a" into a dictionary , "a" comes from user input, so my program does not know in the

Re: How to add few pictures into one

2006-06-06 Thread Fredrik Lundh
Lad wrote: > I really would like to have ALL pictures in one file. > So, what would be the easiest/best way how to do that? do you want to look at the images as a slideshow or as a collage? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to add few pictures into one

2006-06-06 Thread K.S.Sreeram
Lad wrote: > I really would like to have ALL pictures in one file. import Image def merge_images( input_files, output_file ) : img_list = [Image.open(f) for f in input_files] out_width = max( [img.size[0] for img in img_list] ) out_height = sum( [img.size[1] for img in img_list] )

10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread [EMAIL PROTECTED]
I wrote a program that takes an XML file into memory using Minidom. I found out that the XML document is 10gb. I clearly need SAX or something else? Any suggestions on what that something else is? Is it hard to convert the code from DOM to SAX? -- http://mail.python.org/mailman/listinfo/python-

Distutils: setup script for binary files

2006-06-06 Thread Roman Yakovenko
Hi. I want to create setup script, that will install compiled extension module plus few binaries the extension module depends on. For example: I have package X: X: __init__.py _x_.dll ( or so ) some other dll's ( so's ) _x_.dll depends on. I took a look on Python documentation, http:

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Rene Pijlman
[EMAIL PROTECTED]: >I wrote a program that takes an XML file into memory using Minidom. I >found out that the XML document is 10gb. > >I clearly need SAX or something else? > >Any suggestions on what that something else is? PullDOM. http://www-128.ibm.com/developerworks/xml/library/x-tipulldom.ht

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Mathias Waack
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? More memory;) Maybe you should have a look at pulldom, a combination of sax and dom: it reads your document in a s

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? > > Any suggestions on what that something else is? Is it hard to convert > the code from DOM to SAX? Yes. You

Vectorization

2006-06-06 Thread RonnyM
Hi! Need to vectorize this, but do not have a clue. a = n*m matrix x and y are n and m vectors Suggestions? def fill(a, x, y): for i in range(1,a.shape[0]): xp = x[i] for j in range(a.shape[1]): yp = y[j] a[i,j] = sin(xp*yp)*exp(-xp*yp) + a[i-1,j]

Re: Expanding Search to Subfolders

2006-06-06 Thread PipedreamerGrey
Thanks, that was a big help. It worked fine once I removed > os.chdir("C:\\Python23\\programs\\Magazine\\SamplesE") and changed "for file, st in DirectoryWalker("."):" to "for file in DirectoryWalker("."):" (removing the "st") -- http://mail.python.org/mailman/listinfo/python-list

Re: Expanding Search to Subfolders

2006-06-06 Thread PipedreamerGrey
Thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread K.S.Sreeram
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. With a 10gb file, you're best bet might be to juse use Expat and C!! Regards Sreeram signature.asc Description: OpenPGP digital signature -- http://mail

cxFreeze executable linked to /usr/lib/libpython2.3.so

2006-06-06 Thread Raven
Hi, I compiled a python script using cxFreeze because I need a standalone application, while the Windows version runs without any python installation the linux version of the executable is linked to libpython2.3.so.1.0 => /usr/lib/libpython2.3.so.1.0 thus the end user have to install python 2.3

Re: How to add few pictures into one

2006-06-06 Thread Lad
Fredrik Lundh wrote: > Lad wrote: > > > I really would like to have ALL pictures in one file. > > So, what would be the easiest/best way how to do that? > > do you want to look at the images as a slideshow or as a collage? > > As a collage only -- http://mail.python.org/mailman/listinfo/python

Re: Writing to a certain line?

2006-06-06 Thread gene tani
bruno at modulix wrote: > > Else - if you want/need to stick to human readable flat text files - at > least write a solid librairy handling this, so you can keep client code > free of technical cruft. > > HTH > -- > bruno desthuilliers for human readable, you might want to look at reading and wri

Re: Reading from a file and converting it into a list of lines: code not working

2006-06-06 Thread skip
Girish> I have a text file in the following format: Girish> 1,'a',2,'b' Girish> 3,'a',5,'c' Girish> 3,'a',6,'c' Girish> 3,'a',7,'b' Girish> 8,'a',7,'b' Girish> . Girish> . Girish> . Girish> Now i need to generate 2 things by reading the file: Girish> 1)

capture video from camera

2006-06-06 Thread aljosa
i'm trying to capture video from camera/webcam using python. so far i haven't found any library that would allow me to do that. cross-platform solution related to SDL/pygame would be nice but a simple solution to capture video under windows is ok. Aljosa Mohorovic -- http://mail.python.org/mail

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Nicola Musatti
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? What you clearly need is a better suited file format, but I suspect you're not in a position to change it, are you?

Interpretation of UnhandledException.rpt

2006-06-06 Thread Gregor Horvath
Hi, in a windows server python application I receive once a week suddenly and not reproducible the following error. UnhandledException.rpt file: //=== Exception code: C090 FLT_INVALID_OPER

Re: capture video from camera

2006-06-06 Thread Fredrik Lundh
aljosa wrote: > i'm trying to capture video from camera/webcam using python. > so far i haven't found any library that would allow me to do that. > > cross-platform solution related to SDL/pygame would be nice but a > simple solution to capture video under windows is ok. first google hit for "py

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Diez B. Roggisch
K.S.Sreeram schrieb: > [EMAIL PROTECTED] wrote: >> I wrote a program that takes an XML file into memory using Minidom. I >> found out that the XML document is 10gb. > > With a 10gb file, you're best bet might be to juse use Expat and C!! No what exactly makes C grok a 10Gb file where python will

Re: Vectorization

2006-06-06 Thread Paul McGuire
"RonnyM" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > Need to vectorize this, but do not have a clue. > > a = n*m matrix > x and y are n and m vectors > > Suggestions? > > > > def fill(a, x, y): > for i in range(1,a.shape[0]): > xp = x[i] > for j in rang

Re: Again, Downloading and Displaying an Image from the Internet in Tkinter

2006-06-06 Thread Dustan
Justin Ezequiel wrote: > cannot help you with Tkinter but... > > save=open("image.jpg","wb") > save.write(web_download.read()) > save.close() > > perhaps this would let you open the file in Paint Ok, that worked (was it plain w or the writelines/readlines that messed it up?

Re: follow-up to FieldStorage

2006-06-06 Thread John Salerno
Bruno Desthuilliers wrote: > John Salerno a écrit : >> If I want to get all the values that are entered into an HTML form and >> write them to a file, is there some way to handle them all at the same >> time, or must FieldStorage be indexed by each specific field name? > > AFAIK, FieldStorage is

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? > You clearly need something instead of XML. This sounds like a case where a pro

Re: Again, Downloading and Displaying an Image from the Internet in Tkinter

2006-06-06 Thread Fredrik Lundh
Dustan wrote: > Ok, that worked (was it plain w or the writelines/readlines that messed > it up?). the plain "w"; very few image files are text files. > But Tkinter still can't find the image. I'm getting an error > message: > > TclError: image "C:\Documents and [pathname snipped]" doesn't exi

Re: Expanding Search to Subfolders

2006-06-06 Thread PipedreamerGrey
Here's the final working script. It opens all of the text files in a directory and its subdirectories and combines them into one Rich text file (index.rtf): #! /usr/bin/python import glob import fileinput import os import string import sys index = open("index.rtf", 'w') class DirectoryWalker:

Re: Expanding Search to Subfolders

2006-06-06 Thread Fredrik Lundh
Lou Losee wrote: > How about something like: > import os, stat > > class DirectoryWalker: > # a forward iterator that traverses a directory tree, and > # returns the filename > ... > not tested speak for yourself ;-) (the code is taken from http://effbot.org/librarybook/os-path.htm )

Re: capture video from camera

2006-06-06 Thread aljosa
i searched on google and found http://videocapture.sourceforge.net/ before i posted here. videocapture has no docs and doesn't provide additional options like motion detection nor any info on possibility of motion detection or howto implement (use of minimal system resources). i posted here to fin

Namespace problems

2006-06-06 Thread Kiran
Hello All, I am kind of a beginner to python, but here is the deal. I am writing a wxpython Application, in which I have a GUI. This GUI imports some other modules that I have written, using the format import mymodule as _MyModule Now, this GUI in addition to having all it's bells and whis

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread skip
Paul> You clearly need something instead of XML. Amen, brother... +1 QOTW. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Namespace problems

2006-06-06 Thread Kiran
I should note that if you use the execfile command in the console, the script runs, but if you import the script, it says it cant find the module -- http://mail.python.org/mailman/listinfo/python-list

Re: capture video from camera

2006-06-06 Thread Fredrik Lundh
aljosa wrote: > i posted here to find out if anybody knows a better way to capture > video. what other requirements did you forget to mention ? -- http://mail.python.org/mailman/listinfo/python-list

retaining newline characters when writing to file

2006-06-06 Thread John Salerno
If I read a string that contains a newline character(s) into a variable, then write that variable to a file, how can I retain those newline characters so that the string remains on one line rather than spans multiple lines? Example: In a CGI script, I'm reading the address field from an HTML f

Re: retaining newline characters when writing to file

2006-06-06 Thread Fredrik Lundh
John Salerno wrote: > If I read a string that contains a newline character(s) into a variable, > then write that variable to a file, how can I retain those newline > characters so that the string remains on one line rather than spans > multiple lines? you cannot: the whole point of a newline c

Vancouver Python Workshop: New Keynoter

2006-06-06 Thread Brian Quinlan
What's New? === The Vancouver Python Workshop is pleased to announce the addition of a third keynote speaker to this year's conference. Ian Cavén is the primary developer of the Lowry Digital Images motion picture restoration system. This Python and Zope-based system has been used to r

Re: retaining newline characters when writing to file

2006-06-06 Thread John Salerno
Fredrik Lundh wrote: > John Salerno wrote: > >> If I read a string that contains a newline character(s) into a >> variable, then write that variable to a file, how can I retain those >> newline characters so that the string remains on one line rather than >> spans multiple lines? > > you canno

calling functions style question

2006-06-06 Thread Brian
I just have a basic style question here. Suppose you have the program: def foo1(): do something def foo2() do something else Assume that you want to call these functions at execution. Is it more proper to call them directly like: foo1() foo2() or in an if __name__ == "__main__": ? B

Re: Namespace problems

2006-06-06 Thread Kay Schluehr
Kiran wrote: > Hello All, > I am kind of a beginner to python, but here is the deal. > > I am writing a wxpython Application, in which I have a GUI. This GUI > imports some other modules that I have written, using the format > import mymodule as _MyModule > > Now, this GUI in addition to hav

Re: calling functions style question

2006-06-06 Thread Thomas Nelson
The difference becomes clear when you import your program into another program (or the command line python editor). __name__!='__main__' when you import, so the functions will not be called if they're inside the block. This is why you see this block so often at the end of scripts; so that the scr

what are you using python language for?

2006-06-06 Thread hacker1017
im just asking out of curiosity. -- http://mail.python.org/mailman/listinfo/python-list

Re: Vectorization

2006-06-06 Thread Robert Kern
Paul McGuire wrote: > "RonnyM" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Hi! >> >>Need to vectorize this, but do not have a clue. >> >>a = n*m matrix >>x and y are n and m vectors >> >>Suggestions? >> >>def fill(a, x, y): >>for i in range(1,a.shape[0]): >>xp = x

Re: calling functions style question

2006-06-06 Thread Kay Schluehr
Brian wrote: > I just have a basic style question here. Suppose you have the program: > > def foo1(): > do something > > def foo2() > do something else > > Assume that you want to call these functions at execution. Is it more > proper to call them directly like: > > foo1() > foo2() > > o

Re: what are you using python language for?

2006-06-06 Thread Grant Edwards
At the moment, I'm using it for 1) Enginerring/scientific data analysis and visualization. 2) Serial communication test programs. 3) Small utilities for embedded software development (processing map and hex files). 4) Miscellaneous other stuff like grabbing all of the comic strips

Re: what are you using python language for?

2006-06-06 Thread Kay Schluehr
hacker1017 wrote: > im just asking out of curiosity. To get an impression you might have a look at the Europython 2006 schedule: http://indico.cern.ch/conferenceTimeTable.py?confId=44 Personally I'm playing with the language itself at the moment and extend it through it: http://www.fiber-space.

Request for trackers to evaluate as SF replacement for Python development

2006-06-06 Thread Brett Cannon
The Python Software Foundation's Infrastructure committee has been charged with finding a new tracker system to be used by the Python development team as a replacement for SourceForge.  The development team is currently unhappy with SF for several reasons which include: * Bad interface    Most obvi

Re: what are you using python language for?

2006-06-06 Thread Tim Chase
> 4) Miscellaneous other stuff like grabbing all of the comic > strips I like every day and putting them on a local web > page so I can read them all in one place I wonder how many other folks have done this too. It was my first pet Python project, converting a Java rendition of the sam

Re: what are you using python language for?

2006-06-06 Thread Miguel Galves
I'm using for processing genetic and biological data, anda for fun...On 6/4/06, hacker1017 <[EMAIL PROTECTED] > wrote:im just asking out of curiosity.-- http://mail.python.org/mailman/listinfo/python-list-- Miguel Galves - Engenheiro de ComputaçãoJá leu meus blogs hoje? Para geeks http://log4dev.b

Re: what are you using python language for?

2006-06-06 Thread Carl J. Van Arsdall
hacker1017 wrote: > im just asking out of curiosity. > We use python for somewhat complex build system which builds several versions of embedded Linux for multiple architectures (30+). Two particularly interested aspects of this build system involve simple cluster management utilities (utili

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? > > Any suggestions on what that something else is? Is it hard to convert > the code from DOM to SAX? If your XML f

Re: Expanding Search to Subfolders

2006-06-06 Thread Lou Losee
On 6/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Lou Losee wrote: > > > How about something like: > > > import os, stat > > > > class DirectoryWalker: > > # a forward iterator that traverses a directory tree, and > > # returns the filename > > ... > > > not tested > > speak for yourse

Re: what are you using python language for?

2006-06-06 Thread Grant Edwards
On 2006-06-06, Tim Chase <[EMAIL PROTECTED]> wrote: >> 4) Miscellaneous other stuff like grabbing all of the comic >> strips I like every day and putting them on a local web >> page so I can read them all in one place > > I wonder how many other folks have done this too. It was my > firs

Pydev 1.1.0 Released

2006-06-06 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.1.0 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: --

Re: what are you using python language for?

2006-06-06 Thread bruno at modulix
hacker1017 wrote: > im just asking out of curiosity. > Err... Programming ?-) Sorry... Actually, mostly web applications (CMS, groupware, small/medium business apps etc), and admin utilities. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in

Using Komodo 3.5 - Setting breakpoints in multiple *.py files

2006-06-06 Thread jeem
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.. Breakpoints in the main file are working OK, but any breakpoints in imported files are not... The thre

Need pixie dust for building Python 2.4 curses module on Solaris 8

2006-06-06 Thread skip
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for Python 2.4. Sun provides an apparently ancient version of curses in /usr/lib, so I downloaded and installed ncurses 5.5, both using default settings a

Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Ransom
Very newb here, but my question will hopefully be obvious to someone. Code: import string from win32com.client import Dispatch docdir = 'E:\\scripts\\Python\\RSAutomation\\' def getOldData(testcases): excel = Dispatch("Excel.Application") excel.Workbooks.Open(docdir + 'FILE.xls') #

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Nick Smallbone
I'm afraid I don't have a Windows machine to test on, but.. Ransom wrote: > I get an error like: > [ 0x15450880>] > This isn't an error. This is a list with one element, where the element apparently represents a range of Excel cells. So by using that element you can do things like changing the fo

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Steve Holden
Ransom wrote: > Very newb here, but my question will hopefully be obvious to someone. > > Code: > > import string > from win32com.client import Dispatch > docdir = 'E:\\scripts\\Python\\RSAutomation\\' > > def getOldData(testcases): > > excel = Dispatch("Excel.Application") > excel.Work

Re: what are you using python language for?

2006-06-06 Thread Timothy Grant
On 6/4/06, hacker1017 <[EMAIL PROTECTED]> wrote: > im just asking out of curiosity. My current gig is perl only, but I still use python for personal stuff 1) +Twisted for a couple of IRC Bots 2) an interface between TextMate and py.test 3) a soccer management game (wxPython + PyGame) -- Stand

newbie: python application on a web page

2006-06-06 Thread puzz
Hi all, I am so new to everything, I don't even know where to post my question... do bear... I made this Python calculator that will take an equation as an input and will display the computed curves on a shiny Tkinter interface Now, I'd like to make this application available on a public web pag

Re: newbie: python application on a web page

2006-06-06 Thread Fredrik Lundh
puzz wrote: > I made this Python calculator that will take an equation as an input > and will display the computed curves on a shiny Tkinter interface well, it doesn't sound like you're quite as newbie-ish as many other newbies ;-) > Now, I'd like to make this application available on a public

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Felipe Almeida Lessa
Em Ter, 2006-06-06 às 13:56 +, Paul McGuire escreveu: > (just can't open it up like a text file) Who'll open a 10 GiB file anyway? -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

Re: capture video from camera

2006-06-06 Thread Sébastien Boisgérault
aljosa wrote: > i searched on google and found http://videocapture.sourceforge.net/ > before i posted here. yup. > videocapture has no docs With the API docs in the ".zip" and the examples provided, you should be able to handle it.I did :) > and doesn't provide additional options like > motion

Re: what are you using python language for?

2006-06-06 Thread Chris Cioffi
I tend to do a significant amount of EDI related work:-statistical analysis-X12->HTML formattingI've do a ton of customer DB reporting.  I find it easier to use Python that Crystal reports for a lot of the stuff I do so I extract data and spit out CSV files for Excel to make it look pretty. And I'm

Re: what are you using python language for?

2006-06-06 Thread [EMAIL PROTECTED]
hacker1017 wrote: > im just asking out of curiosity. Math research on the Collatz Conjecture. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Fredrik Lundh
Ransom wrote: > Very newb here, but my question will hopefully be obvious to someone. > OK, so what is happening is that I am sending a list of data to an > overly complicated spreadsheet that produces it's own output (in cell > 32,6). As I loop through multiple test cases, the print statement >

Re: newbie: python application on a web page

2006-06-06 Thread Daniel Nogradi
> > I made this Python calculator that will take an equation as an input > > and will display the computed curves on a shiny Tkinter interface > > well, it doesn't sound like you're quite as newbie-ish as many other > newbies ;-) > > > Now, I'd like to make this application available on a public we

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread K.S.Sreeram
Diez B. Roggisch wrote: > What the OP needs is a different approach to XML-documents that won't > parse the whole file into one giant tree - but I'm pretty sure that > (c)ElementTree will do the job as well as expat. And I don't recall the > OP musing about performances woes, btw. There's just NO

problem using logging module in python

2006-06-06 Thread Manish Marathe
Python Experts every where!! I am having a problem using the logging utility in Python using the logging module from the std. lib. I have written a class SPFLogger which actually should be creating a new logger if one already does not exist. I have given the class I wrote in the end. The problem I

Re: capture video from camera

2006-06-06 Thread [EMAIL PROTECTED]
aljosa wrote: >and doesn't provide additional options like > motion detection nor any info on possibility of motion detection or > howto implement An example for motion detection and even pythonic eye toys :) http://gumuz.looze.net/wordpress/index.php/archives/2005/06/06/python-webcam-fun-motion

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Fredrik Lundh
K.S.Sreeram wrote: > There's just NO WAY that the 10gb xml file can be loaded into memory as > a tree on any normal machine, irrespective of whether we use C or > Python. So the *only* way is to perform some kind of 'stream' processing > on the file. Perhaps using a SAX like API. So (c)ElementTree

RSS feeds

2006-06-06 Thread david brochu jr
Not sure where to post this one so here it goes...sorry to anyone if it shouldnt be here.   I am looking to take RSS feeds a process them with a python program..any idea where I can get RSS feeds for sports stats, and how I would use the script to connect automatically to the feed? -- http://mail.

Re: RSS feeds

2006-06-06 Thread Fredrik Lundh
david brochu jr wrote: > I am looking to take RSS feeds a process them with a python program..any > idea where I can get RSS feeds for sports stats, and how I would use the > script to connect automatically to the feed? for the python-related part of your question, start here: http://www.

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Paul McGuire
"Ransom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Very newb here, but my question will hopefully be obvious to someone. > But when I try and put the output from the spreadsheet into > a dynamic list after the TODO section thusly: > > outputlist = [] > outputlis

  1   2   >