473,810 Members | 3,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
1
14,755
thread by: wsguglielmetti | last post Oct 28 '07 by: Grant Edwards
Hi, How are you? I'm completly new in python but I know a little of C. I developed a small application in python which generate and receive some data from times in times (question of seconds) and I need to send this data to a unix domain socket (/var/run/sfp) and read the response and print on the screen.
4
1,422
thread by: chewie54 | last post Oct 28 '07 by: MrJean1
Hi All, Does anyone now of a good example to use as template for a C program extension that needs to be built on the Mac OS X. Thanks,
1
3,436
thread by: durumdara | last post Oct 28 '07 by: Lawrence Oluyede
Hi! I have a pager component. This component is makes database slices (record sets) and it is use query string's PageIndex element to identify the actual page. This component is makes pager buttons in HTML to control. Like this: << < 4 5 6 >
11
15,599
thread by: DDCane | last post Oct 27 '07 by: Smygis
i made it like this: def tvarsumman(n): if n<10: print n else: tvarsumman((n/10) + n%10) but when it comes to 99 it does this 99--> 9+9=18-->1+8=9
5
1,555
thread by: krishnakant Mane | last post Oct 27 '07 by: paul
hello, I have one strange requirement, I need to create html files through python and add some data from the database. it is a GUI based application developed in WX python. and the reports need to come out in html for some strange reason which is off topic to discuss here. but the point is that how do I do it? should I create a normal file...
1
1,529
thread by: Chaven | last post Oct 27 '07 by: bartonc
Hi Ive done some work on a basic python editor, with code folding, syntax highlighting and the idle shell. It also includes a forms editor to quickly build windows forms applications using wxpython widgets. The application still needs some finetuning especially the running of files as it doesnt pass code directly to the interpreter but uses a...
3
1,241
thread by: thattommyhallll | last post Oct 27 '07 by: Marc 'BlackJack' Rintsch
http://eigenclass.org/hiki/xmpfilter looks cool , anything like this for python? any reason that we culd not do simmilar ?
0
214
thread by: Shawn Minisall | last post Oct 27 '07 by: Shawn Minisall
K I've since fixed the UnboundLocalError: local variable 'ai' referenced before assignment error, I forgot to include decision = (1, 2, 3) inside " " for each number. Now when I run it, I get this.. READY TO PLAY ROCK, PAPER, SCISSORS??? Please choose from the following menu: 1. See the rules
2
1,662
thread by: peter | last post Oct 27 '07 by: Bill Marcum
I'm not sure if this query should be directed to comp.lang.python or comp.os.linux.misc so I intend to post it to both with apologies if it's inappropriate on either. I have a small python utility which I wrote myself and which crawls through a directory comparing all possible pairs of files. Under Windows it works fine, while the same...
1
1,908
thread by: kernel1983 | last post Oct 27 '07 by: Roger Upole
By reading the doc of pywin32 we can invoke COM like: o = win32com.client.Dispatch("Excel.Application") but is it possible to invoke some GUID directly?
2
3,023
thread by: Martin Marcher | last post Oct 27 '07 by: Marc 'BlackJack' Rintsch
Hello, I'm playing around with os.walk and I made up del_tree(path) which I think is correct (in terms of the algorithm, but not as python wants it :)). As soon as some directory is deleted the iterator of os.walk chokes. OK that is somehow clear to me as it can't be valid anymore since it can't go to the just deleted directory but it is...
0
1,351
thread by: gmguyx | last post Oct 27 '07 by: gmguyx
I tried using urllib.urlopen to open a personalized webpage (my.yahoo.com) but it doesn't work: print urllib.urlopen(http://my.yahoo.com).read() Instead of returning my.yahoo.com, it returns a page asking me to log in. So then I tried urllib.urlencode:
0
828
thread by: _nospamnet_ | last post Oct 27 '07 by: _nospamnet_
hello, I'm new to python and this list.I hope this question don't repeat an old story on the list. I have a number list,say it's ,I want to sort it as ,how to do? Thanks.
0
1,044
thread by: TimeHorse | last post Oct 27 '07 by: TimeHorse
Is there a consistent way to map a frame object to a function / method object? Methods usually hang off of parameter 1, and functions usually in the global or local scope. But lambda functions and decorators are not so easily mapped. You can get access to the executing code object from the frame, but I don't see a consistent way to map it...
7
1,421
thread by: Lasdjfk | last post Oct 27 '07 by: bartonc
What do you think about this? >>> trans = >>> for row in trans: row = float(row) >>> trans
1
1,230
thread by: Kevin D. Smith | last post Oct 27 '07 by: Aahz
I'm trying to get a Python User Group started in Norman, OK and I want to get one of those fancy mailing lists on mail.python.org. There is a link there to create a new list if you have the proper authority. How does someone get the proper authority? -- Kevin D. Smith
11
5,897
thread by: crashonyou | last post Oct 27 '07 by: heiro
hello, i am quite new to python and i have been experimenting with the zipfile module since i deal with a lot of zip files everyday and i want to automate my work..my question is: how do i retain the date and time stamp of the files that i have 'unzipped' from the zip file..i already know how to unzip but a new timestamp is written (time and day...
4
3,385
thread by: robert | last post Oct 27 '07 by: robert
On a server the binary (red hat) installed python2.4 and also a fresh compiled python2.5 spits "sem_post: Invalid argument". What is this and how can this solved? Robert ============== server # python2.4 sem_post: Invalid argument
1
2,113
thread by: Abandoned | last post Oct 27 '07 by: Abandoned
Hi i want to do proxy in urllib.urlopen how can i do this ? And which proxy type have i can prefer ?
2
11,325
thread by: Jeff Pang | last post Oct 27 '07 by: 7stud
I want to transmit an array via socket from a host to another. How to do it? thank you. --jeff _____________________________________________________________ Largest network of startups. Find new startup opportunities. Click here. http://thirdpartyoffers.juno.com/TGL2111/fc/Ioyw6iieVGxKk95ANW9UY46ZNrfO3Mp24IBoFARajXJnlSuTKfzxO4/
0
1,123
thread by: gmguyx | last post Oct 27 '07 by: gmguyx
I tried using urllib.urlopen to open a personalized webpage (my.yahoo.com) but it doesn't work: print urllib.urlopen(http://my.yahoo.com).read() Instead of returning my.yahoo.com, it returns a page asking me to log in. So then I tried urllib.urlencode:
9
1,293
thread by: korovev76 | last post Oct 27 '07 by: korovev76
Hello everybody. I'm wondering how to iterate over a tuple like this while saving A and C in a list. My problem is that C sometimes is a tuple of the same structure itself...
2
1,955
thread by: Andrew West | last post Oct 27 '07 by: Kay Schluehr
Probably a bit of weird question. I realise decorators shouldn't be executed until the function they are defined with are called, but is there anyway for me to find all the decorates declared in a file when I import it? Or perhaps anyway to find the decorators by loading the file by other methods (with out simply parsing it by hand). ...
6
3,563
thread by: Adam Donahue | last post Oct 27 '07 by: Michele Simionato
As an exercise I'm attempting to write a metaclass that causes an exception to be thrown whenever a user tries to access 'attributes' (in the traditional sense) via a direct reference. Consider: class X( object ): y = 'private value' def get_y( self ): return self.y
3
2,232
thread by: Junior | last post Oct 27 '07 by: Junior
I want to open a text file for reading and delineate it by comma. I also want any data surrounded by quotation marks that has a comma in it, not to count the commas inside the quotation marks if the file testfile.txt contains the following; 5,Tuesday,"May is a spring month",Father's Day 1,Saturday,"June,July and August",Independance Day

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.