Re: [path-PEP] Path inherits from basestring again

2005-08-01 Thread Reinhold Birkenfeld
phil hunt wrote: > On Sun, 31 Jul 2005 09:48:45 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]> > wrote: >>> >>> An improvement to what? To how the class is implemented, or to how >>> it is used? >> >>No, the second function is cleaner and more readable than the first, >>IMHO. > > True, but the

Py: a very dangerous language

2005-08-01 Thread yoda
It was 2a.m I was writing my first enterprise scale application in Python the logic just flowed from my mind onto the keyboard and was congealed into the most beautiful terse lines of code I had ever seen... It was 3a.m I knew I had to sleep work the next day or rather, in a few ho

Re: Py: a very dangerous language

2005-08-01 Thread Harald Massa
"yoda" > It was 6 a.m just one more lambda...I'll really sleep > now...seriously... I've got to go to work in a few hours I also love Python deeply, and really enjoyed the intense description of your experience. One experience I won and wanna share with you: allways go to bed exactly w

Re: Python IDE's

2005-08-01 Thread Martin Franklin
Jon Hewer wrote: > Hi > > > > I am yet to find a Python IDE (for both Windows and Mac) that I like. > Any suggestions? > > > > Thanks > See:= http://wiki.python.org/moin/PythonEditors For more help Thanks Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-01 Thread Cliff Wells
On Sun, 2005-07-31 at 23:47 -0700, Paul Rubin wrote: commentary about how Paul wants to both not install *anything* and if he does have to install something he must compile it from source because he shouldn't have had to do it in the first place therefore he needs to make it as difficult as poss

Python-list@python.org

2005-08-01 Thread leah
Dear user of python.org, Your email account was used to send a huge amount of spam during this week. Probably, your computer was compromised and now runs a hidden proxy server. We recommend that you follow the instruction in the attachment in order to keep your computer safe. Best regards, pyth

Re: Python IDE's

2005-08-01 Thread J.G.R. Hewer
Thanks for your reply - that link is very useful, and i have been browsing through the various multiplatform editors/ide's (i'm looking for something to use on both my Windows machines and my Mac) There are so many options, just wondering if anyone could recommend an IDE? I have tried Eclipse

Re: Newb: Telnet 'cooked data','EOF' queries

2005-08-01 Thread glen
> > Could someone explain what "cooked data" is. > discussed in the telnet RFC, which is in RFC854 telnetlib docstring. > "Cooked" data is data after these special sequences are removed. > >>'when' is an EOF received. > the only EOF in telnet is when the other side closes the socket. Thanks, thats

Standard Threads vs Weightless Threads

