Re: ImportError: No module named sax.handler?

2007-11-29 Thread Kelie
On Nov 29, 8:20 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Because you have another module called xml in your path that is found > first and has no sax package in it. Thank you Martin. Actually it was the .py file itself. I named it xml.py. -- http://mail.python.org/mailman/listinfo/pyth

Re: Dynamically adding a runtime generated method to a class.

2007-11-29 Thread Martin v. Löwis
> This would work and not be too terribly inefficient but I was thinking > it would be much better generate the getLine method at runtime and > dynamically add it to the class so I wouldn't have to pass the columns > around and loop through them every time; I would advise against that. Generating

Re: Oh no, my code is being published ... help!

2007-11-29 Thread Vidyadhar74
Please check your hard disk partition is NTFS or FAT32 if it is FAT32 then Convert the partition to NTFS and unzip the 7zipped file on NTFS partition. rm wrote: > There is a Linux forum that I frequent from time to time on which I > mentioned a couple of scripts that I wrote. The editors of a s

Re: Using marshal to manually "import" a python module

2007-11-29 Thread Martin v. Löwis
> The strange thing is, it worked fine locally on my two machines (32bit > running python 2.3.5 and 64bit running python 2.4.1), but when run by a > 64bit machine on the network, it would fail every time in the following > manner: It may not that much be an issue of 32-bit vs. 64-bit, but of Pytho

Re: ImportError: No module named sax.handler?

2007-11-29 Thread Martin v. Löwis
> I'm lost here. When I put this line > > from xml.sax.handler import ContentHandler > > in a .py file and run it, I get the ImportError. When I execute it in > shell, there is no error. > > Why? Because you have another module called xml in your path that is found first and has no sax package

Re: Oh no, my code is being published ... help!

2007-11-29 Thread Tim Roberts
rm <[EMAIL PROTECTED]> wrote: > >The thing is I am starting to get a little nervous about it. You see, >programming is not my full time job. I dabble in it from time to >time, mostly to scratch my own itches, as they say. But, I know that >my code is probably far from being of professional quali

Re: python vs pythonw

2007-11-29 Thread Martin v. Löwis
> New to mac. I have leopard. What's the difference between python and > pythonw? So far (which isn't very far) I can't tell the difference. IIUC, pythonw is linked with the WindowManager library, so it can do GUI operations; python can't. > I have a small application using TKinter that I was

Re: reading raw variables from file

2007-11-29 Thread Astan Chee
Paddy wrote: On Nov 30, 4:57 am, Astan Chee <[EMAIL PROTECTED]> wrote: Hi, I have a file that might contain literal python variable statements at every line. For example the file info.dat looks like this: users = ["Bob", "Jane"] status = {1:"ok",2:users[0]} the problem is I want to read this

Re: reading raw variables from file

2007-11-29 Thread Paddy
On Nov 30, 4:57 am, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a file that might contain literal python variable statements at > every line. For example the file info.dat looks like this: > users = ["Bob", "Jane"] > status = {1:"ok",2:users[0]} > the problem is I want to read this file an

reading raw variables from file

2007-11-29 Thread Astan Chee
Hi, I have a file that might contain literal python variable statements at every line. For example the file info.dat looks like this: users = ["Bob", "Jane"] status = {1:"ok",2:users[0]} the problem is I want to read this file and load whatever variables written in it as normal python variable st

ImportError: No module named sax.handler?

2007-11-29 Thread Kelie
Hello, I'm lost here. When I put this line from xml.sax.handler import ContentHandler in a .py file and run it, I get the ImportError. When I execute it in shell, there is no error. Why? Thanks for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile Cheetah Template on Windows

2007-11-29 Thread Tim Roberts
brianrpsgt1 <[EMAIL PROTECTED]> wrote: >Tim, thank you very much for the reply. The 'cheetah' function is now >working! > >I am still having a problem creating the file. I continually get >errors. I am sure that it is something very simple. > >Below is the code, please guide me in the right dir

Re: Lib for audio?

