php vs python (operator comparison)-repost

2006-06-21 Thread brandon.mcginty
Im sorry if this was already posted to the list; Ive been having major e-mail problems lately. Hi All, Ive already done a large amount of searching on Google to find out this information, but to no avale. Does anyone here know of a list of operators in python and there

operator comparison for php vs python

2006-06-19 Thread brandon.mcginty
Hi All, Ive already done a large amount of searching on Google to find out this information, but to no avale. Does anyone here know of a list of operators in python and there counterparts in php, or a website with this information? It would also be helpful to have this information along

Decode html, or is it unicode, how?

2006-04-16 Thread brandon.mcginty
Hi All, I've done a bunch of searching in google and in python's help, but, I haven't found any function to decode a string like: Refresh#33; (ihenvyr) In to plain english. I'd also looked for the urldecode function in urllib, but that had been deprecated. If anyone here can give me a hand, I'd

News-retrieval client-news.google

2006-04-14 Thread brandon.mcginty
Hi All, I'm trying to write a news retrieval client in python. I'm going to get the news from google's news service. However, when I run the following code, google gives me a 403 error. Is it google, or urllib2? Or is it the code? I can parse the 'contents' variable, I just need to know what is

RE: ping

2006-04-14 Thread brandon.mcginty
Title: Message Try this: code import os pinginfo=os.popen("ping www.google.com") #opens file object with output of the ping to google print pinginfo.read(-1) #reads the ping information from the abuv file object pinginfo.close() #closes the pinginfo object, as you would do for a standard

RE: Python and microsoft outlook-using com, can I interact with msoutlook?

2006-04-05 Thread brandon.mcginty
Thanks to the 2 people who've replied; it's been a little harder than I thought to use outlook, but I'll get the hang of it, and I sincerely thank you both. THX, Brandon McGinty -- Feel free to contact me for technical support, or just to chat; I always have time to talk and help, and

Python and microsoft outlook-using com, can I interact with msoutlook?

2006-04-03 Thread brandon.mcginty
Hi All, I know that Microsoft Exchange has a com interface, CDO, but I can't seem to find one for Microsoft outlook. does anyone have code snippets for using msoutlook and python, or suggestions? I have looked on Google, and tried some code, but nothing has worked. I'm using outlook XP, and any

Python-implimenting-valueweb

2006-04-01 Thread brandon.mcginty
Hi All, I hope this post is acceptable on this list. I'm wondering if anyone here has experience using python on a web server? Specifically, has anyone used python on value web's servers? If anyone has any info, general or specific, please let me know. All help is appreciated. Sincerely, Brandon

Keeping a function from taking to long--threads?

2006-03-19 Thread brandon.mcginty
Hi All, Just wondering if anyone knows of a way to keep a function, E.g. socket.gethostbyaddr(12.34.56.78), From taking to long-if it's run for more than 1 second, the function gethostbyaddr will be terminated? I was thinking about using threads, but I can't seem to get the hang of them. I've

RE: Keeping a function from taking to long--threads?

2006-03-19 Thread brandon.mcginty
Thanks, however, I forgot to mention that I'm using windows, and from what I've tried, the setdefaulttimeout function doesn't work on my machine. Again, thanks for your help! Brandon McGinty -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] rg] On Behalf Of Rene

Dictionary project

2006-03-11 Thread brandon.mcginty
Hi All, First, I hope this post isn't against list rules; if so, I'll take note in the future. I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words, starting with 1 character in length, up to 15 or so. It would look like: A B C d E F G ...

webmail-SquirrelMail Fetcher In Python

2006-02-24 Thread brandon.mcginty
Hi all, I've been looking on the net for a program to gather e-mails from the squirrelmail interface, and haven't found any. My office only allows me to get e-mail access via webmail, at least when I'm outside of the corperate network. I'm wondering if anyone's found something like the

Calling a string as a function.

2006-02-02 Thread brandon.mcginty
I'm completely new to python, so sorry for my ignorence. How does one go about converting a string, for instants one received through tcp, into something that can be called as a function? I'm trying to have what the user sends to the computer through the network, run as a function. If the user