473,545 Members | 2,469 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.
1
1,514
thread by: srijit | last post Jul 18 '05 by: Peter Hansen
Hello, Can we have a download option for upcoming Python 2.3 without TCL/Tk? Though I know the extremely popular Tkinter is the default GUI of Python, I see one immediate advantage of a download option without TCL/Tk 1) Download size is less and it is a boon for people like me with slow modem connection. 2) Tkinter with TCL/TK can be a...
10
2,726
thread by: Frank Millman | last post Jul 18 '05 by: Frank Millman
Hi all I would like some advice, and I hope that the good people on c.l.p will give me the benefit of their experience. I am busy developing an accounting package, using Python and wxPython, together with PostgreSQL on a Unix platform or SQL Server on a Windows platform. I am a qualified accountant and have been developing accounting...
0
1,469
thread by: Jon Schull | last post Jul 18 '05 by: Jon Schull
I find that cgitb fails to show error context if I've changed my default directory, so I tried to subclass cgitb and get it to save the directory we were in when the program started. Didn't work. I'd appreciate your eyes. Problem--this apparently fails to find my sourcefile when #os.chdir is uncommented from this cgi program...
2
2,462
thread by: Andy Jewell | last post Jul 18 '05 by: Martin v. Löwis
Does anyone know of a way to dynamically reload all the imported modules of a client module? I'm writing a program that I have broken down into quite a few submodules, and the 'configuration' is done with modules too. As I am developing the app, I need to test bits and pieces here and there. This is what I currently do: In each...
0
1,727
thread by: Paradox | last post Jul 18 '05 by: Paradox
I am trying to convert some group 4 Tif images to JPG. I can load the image fine and can read attributes but every method I call raises this error (IOError: decoder group4 not available). Is there any extra package that I am needing. I searched the PDF help and the PIL website and can't find any reference to anything like that.
4
1,503
thread by: Andreas Bauer | last post Jul 18 '05 by: Fredrik Lundh
Hi, I need some information on how to deal with strings which I have divided by using split(). I'm new to python and don't know how to handle these split up strings. And I some one could recommend a good tutorial I would be very glad. Can't hardly find any. Thanks in advance.
0
1,165
thread by: A | last post Jul 18 '05 by: A
Hi, I use a free webhosting. The problem is that if a user visits my website, together with index.html( my first webpage) also 2 other web pages with ads are open. Is it possible somehow to prevent that? Or is it possible to close those 2 web pages (more or less full of advertisements) and let only mine available? Thanks for help. Ladislav
0
1,673
thread by: Daniel Holth | last post Jul 18 '05 by: Daniel Holth
Hello! I am trying to embed Python into an xmms plugin using Debian/unstable/i386, gcc 3.3.1 and Python 2.2.3+. The plugin is a shared library loaded by xmms. The plugin is dynamically linked with the python library. Running scripts works but when I try to import python extensions I get these kinds of errors: Traceback (most recent...
5
1,958
thread by: Fuzzyman | last post Jul 18 '05 by: John J. Lee
What's the score on this (the ASPN python compiler) - is it a true compiler for python ? - what does it output - binary or C++ for .NET framework............ if the latter then it could be very cool as it may work with the PocketPC 2003 SDK.... for producing binaries for PDAs from python... cool... (I'm sure my terminology is way out of line...
0
1,350
thread by: Jason Whitlark | last post Jul 18 '05 by: Jason Whitlark
One of the benefits of python always thrown about is how easy it is to use as a macro language. While this certainly has wide applicably, I have always been interested in a little more; namely, the ability to record and then edit macros, as in MS Word, Excel, etc. A recent post...
0
1,288
thread by: Duncan Smith | last post Jul 18 '05 by: Duncan Smith
Greetings. I am struggling to track down what I presume is a bug in my code. The trouble is that it only raises its head occasionally. I have managed to prune the code to the following: shutTest.py -------------------------------------------------------- import cPickle def test2(iterations): for i in range(iterations):
1
2,197
thread by: Dan Williams | last post Jul 18 '05 by: Raymond Hettinger
Is there any interest in adding a "Haskellish" take function to itertools? I know its easy enough to roll my own, I've been using: take = lambda iter, n: which works, but I was wondering if it was common enough to get into itertools? -Dan
1
2,189
thread by: Roy Smith | last post Jul 18 '05 by: Evan
Up until recently, Python was the only language I'd ever seen that used the % operator for string replacement. Today, I was perusing the C++ Boost libraries, and discoverd that boost::format uses a very similar syntax. The following lines print the same thing in Python and C++, respectively. print "int->%i, string->%s" % (42, "wugga,...
2
1,974
thread by: Paul Keating | last post Jul 18 '05 by: Mark Hammond
I need to call a C++ DLL from Python, for which I'm planning to use boost.python. But the DLL has been written to a VBA interface, and this means it expects to get variable length arrays as Windows Variants instead of lists or tuples. Anyone know how to construct a convincing Windows Variant in Python?
0
1,474
thread by: Carsten Heesch | last post Jul 18 '05 by: Carsten Heesch
Hi, I wrote some little python programs which run without problems. Now I'd like to compile them into byte-code. What do I have to do? Platform: SuSE Linux 8.2
2
8,795
thread by: Miki Tebeka | last post Jul 18 '05 by: Adam Twardoch
Hello All, I'm looking for a PDF parser. Any pointers? 10x. Miki
0
2,264
thread by: Ruslan Spivak | last post Jul 18 '05 by: Ruslan Spivak
Hello. Is it possible to convert python program to linux executable program? Thanks in advance. Best regards, Ruslan
0
1,456
thread by: Jinu | last post Jul 18 '05 by: Jinu
while i worked with xml in zope using python i got the following error. Error Type: AttributeError Error Value: documentElement i've installed pyxml,xmllib ,xmldocument .
0
2,692
thread by: Michael Welsh | last post Jul 18 '05 by: Michael Welsh
In order to learn sockets in Python I am trying to write a simple group chat server and client. I need a little nudge, please. My question contains some GUI but only as decoration. The root question is asyncore / asynchat. I have read that twisted makes this all simple, but, I wanted to get my hands dirty here for educational purposes. ...
0
2,288
thread by: Chris | last post Jul 18 '05 by: Chris
Is there some way to turn off mysql autocommit when connecting? I see no reference to "autocommit" in the db api doc. I'm trying to use transactions with mysql (using innodb tables), and it looks like I can use "begin", but am wondering if there is some other way to just turn off autocommit. Thanks, Chris
2
2,523
thread by: Meyer, Tony | last post Jul 18 '05 by: Peter Hansen
(I did try to google for an answer to this, but couldn't find anything, although plenty of instances of the warning). I don't understand this warning: >>> import fcntl C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl DeprecationWarning) >>>
1
2,052
thread by: sujata | last post Jul 18 '05 by: Aahz
Hi, I have a query regarding threads. Is it possible to create thread pools in python.i.e. create threads and then retrieve the memory allocated to it so that the same threads can be used over and over again rather than creating new threads each time i wish to execute functions many times. If its possible plz do let me know how to do so. Can...
3
3,346
thread by: YoTuco | last post Jul 18 '05 by: Michael Hudson
Does (can) an inheritance scheme like this have any adverse effects (pitt-falls) for the App class inheriting class 'A' twice? Thanx in advance for your input. class A: A_attr = 'A' ... def A_methods(self): ...
4
4,809
thread by: Graeme Matthew | last post Jul 18 '05 by: Michael Hudson
Hi all, quick one, I hope I am explaining this properly, I am wanting to do some introspection on custom object instances, for example: import md5 >>> m = md5.new() >>> type(m) <type 'md5.md5'>
2
1,870
thread by: Psymaster | last post Jul 18 '05 by: Psymaster
Does anybody know where can I get the html version for offline browsing? It's cumbersome to use the pdf. I've got dial-up and I can't connect all the time to see the reference.

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.