2007-11-29 Thread Basilisk96
On Nov 29, 7:04 am, Dave <[EMAIL PROTECTED]> wrote: > I need to read microphone input and determine frequency. Is there a lib > for that? > > Thanks, > Dave How about PyMedia? It has input reading capability from any sound device that your system supports, as well as frequency analysis based on re

Re: Not forking?

2007-11-29 Thread Gilles Ganault
On Sat, 24 Nov 2007 14:33:34 +1300, greg <[EMAIL PROTECTED]> wrote: >What makes you think it's not forking? Chances are >it *is* forking, but something is going wrong later. You were right. There were scrambled characters in the script (copy/pasting from Windows), which kept the script from workin

Re: How to suggest a new Python list? Was: Science list

2007-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, J. Robertson <[EMAIL PROTECTED]> wrote: > >Anyway, I do not see how to suggest a new mailing list on >http://www.python.org/community/lists/ - does anyone know? Send e-mail to [EMAIL PROTECTED] specifying the name of the list. -- Aahz ([EMAIL PROTECTED])

Re: Need some help with 'with'

2007-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Kent <[EMAIL PROTECTED]> wrote: > >I figure that if instead of returning the buffer from the context >directly, I instead returned the buffer in a list, I could then change >the buffer, put it in the returned list, then I'd have access to it >back inside the co

Crackly sound in pygame

2007-11-29 Thread [EMAIL PROTECTED]
Hey guys I am running Windows XP and am having an issue with a game that my team has created. Whenever an audio file is played it creates a very distorted, crackly sound. Any ideas what could be the issue? Thanks -- http://mail.python.org/mailman/listinfo/python-list

python vs pythonw

2007-11-29 Thread John Velman
New to mac. I have leopard. What's the difference between python and pythonw? So far (which isn't very far) I can't tell the difference. I have a small application using TKinter that I was working on under Linux. Both python and pythonw run it, but on both it "stops responding" (pinwheel of

Re: Yet Another Tabular Data Question

2007-11-29 Thread carllemp
On Nov 29, 5:46 pm, [EMAIL PROTECTED] wrote: > Hi all, > > Fairly new Python guy here. I am having a lot of trouble trying to > figure this out. I have some data on some regulations in Excel and I > need to basically add up the total regulations for each country--a > statistical analysis thing th

Re: Embedding Python - Passing by Reference

2007-11-29 Thread andy
Thanks for the replies - I see that I completely misunderstood "passing by reference" when discussing Python. It looks like wrapping the object up in a list will be the path I go down as it remains closer to the C API I am wrapping. Thanks again! Andy -- http://mail.python.org/mailman/listinfo/p

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Adonis Vargas
Roger Miller wrote: > On Nov 28, 10:51 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I wonder whether there might be a way to find out how a Python >> program was started (in my case in Windows): By double clicking the >> file or by calling it on the "DOS" command line prompt. >> >> Bac

Re: Interfaces to high-volume discussion forums (was: Science list)

2007-11-29 Thread Grant Edwards
On 2007-11-30, Ben Finney <[EMAIL PROTECTED]> wrote: > Most of the high-volume discussion lists I participate in are made > available as NNTP forums via news.gmane.org. I find that immeasurably > superior to any email interface, not least because I can use *any* > NNTP client to manage my interact

Re: PIL + show() + Vista

2007-11-29 Thread Cousin Stanley
> This code: > import Image > img = Image.open(r"D:\ParisNude.jpg") > img.show() > > Don't run on my Vista computer. > > I have a solution: import Image,os img = Image.open(r"D:\FLundhNoNude.jpg") os.startfile(img.filename) > Michel As an alternative you migh

Re: Tkinter, wxPython, PyGtk, or PyQt...

2007-11-29 Thread Benjamin
On Nov 29, 11:53 am, gsal <[EMAIL PROTECTED]> wrote: > is PyQt related to Qt? I presume so. I sure that if it wasn't, Trolltech would be on their back... > > is Qt needed for PyQt? > > is PyQt usable in all platforms Python is available and is it GPLed, > too? > > I read TrollTech webpage on QT and

