473,549 Members | 2,741 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
2,314
thread by: dbrown2 | last post Jul 18 '05 by: dbrown2
I'm having some trouble using kbhit inside the editor enviroments. I'm using win2000 with Python2.3 and win32all v157 versions. Any pointer on how this should be handled would be appreciated. Is there another non-blocking way to detect a key press? Here's the code that is causing the trouble. If I run this by double-clicking then it...
0
1,090
thread by: NYC-SEARCH | last post Jul 18 '05 by: NYC-SEARCH
JOB: Software Engineer (Python/C++): San Mateo, CA DETAILS: http://www.nyc-search.com/jobs/python-c.htm
0
1,073
thread by: Christoph Becker-Freyseng | last post Jul 18 '05 by: Christoph Becker-Freyseng
Hello, I started some profiling with '2.1.3 (#1, Sep 7 2002, 15:29:56) \n' and got the following output: 6067913 function calls in -3311.947 CPU seconds Also the cumulative times are affected (at least of some calls) It took some time to run my program and so I guess there's a overflow in the seconds counter.
7
2,067
thread by: Elaine Jackson | last post Jul 18 '05 by: Elaine Jackson
Two quick newbie questions: 1) Does Python have passing-by-reference? 2) In ordinary parlance, "deep" implies "shallow" but not conversely. In the Python "copy" module (if I understand correctly), the implication goes the other way. Do you find this a nuisance? Peace, EJ
0
1,511
thread by: Jane Austine | last post Jul 18 '05 by: Jane Austine
There is a test code named test_env_close in bsddb/test, but it doesn't test the case thoroughly. There seems to be a bug in closing the db environment first -- the lock is not released, and sometimes it seg-faults. Following is the code that shows this bug. <code> import os from bsddb import db
3
6,613
thread by: Marko Faldix | last post Jul 18 '05 by: Marko Faldix
Hello, I am looking for a language to achieve lists of all NT users and groups of a given NT domain on a Windows 2000 Server. It has to run within a webscript, so vbscript with windows scripting host is considered first. But before I dive into this, isn't it possible to do it with win32all? An ideal result would be something like the...
2
1,455
thread by: Dan Rawson | last post Jul 18 '05 by: Alexander Schmolck
How can I reload a class at the interactive prompt?? >>> from MyClass import MyClass1 >>> x = MyClass1() ...... edit MyClass.py to modify a method in another window . . . >>> reload(MyClass1) (or reload(MyClass), or ...) which fails >>> from MyClass import MyClass1
5
3,520
thread by: Matt Smith | last post Jul 18 '05 by: Matt Smith
Hi, all. Just a quick question, when setting a COM process to read a value from a pre-defined register index, I think, I have to change the variable that the value will be returned to (as I have to do for the same function in perl), into a VARIANT, However when i run the variant code.... 'serialIndex =...
4
21,089
thread by: O. Koch | last post Jul 18 '05 by: John J. Lee
Until now, i know that ftplib doesn't support proxies and that i have to use urllib2. But i don't know how to use the urllib2 correct. I found some examples, but i don't understand them. Is there anyone who can help me?
1
2,588
thread by: Francisco Miguel Montenegro Montes | last post Jul 18 '05 by: Kiyo Kelvin Lee
Hi, perhaps some of you can help me... I'm installing Python 2.3 (in Linux RedHat 8.0) and I need to build it like a shared library, because I want to interact Python with PostgreSQL. Following the README instructions, I try: ../configure --enable-shared --prefix=/whatever (I'm not root of my system, so I can't use /usr/local/) make...
18
2,775
thread by: Michele Simionato | last post Jul 18 '05 by: Michael Hudson
I wonder what is the recommended way of using Tkinter together with a command line oriented application. I have in mind something like that: import cmd,sys class CMD(cmd.Cmd): def do_this(self,*args): draw_a_diagram() def do_that(self,*args):
0
5,361
thread by: Wicked | last post Jul 18 '05 by: Wicked
Hi all, Has anyone got rpm.py? Is this a class/module for Python? I am getting the following error: File "./extra/scripts/update_release.py", line 42, in ? import rpm ImportError: No module named rpm
5
125,700
thread by: Catherine Yang | last post Jul 18 '05 by: Michael Hudson
Hi, A question about how to execute a system command from python program. e.g. in a python script, I need to run another program written in C++, and after that come back to the same python program. Is it the system module, and which function do I use to do this? Thanks a lot Catherine
0
1,103
thread by: PoulsenL | last post Jul 18 '05 by: PoulsenL
I have a number of text fields with different ways of exressing currency. Examples: 1 512,3 M 0.214,0 m 1 123 k 1,234,567 1.235.458,90 1,234,324 m (Where in this case m is to be conveyed as k. My only check is to look at the final number and adjust by /1000 if greater than say 1
1
3,714
thread by: Eric | last post Jul 18 '05 by: Fabien SK
I would like to Write an Excel Addin like the Outlook Addin in the COM samples but i am stuck since after examining the windows registry, there is no Excel addin Key. The application would utilise interface IDTExtensibility2 to create buttons and menus on excel which will be hooked up to perform certain functions. How can i go about...
0
2,066
thread by: Emmanuel Jean-Louis | last post Jul 18 '05 by: Emmanuel Jean-Louis
Is there a way that I can get/read these streams of every minute python email instead of poping up my screen? It bugs me to have these email coming like that. Thx. Emmanuel
1
1,446
thread by: Jim Hefferon | last post Jul 18 '05 by: Aahz
I am writing a class that walks through a file tree and (among other things) filters out which files it considers. So I want to have __init__( .. ,filterExpression='..') For the default I want to filter nothing. So I need a Python regular expression that never matches. What is (the best) one? Thanks for any help, Jim
0
1,487
thread by: pythonhda | last post Jul 18 '05 by: pythonhda
Hi All, I writing a program to emulate a URL (essentially a very simple raw data proxy). The client should always think that it is only talking to the proxy and the proxy acts like the url it's emulating. My *immediate* problem is how do I tell the client that the web server has finished sending? I know that when you recieve 0 bytes from...
1
3,690
thread by: Brandon Michael Moore | last post Jul 18 '05 by: Bengt Richter
I'm trying to test a web application using a tool written in python. I would like to be able to generate random values to put in fields. I would like to be able to generate random dates (in a specified range), random strings (specifying allowed characters and a distribution of lengths), or choose randomly between several generators (for better...
0
1,433
thread by: Doug Farrell | last post Jul 18 '05 by: Doug Farrell
Hi all, I just installed the wxPython-2.4.1.2 demo RPM on my RedHat Linux 9.0 machine, which has Python 2.2.2 on it, and I'm having a problem running the demo.py program. Here is a trace of the results: python demo.py The font "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1, -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-1,...
0
1,237
thread by: ywsat | last post Jul 18 '05 by: ywsat
Has anyone experienced the problem where PythonWin debugger hangs you stop the debug session? I'm running Windows 2000. Python 2.3. I have to kill it through the task manager each time. Thanks
2
3,967
thread by: JustSomeGuy | last post Jul 18 '05 by: Gerrit van Dyk
I use to write C++ Apps that called Tcl/Tk from C++. I such done with Python?
1
3,014
thread by: bezeee | last post Jul 18 '05 by: Alan Kennedy
At my work we are in the process of building a tool to test an XML based API. Basically, XML in and XML out over http. Currently, there are two engines that do all of the schema validations, xml diffs, sending/receiving, etc. One of these engines in implemented in C# and the other in Java. Now the choice comes down to which scripting...
5
7,751
thread by: Lukas Kasprowicz | last post Jul 18 '05 by: Christopher Boomer
Hi Folks, I have a string filled with much text converted from a tuple. when I try to do someting like this: exclusion = re.sub("\\xf6", "%F6", exclusion) # ö exclusion = re.sub("\\xfc", "%FC", exclusion) # ü exclusion = re.sub("\\xe4", "%E4", exclusion) # ä exclusion = re.sub("\\xdf", "%DF", exclusion) # ß
5
2,499
thread by: Paul Miller | last post Jul 18 '05 by: Paul Miller
We've run into minidom's inabilty to handle large (20+MB) XML files, and need a replacement that can handle it. Unfortunately, we're pretty dependent on a DOM, so a pulldom or SAX replacement is likely out of the question for now. Has someone done a more efficient minidom replacement module that we can just drop in? Preferrably written in C?

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.