473,804 Members | 2,085 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.
2
1,516
thread by: Paradox | last post Jul 18 '05 by: Daniel Dittmar
This seems like a simple question but I keep looking and can't seem to find it anywhere. Do I have to check it out directly from CVS. Is there anywhere I can download the source already compiled. All I really want is to be able to compile PIL. Thanks Joey
0
1,035
thread by: Bob Gailer | last post Jul 18 '05 by: Bob Gailer
I need to register Python 2.1.3 so I can, in turn, install sqlite-python-0.3.1.win32-py2.1.exe, so I can in turn use pysqlite with ZOPE. Is there a way to register the python 2.1.3 that comes w/ZOPE so the pysqlite installer can find it? I tried regsrv32 on python.exe and on python21.dll to no avail. Or is there a way to make a registry...
8
1,479
thread by: Daniel Klein | last post Jul 18 '05 by: Trent Mick
I don't want to get into a 'which IDE is the best' conversation. I'm looking for an IDE that has the ability to view 2 (or more) methods/functions within the same module simultaneously. I've looked at the screen shots for Komodo, Wing, BlackAdder, etc and it is not obvious that any of them have this feature. This is something I got use to...
6
22,737
thread by: Alexandre Gillet | last post Jul 18 '05 by: Alexandre Gillet
Hi, I am trying to build a python interpreter that is static link. My python interpreter was build on RedHat 8.0 using gcc 2.3 and GLIBC 2.3 When running on other linux flavor that still have GLIBC 2.2, the interpreter won't start. (error message: /lib/libc.so.6: version `GLIBC_2.3' not found (required by...
2
1,612
thread by: Paradox | last post Jul 18 '05 by: Paradox
I am using wxImage to display Tiffs and it works great except that it displays a message box for each unrecognized tag in the header. Is there a way to suppress these message boxes. Thanks Joey
0
531
thread by: Michael Chermside | last post Jul 18 '05 by: Michael Chermside
Prabu writes: > I'm new to python, so excuse me if i'm asking something dumb. Hey, everyone had to start someplace, we try hard to be nice to newbies here. You can also check out the beginners list (http://mail.python.org/mailman/listinfo/tutor), where they SPECIALIZE in being clear to newbies. > Does python provide a mechanism to...
0
1,122
thread by: Turhan Ozen | last post Jul 18 '05 by: Turhan Ozen
Is chaco compatible with boa constructor? I could not pass beyond the following error. the instruction at "0x00f83a4b" referenced memory at "0x00000000". The memory could not be read. Turhan
15
2,495
thread by: Roberto A. F. De Almeida | last post Jul 18 '05 by: Terry Reedy
I found that when using negative indices, the slice object passed to __getitem__ depends on the number of slices. An example to clarify: class a: def __getitem__(self, index): return index >>> b = a() >>> print b Traceback (most recent call last):
1
1,680
thread by: Thomas Guettler | last post Jul 18 '05 by: Thomas Guettler
Hi! Sometimes os.mkdir() does not create . and .. Before the mkdir() I do shutil.rmtree() The filesystem is NFS, Linux 2.4.20-4GB (NFS-client) Python: 2.2.2 Anyone seen something like this before?
2
1,551
thread by: F. GEIGER | last post Jul 18 '05 by: F. GEIGER
Hi all, I use PMW 1.2 on Python 2.3.0 on Win2k. I've created a dialog that looks like so: +----------------------+ Name | | +----------------------+ +----------------------+
4
4,128
thread by: Derek Fountain | last post Jul 18 '05 by: Miki Tebeka
I have a situation where I have, in a string, the name of a class I want an instance of. I've written a factory function to generate the class for me: def controllerFactory( controllerRequired, model ): if controllerRequired == "ViewController": return ViewController( model ) elif controllerRequired == "FontController": return...
4
44,160
thread by: Rob Hunter | last post Jul 18 '05 by: Miki Tebeka
How do I check if a value is a number in Python? One way is (x == type(1)) and (x == type(1.2)) and (x == type(2387482734274)) and ... but this seems kludgy. Any better way? Thanks, Rob
8
6,867
thread by: Tom | last post Jul 18 '05 by: Tom
Hi, I have a log file and of course I want to add the new information to the end of that log file. Unfortunately I always delete the old information and only append the current info. Right now I do it like this: I call a module which consists of a class and a function. It actually doesn't matter, but I just included it for the sake of...
4
9,661
thread by: T. Kaufmann | last post Jul 18 '05 by: Duncan Booth
Hi there, A simple but important question: How can I initialize a super class (like dict) correctly in my subclass constructor? A sample: class MyClass(dict): def __init__(self):
5
6,921
thread by: Doug Tolton | last post Jul 18 '05 by: francois lepoutre
Does PIL still not have a Group4 Tiff decoder available? I can load a group4 Tiff just fine, but when I attempt to show it I get: >>> im = Image.open('images/00000001.tif') >>> im.show() Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 1192, in show _showxv(self,...
1
5,038
thread by: Camilo Olarte | last post Jul 18 '05 by: F. GEIGER
If you ever need a calendar dialog in Tkinter , You can use mine: http://pythonical.sourceforge.net/pyTkCalendar.html Camilo Olarte
0
2,022
thread by: Joshua W. Biagio | last post Jul 18 '05 by: Joshua W. Biagio
Hello all, I am having difficulty getting the HTTP/1.1 support (i.e. pipelining and persistent connections) for the BaseHTTPServer library to work. When I change the line for the protocol in BaseHTTPServer from "HTTP/1.0" to "HTTP/1.1", the SimpleHTTPServer program can still serve directory listings and even graphics files, but it hangs when I...
30
75,153
thread by: Stephen Ferg | last post Jul 18 '05 by: Andrew Dalke
I have a question that is not directly Python-related. But I thought I'd ask the most erudite group that I know... :-) When did Windows start accepting the forward slash as a path separator character? At one time, it was accepted as a truism that Windows (like MS-DOS) was different from Unix because Windows used the backslash as the path...
0
1,515
thread by: Bruce Dickey | last post Jul 18 '05 by: Bruce Dickey
Hi, I'm moving some functionality from the server to the local PC and need to translate some PHP scripts to Python. They just do file manipulation. Anybody know of a PHP to Python translator? Even an alpha or beta program would help. Also, any tips or pitfalls to look out for? I'm a Python/C/C++ programmer who is only aquainted with...
4
1,653
thread by: Mac Wood | last post Jul 18 '05 by: Erik Max Francis
Could someone please explain this error message: Traceback (most recent call last): File "C:\Python23\time.py", line 1, in -toplevel- time.py NameError: name 'time' is not defined I tried entering the following example: time.py
0
2,551
thread by: Jim Kerr | last post Jul 18 '05 by: Jim Kerr
I am trying to reconstruct Python source files from an application I generated from py2exe. I accidentally deleted the sources for the app, but the py2exe-generated executable contains .pyc files for all the sources. I would love to be able to reverse engineer the .pyc files back to the source. I did find some mention in this group of a...
1
1,279
thread by: Ian Sparks | last post Jul 18 '05 by: Scott David Daniels
I'm sure its been thrashed through a hundred times but googling for an answer left me more confused than before and yes, I did read the Tutorial (maybe not well enough, but I read it). On Windows, I want to set up a package structure like : Fred Bob test.py So I can say :
8
1,893
thread by: Jakle | last post Jul 18 '05 by: Christos TZOTZIOY Georgiou
Hi all. Need alittle help here. This is an example from "How to Think Like a Computer Scientist: Learning with Python, Chapter 5". It's an open source ebook, so if you feel like it you can find it here: http://www.ibiblio.org/obp/thinkCSpy/ The example uses factorials to explain more complex recursion. "Explanation From the Book Begins...
2
2,889
thread by: John D. | last post Jul 18 '05 by: Scott David Daniels
#This program gives: "SyntaxError: unqualified exec is not allowed # in function _ it contains a nested function with free variables" #I understand this is a scope problem(?) #I don't understand why this fails. It should be perfectly obvious #what z is equal to when exec sees it. Furthermore, it shouldn't care #about any other variables...
1
2,348
thread by: sjsmith3 | last post Jul 18 '05 by: Emmanuele Bassi
Is there a way to center a dialog on a screen? -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .

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.