Re: Bundling Python on Mac

2007-11-29 Thread Benjamin
On Nov 29, 2:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Benjamin schrieb: > > > Hello, I'm writing a Python/PyQt application. For my Mac distribution. > > I would like to include all the needed libraries in the Mac bundle. > > How should I go about doing this? > > The py2app distutils e

Interfaces to high-volume discussion forums (was: Science list)

2007-11-29 Thread Ben Finney
"Dotan Cohen" <[EMAIL PROTECTED]> writes: > On 29/11/2007, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > Regardless of what Google/Yahoo/M$/AOL want you to think, > > using a web-based mail client is typically the worst way to follow > > mailing lists and/or news-groups; much better to

Re: Lib for audio?

2007-11-29 Thread Anthony Baxter
On Nov 29, 2007 11:04 PM, Dave <[EMAIL PROTECTED]> wrote: > I need to read microphone input and determine frequency. Is there a lib > for that? There's a bunch of code in shtoom for both reading from the mike on different platforms, and doing a bit of frequency analysis (for inline DTMF detection

Re: Embedding Python - Passing by Reference

2007-11-29 Thread Neil Cerutti
On 2007-11-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I understand the parameters to Python functions are passed by > reference: > > def foo(a): > a = a + 1 > > Will change the value of a in the calling function. How do I > implement the equivalent in C when extending Python? You've got

Re: Embedding Python - Passing by Reference

2007-11-29 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I understand the parameters to Python functions are passed by reference: Nope. Python's name-object model is so far different from the named memory block model of Fortran/C/etc that terms invented for the latter are misleading when

Re: Science list

2007-11-29 Thread Dotan Cohen
On 29/11/2007, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 29 Nov 2007 08:07:46 -0800 (PST), Francesco Pietra > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > Do you know if "free" yahoo.com allows threaded view for python only? I was > > Ah, now the "real

PIL + show() + Vista

2007-11-29 Thread M�ta-MCI (MVP)
Hi! This code: import Image img = Image.open(r"D:\ParisNude.jpg") img.show() Don't run on my Vista computer. I have a solution: import Image,os img = Image.open(r"D:\FLundhNoNude.jpg") os.startfile(img.filename) It's only in my case? It's censure? ;-) PIL does not

Re: Monkey patching new style classes

2007-11-29 Thread Terry Reedy
"David Coffin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Is it possible to add an attribute to a new style class where the name of | that attribute is determined at runtime? >>> class C(object): pass >>> setattr(C,'a',1) >>> C.a 1 And hasattr, getattr work also. -- htt

Re: Variables and their domain

2007-11-29 Thread Terry Reedy
"Jose Ignacio Gisbert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I have one doubt, in my applciation I have a method (Method1) which has | other method (Method2) inside of it. You have a function inside a function. In Python, methods are functions bound to classes. |

Re: Science list

2007-11-29 Thread Terry Reedy
As I said in response to the original post, there are 200 specialized Python mailing lists accessible for free as newsgroups via news.gmane.org. I think a few are science oriented. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python - Passing by Reference

2007-11-29 Thread Jean-Paul Calderone
On Thu, 29 Nov 2007 14:39:52 -0800 (PST), [EMAIL PROTECTED] wrote: >I understand the parameters to Python functions are passed by >reference: > >def foo(a): > a = a + 1 > >Will change the value of a in the calling function. How do I implement >the equivalent in C when extending Python? You misund

Yet Another Tabular Data Question

2007-11-29 Thread patrick . waldo
Hi all, Fairly new Python guy here. I am having a lot of trouble trying to figure this out. I have some data on some regulations in Excel and I need to basically add up the total regulations for each country--a statistical analysis thing that I'll copy to another Excel file. Writing with pyExcel

Dynamically adding a runtime generated method to a class.

2007-11-29 Thread Joe Goldthwaite
I'm not sure how to even ask this question. I'm working on a financial reporting application. The current system is very limited in what it can display. You can see reports with columns of Period, Quarter, Year to date or you can see a yearly trend. I'd like for the users to be able to define t