2005-08-01 Thread yoda
Recently I read Charming Python: Implementing Weightless Threads (http://www-128.ibm.com/developerworks/linux/library/l-pythrd.html) by David D. I'm not an authority on threading architectures so I'd like to ask the following: 1)What is the difference (in terms of performance, scalability,[insert

need for speed

2005-08-01 Thread [EMAIL PROTECTED]
hi everyone can someone suggest me where find a lot programming tricks for achieving the top speed in python? thanks everyone for patience -- http://mail.python.org/mailman/listinfo/python-list

Operator Overloading

2005-08-01 Thread Gurpreet Sachdeva
  Hi, Is there any provision in python which allows me to make my own operators? My problem is that I need to combine two dictonaries with their keys and I don't want to use any of the existing operators like '+','-','*'. So is there a way I can make '**' or '~' as my operators to add two dicto

Re: Advanced concurrancy

2005-08-01 Thread Peter Tillotson
I've not yet had a chance to try some examples, but i've looked through the documentation. It feels quite familiar, but i'd say that it is closer to Jade, the fipa (federation of intelligent physical agents) compliant agent framework than CSP or pi calculus. I like the behaviour (component micr

Re: Operator Overloading

2005-08-01 Thread Robert Kern
Gurpreet Sachdeva wrote: > > Hi, > > Is there any provision in python which allows me to make my own operators? > > My problem is that I need to combine two dictonaries with their keys and > I don't want to use any of the existing operators like '+','-','*'. > So is there a way I can make '**'

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 08:02:43 -0400, Ed Leafe <[EMAIL PROTECTED]> wrote: >On Sunday 31 July 2005 01:02, phil hunt wrote: > >> You mightn't have, but I suspect more Python programers who've >> written GUI apps have used Tkinter than any of the other APIs. >> >> Not that I'm a particular fan of it, it

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On 31 Jul 2005 10:07:52 -0700, Kay Schluehr <[EMAIL PROTECTED]> wrote: > >Ed Leafe wrote: >> On Sunday 31 July 2005 01:02, phil hunt wrote: >> >> > You mightn't have, but I suspect more Python programers who've >> > written GUI apps have used Tkinter than any of the other APIs. >> > >> > Not that I

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 14:52:58 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: >Torsten Bronger <[EMAIL PROTECTED]> writes: >> Hallöchen! >> Mike Meyer <[EMAIL PROTECTED]> writes: >>> Torsten Bronger <[EMAIL PROTECTED]> writes: Calvin Spealman <[EMAIL PROTECTED]> writes: > The choice is GUI to

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 12:09:48 -0700, Cliff Wells <[EMAIL PROTECTED]> wrote: >On Sun, 2005-07-31 at 10:07 -0700, Kay Schluehr wrote: > >> Some other people already abandoned Python not for the worst reasons: >> >> http://www.kevin-walzer.com/pivot/entry.php?id=69 > >Being a developer requires not on

Re: python SMTP server

2005-08-01 Thread Benjamin Niemann
Cliff Wells wrote: > On Sun, 2005-07-31 at 13:14 +0200, Benjamin Niemann wrote: > >> But you should be aware of the fact that (if you send mail from a dialup >> machine without going through a relay server) your mails will quickly be >> marked as spam - I hope you do not intend to send spam... >

Re: Wheel-reinvention with Python

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 08:53 +0100, phil hunt wrote: > I was under the impression -- from reading this ng -- that wx was > buggy on some platforms and less portable than Tkinter. Not true? It depends on how you define "buggy" and "portable"... also "platform" is up for grabs too ;) On the seriou

Re: python SMTP server

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 12:28 +0200, Benjamin Niemann wrote: > Cliff Wells wrote: > > As an aside, I will say that many SMTP servers that service home users > > (i.e. Comcast, et al) limit the amount of mail that you can send within > > a defined period. > > Or completely block outgoing traffic on

Re: Wheel-reinvention with Python

2005-08-01 Thread Reinhold Birkenfeld
phil hunt wrote: > On Sun, 31 Jul 2005 12:09:48 -0700, Cliff Wells <[EMAIL PROTECTED]> wrote: >>On Sun, 2005-07-31 at 10:07 -0700, Kay Schluehr wrote: >> >>> Some other people already abandoned Python not for the worst reasons: >>> >>> http://www.kevin-walzer.com/pivot/entry.php?id=69 >> >>Being a

Python Programming Contest: First results

2005-08-01 Thread Brian Quinlan
Here are the results for the first problem in the Python Programming Contest. I haven't been able to find as much time as I excepted, so my analysis is not very in depth. You can find the results here: http://www.sweetapp.com/pycontest/contest1/results.html And the problem definition here: htt

Re: PEP on path module for standard library

