473,804 Members | 2,116 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.
7
2,648
thread by: Matthew Wilson | last post Jul 18 '05 by: mensanator
Hi- I just discovered this: >>> -1 // 12 -1 >>> 1 // 12 0 >>>
7
5,852
thread by: Ben Fairbank | last post Jul 18 '05 by: Fernando Perez
I have to pick a language to commit to for general purpose scientific/statistical/utility/database programming at my office and have pretty much narrowed it down to R or Python. Problem: none of the various Python books I have looked into has had much to say about memory. I will be operating on some big arrays, probably with Numpy; if I...
1
1,822
thread by: Marco Herrn | last post Jul 18 '05 by: Irmen de Jong
Hi I need to get the uid of a system user from the /etc/passwd file. Is there an already existing module/function available or do I have to parse it myself? Marco -- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
0
1,086
thread by: soso | last post Jul 18 '05 by: soso
Hi everybody, Is there a way to find out the subclasses of a class? Thanks in advance, soso __________________________________ Do you Yahoo!?
2
5,241
thread by: Enrique | last post Jul 18 '05 by: Dennis Lee Bieber
Hello all! I've a little and no important question: Suppose 2 scripts ##ex.py### a=execfile('scr.py') print "return value: ", a ##scr.py### print "i'm scr.py"
1
2,873
thread by: Rolfe | last post Jul 18 '05 by: M-a-S
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on "http://www.modpython.org/live/current/doc-html/inst-testing.html". I've added specific information such as Windows filepaths and filenames so there's no ambiguity on what you...
0
1,526
thread by: achrist | last post Jul 18 '05 by: achrist
I've just installed the new wxPython, version 2.4.2.4 (under Windows NT, sp6, python 2.3.2) and tried to create an exe using the McMillan installer. Seems to be a new problem ... I've got the 5b5 version of the McMillan installer. It crashes around line 161 of its mf.py module, where it is analyzing my program and pulling information out...
0
1,341
thread by: Brad Clements | last post Jul 18 '05 by: Brad Clements
I need to get my cross platform medusa based package to support SSL on Windows and Linux. Using Python 2.3, there doesn't seem to be any way to do this on Windows without M2Crypto. Is that correct? There's an SF patch 783188 that hints that server-side SSL might become possible, but there's no other mention in that patch about...
0
1,212
thread by: Scott Chapman | last post Jul 18 '05 by: Scott Chapman
Does anynone have these available? I'd like to upgrade (hoping it doesn't break my Redhat install). If I upgrade, all my site-packages have to be reinstalled to the new site-packages directory right? Scott
4
2,870
thread by: user | last post Jul 18 '05 by: John Dean
Checking out HTMLgen, I find the manual to be quite terse, and difficult to crack. Are there any examples or tutorials available for this package? Thanks, Tobiah
5
19,320
thread by: Wujek | last post Jul 18 '05 by: Wujek
Hi! From list: >>> l I want dict: >>> d {'key2': 'val2', 'key1': 'val1'}
0
3,316
thread by: Nagy László Zsolt | last post Jul 18 '05 by: Nagy László Zsolt
Hi Python Gurus! Here is a method I used before to receive data over a socket (with Python 2.2): SELECT_GRANULARITY = 0.1 # 0.1 seconds def readdata(self,length,timeout): res = '' remain = length
4
9,217
thread by: Dominik Kaspar | last post Jul 18 '05 by: Kyler Laird
hello i'm wondering if i'm just too stupid for python or if i've missed something fundamentally important of its semantics. Why does the following program result in the TypeError: print_it() takes exactly 1 argument (2 given)? I don't see any function passing or receiving 2 arguments here... am i blind? import threading
0
1,667
thread by: дамјан г. | last post Jul 18 '05 by: дамјан г.
I'm trying to access a SOAP web-service using the latest ZSI, I have the ServiceDescription and feeding it to a ZSI.ServiceProxy class. service = ZSI.ServiceProxy('http://xxxx.xxx.xx.x/app/app.asmx?WSDL') The problem is that the soapaction parameter is not set corectly in the SOAP request, although it it is corectly set in...
3
6,347
thread by: nuubs | last post Jul 18 '05 by: Harry George
Hello python gurus and everyone else! I've been tasked to write a python program to help with auditing. The program will involved auditing NFS links and checked for permission and proper security settings. Does anyone know if there's an NFS module already made in Python? If there is, it would make it a lot simpler, I think... :), to code...
0
1,189
thread by: Hayo Thielecke | last post Jul 18 '05 by: Hayo Thielecke
The deadline for CW'04 has been extended to 15 October. (Authors who have already submitted may resubmit if they like.) --- Hayo Thielecke The Fourth ACM-SIGPLAN Continuations Workshop (CW'04) Venice, Italy, 17 January 2004 co-located with POPL'04 (14--16 January 2004) http://www.cs.bham.ac.uk/~hxt/cw04/index.html Invited Speakers
1
1,714
thread by: Adrien Di Mascio | last post Jul 18 '05 by: Terry Reedy
Hi all, While reading the email module documentation, I found an error in a small example given for the as_string() method of the Message class: Here is the given code : (URL : http://python.org/doc/current/lib/module-email.Message.html) from cStringIO import StringIO from email.Generator import Generator
5
1,332
thread by: Anthony Baxter | last post Jul 18 '05 by: Peter van Kampen
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.3.2 (final). Python 2.3.2 is a bug-fix release, to repair a couple of build problems and packaging errors in Python 2.3.1. For more information on Python 2.3.2, including download links for various platforms, release notes, and...
3
7,660
thread by: Thomas Schmid | last post Jul 18 '05 by: Peter Hansen
Hi there, I wrote a tcp server which listens on a port. When he gets a new connection, he starts a new thread like this: thread.start_new_thread(self.ConnectionHandler, (conn,)) where conn is the socket for the connection. After I started the server, I can see one running process under Linux, which is ok. But once I connected to the...
2
1,420
thread by: Michael Teter | last post Jul 18 '05 by: Michael Hudson
My web search for future Python-related conferences has turned up nothing. I see plenty about previous conferences, but nothing for the future. Can anyone point me toward some list of conferences? I'm looking for Python, possibly Zope, possibly Plone, and even other modern web and system development topics. Thanks, Michael
2
2,051
thread by: kevin parks | last post Jul 18 '05 by: Gerrit Holl
Is as excellent as it is out of date. Which is to say it is exceedingly, ridiculously, hideously, insanely, absurdly out of date. *^-^* (look again there is a compliment in there ^^) And i hear again and again and again and again, over and over and over how a 2nd edition is due any time now... Uhmm.... Is it? Will it be out before python...
0
1,259
thread by: Sam | last post Jul 18 '05 by: Sam
Hello, I have made a new GUI app using a couple of widgets from the Pmw widget set. I am developing on a Windows 98 box at the moment. The problem is, when I try to run the app by clicking it's icon, I get the DOS console flash up with an ImportError saying it can't find the Pmw module. When I run it in IDLE or open up a DOS console and...
36
8,412
thread by: Dag | last post Jul 18 '05 by: Anton Vredegoor
Is there a python module that includes functions for working with prime numbers? I mainly need A function that returns the Nth prime number and that returns how many prime numbers are less than N, but a prime number tester would also be nice. I'm dealing with numbers in the 10^6-10^8 range so it would have to fairly efficient Dag
0
1,174
thread by: Fedor Sumkin | last post Jul 18 '05 by: Fedor Sumkin
Hi Do somebody tested and use subj ? I know that 1.0 released. -- Best regards
3
5,624
thread by: Jim Potts | last post Jul 18 '05 by: Felix McAllister
What is the best way in Python version 2.x to read/get Windows (nt/2000/xp) system and user environment variables? Thanks for the help! jep

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.