473,549 Members | 2,781 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.
10
7,723
thread by: Andy C | last post Jul 18 '05 by: Borcis
Where can I get a python package to draw such figures? I googled and found PyX, I guess it outputs PostScript. I guess I can get a PostScript to BMP converter or something. Is there any other alternative? I have looked at PIL, but it doesn't seem to support drawing anti-aliased figures. Thanks for any suggestions. Andy
1
2,196
thread by: Illo de' Illis | last post Jul 18 '05 by: John J. Lee
While I was coding a software which needs to set up a SSL transaction with a client using an underlying proprietary protocol, I found that the _ssl module works only in SSL client mode. Moreover it is impossible to write a select()-based polling algorithm with it since I can't query SSLObject for any available data in input (this occurs only...
4
13,529
thread by: Andrew Chalk | last post Jul 18 '05 by: Irmen de Jong
I am a raw beginner to Python. I just read in "Learning Python" that assigning to a string argument inside a function does not change the string in the caller. I want an assignment in the function to alter the passed string in the caller. Is there any way to do this? For example def SafeAdd(self, Variable, Value): if self.form.has_key(...
6
12,408
thread by: Paul Rubin | last post Jul 18 '05 by: calfdog
Is there an HTML DOM parser available for Python? Preferably one that does a reasonable job with the crappy HTML out there on real web pages, that doesn't get upset about unterminated tables and stuff like that. Many extra points if it understands Javascript. Application is a screen scraping web robot. Thanks.
7
3,017
thread by: Patrick Useldinger | last post Jul 18 '05 by: 'cHVAdm8ubHU=\\n'.decode('base64')
Hi, I think I found a bug in the write method of file objects. It seems as if before writing each block, a check was done in order to verifiy that there is enough space left for the *whole* file, not for the *remaining* data to be written. It happens both under 2.3 and 2.2.3. Any ideas?
1
2,054
thread by: ryan | last post Jul 18 '05 by: Dietmar Schwertberger
the win32 python extentions don't seem to have "SysParametersInfo()" and i need it to set the wallpaper in windows. cyptes has a "SysParametersInfoA()" function but wont let me use the SPI_SETDESKWALLPAPER attribute. anyone have any ideas how i can set the windows wallpaper from a python program? -ryan
1
5,285
thread by: Miki Tebeka | last post Jul 18 '05 by: Cliff Wells
Hello All, I have a frame that contains a panel and several buttons. I'd like to make one of the button the default button but self.SetDefaultItem(btn) or btn.SetFocus() don't work. The item in focus is a text control inside the panel. Any Ideas? (see short example below) Thanks.
0
2,827
thread by: Tim Williams | last post Jul 18 '05 by: Tim Williams
I just installed Python 2.3 on my Redhat system. When I tried to run one of my programs that use tkFileDialog.askopenfilename(), I got an error because it returns a tuple instead of a null string when I select Cancel. Python 2.2: Python 2.2.2 (#3, Jan 21 2003, 08:39:06) on linux2 Type "help", "copyright", "credits" or "license" for...
1
6,291
thread by: Arkadiusz Miskiewicz | last post Jul 18 '05 by: Keith Jones
Hi, Simple code fails in python 2.3: # python Python 2.3 (#1, Jul 31 2003, 10:41:08) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> fp = open('.', 'rb')
3
1,999
thread by: srijit | last post Jul 18 '05 by: Troy Melhase
Hi, I am looking for a good plotting package (preferably with 3D plotting capabilities) based on Python 2.3 (Windows 98). Unfortunately Dislin does not exist for Python 2.3. I look forward to suggestions from members. Regards, Srijit
0
1,233
thread by: PyCon Committee | last post Jul 18 '05 by: PyCon Committee
Planning for PyCon DC 2004, the Python community conference, is now underway. DC 2004 will be held March 24-26, 2004 in Washington, D.C. It will contain many of the features of this year's successful conference, including a development sprint and a similar cost structure. Registration will be open by October 1. A Call For Proposals will be...
1
2,117
thread by: William Hanlon | last post Jul 18 '05 by: Alex Martelli
Hi, I would like to use the Python C API to use python to access functions originally written in C. The objects that I would like to pass to python have multi-dimensional arrays. How do I include arrays as object member? And how is it declared in the PyMemberDef array? If you can not use C arrays, I thought perhaps then I should use...
0
1,561
thread by: Charles Starrett | last post Jul 18 '05 by: Charles Starrett
I am a just a dabbler in programming, but I'd like to make some simple cross-platform tools for generating webpages, as well as for text munging. One thing I need is a Mac OS 9/Windows GUI solution. I thought that Tkinter could provide this, but I'm having trouble getting the simple test script from Learning Python p.22 to work under Mac...
3
2,354
thread by: Freddie | last post Jul 18 '05 by: Freddie
Hi, I posted a while ago for some help with my word finder program, which is now quite a lot faster than I could manage. Thanks to all who helped :) This time, I've written a basic batch binary usenet poster in Python, but encoding the data into yEnc format is fairly slow. Is it possible to improve the routine any, WITHOUT using...
3
2,859
thread by: Art | last post Jul 18 '05 by: Art
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python ... it is the most elegant and graceful language I have ever used (Fortran, Cobol, Basic, many assemblers, Forth, C, VB, etc.). I don't have the...
16
1,952
thread by: achrist | last post Jul 18 '05 by: achrist
The pychecker site says that pychecker works with versions 1.5 through 2.2. Any reason to expect that 2.3 breaks it? Anyone tried it to see? TIA Al
4
2,128
thread by: Alexander DEJANOVSKI | last post Jul 18 '05 by: Alexander DEJANOVSKI
Hi all, I'm starting a new project to develop an Open-Source EAI server in Python and I'm looking for motivated developpers and testers. It is inspired by Open Adaptor (www.openadaptor.org), but aims to be easier to use and more powerful. I've developped yet a first alpha that contains several components: File Source
3
1,574
thread by: james roush | last post Jul 18 '05 by: David M. Cooke
I'm tryinh to switch from mx.tidy to uTidyLin and it isn't going well. So far I can't even import TidyLib. Below is what I get when trying to import into Idle. I'm using Python 2.1. >>> from tidylib.lib import parse, parseString Traceback (most recent call last): File "<pyshell#2>", line 1, in ? from tidylib.lib import parse, parseString...
0
1,939
thread by: Dips | last post Jul 18 '05 by: Dips
Python Gurus, Is it possible to write python WMI event consumer using event handler rather than polling WMI? I got the equivalent C# code snippet from http://www.ondotnet.com/pub/a/dotnet/2003/04/07/wmi.html using System;
2
1,865
thread by: News M Claveau /Hamster-P | last post Jul 18 '05 by: News M Claveau /Hamster-P
Bonjour ! J'ai publié dans "announce", mais, comme cela n'apparaît pas (???), je donne l'adresse ici : http://mclaveau.com/ress/python/zipmci.htm Dans ce gros exemple, il y a, notamment, la suppression des fichiers, la réaffectation des date-time des fichiers extraits, etc. @-salutations
1
1,754
thread by: Josh Smith | last post Jul 18 '05 by: Lars Gustaebel
In Python 2.3 there is a new library for handling tarfiles. However, there doesn't seem to be any documentation on handling end-of-tape conditions. I've googled for it and checked the docs, I've even looked into the modules src and all I found was an end of file exception that might do what I'm looking for, but might not. Anyone have any...
10
3,201
thread by: Wiebke Pätzold | last post Jul 18 '05 by: Wiebke Pätzold
Hi all! Could somebody help me with a task? import sys import Mk4py import re db = Mk4py.storage("c:\\datafile.mk",1) vw = db.view("people")
0
3,085
thread by: Søren Johansen | last post Jul 18 '05 by: Søren Johansen
Hi, having had a number of problems with PyRun_File in my application embedding Python, I decided to load scripts into memory myself and execute them with PyRun_(Simple)String. This works fine and dandy except for when scripts reach a certain size. Around the 28000'th byte, it seems to break up the script, resulting in random errors caused...
0
1,223
thread by: panbru | last post Jul 18 '05 by: panbru
I'm doing some native code stuff and want to pass continguos memory blocks of data back and forth between Python and C, with the memory blocks modifiable in both realms. What is a good way to do that? As I understand it, "buffer interface" objects (e.g. strings or arrays) won't work because memory is not guaranteed to be continguous. Tim
1
2,591
thread by: Mark Carter | last post Jul 18 '05 by: Javier Ruere
In v0.2.0 starting boa.py produces the error message: File "C:\Python23\Lib\site-packages\wxPython\tools\boa\About.py", line 301, in write ss = string.strip(s) NameError: global name 'string' is not defined It appears that string is not imported in many modules, because fixing this gives the further error:

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.