Basically,
I want to check if a URL is playable or not (without actually playing
it).
i.e. given a URL I want to write an automation script to figure it out
for me
if it's playable or not. If you give a bad/invalid URL for windows
media
player to play a pop-up window shows us that it cannot be play
Hi all,
I have got this far till now -
import win32gui, struct, array, string
OFN_ALLOWMULTISELECT=0x0200
OFN_EXPLORER=0x0008
def arrayToStrings(resultArray):
"""return list-of-strings corresponding to a char array,
where each string is terminated by \000, and the whole
Hi all,
I have to select a particular file (using the 'Browse') button in
Windows. After this I need to populate the 'Open Dialogue Box' with the
path of the file I need (I have the entier path of the file I need).
Then I need to select the 'Open' Button.
Only after this the file I want is attache
Hi, I need to get to a particular page in a website. The site uses
cookeis and naturally I had to use cookielib since urllib2 does not
support cookies. But even after adding the cookies to the headers, I
keep getting a error message from the web-site saying that - 'My
Browser has disabled cookies a
Hi all, I have written a Link list implementation in Python (Although
it's not needed with Lists and Dictionaries present. I tried it just
for the kicks !). Anyway here is the code -
# Creating a class comprising of node in Link List.
class linklist:
def __init__(self, data=None,link=None):
Thanx Mike, My problem solved !! I loaded the entire file contnets into
list and my job was a piece of cake after that.
Srikar
--
http://mail.python.org/mailman/listinfo/python-list
Hi there, I'm just curious to know as to how the changes you have
suggested will solve the problem. Instead of appending (what I was
doing), now we are opening and storing the files in 'binary' format.
All the other entries in my file will be gone when I write into the
file again.
What I actuall n
Hi all, I'm storing number of dictionary values into a file using the
'cPickle' module and then am retrieving it. The following is the code
for it -
# Code for storing the values in the file
import cPickle
book = {raw_input("Name: "): [int(raw_input("Phone: ")),
raw_input("Address: ")] }
file_ob
Hi all,This is in reply to the 'Compressing folders in Windows using
Python' query I raised y'day.
I figured out that windows does not allow command line zipping so I
started looking for alternatives.
I found some modules in Perl which does zipping. I guess it goes by the
name 'gzip'. I plan to w
Hi,
I'm trying to zip a particular fiolder and place the zipped folder into
a target folder using python. I have used the following command in
'ubuntu'.
zip_command = 'zip -qr %s %s' % (target, ' '.join(source))
I execute this using os.command(zip_command). It works fine...
But when I run th
10 matches
Mail list logo