SMS sending and receiving from website?730 (5/30/2008 9:08:35 PM) comp.lang.python can i send and receive messages from a website using python? how would that work with costs? would the mobileowner pay both ways? ... globalrev
confused by HTMLParser class426 (5/28/2008 1:20:06 AM) comp.lang.python tried all kinds of combos to get this to work. http://docs.python.org/lib/module-HTMLParser.html from HTMLParser import HTMLParser class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs... globalrev
maximum recursion depth?723 (5/27/2008 11:26:28 PM) comp.lang.python i received an error maximum recursion depth when processing large amounts of data. i dont know exactly how many recursive calls i made but id assume 50000 or so. is there a definitie limit to the nbr of call... globalrev
save dictionary for later use?1014 (5/16/2008 7:17:50 PM) comp.lang.python i extract info from one file and put it into a dictionary. i want to save that dictionary for later use, how do i do that? might save a list of dictionaries or a list of classobjects too if there is any differe... globalrev
write to specific line in file?620 (5/16/2008 6:41:29 PM) comp.lang.python i ahve a program that takes certain textsnippets out of one file and inserts them into another. problem is it jsut overwrites the first riow every time. i want to insert every new piece of text into the next ... globalrev
free dictionary english - spanish?017 (5/16/2008 12:41:15 PM) comp.lang.python i want to write a translationprogram, i have the webapp done already. i need a big free dictionary though. english-spanish/spanish-english seems like the best i know some spanish and thats what also is needed... globalrev
class problem, NoneType obj has no attribute1326 (5/16/2008 11:36:08 AM) comp.lang.python wassup here? >>> 7 Traceback (most recent call last): File "C:\Python25\myPrograms\netflix\netflix.py", line 22, in print cust1.getID() AttributeError: 'NoneType' object has no attribute 'getID' >>> ... globalrev
file open/read/name etc, not working444 (5/15/2008 4:12:07 PM) comp.lang.python import os print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') d.readline() returns true in the shell but prints no text even though the docum... globalrev
exists=false, but no complaint when i open it!?1015 (5/15/2008 4:03:31 PM) comp.lang.python print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet \trainingsetunzipped\training_set\mv_0000001.txt') d=open('C:/Python25/myPrograms/mapexperiments/maps/provinces-of- sweden.gif') d.close() exists ... globalrev
division with rest?1142 (5/15/2008 1:05:43 PM) comp.lang.lisp if iw ant to check if an integer is odd or even there is a builtin yes but if i want to define one. in most languages i can do if x%2 == x/2 then ...else... how do i do this in lisp? ... globalrev
save dictionary for later use?1014 (5/16/2008 7:17:50 PM) comp.lang.python i extract info from one file and put it into a dictionary. i want to save that dictionary for later use, how do i do that? might save a list of dictionaries or a list of classobjects too if there is any differe... skanemupp(187)
class problem, NoneType obj has no attribute1326 (5/16/2008 11:36:08 AM) comp.lang.python wassup here? >>> 7 Traceback (most recent call last): File "C:\Python25\myPrograms\netflix\netflix.py", line 22, in print cust1.getID() AttributeError: 'NoneType' object has no attribute 'getID' >>> ... skanemupp(187)
file open/read/name etc, not working444 (5/15/2008 4:12:07 PM) comp.lang.python import os print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') d.readline() returns true in the shell but prints no text even though the docum... skanemupp(187)
exists=false, but no complaint when i open it!?1015 (5/15/2008 4:03:31 PM) comp.lang.python print os.path.exists('C:\Users\saftarn\Desktop\NetFlixDataSet \trainingsetunzipped\training_set\mv_0000001.txt') d=open('C:/Python25/myPrograms/mapexperiments/maps/provinces-of- sweden.gif') d.close() exists ... skanemupp(187)
datamining .txt-files, library?725 (5/15/2008 12:27:10 PM) comp.lang.python i have a big collection of .txt files that i want to open and parse to extract information. is there a library for this or maybe even built in? ... skanemupp(187)
builtin for generating list?2732 (5/13/2008 9:26:29 PM) comp.lang.lisp if i want a list with the numbers between x and y is there a buil in function to generate this? in python i can say range(x,y,step) so i can do: map(lambda x:x*x*x,range(1,101,2)) which creates a list with all... skanemupp(187)
usage of python1327 (5/13/2008 5:10:23 PM) comp.lang.python Hi, I teach an introductory programming course in Python. As part of the introduction I'd like to highlight the usage of Python in industry. The idea is to show that there are big players using Python for a var... rajarshi.guha(17)
Fill memeory with endless loop?737 (5/13/2008 4:49:33 PM) comp.lang.python if i do something like while 1: print "x" will the program ever stop because it runs out of memory? or is the print x never stored somewhere? if u do soemhting like add element to a list it has an upper nb... skanemupp(187)
regexp help #2830 (5/9/2008 10:19:26 PM) comp.lang.python i want to a little stringmanipulationa nd im looking into regexps. i couldnt find out how to do: s = 'poprorinoncoce' re.sub('$o$', '$', s) should result in 'prince' $ is obv the wrng character to use bu what ... skanemupp(187)