what is it
--
A Python package to parse and build CSS Cascading Style Sheets. Partly
implements the DOM Level 2 Stylesheets and DOM Level 2 CSS interfaces.
The implementation uses some Python standard features like standard
lists for classes like css.CSSRuleList and is hopefully a bit
Hallöchen!
Paul Rubin http://[EMAIL PROTECTED] writes:
Torsten Bronger [EMAIL PROTECTED] writes:
I can't really understand your hostility towards non-Tkinter
toolkits. In the case of wxPython, it's part of SUSE, which is
probably also true for Fedora and Mandriva. Installing is as
easy
Hallöchen!
Cliff Wells [EMAIL PROTECTED] writes:
On Sun, 2005-07-31 at 23:46 +0200, Torsten Bronger wrote:
Cliff Wells [EMAIL PROTECTED] writes:
[...]
Well, I think this exposes one of the more interesting sides of
open source software in general. For better or worse, you get
choices.
Torsten Bronger [EMAIL PROTECTED] writes:
No it's not on Fedora, at least FC3.
It may not be on a DVD but the RPMs are avaiable where Fedora should
look for them.
I had huge trouble trying to build it and gave up.
It's perfectly okay if you are used to build everything yourself but
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 first function, at
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
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 when
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
On Sun, 2005-07-31 at 23:47 -0700, Paul Rubin wrote:
snip
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
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,
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
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 got me
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,
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
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
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
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 '**' or '~'
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's just I
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'm a particular fan
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 toolkits is largely seperate
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 only a bit of
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...
Yah,
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 serious side,
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 port 25
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 developer requires
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:
Ron Adam wrote:
Bengt Richter wrote:
indulging what=my penchant for seeking the general behind the specific
;-)
There is a thing called Asynchronous pluggable protocol. It is
Microsoft's technology (don't flame me now):
Asynchronous pluggable protocols enable developers to create
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 =
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
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
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 compile my
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 exception from
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 =
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 =
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 (although
[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 good
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
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 or
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
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 called?
You
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
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 e-mail
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 prints
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 present
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
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 websites
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 you're mistaken,
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
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 the following in
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
--
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.
[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-list
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 PyQt may have their
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 ::
--
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 wink.
Is using really a verb that is fitting for working with twisted? As
much as I read
[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
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
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
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 the
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
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
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 GTK
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):
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 remembered have
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 get
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 through
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
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
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 who1(self):
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
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
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
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: it's
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):
print who
def
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 like
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__',
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 means
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
[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 good
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 external
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...)
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
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()', or
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 them want
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, most
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 to
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
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 it.
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 laptops to work
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
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? Note
that I don't get
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
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,
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 stdin, line 1, in ?
ImportError: No module named creativity
Nope. Not included
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
class
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(self):
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
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
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
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 waste one
1 - 100 of 216 matches
Mail list logo