473,543 Members | 2,917 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.
0
1,191
thread by: Stuart D. Gathman | last post Jul 18 '05 by: Stuart D. Gathman
Is there a LyX style sheet to help me write simple Python documentation in the standard format without learning to write raw LaTeX?
1
2,636
thread by: Behrang Dadsetan | last post Jul 18 '05 by: Behrang Dadsetan
Hi all, please note that once I finished writing the script someone explained me that there is a command pwait under Solaris... anyway it was fun to write and it did not take long (while I am not a python guru..). And my version is MUUUCH better :) Is there no standard interfaces to the process table? I only found examples of how to do...
0
1,504
thread by: ken erickson | last post Jul 18 '05 by: ken erickson
Is Python Megawidgets 1.1 compatible with Python 2.2.3. I'm new to Python and I'm trying to work my way through some example is John Grayson's Python and Tkinter Programming book. He has some sample code that uses the PMW library. The reason I ask is due to a problem that I'm having in trying to run the demo code included with the widget...
0
1,560
thread by: Matt Rapoport | last post Jul 18 '05 by: Matt Rapoport
I'm running an NT service with a thread. The thread performs a calculation every so often and appends the number to a text file. Every so often the thread just stops - or so it seems. The text file stops getting numbers added to it but the service is still running and no errors have been thrown. I'm quite sure that the code would catch an...
1
4,245
thread by: David Eger | last post Jul 18 '05 by: Modular Forms Boy
When I use PyErr_SetString() in an extension, python just keeps on chugging instead of acting as though a Python exception had been 'raise'd. Why is this, and do I really have to write the Python code to raise an exception manually after I've used PyErr_SetString()? Most recently, writing an iterator -- I write: if (nextEl == NULL) {...
7
2,685
thread by: Artur M. Piwko | last post Jul 18 '05 by: Tom Plunket
How can I remove program entry from taskbar (not tray)? Artur -- Before the Goat of Mendes... we all must take our turn | Artur M. Piwko Into the magic circle... where still the fire burns | mailto:s/_/./ We're spinning round and round... until one takes a fall | -- Mercyful Fate The fallen one will not return, the fallen one...
3
2,370
thread by: Alexander Eberts | last post Jul 18 '05 by: Ulrich Petri
I'm new to python so appologies to the group if this question is asked often. I'm wondering if it's possible to query an object instance to find out what arguments the instance's __init__ function was called with from *outside* the class's local namespace. For example, if I define a class Foo as follows: import sys class Foo: def...
10
17,172
thread by: lamar_air | last post Jul 18 '05 by: David Bolen
I have a python script and i want to delete a file on my computer c:\....\...\.. .txt what's the script to do this? I know how to write to files but i also need to know how to delete a file.
1
1,694
thread by: Brian Victor | last post Jul 18 '05 by: Brian Victor
I am attempting to distribute my wxPython program with the aid of distutils. I have one C++ module that needs to built on the user's machine. When I run "./setup.py build", the following appears on the terminal: gcc -DNDEBUG -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -fPIC -Isrc -I/usr/include/python2.2 -c src/bwaa.cc...
0
3,770
thread by: Fred L. Drake | last post Jul 18 '05 by: Fred L. Drake
The development version of the documentation has been updated: http://www.python.org/dev/doc/devel/ Wide ranging updates accumulated over the weeks preceeding the release of Python 2.3 release candidate 1.
11
3,376
thread by: BogAl | last post Jul 18 '05 by: BogAl
Hi, all.... I'm hoping someone can help me. I've downloaded the csv.pyd file from http://www.object-craft.com.au/projects/csv/download.html and put it into my C:\Python22\DLLs directory. Typing import csv into a python window results in the following error message:
12
2,944
thread by: Raymond Hettinger | last post Jul 18 '05 by: Erik Max Francis
Here are four more mini-mysteries for your amusement and edification. In this episode, the program output is not shown. Your goal is to predict the output and, if anything mysterious occurs, then explain what happened (again, in blindingly obvious terms). There's extra credit for giving a design insight as to why things are as they are.
1
2,438
thread by: Gary Robinson | last post Jul 18 '05 by: Erik Max Francis
Hi, I know that hash functions are often platform-dependent for efficiency reasons. From what I understand, this includes Python's hash(), which I have read is not guaranteed to return the same result across platforms or even across Python versions. Can someone tell me whether an MD5 hash using Python's MD5 library IS guaranteed to...
0
2,095
thread by: Dave Harrison | last post Jul 18 '05 by: Dave Harrison
Ok before I start, please dont mail me telling me to use a more recent version of Python, I _would_ use 2.2.x but due to an existing framework all based on using 2.1.1 I have been specifically told to use 2.1.1 to avoid any crossover issues/problems. Thanks ;-) So ... Using gcc Im compiling Python2.1.1, and it configures quite reasonably,...
2
13,232
thread by: WIWA | last post Jul 18 '05 by: Heiko Wundram
Hi, I want to make a UDP client server application that is conform to RFC868 (Time protocol). Both the UDP client and UDP server are in a test phase. The question is: when I add "svrsocket.sendto(resultaat, (ip, port))" in the UDP server, my application closes while running. When I leave it away, it works fine. I really need this...
5
1,958
thread by: Marco Herrn | last post Jul 18 '05 by: Donn Cave
Hi, I know of poplib, which does what I need except that it doesn't support SSL encryption. imaplib has SSL-support. But I want it with pop3. Is there a library available that does this or do I have to implement it myself? Bye Marco -- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred)
3
2,476
thread by: Kelvin Chu | last post Jul 18 '05 by: Dennis Lee Bieber
Hello, Python Wizards... I'm trying to use Python to write an aiff file. I've used the aifc module and I've set the parameters (# of channels, encoding rate, compression, etc.) What does raw audio data look like? Is each word of the raw audio data a frequency? If I encode 440 for each of the frames, will I get concert A? Thanks for...
2
2,156
thread by: Gerrit Muller | last post Jul 18 '05 by: Gerrit Muller
As a service to the visitors of the Gaudi systems architecting website: http://www.extra.research.philips.com/natlab/sysarch/ I have added a page with links to Python resources at http://www.extra.research.philips.com/natlab/sysarch/PythonLinks.html It is my intention to have this page as a quick starting point for system architects. They...
3
3,285
thread by: Tetsuo | last post Jul 18 '05 by: Paul Boddie
How do I get Python to work with foreign characters? When I try to print them, I get a unicode error (characters not ASCII). Wasn't unicode invented for the express purpose of working with non-ASCII characters?
0
2,469
thread by: XspiriX | last post Jul 18 '05 by: XspiriX
Hi I am new here and so in python :-) I am trying to make a script for extracting (parsing?) some values from a file and write them into an output i thought to follow this example (cookbook): #!/usr/bin/env python import os, sys nargs = len(sys.argv)
1
9,014
thread by: Johannes Eble | last post Jul 18 '05 by: Grant Edwards
Hello Python community, I am trying the echo-client and echo-server examples in Chapter 10, "Programming Python" by Mark Lutz. It is probably the most simple sockets sample: A socket server just echoing the socket clients' requests. The program works so far. I first start the server in one dos box, then the client in another dos box on...
2
2,054
thread by: David McNab | last post Jul 18 '05 by: David McNab
Hi, I'm looking for adventurous pre-alpha testers for a DHTML (active website) framework for Python I've developed. Name: - pyWeb Features:
3
1,758
thread by: sprmn | last post Jul 18 '05 by: David McNab
does anyone know of any sites with good tutorials on tkinter on them? -- Posted via http://dbforums.com
3
21,386
thread by: WIWA | last post Jul 18 '05 by: Ilya Etingof
I have recently installed pySNMP 3.3.2 and use Python 2.2.2. Thanks to Peter Hansen, I succeeded to install pySNMP properly. I'm not completely new to SNMP (I know the basics), but I'm new to Python and pysnmp. While experimenting, I find some strange things. When using pySNMP: 1) I can type: 'import pysnmp' or 'from pysnmp import *' 2)...
2
1,600
thread by: hokiegal99 | last post Jul 18 '05 by: Duncan Booth
What is the difference between these two statements? if newfile <> oldfile if newfile != olfile Thanks guys!!!

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.