473,748 Members | 2,578 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.
20
1,779
thread by: Cope | last post Nov 20 '07 by: Cope
please tell me what is python.This group is so crowded. Khup http://groups.google.com/group/download-centre
2
1,607
thread by: 7stud | last post Nov 20 '07 by: Justin Kwok
According to "Python in a Nutshell(2nd)", p. 523: connect: s.connect((host, port)) .... Blocks until the server accepts or rejects the connection attempt. However, my client program ends immediately after the call to connect()--even though my server program does not call accept():
1
1,500
thread by: dazzler | last post Nov 20 '07 by: bartonc
but where can I get that win32com.client module? =/ (I'm using win xp)
0
731
thread by: Francesco Pietra | last post Nov 19 '07 by: Francesco Pietra
New to the list and just beginning with Python (Linux B console). Urgent problem before I can correctly program: How to insert "TER" records recursively, i.e. some thousand fold, in a file like in the following example? "H2 WAT" is the only constant characteristic of the line after which to insert "TER"; that distinguishes also for lines...
4
22,051
thread by: pdlemper | last post Nov 19 '07 by: Terry Reedy
Have carefully installed Python 2.5.1 under XP in dir E:\python25 . ran set path = %path% ; E:\python25 Python interactive mode works fine for simple arithmetic . Then tried >> import math Get error Name error : name 'sqrt' is not defined Same thing with sin(x) . I'm unable to find "math" , "sqrt" , or "sin" anywhere in lib , Libs or...
2
1,527
thread by: Frank Stutzman | last post Nov 19 '07 by: Duncan Booth
I've got a simple script that looks like (watch the wrap): --------------------------------------------------- import BeautifulSoup,urllib ifile = urllib.urlopen("http://www.naco.faa.gov/digital_tpp_search.asp?fldId ent=klax&fld_ident_type=ICAO&ver=0711&bnSubmit=Complete+Search").read() soup=BeautifulSoup.BeautifulSoup(ifile) print...
0
1,130
thread by: Gabriel Genellina | last post Nov 19 '07 by: Gabriel Genellina
QOTW: "I think the need for these 'eventloop unifications' stems from Visual Basic. VB programmers never learned to use more than one thread, and they are still struggling to unlearn the bad habits they aquired." - sturlamolden http://groups.google.com/group/comp.lang.python/msg/41d29242b2a825de "XML. Almost as good as plain text for...
1
1,895
thread by: lPrentice | last post Nov 19 '07 by: bartonc
Hello, After all this time, Linux file permissions still confuse me at times. I have a Python web-based application with an file (images) upload module. The application is running on two remote servers and a local server on my development network. The upload module works just fine when I'm uploading to my remote servers. But when I try...
6
2,236
thread by: patrick.waldo | last post Nov 19 '07 by: martyw
Hi all, I'm analyzing some data that has a lot of country data. What I need to do is sort through this data and output it into an excel doc with summary information. The countries, though, need to be sorted by region, but the way I thought I could do it isn't quite working out. So far I can only successfully get the data alphabetically. ...
4
339
thread by: gardsted | last post Nov 19 '07 by: Paul McGuire
I just can't seem to get it: I was having some trouble with finding the first <REAPER_PROJECT in the following with this regex: Should these two approaches behave similarly? I used hours before I found the second one, but then again, I'm not so smart...: kind retards jorgen / de mente using python 2.5.1
5
6,326
thread by: davenet | last post Nov 19 '07 by: Steven Bethard
Hi, I'm new to Python and working on a school assignment. I have setup a dictionary where the keys point to an object. Each object has two member variables. I need to find the smallest value contained in this group of objects. The objects are defined as follows:
3
1,970
thread by: Abandoned | last post Nov 19 '07 by: Arnaud Delobelle
Hi.. I want to show the pictures with mod python directly. def showimage(req): some process... open /var/www/a.jpg and print for example if i open: domain.com/a.py/showimage It must show me image directly (no redirect or html)
17
1,690
thread by: Donn Ingle | last post Nov 19 '07 by: Bruno Desthuilliers
Hi, Here's a framework for the questions: --- In a module, part of an API --- class Basis ( object ): def foo ( self, arg ): pass --- In user's own code --- class Child ( Basis ):
3
1,455
thread by: John Salerno | last post Nov 19 '07 by: kyosohma
Anyone know anything about this book? I've read a few intro Python books already, but I'm always interested in reading more to reinforce the language. No reviews on Amazon yet so I'm not sure if it's good or not. Thanks.
13
2,366
thread by: Bruza | last post Nov 19 '07 by: Neil Cerutti
I need to implement a "random selection" algorithm which takes a list of as input. Each of the (obj, prob) represents how likely an object, "obj", should be selected based on its probability of "prob".To simplify the problem, assuming "prob" are integers, and the sum of all "prob" equals 100. For example, items = The algorithm will...
1
1,338
thread by: Neal Becker | last post Nov 19 '07 by: Hrvoje Niksic
What's wrong with this? type(struct.unpack('l','\00'*8)) <type 'int'> Why I am getting 'int' when I asked for 'long'? This is on python-2.5.1-15.fc8.x86_64
0
775
thread by: balu | last post Nov 19 '07 by: balu
computer language from american lang. http://www.bidvertiser.com/ http://bigchurch.com/go/g906803-pmem http://indianfriendfinder.com/go/g906803-pmem
0
948
thread by: balu | last post Nov 19 '07 by: balu
computer language python in 2007 http://www.bidvertiser.com/ http://bigchurch.com/go/g906803-pmem http://indianfriendfinder.com/go/g906803-pmem
1
2,216
thread by: =?ISO-8859-1?Q?Tor_Erik_S=F8nvisen?= | last post Nov 19 '07 by: Gabriel Genellina
Hi, A while ago I asked a question on the list about a simple eval function, capable of eval'ing simple python constructs (tuples, dicts, lists, strings, numbers etc) in a secure manner: http://groups.google.com/group/comp.lang.python/browse_thread/thread/58a01273441d445f/ also pointed to a simple eval function by Fredrik Lundh:...
8
1,199
thread by: SMALLp | last post Nov 19 '07 by: Asun Friere
Could someone please paste some program in wxPython that uses inharitance. I would be very thankfull.
0
685
thread by: Barathi | last post Nov 19 '07 by: Barathi
detail about the bankand new mutualfund plan ......link http://www.geocities.com/bakngin/ http://indianfriendfinder.com/go/g910343-pmem
7
1,140
thread by: Dave WB3DWE | last post Nov 19 '07 by: Donn Ingle
Have given up Java. Want to switch to Python. But _which_ ? There is ver : 2.5 out now 2.6 in beta , final expected Apr 2008 3.0 ? in alpha or beta 3.0 final expected Sep 2008 ? Will the real python please stand up. Thanks, Dave WB3DWE pdlemper@earthlink.net
2
1,770
bvdet
thread by: bvdet | last post Nov 19 '07 by: bvdet
We are parametrically attaching a bent plate object to the side of a building column for support of a skewed beam. Given a relative rotation between the column and beam and which side of the column to attach to, the following code determines the X and Y direction flags to calculate the exact location and the rotation tuple of the bent plate...
1
1,237
thread by: martin | last post Nov 19 '07 by: Aaron Watters
Hello, I need some help with my job assignment and the code that is not working. I am to search all log files and print out how many "name" used "fields" in all the logs? I have a list of about 50 names and 50 fields and now i need search and count. How to search regardless of the case? This what I wrote it does not work or it just ran...
4
1,430
thread by: MonkeeSage | last post Nov 19 '07 by: Kay Schluehr
Proposal: When an attribute lookup fails for an object, check the top-level (and local scope?) for a corresponding function or attribute and apply it as the called attribute if found, drop through to the exception otherwise. This is just syntactic sugar. Example:

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.