Dody Suria
thank u.
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-12-11, Rick Wotnaz <[EMAIL PROTECTED]> wrote:
>
> Make a grocery list. Do you terminate each item with
> punctuation? Write a headline for a newspaper. Is
>
actually, I do. i write as much as fits in one line and separate items
with comma.
>
> may find Python's set strange at first. Plea
Yes i know, i did check out a couple but i could never understand it.
They were confusing for me and i wasnt hoping for a full typed
tutorial, just like some help with excactly wat im trying to do, not
the whole module... but watever, Thx alot for the feedbak.
--
http://mail.python.org/mailman/li
On Sat, 10 Dec 2005 19:40:08 -0800, Robert Kern <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>
>> Are you willing to type a one-letter prefix to your .re ? E.g.,
>>
>> >>> class I(object):
>> ... def __getattr__(self, attr):
>> ... return __import__(attr)
>
>[snip]
>
>> There a
Shane Hathaway wrote:
> Mike Meyer wrote:
> > Shane Hathaway <[EMAIL PROTECTED]> writes:
> >>I'd like a way to import modules at the point where I need the
> >>functionality, rather than remember to import ahead of time. This
> >>might eliminate a step in my coding process. Currently, my process
Heiko Wundram wrote:
> Brian Beck wrote:
>
>>>class D1(Base):
>>> def foo(self):
>>> print "D1"
>>>
>>>class D2(Base):
>>> def foo(self):
>>> print "D2"
>>>obj = Base() # I want a base class reference which is polymorphic
>>>if ():
>>> obj = D1()
>>>else:
>>> obj = D2()
>>
>>I h
Brian Beck wrote:
> def foo(self):
> raise NotImplementedError("Subclasses must implement foo")
That's actually a good idea, though not as nice as a check at
"compile-time" (jesus, I'm probably talking in C++ speech again, is
there such a thing as compile-time in Python at all?!)
Another th
That was quite insightful Martin, thanks.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Hallöchen!
Matthias Kaeppler <[EMAIL PROTECTED]> writes:
> [...]
>
> Another thing which is really bugging me about this whole
> dynamically typing thing is that it seems very error prone to me:
>
> foo = "some string!"
>
> # ...
>
> if (something_fubar):
>fo = "another string"
>
> Oops, the
Shane Hathaway wrote:
> Do you have any ideas on how to improve the process of maintaining
> imports? Benji's suggestion of jumping around doesn't work for moving
> code and it interrupts my train of thought. Sprinkling the code with
> import statements causes a speed penalty and a lot of clutter
Zeljko Vrba wrote:
> On 2005-12-11, Rick Wotnaz <[EMAIL PROTECTED]> wrote:
>
>>Make a grocery list. Do you terminate each item with
>>punctuation? Write a headline for a newspaper. Is
>>
>
> actually, I do. i write as much as fits in one line and separate items
> with comma.
>
>
>>may find Py
Paul Rubin wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>
>>The fact that sys is a module and not a class is a red herring. If the
>>"Law" of Demeter makes sense for classes, it makes just as much sense for
>>modules as well -- it is about reducing coupling between pieces of code,
>>not so
I have seen some brief mention of the new book by Robin Dunn in one or
two posts. But none that highlight that the book is to be published
sometime at then end of Jan 2006.
I hope that turns out to be an accurate date.
It has been long-awaited so I thought it ought to get a proper mention.
I mus
Shane Hathaway wrote:
> Thoughts?
I have two reasons to dislike it:
1. It's a language change. Others have pointed out that you can achieve
the same without a language change; it would be easy to write
name_expr = _import.re.compile('[a-zA-Z]+')
2. In the form in which you have written it,
Brian Beck wrote:
> Antoon Pardon wrote:
>> Will it ever be possible to write things like:
>>
>> a = 4:9
>
> I made a silly recipe to do something like this a while ago, not that
> I'd recommend using it. But I also think it wouldn't be too far-fetched
> to allow slice creation using a syntax
Look at the standard python library reference
http://docs.python.org/lib/dom-example.html
the handleSlide function almost does what you want, except that you should use
'parse' and not 'parseString'.
Original Message
From: "Jay" <[EMAIL PROTECTED]>
To:
Subject: Re:Using XML w
[EMAIL PROTECTED] wrote:
> Entering
>
dir(5)
>
>
> I get
> ['__abs__', '__add__', '__and__', '__class__', '__cmp__', '__coerce__',
> '__delattr__', '__div__', '__divmod__', '__doc__', '__float__',
> '__floordiv__', '__getattribute__', '__getnewargs__', '__hash__',
> '__hex__', '__init__', '_
Jay wrote:
> Yes i know, i did check out a couple but i could never understand it.
> They were confusing for me and i wasnt hoping for a full typed
> tutorial, just like some help with excactly wat im trying to do, not
> the whole module... but watever, Thx alot for the feedbak.
>
Well I don't wan
On Sat, 10 Dec 2005 21:12:04 -0800, Jay wrote:
> OK, I have this XML doc, i dont know much about XML, but what i want
> to do is take certain parts of the XML doc
the most simple module I've found to do that is xmltramp from
http://www.aaronsw.com/2002/xmltramp/
for example:
#!/usr/bin/env pyt
On 2005-12-11, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> I don't suppose there's any good reason, then, why (for example)
> outlining tools use indentation to indicate different levels of
> significance.
>
Nobody bothers to figure out something better? Now you will argue that then
the indendati
Matthias Kaeppler wrote:
> Brian Beck wrote:
>
>> def foo(self):
>> raise NotImplementedError("Subclasses must implement foo")
>
>
> That's actually a good idea, though not as nice as a check at
> "compile-time" (jesus, I'm probably talking in C++ speech again, is
> there such a thing as c
Zeljko Vrba wrote:
> >
> > I'm sorry you find the indentation unnatural and inconvenient, but you
> > may have to accept that for this feature you are actually in a minority.
> >
> I have no problem accepting that I'm in a minority. I have a problem with
> offensive people using my example argumen
Matthias Kaeppler wrote:
> That was quite insightful Martin, thanks.
>
> Regards,
> Matthias
(Disclaimer: i didn't read thru whole thread, but i didn't see these
links trotted out either, which're germane:
http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing
http://dirtsimple.org/2004/1
On Sun, 11 Dec 2005 10:02:31 +0100, Matthias Kaeppler wrote:
> Brian Beck wrote:
>> def foo(self):
>> raise NotImplementedError("Subclasses must implement foo")
>
> That's actually a good idea, though not as nice as a check at
> "compile-time" (jesus, I'm probably talking in C++ speech again
Steven D'Aprano wrote:
> Python works well with test-driven development. Test-driven development
> will pick up this sort of error, and many other errors too, with less
> effort and more certainty than compile-time checking. The problem with
> static typed languages is that they make the programme
I am not unfamiliar to programming but a newbie in Python. Could you
recommend me (a) great book(s) to start with? Free online books or
solid books are welcome.
Thanx in advance.
--
http://mail.python.org/mailman/listinfo/python-list
On 12/11/05, Matthias Kaeppler <[EMAIL PROTECTED]> wrote:
> Brian Beck wrote:
> > def foo(self):
> > raise NotImplementedError("Subclasses must implement foo")
>
> That's actually a good idea, though not as nice as a check at
> "compile-time" (jesus, I'm probably talking in C++ speech again, is
On 2005-12-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Welcome to c.l.py
>
Oh, thank you.
--
http://mail.python.org/mailman/listinfo/python-list
Matthias Kaeppler wrote:
> I really see issues with this, can anyone comment on this who has been
> working with Python more than just a day (like me)?
Maybe you should work with Python more than one day before you
start looking for potential problems? ;-)
(I suggest reimplementing some portion
In article <[EMAIL PROTECTED]>,
Matthias Kaeppler <"matthias at finitestate dot org"> wrote:
>
>Another thing which is really bugging me about this whole dynamically
>typing thing is that it seems very error prone to me:
>
>foo = "some string!"
>
># ...
>
>if (something_fubar):
>fo = "another
If you just want to get into it and use it, I'd recommend the following: http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/It requires the installation of the 4Suite module as well, but it's well worth it. I uses data binding techniques to convert your document into a large tree of named XM
On Sun, 11 Dec 2005 05:48:00 -0800, bonono wrote:
>
> Steven D'Aprano wrote:
>> Python works well with test-driven development. Test-driven development
>> will pick up this sort of error, and many other errors too, with less
>> effort and more certainty than compile-time checking. The problem wit
Steven D'Aprano wrote:
> > And I don't think Haskell make the programmer do a lot of work(just
> > because of its static type checking at compile time).
>
> I could be wrong, but I think Haskell is *strongly* typed (just like
> Python), not *statically* typed. At least the "What Is Haskell?" page
Hello,
Is it possible to tell, which instance was used to call the classmethod
that is currently running?
Background: I have a class called DatabaseConnection and it has a
classmethod called process_create_tables. This method should create some
database tables defined by a database definiti
Steven D'Aprano wrote:
> On Fri, 09 Dec 2005 16:03:46 +1100, Ben Finney wrote:
>
> >> Do you want the result to be:
> >> AB, AC, AD, BC, BD, CD
> >
> > That is the complete set of combinations of the letters.
> >
> >> Or, do you want AB,BA,AC,CA,AD,DA,BC,CB,BD,DB,CD,DB ?
> >
> > That is the comple
Fredrik Lundh wrote:
> Write code, not usenet posts.
QOTW!
--
http://mail.python.org/mailman/listinfo/python-list
Tolga wrote:
> I am not unfamiliar to programming but a newbie in Python. Could you
> recommend me (a) great book(s) to start with? Free online books or
> solid books are welcome.
>
> Thanx in advance.
>
I'd call Dive Into Python a reference, it's an extremely clear yet
pythonic book, and it's a
http://www.awaretek.com/tutorials.html#regular
--
http://mail.python.org/mailman/listinfo/python-list
Tolga wrote:
> I am not unfamiliar to programming but a newbie in Python. Could you
> recommend me (a) great book(s) to start with? Free online books or
> solid books are welcome.
>
http://www.ibiblio.org/g2swap/byteofpython/read/index.html
http://www.ibiblio.org/obp/thinkCSpy/
http://www.freene
Ernst Noch wrote:
> Matthias Kaeppler wrote:
> > Brian Beck wrote:
> >
> >> def foo(self):
> >> raise NotImplementedError("Subclasses must implement foo")
> >
> >
> > That's actually a good idea, though not as nice as a check at
> > "compile-time" (jesus, I'm probably talking in C++ speech aga
Mike Meyer <[EMAIL PROTECTED]> wrote:
...
> It's not my cherished example - it actually came from someone
You picked it to (try and fail to) show that there is DIFFICULTY, which
I showed there isn't.
> else. That you can change the requirements so that there is no extra
> work is immaterial -
gene tani wrote:
> http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing
> http://dirtsimple.org/2004/12/java-is-not-python-either.html
> http://dirtsimple.org/2004/12/python-is-not-java.html
>
> http://idevnews.com/PrintVersion_CaseStudies.asp?Search3=web+services&Go2=Go&ID=118
> http://w
[EMAIL PROTECTED] wrote:
> Just follow the links.
I'll try ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Laszlo Zsolt Nagy wrote:
>
> Hello,
>
> Is it possible to tell, which instance was used to call the classmethod
> that is currently running?
>
[snip]
>
> processor = SQLProcessors.StdOutProcessor() # Print to stdout
> PostgreSQLConnection.process_create_tables(processor,dbdef) # This
> soul
Mike Meyer <[EMAIL PROTECTED]> wrote:
...
> > Claim: doing X makes Y hard.
>
> Harder, not hard.
The specific wording you used was "MORE DIFFICULT".
> > Here is an example of doing X where Y is easy
>
> Y is very easy in any case. Making it incrementally harder doesn't
> make it hard - it's
On Sun, 11 Dec 2005 07:10:27 -0800, bonono wrote:
>
> Steven D'Aprano wrote:
>> > And I don't think Haskell make the programmer do a lot of work(just
>> > because of its static type checking at compile time).
>>
>> I could be wrong, but I think Haskell is *strongly* typed (just like
>> Python), n
Zeljko Vrba wrote:
> Nobody bothers to figure out something better? Now you will argue that then
> the indendation is good enough.. and I can just reply that then it's an
> open research question..
huh? people mention existing research (including formal usability studies),
and your response is t
Heiko Wundram wrote:
> Maybe I'm assuming things by thinking that others also follow my line of
> thought, but I've actually had very positive responses so far when telling
> people that a certain feature is a certain way and then pointing them to
> the ZoP, they all pretty much told me after a cer
Steven D'Aprano wrote:
> On Sun, 11 Dec 2005 07:10:27 -0800, bonono wrote:
>
> >
> > Steven D'Aprano wrote:
> >> > And I don't think Haskell make the programmer do a lot of work(just
> >> > because of its static type checking at compile time).
> >>
> >> I could be wrong, but I think Haskell is *st
Steven D'Aprano wrote:
> Weakly typed languages do not prevent you performing operations on
> mismatched types, e.g. something like 1 + "1" is allowed in languages like
> Basic and Perl.
Actually, Perl and at least the version of BASIC that I previously used
are not weakly-typed languages either.
On Sun, 11 Dec 2005 06:15:17 -0800, Tolga wrote:
>
> I am not unfamiliar to programming but a newbie in Python. Could you
> recommend me (a) great book(s) to start with? Free online books or
> solid books are welcome.
>
> Thanx in advance.
O'Reilly's Learning Python Second Edition covers up to
Hello Steven,
I already implemented this using the form
@classmethod
def methodname(cls,other_params,self=None)
but your example code looks so neat! This is exactly what I needed. :-)
In my methods, most code is about string manipulation and calling other
classmethods.
There are only a few
Alan Kennedy wrote:
[Discussing the appearance of xmlns="DAV:"]
> But that's incorrect. You have now defaulted the namespace to "DAV:" for
> every unprefixed element that is a descendant of the href element.
[Code creating the no_ns element with namespaceURI set to None]
>
>
I must admit tha
On Sun, 11 Dec 2005 17:05:16 +0100, Matthias Kaeppler wrote:
> Why would I want to use an attribute in Python, where I would use
> getters and setters in Java?
Oh boy! I've just come out of a rather long thread about that very issue.
If you care enough to read a bunch of people arguing past eac
In article <[EMAIL PROTECTED]>,
Matthias Kaeppler <"matthias at finitestate dot org"> wrote:
>
>Why would I want to use an attribute in Python, where I would use
>getters and setters in Java? I know that encapsulation is actually just
>a hack in Python (common, "hiding" an implementation detail
Hello All,
I need some help with random number generation. What I
need exactly is:
To create a few thousand numbers, decimal and
integers, between 5 and 90,
and then to export them as a single column at a
spreadsheet.
I am newbie, I was not able to create decimals with
the random modules of
Py
Matthias Kaeppler <[EMAIL PROTECTED]> wrote:
...
> I stumbled over this paragraph in "Python is not Java", can anyone
> elaborate on it:
>
> "In Java, you have to use getters and setters because using public
> fields gives you no opportunity to go back and change your mind later to
> using ge
Matthias Kaeppler <[EMAIL PROTECTED]> wrote:
...
> I'm so used to statically typed languages that the shift is very
> confusing. Looks as if it isn't as easy to learn Python afterall, for
> the mere reason of unlearning rules which don't apply in the world of
> Python anymore (which seem to be
Thanks so much for the offer, I had a friend do this for
me and it works great.
Regards,
Larry Bates
Heiko Wundram wrote:
> Larry Bates wrote:
>
>>
>>
>>The algorithm looks very much like the source code for
>>binascii.crc32 (but I'm not a C programmer).
>
>
> Well... As you have access to the
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 11 Dec 2005 17:05:16 +0100, Matthias Kaeppler wrote:
>
> > Why would I want to use an attribute in Python, where I would use
> > getters and setters in Java?
>
> Oh boy! I've just come out of a rather long thread about that very issue.
> If
Dimos <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was no
Matthias Kaeppler wrote:
> Why would I want to use an attribute in Python, where I would use
> getters and setters in Java? I know that encapsulation is actually just
> a hack in Python (common, "hiding" an implementation detail by prefixing
> it with the classname so you can't access it by its
Steven D'Aprano wrote:
> I look at it this way: as the class designer, I have ZERO idea what
> attributes and methods of my class will be just the perfect thing to solve
> somebody's problem, so it is rude of me to lock them up as private --
> especially since they *will* find a way to hack my clas
Dimos wrote:
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was not able to create decimals with
> the ra
Dimos wrote:
> Hello All,
>
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was not able to create decimal
I wrote:
> this prints
>
> 0xF032519BL 0xF032519BL
> 0x90E3070AL 0x90E3070AL
>
> no time to sort out the int/long mess for binascii.crc32, but it pro-
> bably needs the same tweaking as PIL (which handles the CRC as
> two 16-bit numbers, to avoid sign hell).
I realized that I used 2.3 for testing
Hello again! I'm still working on that instant messenger (for science fair), and I have been reading about networking in some Java tutorials. In one part of it, it said to have a connection with another computer, you need to know the IP name of the computer you want to connect with. I don't kn
Shane Hathaway wrote:
> Here's the real problem: maintaining import statements when moving
> sizable blocks of code between modules is hairy and error prone.
You can also evaluate a solution like this:
http://codespeak.net/py/current/doc/misc.html#the-py-std-hook
--
Giovanni Bajo
--
http://
On 11/12/05, John Walton <[EMAIL PROTECTED]> wrote:
Hello again! I'm still working on that instant messenger
(for science fair), and I have been reading about networking in some
Java tutorials. In one part of it, it said to have a connection with
another computer, you need to know the IP name of t
lux schrieb:
> Hi,
> I've a dfb written in VisualFox,
> I need to send a "pack" and "reindex"
> but in odbc is not supported...
>
> Anybody know how to do this?
>
> TIA,
> Luca
>
I am quite sure this is supported in OLEDB.
I thought this was also supported via ODBC,
but you have to make sure tha
aum wrote:
> Hi all,
>
> This announcement supersedes an earlier announcement of pygene.
>
> pygene 0.2 now supports genetic programming, in addition to the classical
> Mendelian genetic algorithms of the earlier version. I thank the
> respondents to the earlier announcement for inspiring me to i
Tolga wrote:
>
> I am not unfamiliar to programming but a newbie in Python. Could you
> recommend me (a) great book(s) to start with? Free online books or
> solid books are welcome.
>
> Thanx in advance.
Some days ago there was an similar subject 'Learning Python', wish give you
some usefull in
[Paul Boddie]
> However,
> wouldn't the correct serialisation of the document be as follows?
>
>
>
Yes, the correct way to override a default namespace is an xmlns=""
attribute.
[Paul Boddie]
> As for the first issue - the presence of the xmlns attribute in the
> serialised document - I
I am using the "email" module to decode incoming messages.
(with msg = email.message_from_file( msg_file ))
Sometimes an attachment has its name (as returned by
msg.walk().part.get_filename()) not in ASCII (e.g.
'=?iso-8859-1?q?somefile=2ezip?=') How can I turn that into
simply 'somefile.zip' ? I h
Matthias Kaeppler a écrit :
> Hi,
>
> sorry for my ignorance, but after reading the Python tutorial on
> python.org, I'm sort of, well surprised about the lack of OOP
> capabilities in python.
I beg your pardon ???
> Honestly, I don't even see the point at all of
> how OO actually works in P
Michael Williams wrote:
> Hi All,
> I'm looking for a quality Python XML implementation. All of the DOM
> and SAX implementations I've come across so far are rather
> convoluted. Are there any quality implementations that will (after
> parsing the XML) return an object that is accessible by name
Jay:
"""
K, I have this XML doc, i dont know much about XML, but what i want
to do is take certain parts of the XML doc, such as blah
and take just that and put onto a text doc. Then same thing
doe the part. Thats about it, i checked out some of the xml
modules but dont understand how to use th
Paul Boddie <[EMAIL PROTECTED]> wrote:
...
> offer some kind of solution to that problem. Moreover, Python also lets
> you define double-underscore attribute names which behave give instance
> attributes privacy in all respects, being invisible to users of the
> instances concerned, accessible o
Matthias Kaeppler a écrit :
(snip)
> I stumbled over this paragraph in "Python is not Java", can anyone
> elaborate on it:
>
> "In Java, you have to use getters and setters because using public
> fields gives you no opportunity to go back and change your mind later to
> using getters and sette
[Michael Williams]
> I need it to somehow convert my XML to intuitively referenceable
> object. Any ideas? I could even do it myself if I knew the mechanism
> by which python classes do this (create variables on the fly).
You seem to already have a fair idea what kind of model you need, and
Laszlo Zsolt Nagy wrote:
> In my methods, most code is about string manipulation and calling other
> classmethods.
> There are only a few places where I can use an instance, but it is not
> required.
> I would like to reuse as most code as possible, so I do not want to
> create two different
> m
Fairly new to python. In a try except how do you display the true
(raw) error message so it can be displayed back to the user?
--
http://mail.python.org/mailman/listinfo/python-list
Bernard Delmée:
> I am using the "email" module to decode incoming messages.
> (with msg = email.message_from_file( msg_file ))
> Sometimes an attachment has its name (as returned by
> msg.walk().part.get_filename()) not in ASCII (e.g.
> '=?iso-8859-1?q?somefile=2ezip?=') How can I turn that into
[EMAIL PROTECTED] wrote:
> Fairly new to python. In a try except how do you display the true
> (raw) error message so it can be displayed back to the user?
assuming that "true" means "the message you would get if you hadn't
used a try/except", the traceback module is what you want:
import t
"Paul Boddie" <[EMAIL PROTECTED]> writes:
> One classic example of a
> weakly-typed language is BCPL, apparently, but hardly anyone has any
> familiarity with it any more.
Actually, BCPL is what Stevenn D'Aprano called "untyped". Except his
definition is suitable for after everyone followed IBM's
Alan Kennedy wrote:
> Serialisation and namespace normalisation are both in the realm of DOM
> Level 3, whereas minidom is only L2 compliant. Automagically introducing
> L3 semantics into the L2 implementation is the wrong thing to do.
I think I'll have to either add some configuration support, in
Fredrik Lundh wrote:
> assuming that "true" means "the message you would get if you hadn't
> used a try/except", the traceback module is what you want:
>
> you can also inspect the exception status via the sys.exc_info() call.
> e.g.
>
There is also the third way of catching an exception exp
some great suggestions.
Ok, i am now understanding some of parseing and how to use it and
nodes, things like that. But say i wanted to take the title of
http://www.digg.com/rss/index.xml
and XMLTramp seemed the most simple to understand.
would the path be something like this?
import xmltramp
rss
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> Of course, the IT world is full of people writing code and not testing
> it, or at least not testing it correctly. That's why there are frequent
> updates or upgrades to software that break features that worked in the
> older version. That would be impo
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
>> ^^ There is no functionality to check if a subclass correctly
>> implements an inherited interface
>
> I don't know of any language that provide such a thing. At least for
> my definition of "correctly".
Well, since your definition of "correclty"
Zeljko Vrba <[EMAIL PROTECTED]> writes:
> An obvious defficieny of the current way we write code now is its inherent
> tree-structure resulting from {}, indentation, begin/end markers or whatnot.
> But the flow of code is often not a tree but a cycle.. Yet we are always
> dealing with a tree-like r
On 11/12/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:> Fairly new to python. In a try except how do you display the true> (raw) error message so it can be displayed back to the user?
assuming that "true" means "the message you would get if you hadn'tused a try/except", the
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>...
>> It's not my cherished example - it actually came from someone
> You picked it to (try and fail to) show that there is DIFFICULTY, which
> I showed there isn't.
No, you showed you could change the example
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes:
> Is it possible to tell, which instance was used to call the
> classmethod that is currently running?
Ok, I read through what got to my nntp server, and I'm still
completely confused.
A class method isn't necessarilry called by an instance. That's wh
A couple of years ago there wasn't one and the recommendation was to
simply use Java libs. Have things changed since?
I see ElementTree promises one in the future but are there any out now?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 11 Dec 2005, Steven D'Aprano wrote:
On Sat, 10 Dec 2005 16:34:13 +, Tom Anderson wrote:
On Sat, 10 Dec 2005, Sybren Stuvel wrote:
Zeljko Vrba enlightened us with:
Find me an editor which has folds like in VIM, regexp search/replace
within two keystrokes (ESC,:), marks to easily
"""
Ok, i am now understanding some of parseing and how to use it and
nodes, things like that. But say i wanted to take the title of
http://www.digg.com/rss/index.xml
and XMLTramp seemed the most simple to understand.
would the path be something like this?
import xmltramp
rssDigg = xmltramp.loa
Mike Meyer <[EMAIL PROTECTED]> wrote:
...
> Except you haven't shown that the API was badly designed. You can't
> show that it's badly designed, because you don't know the requirements
> that the API is meeting.
I can show that an API is badly designed *whatever requirements it might
be intende
On Mon, 12 Dec 2005, Steven D'Aprano wrote:
On Sun, 11 Dec 2005 05:48:00 -0800, bonono wrote:
And I don't think Haskell make the programmer do a lot of work(just
because of its static type checking at compile time).
I could be wrong, but I think Haskell is *strongly* typed (just like
Python)
Hello,
I am a newbie and have a few questions about Python and Tkinter.
I would like to create the following layout in Python:
***
* *
* *
*
1 - 100 of 129 matches
Mail list logo