473,796 Members | 2,560 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,154
thread by: Tina Li | last post Jul 18 '05 by: Tina Li
Hello, I have a cascade menu all of whose items I want to delete. It's natural to pick up deletemenuitems(menuname, start, end). But what would the 'end' be? Is there a list of menu items accessible somewhere so that I can get its size? Thanks, Tina
4
9,860
thread by: Sami Viitanen | last post Jul 18 '05 by: Donald 'Paddy' McCarthy
Hello, Is there any other way to set variables than os.putenv(). Putenv doesn't actually put any values to actual system variables.. I'm trying to set CVSEDITOR variable automatically from script so that user wouldn't have to set that him/herself. CVS can't use variable set with putenv().
6
1,652
thread by: Gregor Lingl | last post Jul 18 '05 by: Lee Harr
Hi, is it possible to "write-protect" a definite set of names of a module, especially of the __main__ module? If so, how? Regards, Gregor
5
2,569
thread by: Shu-Hsien Sheu | last post Jul 18 '05 by: John Roth
Hi, Does the seek method would close the file object after using a for loop? My program looks like this: f = open('somefile', 'r') for lines in f: some operations f.seek(0)
2
2,419
thread by: Raj Batra | last post Jul 18 '05 by: Thomas Heller
Hi, I've created a dll that you can import into python. The function calls an ostringstream class. Calling this function repeatedly in python will cause a Microsoft Visual C++ Debug Library error: Debug Assertion Failed! Program: C:\Program Files\Python22\python.exe File: dbgheap.c Line: 346
6
2,210
thread by: Axel Straschil | last post Jul 18 '05 by: Axel Straschil
Hi! I've got an class with a couple of depending methods. I want to inheritance and create a new class where just one method ist overwritten. My problem: When python is executing the mother-method, not the depending mother-method is taken, it take the method of the chield.
2
1,746
thread by: Ivan Voras | last post Jul 18 '05 by: Aahz
Is it true what I heard (as a "rumour" of sorts), that in multithreaded Python programs global variables are already automagically protected by mutexes? Can someone clarify on that? -- -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke
3
6,226
thread by: Tomas Kukosa | last post Jul 18 '05 by: Aaron Lav
Hello, does anybody know any way how to read ASN.1 source into Python? I can not find any ASN.1 parser. The next way can be ASN.1 -> XML -> Python but I did not find any ASN.1 -> XML convertor which keeps all ASN.1 information in XML. E.g. ASN2XSD tool from obj-sys.com loses information about extension mark position. Thanks,
1
4,051
thread by: Andrew MacIntyre | last post Jul 18 '05 by: Michael Hudson
I'm seeing a bizarre situation where IndexErrors are being thrown with "tuple index out of range" error strings. The scenario is something like: l = for a, b in l: ...
3
5,126
thread by: Link | last post Jul 18 '05 by: Ted Holden
Dear sir, I am used to developing C program on MSVC7.0 platform. This is my first time to use Python for calling by C program. Now, it is hard to deal with the problem about extracting the variable which be definied in Python. That how can I do? I have gotten the JPython 's sample that the following code can be looked. Have anyone help...
2
1,649
thread by: disgracelands | last post Jul 18 '05 by: John J. Lee
In my code i have setup sys.stdout and sys.stderr as file objects so that i can easily track whats going on during the course of my program. So far its proving useful but the objects seem to be buffering any text supplied to their write() functions and when i hit an error condition and have to exit early they fail to write and i'm left with...
9
3,280
thread by: hokieghal99 | last post Jul 18 '05 by: Duncan Smith
Hi, I'm trying to do this: ------------------------------ a="192." b="168." c="1." r = range(256) for r in r:
2
3,346
thread by: Uwe Schmitt | last post Jul 18 '05 by: John J. Lee
Hi, I tried to build python 2.3 on a windows 2k machine using mingw. configure works fine, but when compiling Module/posixmodule.c I get lots of warnings, one is 'SIGCHLD undeclared' (first use in this function). Did anyone suceed in building Python + mingw ?
1
5,059
thread by: cyril | last post Jul 18 '05 by: cyril
Hi, I have made a socket server written in C (and an associate client in C). All is working fine when the communication is between my C coded client and my C coded server. But now I have to send a binary file to my C coded server via Python .... and the server side keep bloquing on read (I try to do (on the server side) a fcntl(socket,...
2
1,220
thread by: Stephen Boulet | last post Jul 18 '05 by: Ulrich Petri
I'm trying to write an RE to match a string that might or might not be ther and everything past it up to another string that might or might not be there and everything past it to a third string that might or might not be there and everything past it. Say my strings are "STRING1", "STRING2", and "String3". Would the re be: ...
4
1,687
thread by: Ladvánszky Károly | last post Jul 18 '05 by: Thomas Heller
Could someone suggest me how to gather various information (version number etc.) from a Windows DLL? Thanks for any help, Károly
0
1,338
thread by: Fortepianissimo | last post Jul 18 '05 by: Fortepianissimo
A while ago I decided to use simpleparse to write a parser for a kind of formula representation that I created. This representation is typed, so there're invalid parses to reject based on sematnics ground (type mismatch, etc.) I checked simpleparse documentation, and the only thing which seems to be close is this CallTag thing, but it doesn't...
3
1,725
thread by: Grant Edwards | last post Jul 18 '05 by: Christos TZOTZIOY Georgiou
Is it just me, or does the "new style american girlfriend" line from "Sixteen Candles" pop into anybody else's head when the see the phrase "new style classes" mentioned on a subject line? Ah. Just me? I was afraid of that. --
6
2,588
thread by: Todd Stephens | last post Jul 18 '05 by: Todd Stephens
Is there such a module containing audio tools? I am looking specifically for tools to manipulate ogg-vorbis and convert other formats (mp3, wav) to ogg. -- Todd Stephens ICQ# 3150790 "A witty saying proves nothing." -Voltaire
0
1,529
thread by: #TAN THIAM HUAT# | last post Jul 18 '05 by: #TAN THIAM HUAT#
can expert out there dealing in this kind of interface between MATLAB and Python? there is a link http://claymore.engineer.gvsu.edu/~steriana/Python/pymat.html which might be useful. any comments or ideas to share are welcome
16
7,128
thread by: M-a-S | last post Jul 18 '05 by: Duncan Booth
Can anybody explain this: Python 2.3 (#46, Jul 29 2003, 18:54:32) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> None = 3 <stdin>:1: SyntaxWarning: assignment to None >>> False = 4 >>> True = 5 >>>
6
4,276
thread by: sj | last post Jul 18 '05 by: sj
I have written several small shell utilities in Python and typically use comments at the start of the source file as documentation. A command line option allows the user to read this documentation. The problem is that I have to explicitly code the source files location within the source which is not very portable. Is there anyway for a...
7
2,393
thread by: Stephen Boulet | last post Jul 18 '05 by: Wilk
First of all, I'm not sure that the easiest way to do this is with python ... I'd like to set up a web page that would accept a text file, process it with a local program, and then make available generated pdf and postscript files for downloading. I'd like to limit the size of the file to be uploaded. I have apache2 already up. Is this...
0
1,111
thread by: Hemanth P.S. | last post Jul 18 '05 by: Hemanth P.S.
I installed PySqlite 0.4.3 on my Mandrake Linux 9.1 which has Python2.2. But when I say "import sqlite" in the python interpreter, I get an error saying, "libsqlite.so.0 not found". I searched and found only the file _sqlite.so in /usr/lib/python2.2/site-packages/. Is there something obvious I am missing? I installed pysqlite using the...
4
10,396
thread by: Gordon | last post Jul 18 '05 by: Gordon
Hi, I was wondering if someone could point me in the direction of some online exercises to help me learn to program (in Python). I'm currently working through Magnus Hetland's Practical Python, which doesn't have any exercises/problem sets (for the beginning chapters on things like string manipulation etc). I'd rather not get another...

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.