Re: A context manager for temporary memoization.

2007-11-29 Thread Carl Banks
On Nov 29, 3:20 pm, "Michael Speer" <[EMAIL PROTECTED]> wrote: > I posted this to my blog > athttp://michaelspeer.blogspot.com/2007/11/context-manager-for-temporar > > I decided to forward it onto the list for comments. I thought someone > might find it interesting. > > *** > > This is very m

Embedding Python - Passing by Reference

2007-11-29 Thread andy
I understand the parameters to Python functions are passed by reference: def foo(a): a = a + 1 Will change the value of a in the calling function. How do I implement the equivalent in C when extending Python? I know how to write a function that can be called from Python and I know how to use P

Re: Accessing a URL file Remotely

2007-11-29 Thread TheSeeker
On Nov 29, 3:13 pm, mcl <[EMAIL PROTECTED]> wrote: > I have been given a url of CSV file (http://hostname/dir/file.csv), > which when I put the full URL in a web browser shows the contents of > the file. > > I want to be able to use the CSV module to read that file, which I > have successfully used

Using marshal to manually "import" a python module

2007-11-29 Thread David Hirschfield
I had a situation recently that required I manually load python bytecode from a .pyc file on disk. So, for the most part, I took code from imputil.py which loads the .pyc data via the marshal module and then exec's it into a newly created module object (created by imp.new_module()). The relevan

Re: os.path.islink documentation error?

2007-11-29 Thread Giampaolo Rodola'
:) You're right... My skimpy English cheated me. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Split a String

2007-11-29 Thread imho
Grant Edwards ha scritto: >> One solution: >> > s = '(a, b, "c", d, "e")' > print [x.strip('" ') for x in s.strip('()').split(',')] >> ['a', 'b', 'c', 'd', 'e'] > > That fails when a quoted string contains commas: > s = '(a, b, "c", d, "e,f,g")' print [x.strip('" ') for x in s.

Re: Is os.lstat available on all platforms?

2007-11-29 Thread Giampaolo Rodola'
I'd just want to be sure that even on a strange python implementation I won't ever get an AttributeError exception because os.lstat is not defined. -- http://mail.python.org/mailman/listinfo/python-list

Re: Job posting on the site is broken

2007-11-29 Thread Ben Finney
sjol <[EMAIL PROTECTED]> writes: > To the webmaster of python.org, > > I have tried to have a job posted on the job board but! Alas, it > doesn't work and I cannot get a response from the webmaster. > > Shall I post here ? No. But, since you say webmaster is not responding, asking here (as you

Re: Is os.lstat available on all platforms?

2007-11-29 Thread Christian Heimes
Giampaolo Rodola' wrote: > As far as I know where symlinks are not supported os.lstat should be > an alias for os.stat but I'm not 100% sure. You are right, it should be an alias. os.lstat is available on Windows, too. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: setters and getters in python 2.6 and 3.0

2007-11-29 Thread Daniel Fetchinson
> > Hi list, I've been following a discussion on a new way of defining > > getters and setters on python-dev and just can't understand what the > > purpose is. Everybody agreed on the dev list that this is a good idea > > so I guess it must be right :) > > > > The whole thing started with this post

Using Windows Apache2triad with python. Need feedback form

2007-11-29 Thread kam
I need to process post data from a web feedback form and create an email which will be sent to me. (Something like cgiemail but with python code) Does anyone have suggestions/samples? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Split a String

2007-11-29 Thread Siah
Thanks Mr. Edwards, I went ahead and started using the csv reader. Sia -- http://mail.python.org/mailman/listinfo/python-list

Is os.lstat available on all platforms?

2007-11-29 Thread Giampaolo Rodola'
Hi there. In a code of mine I'd like to use os.lstat whenever possible. My only concern is if it's available on all platforms. It could be safe using always os.lstat instead of: try: os.lstat except AttributeError: os.stat ...? As far as I know where symlinks are not supported os.lstat sh