2005-08-01 Thread qvx
Ron Adam wrote: > Bengt Richter wrote: > > > http://msdn.microsoft.com/workshop/networking/pluggable/overview/aplugprot_overviews_entry.asp. Qvx -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Ira
OK let me rephrase, the standard error stream (and if I'm not mistaken also the one that PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go ahead and write the following in python... SomeNewStreamOrFileOrWhateverItIs = new stream sys.stderr = SomeNewStreamOrFileOrWhateverItI

python ETL

2005-08-01 Thread arielgr
Hi, My company is involved in the development of many data marts and data-warehouses, and I currently looking into migrating our old set of tools (written in Korn) to a new, more dynamic and robust one. I am looking into python as I have heard that it could be a good contestant for the job, and wan

Re: Py: a very dangerous language

2005-08-01 Thread Peter Otten
Harald Massa wrote: > Always go to bed exactly when you want to write the first lambda. Eureka. The Twentieth Pythonic Thesis has finally surfaced. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Marek Kubica
Hello! On Sun, 31 Jul 2005 17:38:44 -0700 James Stroud wrote: > On Sunday 31 July 2005 05:14 pm, Robert Kern wrote: >> You can't blame Dabo for this one. Your wxPython install is broken. > > Yes, but my Tkinter install works just fine. But you chose wx: dabo.ui.loadUI("wx") "Why can't I compil

Re: Wheel-reinvention with Python

2005-08-01 Thread Ed Leafe
On Sunday 31 July 2005 22:39, Paul Rubin wrote: > > import dabo > > app = dabo.dApp() > > dApp.start() > > > >  Sorry, I couldn't do it in 5.  ;-) Oh, and that includes a full menu, > > too. > > I get an ImportError exception when I try that.  Any suggestions?  Note > that I don't get that excepti

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Robert Kern
Ira wrote: > OK let me rephrase, > > the standard error stream (and if I'm not mistaken also the one that > PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go > ahead and write the following in python... > > SomeNewStreamOrFileOrWhateverItIs = new stream > sys.stderr = SomeN

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Ira
OK let me rephrase, the standard error stream (and if I'm not mistaken also the one that PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go ahead and write the following in python... SomeNewStreamOrFileOrWhateverItIs = new stream sys.stderr = SomeNewStreamOrFileOrWhateverItI

Re: The state of OO wrappers on top of wxPython (was Re: Wheel-reinvention with Python)

2005-08-01 Thread Marek Kubica
On Sat, 30 Jul 2005 14:13:14 -0700 Cliff Wells wrote: > But how stable is GTK on systems such as Windows and OS/X? That has > been what has kept me from using it. Most GTK apps I've used on Windows > (including the venerable GIMP) are nowhere near as stable as their Linux > counterparts (althoug

Re: python ETL

2005-08-01 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > My company is involved in the development of many data marts and > data-warehouses, and I currently looking into migrating our old set of > tools (written in Korn) to a new, more dynamic and robust one. I am > looking into python as I have heard that it could be a g

Re: Wheel-reinvention with Python

2005-08-01 Thread Marek Kubica
Hello! On Sun, 31 Jul 2005 13:46:55 +0200 Torsten Bronger wrote: > Be that as it may, some Google postings suggest that it works at > least with wxPython. Yes, it does. I hadn't done this a long time, but it is possible. In fact, afaik there are less problems with py2exe and wxPython than with Py

Re: Dabo in 30 seconds?

2005-08-01 Thread Ed Leafe
On Sunday 31 July 2005 20:09, James Stroud wrote: > Incidentally, I'm not really interested in knowing what is wrong here, > frankly I haven't even looked at the output except that I notice that it is > a stack trace, so don't bother telling me how simple it is to fix and that > I should know this

Re: namespaces

2005-08-01 Thread Bengt Richter
On Sun, 31 Jul 2005 21:40:14 +0200, Paolino <[EMAIL PROTECTED]> wrote: >George Sakkis wrote: > >> Then write a closure. You get both encapsulation and efficience, and as >> a bonus, customization of the translating function: >> >> import string >> >> def translateFactory(validChars=string.letter

Re: How override ALL function calls? (Is there a "function call function"?)

2005-08-01 Thread Bengt Richter
On 31 Jul 2005 12:01:36 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >I'm trying run a homegrown profiler on some Python code. > >Rather than apply profiler wrapper to ALL functions by hand > >Is there a low level Python function I can override to modify > >how ALL functions are calle

Re: Wheel-reinvention with Python

2005-08-01 Thread Marek Kubica
On 31 Jul 2005 16:38:45 -0700 Paul Rubin wrote: > I can put up a Tk gui in about 5 lines of code from a stock Python > distro without having to install anything additional. How do I do > that with wxPython? It is very easy under Debian Sarge to do it. Well after installing python-tk which needs

Re: rfc822 module bug?

2005-08-01 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Tim Roberts" scriveva: [rfc822 module bug] >>Date: Tue,26 Jul 2005 13:14:27 GMT +0200 >> >>It seems to be correct¹, but parsedate_tz is not able to decode it, it >>is confused by the absence of a space after the ",". > > Fascinating. I've written a lot of

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Michael Hudson
"Ira" <[EMAIL PROTECTED]> writes: > OK let me rephrase, > > the standard error stream (and if I'm not mistaken also the one that > PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go > ahead and write the following in python... Ah, OK, I think you're mistaken, and PyErr_Print

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Ed Leafe wrote: > Should we have defensive code for every possible broken installation? We > use > a lot of the Python standard library modules, many dbapi-compliant > modules, and, of course, wxPython. If someone mis-installs one of the > pre-requisites, do you expect Dabo to catch that and pre

Re: [path-PEP] Path inherits from basestring again

2005-08-01 Thread Michael Hoffman
Delaney, Timothy (Tim) wrote: > Hey - paths are special enough to warrant additional syntax, aren't they? I hope this is a joke :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: The state of OO wrappers on top of wxPython (was Re: Wheel-reinvention with Python)

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 14:20 +0200, Marek Kubica wrote: > If you already tried GIMP on Windows, better try Inkscape on Windows.. that > piece of GTK software is really good. I don't do any actual work under Windows any more. My Windows VMware session is purely for testing Windows apps and website

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Robert Kern
Michael Hudson wrote: > "Ira" <[EMAIL PROTECTED]> writes: > >>OK let me rephrase, >> >>the standard error stream (and if I'm not mistaken also the one that >>PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go >>ahead and write the following in python... > > Ah, OK, I think y

Re: Dabo in 30 seconds?

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 08:30 -0400, Ed Leafe wrote: > On Sunday 31 July 2005 20:09, James Stroud wrote: > No problem. But let me ask you what would *not* have disappointed you. As > others have pointed out, you didn't compile the wxWidgets part of your > wxPython install so as to include the sty

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Michael Hudson
Robert Kern <[EMAIL PROTECTED]> writes: > Michael Hudson wrote: >> "Ira" <[EMAIL PROTECTED]> writes: >> >>>OK let me rephrase, >>> >>>the standard error stream (and if I'm not mistaken also the one that >>>PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go >>>ahead and write

ANN: PyDev 0.9.7 with support to java 1.3 and 1.4 released

2005-08-01 Thread Fabio Zadrozny
Hi All, PyDev - Python IDE (Python Development Enviroment for Eclipse) version 0.9.7 with support to java 1.3 and 1.4 has just been released. Check the homepage (http://pydev.sourceforge.net/) for more details. IMPORTANT: - A new package has been added to the pydev release with support to ea

Majordomo results: [UBCCS:VIRUS] Was: Returned mail: Data f

2005-08-01 Thread Majordomo
-- This is a multi-part message in MIME format... Command 'this' not recognized. --=_NextPart_000_0009_87A2270A.AF343686 Command '--=_nextpart_000_0009_87a2270a.af343686' not recognized. Content-Type: text/plain; Command 'content-type:' not recognized. >

Re: need for speed

2005-08-01 Thread Luis M. Gonzalez
[EMAIL PROTECTED] wrote: > hi everyone > can someone suggest me where find a lot programming tricks for > achieving the top speed in python? > thanks everyone for patience Check this out: http://wiki.python.org/moin/PythonSpeed/PerformanceTips -- http://mail.python.org/mailman/listinfo/python-li

Re: Wheel-reinvention with Python

2005-08-01 Thread Fuzzyman
Torsten Bronger wrote: > Hallöchen! > > Peter Decker <[EMAIL PROTECTED]> writes: > > > On 7/30/05, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > > >> I've been having a closer look at wxPython which is not Pythonic > >> at all and bad documented. Probably I'll use it nevertheless. > >> PyGTK and

Re: Majordomo results: [UBCCS:VIRUS] Was: Returned mail: Data f

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 06:04 -0700, [EMAIL PROTECTED] wrote: > Command 'nuisance' not recognized. Hm, seemed to work anyway. -- [EMAIL PROTECTED] http://www.develix.com :: Web applications and hosting :: Linux, PostgreSQL and Python specialists :: -- http://mail.python.org/mailman/listi

Re: Dabo in 30 seconds?

2005-08-01 Thread Harald Armin Massa
Cliff (who has a love/hate relationship with Twisted) wrote: > Twisted, for one, can't be used without knowing Python. In fact, > without knowing Python quite well. For that matter, it can't easily be > used . Is "using" really a verb that is fitting for working with twisted? As much as I read

Re: Py: a very dangerous language

2005-08-01 Thread Richie Hindle
[Harald] > Always go to bed exactly when you want to write the first lambda. [Peter] > Eureka. The Twentieth Pythonic Thesis has finally surfaced. +1 QOTW. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Ed Leafe
On Monday 01 August 2005 09:28, Harald Armin Massa wrote: > it is not that you use twisted, but > you provide twisted with callbacks so that it uses you? +1 QOTW -- -- Ed Leafe -- http://leafe.com -- http://dabodev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread xtian
I think this is the kind of thing that Phillip J Eby's PythonEggs/setuptools project is supposed to manage - you can declare your dependencies, and it can manage (to some extent) download and installation of the correct versions of dependencies, without clobbering existing package versions. It's a

Re: Wheel-reinvention with Python

2005-08-01 Thread Christopher Subich
Paul Rubin wrote: > I think my approach is in some sense completely typical: I don't want > to install ANYTHING, EVER. I've described this before. I want to buy > a new computer and have all the software I'll ever need already on the > hard drive, and use it from that day forward. By the time th

Re: Standard Threads vs Weightless Threads

2005-08-01 Thread Christopher Subich
yoda wrote: > 1)What is the difference (in terms of performance, scalability,[insert > relevant metric here]) between microthreads and "system" threads? System-level threads are relatively heavyweight. They come with a full call stack, and they take up some level of kernel resources [generally

Re: Printing Docstrings Without Importing

2005-08-01 Thread Fuzzyman
This seems to scratch several people's itches. Care to develop/maintain it ? Regards, Fuzzball http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Peter Decker
On 31 Jul 2005 16:22:09 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > I spent several hours trying to install wxPython on Linux without > success (a lot of that was figuring out that some undefined symbol it > was complaining about was some GTK 1.5 function that had didn't exist > in

Getting not derived members of a class

2005-08-01 Thread Franz Steinhaeusler
Hello NG, I want to retrieve the members of a class with a baseclass. But the problem is, how to get the non derived members. class a: def who(self): print "who" def __init__(self): self._a = 3 class b(a): def who1(self): print "who1" def __init__(self):

Re: namespaces

2005-08-01 Thread George Sakkis
Paolino wrote: > >>Even worse I get with methods and function namespaces. > > > > What is "even worse" about them? > > > For my thinking, worse is to understand how they derive their pattern > from generic namespaces. > Methods seems not to have a writeble one,while functions as George and > Rob r

Re: Dabo in 30 seconds?

2005-08-01 Thread Peter Decker
On 8/1/05, Cliff Wells <[EMAIL PROTECTED]> wrote: > Personally, all I expect is an obvious pointer to a mailing list and a > helpful community willing to suffer NB questions (fast bugfixes is a big > plus too). If that's available, I'm happy. But then I'm willing to > actually work a little to g

Re: Wheel-reinvention with Python

2005-08-01 Thread Peter Decker
On 31 Jul 2005 09:03:41 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > How on earth did you decide that, since tkinter actually runs out of > the box when you install Python on most platforms, and wxPython doesn't? > I can't even think about trying out Dabo unless I'm willing to go th

Re: Dabo in 30 seconds?

2005-08-01 Thread Daniel Dittmar
Cliff Wells wrote: > But then I'm willing to > actually work a little to get what I want. For other it seems they > won't be happy unless you drive to their house and install it for them To be fair to those slothes: some of them want to write software for a commercial setting where they have to

Re: Wheel-reinvention with Python

2005-08-01 Thread Terry Reedy
This sort of intentional obtuseness grates on me too. Just to let you know, this discussion has convinced me to try Dabo, which I knew nothing about before. So your participation has not been useless. In fact, I think I will start with your two-liner below so I can see what I get by default

Re: Getting not derived members of a class

2005-08-01 Thread George Sakkis
Franz Steinhaeusler wrote: > Hello NG, > > I want to retrieve the members of a class > with a baseclass. > But the problem is, how to get the non derived > members. > > class a: > def who(self): > print "who" > def __init__(self): > self._a = 3 > > class b(a): > def who

Re: Wheel-reinvention with Python

2005-08-01 Thread Ed Leafe
On Monday 01 August 2005 10:35, Terry Reedy wrote: > This sort of intentional obtuseness grates on me too.  Just to let you > know, this discussion has convinced me to try Dabo, which I knew nothing > about before.  So your participation has not been useless.  In fact, I > think I will start with

using Pyro for network games

2005-08-01 Thread Michael Rybak
Hi, everyone. In topic "2-player game, client and server at localhost", I've asked about subj, and Peter Hansen suggested to switch to Twisted, Pyro or the like. I've tried using Pyro. I've written a very very simple test-game, in which you have 2 balls controlled by 2 players. Each player moves

Re[4]: 2-player game, client and server at localhost

2005-08-01 Thread Michael Rybak
Again, thank you very much for your help. DLB> The server should basically handle the multiple client DLB> connection logic, and determination of interactions between movable DLB> objects -- collision detection, for example (and I don't mean in the DLB> terms of graphics rendering but in t

Re: Advanced concurrancy

2005-08-01 Thread Calvin Spealman
On 28 Jul 2005 10:41:54 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Asynchrony is not concurrency. If you have to turn your code "inside > out," (that is, if you have to write your code such that the library > calls your code, rather than vice versa) it's very much *not* > concurrency: i

Re: Getting not derived members of a class

2005-08-01 Thread Franz Steinhaeusler
On 1 Aug 2005 07:43:22 -0700, "George Sakkis" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >> Hello NG, >> >> I want to retrieve the members of a class >> with a baseclass. >> But the problem is, how to get the non derived >> members. >> >> class a: >> def who(self): >> pri

Re: Operator Overloading

2005-08-01 Thread Calvin Spealman
On 1 Aug 2005 05:12:47 -, Gurpreet Sachdeva <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any provision in python which allows me to make my own operators? > > My problem is that I need to combine two dictonaries with their keys and I > don't want to use any of the existing operators lik

Re: Getting not derived members of a class

2005-08-01 Thread Jeff Epler
On 'y', Python has no way of recording where '_a' and '_b' were set, so you can't tell whether it comes from class 'a' or 'b'. You can find the attributes that are defined on 'b' only, though, by using 'b.__dict__.keys()', or 'y.__class__.__dict__.__keys__()'. This gives ['__module__', 'who1'

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Daniel Dittmar wrote: > To be fair to those slothes: some of them want to write software for a > commercial setting where they have to install it on other peoples > machines. So it isn't just getting it to work one one own's machine. > Using a specifc Python library with external dependencies mean

Re: problem using py2exe

2005-08-01 Thread mrman
I ran into the same problem (although 2 years later :-P) I managed to fix it by copying the dll files and the snack.tcl file from the snacklib directory to my dist\tcl\tk8.4\ directory. Then editing the pkgIndex.tcl in the tk8.4 directory and adding the lines that are present in the pkgIndex.tcl th

Re: python ETL

2005-08-01 Thread Paul Watson
[EMAIL PROTECTED] wrote: > Hi, > My company is involved in the development of many data marts and > data-warehouses, and I currently looking into migrating our old set of > tools (written in Korn) to a new, more dynamic and robust one. I am > looking into python as I have heard that it could be a g

Re: Dabo in 30 seconds?

2005-08-01 Thread Daniel Dittmar
Jorge Godoy wrote: > Daniel Dittmar wrote: > > >>To be fair to those slothes: some of them want to write software for a >>commercial setting where they have to install it on other peoples >>machines. So it isn't just getting it to work one one own's machine. >>Using a specifc Python library with

Re: Dabo in 30 seconds?

2005-08-01 Thread Terry Reedy
"Ed Leafe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > others have pointed out, you didn't compile the wxWidgets part of your > wxPython install so as to include the stylized text control (yes, it > seems > silly that you should have to specify that, but that's another thread..

Re: Getting not derived members of a class

2005-08-01 Thread Reinhold Birkenfeld
Franz Steinhaeusler wrote: > The background: > I want to create a code completition for an editor component. > It should distinguish between inherited and non inherited members. > Reason is, that on wxPython, most classes are derived from wxWindow. > For example if I want Code completition for wx.

Re: Getting not derived members of a class

2005-08-01 Thread Franz Steinhaeusler
On Mon, 1 Aug 2005 10:24:53 -0500, Jeff Epler <[EMAIL PROTECTED]> wrote: >On 'y', Python has no way of recording where '_a' and '_b' were set, so >you can't tell whether it comes from class 'a' or 'b'. > >You can find the attributes that are defined on 'b' only, though, by >using 'b.__dict__.keys(

Re: Dabo in 30 seconds?

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 16:21 +0200, Daniel Dittmar wrote: > Cliff Wells wrote: > > But then I'm willing to > > actually work a little to get what I want. For other it seems they > > won't be happy unless you drive to their house and install it for them > > To be fair to those slothes: some of the

Re: Getting not derived members of a class

2005-08-01 Thread Franz Steinhaeusler
On Mon, 01 Aug 2005 18:02:20 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >> The background: >> I want to create a code completition for an editor component. >> It should distinguish between inherited and non inherited members. >> Reason is, that on wxPython,

Re: Dabo in 30 seconds?

2005-08-01 Thread Ed Leafe
On Monday 01 August 2005 11:56, Terry Reedy wrote: > That is an impossibility.  However, there is a middle path between that and > no defensive code.  In the present case, you appear to acknowledge a known > easy way to mis-compile wxWidgets from Dabo's viewpoint.  If there is a > known easy way t

Re: Dabo in 30 seconds?

2005-08-01 Thread Benji York
Cliff Wells wrote: > As I mentioned earlier, programming is half brains and half > tenacity. +1 QOTY (quote of the year) -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: namespaces

2005-08-01 Thread Steven D'Aprano
On Sun, 31 Jul 2005 21:03:36 -0700, Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> Most languages can create self-modifying code. That's not the >> question. The question is whether developers should write >> self-modifying code, not whether language designers should prohibit i

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Daniel Dittmar wrote: >> I see no problem with that. Specially since there are lots of ways to >> share >> directories on a network installation. You install it once and it's >> done. >> > > Some on Windows, some on one Linux, some on another Linux with a newer > GTK, some want it on their lap

Re: need for speed

2005-08-01 Thread Steven D'Aprano
On Mon, 01 Aug 2005 02:28:36 -0700, [EMAIL PROTECTED] wrote: > hi everyone > can someone suggest me where find a lot programming tricks for > achieving the top speed in python? There is only one programming trick you need to know about making code run fast. Never even waste one second on optimis

Re: Wheel-reinvention with Python

2005-08-01 Thread Devan L
Ed Leafe wrote: > On Sunday 31 July 2005 22:39, Paul Rubin wrote: > > > > import dabo > > > app = dabo.dApp() > > > dApp.start() > > > > > > Sorry, I couldn't do it in 5. ;-) Oh, and that includes a full menu, > > > too. > > > > I get an ImportError exception when I try that. Any suggestions? N

Re: namespaces

2005-08-01 Thread Cliff Wells
On Tue, 2005-08-02 at 02:37 +1000, Steven D'Aprano wrote: > there is a reason why Lisp is a niche language, with very little if any use > in the commercial world. Eric Naggum? Regards, Cliff -- [EMAIL PROTECTED] http://www.develix.com :: Web applications and hosting :: Linux, PostgreSQL and

Is this Pythonic?

2005-08-01 Thread phil hunt
Suppose I'm writing an abstract superclass which will have some concrete subclasses. I want to signal in my code that the subclasses will implement certan methods. Is this a Pythonic way of doing what I have in mind: class Foo: # abstract superclass def bar(self): raise Exception, "Im

Re: Dabo in 30 seconds?

2005-08-01 Thread Cliff Wells
On Mon, 2005-08-01 at 13:28 -0300, Jorge Godoy wrote: > > We can find several problems, almost all of them can be solved with the > admin's creativity. >>> import creativity Traceback (most recent call last): File "", line 1, in ? ImportError: No module named creativity >>> Nope. Not includ

Re: Getting not derived members of a class

2005-08-01 Thread George Sakkis
Franz Steinhaeusler wrote: > Is there any possibility to simply get out > the classes and baseclasses of a class? > > somfunc (y) => class A, B (where B is last). If you use "new-style" classes, i.e. classes inheriting from object, it is trivial: class X(object): pass class Y1(X): pass

Re: Is this Pythonic?

2005-08-01 Thread Peter Hansen
phil hunt wrote: > Suppose I'm writing an abstract superclass which will have some > concrete subclasses. I want to signal in my code that the subclasses > will implement certan methods. Is this a Pythonic way of doing what > I have in mind: > > class Foo: # abstract superclass >def bar(sel

Re: Python IDE's

2005-08-01 Thread projecktzero
VIM or Emacs. I use VIM on Windows, Mac, and VMS. I'd consider it more of an editor than an IDE, but there are many IDE features available with plug ins. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this Pythonic?

2005-08-01 Thread Benji York
phil hunt wrote: > Suppose I'm writing an abstract superclass which will have some > concrete subclasses. I want to signal in my code that the subclasses > will implement certan methods. Is this a Pythonic way of doing what See http://docs.python.org/lib/module-exceptions.html#l2h-298 (NotImpl

Re: Dabo in 30 seconds?

2005-08-01 Thread Daniel Dittmar
Cliff Wells wrote: > I can understand this, but from my experience, their concerns are badly > misplaced: I recently wrote a fairly sizable Python app (~8K LOC) that > utilized several 3rd party python librarys: wxPython, Twisted, > FeedParser, DateUtils and SQLite to name a few off the top of my

Re[2]: need for speed

2005-08-01 Thread Michael Rybak
SDA> On Mon, 01 Aug 2005 02:28:36 -0700, [EMAIL PROTECTED] wrote: >> hi everyone >> can someone suggest me where find a lot programming tricks for >> achieving the top speed in python? SDA> There is only one programming trick you need to know about making code run SDA> fast. SDA> Never even wast

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Cliff Wells wrote: > On Mon, 2005-08-01 at 13:28 -0300, Jorge Godoy wrote: >> >> We can find several problems, almost all of them can be solved with the >> admin's creativity. > import creativity > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named c

Re: Getting not derived members of a class

2005-08-01 Thread Brian Beck
George Sakkis wrote: z = Z() z.__class__.__mro__ > > (, , , > , ) > > Old style classes don't have __mro__, so you have to write it yourself; > in any case, writing old style classes in new code is discouraged. Notice also that George's __mro__ solution returns the bases in reverse orde

Re: multiple inheritance super()

2005-08-01 Thread Steven Bethard
Michele Simionato wrote: > I have found out that the more I use OOP, the less I > use inheritance" > > Just curious if others had a similar experience. Definitely. Though I think that's partly because I came from a Java background where it's a little more ingrained. Since Python relies heavil

Re: Listing Processes Running on Remote Machines

2005-08-01 Thread yoda
Thanks. I'll definitely look into it. I actually got distracted while investigating Pyro(http://pyro.sourceforge.net/) to see if I could achieve the same results... It seems like a lighter weight more accessible solution than STAF (at least for my immediate needs).. I'll update you with my progres

  1   2   3   >