| |
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
|
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():
|
thread by: dazzler |
last post Nov 20 '07 by: bartonc
but where can I get that win32com.client module? =/ (I'm using win xp)
|
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...
|
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...
|
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...
|
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...
|
| |
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...
|
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.
...
|
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
|
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:
|
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)
|
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 ):
|
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.
|
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...
|
| |
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
|
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
|
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
|
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:...
|
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.
|
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
|
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
|
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...
|
| |
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...
|
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:
|