Accessing a URL file Remotely

2007-11-29 Thread mcl
I have been given a url of CSV file (http://hostname/dir/file.csv), which when I put the full URL in a web browser shows the contents of the file. I want to be able to use the CSV module to read that file, which I have successfully used with a local CSV file. Any examples anywhere would be apprec

Re: How to Split a String

2007-11-29 Thread Grant Edwards
On 2007-11-29, Grant Edwards <[EMAIL PROTECTED]> wrote: >> One solution: >> >> >>> s = '(a, b, "c", d, "e")' >> >>> print [x.strip('" ') for x in s.strip('()').split(',')] >> ['a', 'b', 'c', 'd', 'e'] > > That fails when a quoted string contains commas: > s = '(a, b, "c", d, "e,f,g")' pr

Re: How to Split a String

2007-11-29 Thread Grant Edwards
On 2007-11-29, imho <[EMAIL PROTECTED]> wrote: > Siah ha scritto: >> Hi, >> >> I need to convert the string: '(a, b, "c", d, "e")' into the following >> list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually >> use the split function, but this mini-monster wouldn't properly get >>

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Benjamin Hell
Roger Miller wrote: >> I wonder whether there might be a way to find out how a Python >> program was started (in my case in Windows): By double clicking >> the file or by calling it on the "DOS" command line prompt. > > I'm not sure whether this applies to your situation, but often > programs st

Re: Outbound HTML Authentication

2007-11-29 Thread Shane Geiger
twill is a simple language for browsing the Web. It's designed for automated testing of Web sites, but it can be used to interact with Web sites in a variety of ways. In particular, twill supports form submission, cookies, redirects, and HTTP authentication. Mudcat wrote: > Hi, > > I was tryin

Re: Outbound HTML Authentication

2007-11-29 Thread Chris Mellon
On Nov 29, 2007 2:22 PM, Mudcat <[EMAIL PROTECTED]> wrote: > Hi, > > I was trying to do a simple web scraping tool, but the network they > use at work does some type of internal authentication before it lets > the request out of the network. As a result I'm getting the '401 - > Authentication Error

Re: Outbound HTML Authentication

2007-11-29 Thread Tyler Reguly
Hello, You should probably read the HTTP RFC is you're going to write a screen scraper... but either way. 401 tells you that Auth is required there are several types of "server-based auth" (Different from form based auth)... They include - Basic - Digest - NTLM (or Negotiate) Basic

Re: How to Split a String

2007-11-29 Thread Siah
The basic split/strip method wouldn't split '(a, b, "c,...", d)', which is why I chose not to use it. The csv solution seems to work well, that helped me much here (thank you), but I am looking to see if I can get it solved with some regular expression. This is how far I've come so far, but it nee

Re: Control mouse position and clicking

2007-11-29 Thread Bjoern Schliessmann
Robert Kern wrote: > There is an API for it. Not all programs have GUIs so the HIG > doesn't restrict the scope of the OS's APIs. Ah, okay. In (IIRC) wxPython docs, I read differently. Regards, Björn -- BOFH excuse #40: not enough memory, go get system upgrade -- http://mail.python.org/m

Re: Control mouse position and clicking

2007-11-29 Thread Bjoern Schliessmann
Glich wrote: > I am running ubuntu. :) I neither asserted differently nor am I competent in clairvoyance. Regards, Björn -- BOFH excuse #93: Feature not yet implemented -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Split a String

2007-11-29 Thread imho
Siah ha scritto: > Hi, > > I need to convert the string: '(a, b, "c", d, "e")' into the following > list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually > use the split function, but this mini-monster wouldn't properly get > split up due to those random quotations postgresql retu

Re: How to Split a String

2007-11-29 Thread Tim Chase
> I need to convert the string: '(a, b, "c", d, "e")' into the > following list ['a', 'b', 'c', 'd', 'e']. Much like a csv > reader does. I usually use the split function, but this > mini-monster wouldn't properly get split up due to those > random quotations postgresql returns to me. Uh...use the

