473,796 Members | 2,570 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.
3
4,536
thread by: Link | last post Jul 18 '05 by: Syver Enstad
Hi, Have anyone know how to import the DLL in C program? Actually, I have used the statement 'PyRun_SimpleString' to import .PY, Such as, r = PyRun_SimpleString("import os"); It's be fine.
0
1,178
thread by: Link | last post Jul 18 '05 by: Link
Any instruments in Taiwan to help me for my questions answer? Of course, should pay for you if necessary. Please contract me by mail in the Taiwan daytime. Looking forward to your reply. Link
3
6,426
thread by: Jules Dubois | last post Jul 18 '05 by: Camilo Olarte
I'm want to create a superclass with nothing but attributes and properties. Some of the subclasses will do nothing but provide values for the attributes. (I'd also like to make sure (1) that the subclass provides actual values for the attributes and (2) that no "client" module adds or removes attributes or properties, but I don't know how...
6
2,673
thread by: Tim Rowe | last post Jul 18 '05 by: Andrew Dalke
Is there a preferred way of passing data out of a Sax parser? My Sax content handler constructa an object for the rest of the program to use, but I'm not sure how to pass it to the rest of the program. Ways I can see: a. Put it in a global (blech!) b. Add a parameter to the handler's __init__ method, that takes some sort of mutable...
4
2,844
thread by: Kenneth Hutson | last post Jul 18 '05 by: Bob Gailer
Hi, I wonder if Python can connect to the object models exposed by Excel or Word. Thanks in advance, Ken Hutson San Antonio, Texas
0
2,802
thread by: Link | last post Jul 18 '05 by: Link
Dear, How is the wonderful PYTHON for me. It attracts me with its additional variety. I am developing in C program as well as first to use C++ with extending & embedding PYTHON. It seems not to easy. What do I mean? See that following steps what I am doing.
4
13,239
thread by: Frank & Janny Plaza | last post Jul 18 '05 by: Kenneth Hutson
I am trying to write a program in which the users will each enter their names and when all names have been entered, I want to randomly sort this list of names several times and then show the order in which they have beeen sorted. I tried using sort(), but this only sorts the names in the order in which they are entered. Any suggestions? Thanks,...
0
1,422
thread by: David Bear | last post Jul 18 '05 by: David Bear
I did a cursory look at google but couldn't seem to find what I wanted. I need a script that can parse and create a proper record structure for windows event logs that are saved as tab delimited format. The event logs they produce seem unnecessarily complicated. Was hoping someone had already made something like this. I'd like to avoid...
2
34,998
thread by: Andre Bocchini | last post Jul 18 '05 by: Myles
I'm having some trouble using proxy authentication. I can't figure out how to authenticate with a Squid proxy. I know for a fact the proxy is using Basic instead of Digest for the authentication. I can authenticate just fine using Mozilla. I've done some Google searches, but the closest piece of code I've is is for HTTPBasicAuthHandler: ...
0
1,924
thread by: Roy Smith | last post Jul 18 '05 by: Roy Smith
I had a class called rule and a subclass of rule, called bgpRule, in a file called bgp.py. I decided to move the rule class to its own file, called rule.py. The original file did "import rule". I forgot to change bgpRule's __init__() method from calling rule.__init__() to call rule.rule.__init__(). Amazingly, this caused no immediate...
6
2,009
thread by: Dfenestr8 | last post Jul 18 '05 by: Stuart D. Gathman
I started off trying to use bsddb with my standard mandrake 9 python 2.2.1 package. The shell reported back no such module. Strange, thinks I. I thought it was standard in the package, it was when I was using Windows. So I uninstalled Python, downloaded the latest python 2.3 and compiled it from source. Now when I try to import bsddb, I...
10
2,011
thread by: Paradox | last post Jul 18 '05 by: Stuart D. Gathman
Does anyone know of some ISPs that have Mod_Python installed. Most seem to allow Python CGI but not things like Mod_Python or Spyce. Is this a viable solution or should I just learn PHP. I would prefer to leverage my Python knowledge but I also would like a fast robust solution. Thanks Joey.
3
16,112
thread by: Charles Larry | last post Jul 18 '05 by: Peter Hansen
Is there a way to define functions after the main part of a Python script? Example: #!/usr/local/bin/python # this code yields a NameError print_message("hello world")
0
1,201
thread by: John Hunter | last post Jul 18 '05 by: John Hunter
Does anyone have a a windows installer for pyopengl built for python2.3 on win32 that they can send me, or a link? Thanks, John Hunter
1
4,432
thread by: chauhan | last post Jul 18 '05 by: Lukasz Pankowski
Hi, I am new to pogramming. I have written a small program which retrieves emails from server, unless all the messages are loaded only then it displays on screen properlely. Whole thing works fine if I use events to activate logMail() after start but I don't know how to activate an event at the start (witout pressing mouse or menu key)...
1
1,463
thread by: Batista, Facundo | last post Jul 18 '05 by: Peter Hansen
How could I know how much memory uses an object? Something like: >> a = >> memused(a) n Thanks!
2
1,349
thread by: Rolf Wester | last post Jul 18 '05 by: Christoph Becker-Freyseng
Hi, I have an application that starts a second thread, that receives messages via a socket-server and puts that messages into a queue. The main thread is polling that queue for new messages. My problem is that the main thread takes to much of the time polling the empty queue while the socket-server thread doesn't get enough time for...
1
1,473
thread by: Bruno Desthuilliers | last post Jul 18 '05 by: John J. Lee
Hi everyone ! Could someone point me to infos about securing python for use as CGI or mod_python for a shared hosting environnement ? I searched google, but did not find anything specific :( I'm not an admin myself, but I try to convince my hosting admins to install Python. For now, their answser is that they don't know how to secure...
0
1,261
thread by: Tina Li | last post Jul 18 '05 by: Tina Li
Hello, I have a menu, "Foo", and a cascade submenu under it, called "Bar", that has a number of menu items. If I want to delete all of the menu items under "Bar", but would like to keep "Bar" (i.e. an empty cascade menu with no items), how do I know how many items there are? I assume I should use deletemenuitems("Bar", 0, ???)
6
12,565
thread by: Alessandro Crugnola *sephiroth* | last post Jul 18 '05 by: Alessandro Crugnola *sephiroth*
hi, i have already problems using py2exe.. i'm using python 2.2, wxPython and audiere for a little mp3 player.. once I've build the exe with py2exe, when launching the application: Traceback (most recent call last): File "<string>", line 9, in ? File "imputil.pyc", line 103, in _import_hook File "<string>", line 52, in...
6
5,037
thread by: Ladvánszky Károly | last post Jul 18 '05 by: Henk Punt
What is the best way to access Win API functions that are not present in the various extension packages. Is writing a C extension the only solution? Thanks for any help. Károly
6
1,803
thread by: News | last post Jul 18 '05 by: David Eppstein
I just started using python a few weeks ago. This is my first program. You input your income and what percent you want to save then it tells you how much to put away. The the code works, but it puts in the word "none" after it calls the function. Is the call sytax incorrect? I'd appreciate any feedback you could offer . # savings.py ...
23
3,379
thread by: kasper graversen | last post Jul 18 '05 by: Michael Hudson
hello there. I've been searching the web (including the www.python.org :) but in vain of finding recent documentation for the python MOP. I see some information on python 1.5---is this the best and still valid information today? sincerely \kasper --
1
3,028
thread by: Rybread | last post Jul 18 '05 by: Alex Martelli
Real quick, I have account X and I want a python script that goes in and looks for emails sent from Y and then to save them. i'm trying to go off the swen killer I have listed below (which i took from someone on this NG): import poplib import time print 'Start at', time.asctime()
2
2,027
thread by: mmoum[no-spam-please] | last post Jul 18 '05 by: Scott David Daniels
Hi, Can anyone tell me where sys.path gets initialized? I know that I can import sys and then execute sys.path.append(pathname), but I'd prefer not to have to do that everytime I use PythonWin or Idle. I'm using Python on both Linux and Windows XP, and I suspect the process is different for each. Thanks in advance, Mike

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.