473,554 Members | 5,044 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,519
thread by: Hans-Joachim Widmaier | last post Jul 18 '05 by: Hans-Joachim Widmaier
Hi, I have a class that reads most common files (text, images, tar archives, zip archives). I just read in the whole thing and decide then what to do with it - create a gtk.TextView, gdk.pixbuf, or tables-of-contents, whatever. Looking at the functions in the appropriate modules shows that most of them want to read from external files....
0
972
thread by: À×ÌÎ | last post Jul 18 '05 by: À×ÌÎ
I want to user the newgroup of python, but I do not use it! can you give me a hand?
0
1,493
thread by: Anthony Baxter | last post Jul 18 '05 by: Anthony Baxter
I'm looking for something (usable from python) that provides networked directory/registry type functionality to a bunch of Linux and Solaris servers. LDAP's one alternative, but the LDAP servers are heavy heavy beasts, so I was hoping for something that's actually lightweight, rather than "lighter than X.500". Thanks, Anthony
0
1,236
thread by: | last post Jul 18 '05 by:
We design, develop, host and guide you through any and all parts of the process of web site development, custom database design and development and graphics. If you`ve thought about doing something more with what you have but are not sure how to go about it, let us help. Gynn Communications, Inc. To remove yourself from our list type...
2
7,721
thread by: Daniel | last post Jul 18 '05 by: Bengt Richter
I'm working with strings that contain xml escape codes, such as '0' and need a way in python to unescape these back to their ascii representation, such as '&' but can't seem to find a python method for this. I tried xml.sax.saxutils.unescape(s), but while it works with '&', it doesn't work with '0' and other numeric codes. Any suggestions on...
65
6,679
thread by: Anthony_Barker | last post Jul 18 '05 by: Robin Becker
I have been reading a book about the evolution of the Basic programming language. The author states that Basic - particularly Microsoft's version is full of compromises which crept in along the language's 30+ year evolution. What to you think python largest compromises are? The three that come to my mind are significant whitespace,...
2
1,440
thread by: Propad | last post Jul 18 '05 by: logistix at cathoderaymission.net
Hello everybody, I created a simple COM server, by copy and paste of the first example from the book by Mark Hammond. I registered the server, and was able access its functionallity from another python script, and from Word. Then I tried accessing the server from another tool (which is my real task). The problem was, it was not in the...
1
1,273
thread by: Kevin Altis | last post Jul 18 '05 by: A.M. Kuchling
Is this part of the PSU master plan? ;-) http://www.amk.ca/diary/2003/08/09.html#2003-08-09-1 ka
2
2,873
thread by: disgracelands | last post Jul 18 '05 by: Syver Enstad
I've been looking at using python and it's been going fairly well so far, i can call C from python and python from C fine but now i've hit a snag and i'm wondering how you guys have got around it. I have to initialise python inside my C project so that i can make calls to python modules whenever i need to but i can't create a dll for the...
20
3,670
thread by: Thomas Heller | last post Jul 18 '05 by: Marc Wilson
I'm currently working on a new version of py2exe, which will require Python 2.3 and later, because it uses the zipimport mechanism. Since py2exe is a distutils extension, and since C compilers are commonly available on most platforms except Windows, it would be fairly easy to let py2exe generate a C source file installing this import hook,...
0
1,104
thread by: Ivo | last post Jul 18 '05 by: Ivo
Hi. I'm trying to embed Python as a scripting language for my Win32 application. What I need is to provide my own text console and my own memory manager. Is it possible to do that without replacing all printfs and mallocs in the Python source? Even if I do that, how is that going to work for third-party modules I import? Thanks Ivo
4
1,861
thread by: Ed Young | last post Jul 18 '05 by: Ed Young
Here is an example of the behavior: ------- code start ----------------------------------- #!/usr/bin/python #bugtest - test of class attribute initiation class Config: a = 1 b = 2 c = 3
2
1,924
thread by: Robin Becker | last post Jul 18 '05 by: Robin Becker
I'm getting the following error when I attempt to run an app with Python 2.3. I suppose this was silently ignored under 2.2. With debugging I see that s==0 in _int = int ...... def atoi(s , base=10): return _int(s, base) is the cause of the error. Has int changed or is it the source of the
2
17,359
thread by: Jonathan | last post Jul 18 '05 by: Steven Taschuk
I'm puzzled by Python's behavior when binding local variables which are introduced within exec() or execfile() statements. First, consider this simple Python program: # main.py def f() : x = 1 print "x:", x f()
3
2,699
thread by: Anton Vredegoor | last post Jul 18 '05 by: Thomas Heller
Recently there has been a lot of progress concerning the integration of midi into python. A midipy.cpp for Python20 is found and various compiling efforts having been undertaken to compile it for Python23. See the other threads about midipy.cpp for more info. However, seeing that the resulting midipy.pyd is only 48 kilobyte long and seeing...
1
2,306
thread by: Steve Lamb | last post Jul 18 '05 by: Steve Lamb
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok, this one has me scratching my head. Right now my application is working fine. I have a tree control which contains a 2-level deep tree. The first level is directories while the second level are files in those directories. The user clicks on the file they want to manipulate and it is...
1
3,249
thread by: Bowen Chiu | last post Jul 18 '05 by: Skip Montanaro
Dears: I use a 4KBytes HTML content to do this benchmark, it is just a simple test of python based web server. mod_python with Apache Lifting the server siege... done. Transactions: 4864 hits Availability: 100.00 % Elapsed time: 30.43 secs
2
3,359
thread by: Dennis Sylvester | last post Jul 18 '05 by: Steve Lamb
Interested in any opinions, studies, etc., concerning the GUI tool(s) to use for Python. Specifically, which would you recommend (and why) for building GUI apps in Python: TKinter BOA PyQT Thanks, Dennis
2
3,097
thread by: Bengt Richter | last post Jul 18 '05 by: Bengt Richter
Why wouldn't quote-stuffing solve the problem, and let you treat \ as an ordinary character? In a raw string, it's no good for preventing end-of-quoting anyway, unless you want the literal \ in front of the quote you are escaping. Quote-stuffing is a variation on the old quote-doubling, extended to deal with triple quotes as well (which...
3
33,844
thread by: hokiegal99 | last post Jul 18 '05 by: François Pinard
How do I say: x = string.find(files, 'this', 'that', 'the-other') currently I have to write it like this to make it work: x = string.find(files, 'this') y = string.find(files, 'that') z = string.find(files, 'the-other')
2
1,717
thread by: Brian Lloyd | last post Jul 18 '05 by: Martin v. Löwis
For those interested, I've made a preview-2 release of Python for .NET. Python for .NET is a near-seamless integration of the CPython runtime with the .NET Common Language Runtime (CLR). It lets you script and build applications in Python, using CLR services and components written in any language that targets the CLR (C#, Managed C++,...
0
1,179
thread by: Jerry Pine | last post Jul 18 '05 by: Jerry Pine
I'm using the Blender game engine and it only supports python 2.0. I used calldll in python 2.1 separately and it works great for my I/O calls using a windows dll. I need calldll.pyd for python 2.0. Does anyone have an archive of this older routine. Sams website only posts 2.1 and later.
0
2,115
thread by: Jokeline | last post Jul 18 '05 by: Jokeline
=====PRANK CALL===== How to use this service: 1. Choose a Prank from the list below 2. Make sure you have the telephone number of your chosen target 3. Call 0906 403 8796 4. Listen in as the computer dials out to your victim!
1
2,548
thread by: Mark Carter | last post Jul 18 '05 by: Mark Carter
I use Office 2000, and I have recently upgraded to python 2.3 and win32all-155.exe The following code worked in python 2.2: xlApp = Dispatch("Excel.Application") xlApp.Visible = 1 xlApp.Workbooks.Add() xlApp.ActiveWorkbook.SaveAs(sys.path + '\\temp.xls') wb = xlApp.Workbooks("temp.xls")
3
2,598
thread by: Ken Fettig | last post Jul 18 '05 by: Paul Gross
Hello, I am begining to learn the Python language and I am enjoying its flexibility. I do have a question. I am considering using Python for web development. I have found that a huge number of web hosts offer support for PHP. How hard is it to find a Web Host that will allow you to you to run your own Python scripts, web or app server,...

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.