Re: How to Split a String

2007-11-29 Thread Grant Edwards
On 2007-11-29, Siah <[EMAIL PROTECTED]> wrote: > I need to convert the string: '(a, b, "c", d, "e")' into the following > list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. http://docs.python.org/lib/module-csv.html -- Grant Edwards grante Yow! ... the HI

Re: How to Split a String

2007-11-29 Thread Bjoern Schliessmann
Siah wrote: > I need to convert the string: '(a, b, "c", d, "e")' into the > following list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader > does. I usually use the split function, but this mini-monster > wouldn't properly get split up due to those random quotations > postgresql returns to me.

Outbound HTML Authentication

2007-11-29 Thread Mudcat
Hi, I was trying to do a simple web scraping tool, but the network they use at work does some type of internal authentication before it lets the request out of the network. As a result I'm getting the '401 - Authentication Error' from the application. I know when I use a web browser or other appl

Job posting on the site is broken

2007-11-29 Thread sjol
To the webmaster of python.org, I have tried to have a job posted on the job board but! Alas, it doesn't work and I cannot get a response from the webmaster. Shall I post here ? Stephane -- http://mail.python.org/mailman/listinfo/python-list

A context manager for temporary memoization.

2007-11-29 Thread Michael Speer
I posted this to my blog at http://michaelspeer.blogspot.com/2007/11/context-manager-for-temporary.html. I decided to forward it onto the list for comments. I thought someone might find it interesting. *** This is very much a fragile hack at the moment. It's an interesting idea I think. I was d

How to Split a String

2007-11-29 Thread Siah
Hi, I need to convert the string: '(a, b, "c", d, "e")' into the following list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually use the split function, but this mini-monster wouldn't properly get split up due to those random quotations postgresql returns to me. Please help me wi

Oh no, my code is being published ... help!

2007-11-29 Thread rm
There is a Linux forum that I frequent from time to time on which I mentioned a couple of scripts that I wrote. The editors of a small Linux magazine heard and found them interesting enough to ask me to write an article about them. I accepted gladly, of course. I wrote the article and submitted

Re: setters and getters in python 2.6 and 3.0

2007-11-29 Thread Diez B. Roggisch
Daniel Fetchinson schrieb: > Hi list, I've been following a discussion on a new way of defining > getters and setters on python-dev and just can't understand what the > purpose is. Everybody agreed on the dev list that this is a good idea > so I guess it must be right :) > > The whole thing starte

Detecting mod_rewrite via CGI

2007-11-29 Thread Samuel
Hi, I am using an Apache webserver with mod_rewrite and the cgi module. Is there a way to do the following that isn't completely evil? def mod_rewrite_enabled(): try: file = open(os.path.join(os.environ['DOCUMENT_ROOT'], '.htaccess')) except: return False for

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Roger Miller
On Nov 28, 10:51 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: > Hi! > > I wonder whether there might be a way to find out how a Python > program was started (in my case in Windows): By double clicking the > file or by calling it on the "DOS" command line prompt. > > Background: I would like to have

setters and getters in python 2.6 and 3.0

2007-11-29 Thread Daniel Fetchinson
Hi list, I've been following a discussion on a new way of defining getters and setters on python-dev and just can't understand what the purpose is. Everybody agreed on the dev list that this is a good idea so I guess it must be right :) The whole thing started with this post of Guido: http://mail

Re: only test

2007-11-29 Thread Goldencat
On Thu, 29 Nov 2007 18:56:31 +, Rui Li wrote: > this is a test test on reply -- http://mail.python.org/mailman/listinfo/python-list

only test

2007-11-29 Thread Rui Li
this is a test -- http://mail.python.org/mailman/listinfo/python-list

Re: Control mouse position and clicking

2007-11-29 Thread Robert Kern
Glich wrote: > hi, how can I, control mouse position and clicking from python? > > I want to interact with a flash application inside firefox. thanks. > > ps: I am not using windows. I've use the external program xte with some success if you don't send it too many events too quickly. I start it

