multiple inheritance with builtins

2005-03-05 Thread Giovanni Bajo
Hello, I noticed that bultin types like list, set, dict, tuple don't seem to adhere to the convention of using super() in constructor to correctly allow diamond-shaped inheritance (through MRO). For instance: >>> class A(object): ... def __init__(self): ... print "A.__init__" ...

[ANN] Alternative Readline for Windows -- Binary Installer for Python 2.4 released

2005-03-05 Thread Chris Gonnerman
This is to announce the release of a binary installer for my Alternative Readline for Windows. This module provides interactive command-line editing for Python on Windows. I realize the console functions of Windows 2000, XP, and 2003 work in the newest Python versions, but it appears that many p

Re: using python to parse md5sum list

2005-03-05 Thread James Stroud
Among many other things: First, you might want to look at os.path.walk() Second, look at the string data type. Third, get the Python essential reference. Also, Programming Python (O'Riely) actually has a lot in it about stuff like this. Its a tedious read, but in the end will help a lot for adm

using python to parse md5sum list

2005-03-05 Thread Ben Rf
Hi I'm new to programming and i'd like to write a program that will parse a list produced by md5summer and give me a report in a text file on which md5 sums appear more than once and where they are located. the end end goal is to have a way of finding duplicate files that are scattered across a l

Re: site-packages versus site-python

2005-03-05 Thread msoulier
> Well, broadly, the reason is that it allows version-specific code to be > included in libraries. I've actually found this to be a bit of a pain. I build packages against say, python2.2, and if you upgrade python to 2.3 the package breaks. The code works fine so saying it requires python >= 2.2 s

How do I import everything in a subdir?

2005-03-05 Thread Dfenestr8
Hi. I have a program which I want a plugin directory for. I figured the way to go about that would be to just add a plugin/ dir to sys.path, and import everything in it. Then my program can just execute the main() method of each imported plugin. Is that a good way to go about it? If so, how do I

Re: os.join Windows action

2005-03-05 Thread John Machin
Michael Hoffman wrote: > Colin J. Williams wrote: > > > C:\XXX is required, C:XXX is not acceptable. > > C:XXX is acceptable, it just means something entirely different from > C:\XXX. There is a current working directory on each drive. C:XXX is > file XXX in the current directory on drive C:. Fur

Modifying Call Tips and Intellisense Behavior

2005-03-05 Thread pytopo
I like the way call tips displays argument variables for functions when you type the "(" after the function name. However, if one of the arguments to the function is something like "SomeMod.attribute", the intellisense will display all the exposed methods and attributes when "SomeMod." is typed.

yum install python2.4

2005-03-05 Thread richardun
My goal is to install python2.4 using yum (wouldn't you know it, it's a dependency for something else). >From this page (), I followed the following instructions: 1. ...creat "/etc/yum.repos.d/python24.repo" with the following lines: [python24] name=Fedora Core $releasever - $basearch - Python 2.

Can a method in one class change an object in another class?

2005-03-05 Thread Stewart Midwinter
I've got an app that creates an object in its main class (it also creates a GUI). My problem is that I need to pass this object, a list, to a dialog that is implemented as a second class. I want to edit the contents of that list and then pass back the results to the first class. So my question i

Tough Spawn Problem

2005-03-05 Thread googlemike
I'm trying to use Python and PyGTK + Glade, along with Bash. I want to make a GUI for the Linux vpnclient command-line tool. (Look for linux-vpnclient.tar.gz on the Internet if you are curious.) Anyway, this vpnclient tool connects to VPN and then stays locked like that while the VPN connection is

Re: Setting default option values for Tkinter widgets

2005-03-05 Thread [EMAIL PROTECTED]
yep, that works better under Windows. Pretty obscure use of Python, though! :-) S -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 COM and data types / direction

2005-03-05 Thread Tim Roberts
Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > >Hello everybody, > >i wonder how the win32 COM extension handles different C-int types >(short, int, long). All of those types are passed on the stack as 32-bit dwords. No problem. >Another question for me is weather the >"out-direction" of par

Modifying the Python interpreter to create a custom secure version

2005-03-05 Thread Gouda Man
Hey everyone, I'm embedding the Python interpreter within my program to use as a scripting language. However, one of the unique features of our program is the ability of the internal language to possess per-object security permissions and restricted execution. Therefore, we need to add extra "

<    1   2