Re: Control mouse position and clicking

2007-11-29 Thread Robert Kern
Bjoern Schliessmann wrote: > Tony wrote: > > [place mouse programmatically] >> well, you can do it from Java, > > Are you absolutely positive? IIRC the Mac UI guidelines forbid such > things, and there's no API function for it; so Java wouldn't have > any chance. There is an API for it. Not all

Re: Any Pythonista knowing Estonian on this list?

2007-11-29 Thread André
Two nice Python fans (Pearu and Raul) have contacted me about this. Thanks! On Nov 28, 10:39 pm, "André" <[EMAIL PROTECTED]> wrote: > Some of the tasks that are part of Google's H.O.P. involved > translation (i18n) of some well-known ... and some lesser known > projects. I have received a transla

Re: Tkinter, wxPython, PyGtk, or PyQt...

2007-11-29 Thread Diez B. Roggisch
gsal schrieb: > is PyQt related to Qt? I presume so. > > is Qt needed for PyQt? Sure. > is PyQt usable in all platforms Python is available and is it GPLed, > too? Yes. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter, wxPython, PyGtk, or PyQt...

2007-11-29 Thread gsal
is PyQt related to Qt? I presume so. is Qt needed for PyQt? is PyQt usable in all platforms Python is available and is it GPLed, too? I read TrollTech webpage on QT and the Windows version is not free for in-house development in the private industry; licenses start around $6000 for the first yea

SMTPLIB & email.MIMEText : Certain charaters in the body stop mail from arriving. Why?

2007-11-29 Thread West, Harvey
Hello Sending mail with certain characters in the body causes mail never to arrive. Why? e.g if body text has a fullstop "." mail never arrives. I'm using python 4.2 on windows. Harvey # import smtplib

Re: Very basic, sorting a list ???

2007-11-29 Thread self.mrlimbo
On 29 nov, 04:11, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Stef Mientki <[EMAIL PROTECTED]> writes: > > although I find it rather non-intuitive. > > I didn't expect a copy, but a reference to itself wouldn't be asked > > too much ? > > If you didn't expect a copy, why rely on the return value? Y

Re: Python web frameworks

2007-11-29 Thread TYR
On Nov 29, 3:15 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > On Nov 22, 11:22 pm, SamFeltus <[EMAIL PROTECTED]> wrote: > > > """Perhaps we need a pythonic FRONTEND. """ > > > Should have happened years ago. > > It did. Mark Hammond embedded Python under MSIE about > the same time javascript and

Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor

2007-11-29 Thread NM
Hi, We have also many problems compiling Python on AIX 5.3 with same erros, could be kind enough to tell us ohw to solve the problem ou the right parameters to compil python. Many thanks in advance. Nicolas-- http://mail.python.org/mailman/listinfo/python-list

Re: looking for ocbc example

2007-11-29 Thread supercooper
On Nov 28, 2:43 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Carl K wrote: > > jay graves wrote: > >> On Sep 21, 2:43 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >>> Carl K wrote: > It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the > difference? > >>> In short, pyodb

Re: How to suggest a new Python list? Was: Science list

2007-11-29 Thread A.T.Hofkamp
On 2007-11-29, J. Robertson <[EMAIL PROTECTED]> wrote: > Francesco Pietra wrote: >> I was trying to suggest a more specific mail-list in order not to be >> floaded. I >> am the opinion that python-list@python.org is very informative and useful, >> though it is hard to find the time for so many ma

PIL image.filter -> boundaries

2007-11-29 Thread [EMAIL PROTECTED]
Hi, I'm filtering an image with a custom kernel. It works fine, except for the boundaries. image.filter() seems to add a 1px zero-border to the image to process the pixels at the boundaries of the image.I'd rather have it replicate the values of the boundary pixels. Is this an option and where can

Re: Control mouse position and clicking

2007-11-29 Thread Glich
I am running ubuntu. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Science list

2007-11-29 Thread Francesco Pietra
Do you know if "free" yahoo.com allows threaded view for python only? I was unable to set that. This also means that there are mailing lists I am interested to view all that is going on (which is two orders less that python), so that i can't sett threated viw for all mailing lists. f. --- nmp <[EM

Re: Books on Python

2007-11-29 Thread [EMAIL PROTECTED]
I've read "Begining Python" written by Hetland from Apress. I enjoyed it a lot. I also liked reading "Dive into Python" (also from Apress) for those who already know a language. A free edition is at diveintopython.org. -- http://mail.python.org/mailman/listinfo/python-list

How to suggest a new Python list? Was: Science list

2007-11-29 Thread J. Robertson
Francesco Pietra wrote: > I was trying to suggest a more specific mail-list in order not to be floaded. > I > am the opinion that python-list@python.org is very informative and useful, > though it is hard to find the time for so many mails. > f. > I agree with Francesco: Python is increasingly

Re: Python web frameworks

2007-11-29 Thread Aaron Watters
On Nov 22, 11:22 pm, SamFeltus <[EMAIL PROTECTED]> wrote: > """Perhaps we need a pythonic FRONTEND. """ > > Should have happened years ago. It did. Mark Hammond embedded Python under MSIE about the same time javascript and java applets came along (94, maybe?) It didn't fly because of political an

Re: Science list

2007-11-29 Thread Francesco Pietra
I was trying to suggest a more specific mail-list in order not to be floaded. I am the opinion that python-list@python.org is very informative and useful, though it is hard to find the time for so many mails. f. --- Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > Francesco Pietra wrote: > > Non

Re: Lib for audio?

2007-11-29 Thread Tim Chase
>> I need to read microphone input and determine frequency. Is there a lib >> for that? Yet one more possibility includes the OpenAL Python bindings: http://home.gna.org/oomadness/en/pyopenal/index.html -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: Control mouse position and clicking

2007-11-29 Thread Bjoern Schliessmann
Tony wrote: [place mouse programmatically] > well, you can do it from Java, Are you absolutely positive? IIRC the Mac UI guidelines forbid such things, and there's no API function for it; so Java wouldn't have any chance. Regards, Björn -- BOFH excuse #136: Daemons loose in system. -- htt

Re: Science list

2007-11-29 Thread Bjoern Schliessmann
Francesco Pietra wrote: > Nonetheless, this extremely useful list is so crowded that if > checking email is not carried out every few hours, it is difficult > to detect other messages in the plethora of pythons and spams > arrived. Why don't you use a newsreader to access comp.lang.python? It's s

Re: any Templating system help

2007-11-29 Thread Yoram Hekma
On Thu, Nov 29, 2007 at 06:48:10PM +0530, Ravi Kumar wrote: > Hi, > I am stuck a little. I am working on a demo site to propose for the my > company. Using mod_python and several python technologies. But the website > is simply using publisher handler, i dont want to use any framework such as > DJ

Re: Lib for audio?

2007-11-29 Thread Laurent Pointal
Dave a écrit : > I need to read microphone input and determine frequency. Is there a lib > for that? > > Thanks, > Dave Another possible solution, the PortAudio binding (pyportaudio). http://people.csail.mit.edu/hubert/pyaudio/ -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython and Tkinter

2007-11-29 Thread Chris Mellon
On Nov 29, 2007 7:54 AM, <[EMAIL PROTECTED]> wrote: > > On Nov 29, 7:14 am, imbunche <[EMAIL PROTECTED]> wrote: > > On Nov 29, 7:56 am, whatazor <[EMAIL PROTECTED]> wrote: > > > > > On 29 Nov, 11:50, whatazor <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > I migrate some code from tkinter t

Re: Lib for audio?

2007-11-29 Thread Shane Geiger
This should do the trick: http://www.libsdl.org/ Dave wrote: > I need to read microphone input and determine frequency. Is there a lib > for that? > > Thanks, > Dave > -- Shane Geiger IT Director National Council on Economic Education [EMAIL PROTECTED] | 402-438-8958 | http://www.ncee.n

  1   2   >