Transparenz ist das Mindeste

2005-05-15 Thread vballsweetheart22
Lese selbst: http://www.npd.de/npd_info/deutschland/2005/d0405-39.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Modifying a built-in function for logging purposes

2005-05-15 Thread Bengt Richter
On Sat, 14 May 2005 19:19:08 -0700, Robert Kern <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> Hi Greg, >> thank for your replay, but I didn't succeed in any way. You must >> consider however that I'm not a Python "expert"... >> IMHO, it must be a script that change part of the interprete

Re: Question about extending the interperter

2005-05-15 Thread Eli
I've tried that and it worked. I've used Python to generate wrapper and it seems ok- I'm yet testing it, so far so good. thanks, Elie -- http://mail.python.org/mailman/listinfo/python-list

Re: converting a set into a sorted list

2005-05-15 Thread Bengt Richter
On Sat, 14 May 2005 19:20:24 -0700, Robert Kern <[EMAIL PROTECTED]> wrote: >MackS wrote: >> Dear all, >> >> I've got several large sets in my program. After performing several >> operations on these I wish to present one set to the user [as a list] >> sorted according to a certain criterion. Is t

Re: Question about extending the interperter

2005-05-15 Thread Eli
Thanks for your answer, I've tried the way Fredrik suggested which pointed out to a solution. cheers -- http://mail.python.org/mailman/listinfo/python-list

pydoc for global variables

2005-05-15 Thread alexk
Hi, Is it possible to "pydoc" global variables also ? It just stucks them into the "DATA" section. Thanks, Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-15 Thread Bengt Richter
On Sun, 15 May 2005 08:00:47 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >M.E.Farmer wrote: > >> I said exactly what I meant, the parentheses around the values creates >> a tuple that you have no reference to! > >repeating it doesn't make you right; no extra tuple is created, and the >parens

Re: Modifying a built-in function for logging purposes

2005-05-15 Thread Bengt Richter
On Sun, 15 May 2005 07:52:42 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: > >> I wonder if it is possible to change (temporarily) a built-in function >> for logging purposes. >> Let me explain: >> I want to log all the 'open' operations, recording the file to be >> o

Re: Modifying a built-in function for logging purposes

2005-05-15 Thread qwweeeit
Hi Robert, > Short answer: if you don't know stuff like this, then you probably > shouldn't mess around with the builtins in production code. I begin to be fed up of beeing treated as a child who is only able to make damages... But this time you are right... So let's change point of view: instead o

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-15 Thread LouisB
hum a few bars and I'll try to pick it up <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.gotquestions.org/sinners-prayer.html << I saw this site on a > search directory. Great Resource! > -- http://mail.python.org/mailman/listinfo/python-list

Re: Range function

2005-05-15 Thread Xah Lee
Here's the Perl code. -- #! perl # http://xahlee.org/tree/tree.html # Xah Lee, 2005-05 #_ Range _ _ _ _ =pod B Range($iMax) generates the list [1, 2, ... , $iMax]. Range($iMin, $iMax) generates the list [$iMin, ... , $iMax]. Range($iMin, $iMax, $iStep) uses incr

Re: Range function

2005-05-15 Thread Xah Lee
Here's the Python solution. -- # -*- coding: utf-8 -*- # Python # http://xahlee.org/tree/tree.html # Xah Lee, 2005-05 # implementation note: When iStep is a decimal, rounding error # accumulates. For example, the last item returned from # Range(0,18,0.3) is 17.7 not 18. A remedy is to tu

Paranoider Deutschenmoerder kommt in Psychiatrie

2005-05-15 Thread MSN-nivgalo
Lese selbst: http://brandenburg.rz.fhtw-berlin.de/poetschke.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Desrtuctor WOES, was Advice on __del__

2005-05-15 Thread Fredrik Lundh
"phil" wrote: > SO: without significant rewrite of each class such as triangle > and line, how can I ensure those canvas lines get deleted? > You don't really need to understand Canvas, just trust me > I have to delete those objects and they are not properties of the > class which go away with gar

mod_python and logging

2005-05-15 Thread Daniel Lichtenberger
Hi, I'm looking for a logging module to be used in a mod_python-powered website. Python 2.3's logging package seems like a good fit, however I'm not sure if it's completely safe to use it under high load. The library documentation states that it's thread-safe, but what about several forked apache

Transparenz ist das Mindeste

2005-05-15 Thread rwackerle
Lese selbst: http://www.npd.de/npd_info/deutschland/2005/d0405-39.html -- http://mail.python.org/mailman/listinfo/python-list

Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread Joal Heagney
Hi everyone. I've been getting this error message in python, and it's really driving me up the wall. [EMAIL PROTECTED] joal]$ python 'import site' failed; use -v for traceback Python 2.3.4 (#1, Apr 18 2005, 19:03:06) [GCC 3.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more

Is isinstance always "considered harmful"?

2005-05-15 Thread Jordan Rastrick
Hi everyone, Just a little issue that I've come across in Python where I'd be interested to read the thoughts and opinions of the great thinkers and programmers who frequent this newsgroup. I've read arguments, here and elsewhere, to the effect that in Python isinstance should be avoided like the

Multi-Kulturell = Multi-Kriminell

2005-05-15 Thread tobias . hofmann
Lese selbst: http://www.npd.de/npd_info/meldungen/2005/m0105-19.html -- http://mail.python.org/mailman/listinfo/python-list

To circumvent the bug cp1252

2005-05-15 Thread Do Re Mi chel La Si Do
Hi ! *** for information *** There is a bug in Python 2.4, worsened with the 2.4.1, for scripts, if they are: - large - with larges lines - prefixed (coded) with # -*- coding: cp1252 -*- - on windows (XP & S2003) - perhaps, also, other conditions... This bug announces, wrongly, of

Re: Modifying a built-in function for logging purposes

2005-05-15 Thread Steven D'Aprano
On Sat, 14 May 2005 15:14:01 -0700, qwweeeit wrote: > Hi Greg, > thank for your replay, but I didn't succeed in any way. You must > consider however that I'm not a Python "expert"... Can you post what you did and what results you got? Because Greg's trick worked for me. See below. > IMHO, it mus

Schily ueber Deutschland

2005-05-15 Thread mal
Lese selbst: http://www.heise.de/newsticker/meldung/59427 -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the best way to determine system OS?

2005-05-15 Thread googleboy
I did somethign that really seems far brighter... approaching it from a slightly different angle I just search through each line for the right field title, and then take that field's value from teh last line of output. Doesn't matter what OS, doesn't matter what format now. It can cope with it

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-15 Thread Mike brown
In article <[EMAIL PROTECTED]>, "Bubba" <[EMAIL PROTECTED]> wrote: > I'm so glad you've decided what everyone believes > Some of us don't. Believe that is. In anything in particular. MJRB -- http://mail.python.org/mailman/listinfo/python-list

string.lstrip stripping too much?

2005-05-15 Thread joram gemma
Hello, on windows python 2.4.1 I have the following problem >>> s = 'D:\\music\\D\\Daniel Lanois\\For the beauty of Wynona' >>> print s D:\music\D\Daniel Lanois\For the beauty of Wynona >>> t = 'D:\\music\\D\\' >>> print t D:\music\D\ >>> s.lstrip(t) 'aniel Lanois\\For the beauty of Wynona' >>>

Re: Range function

2005-05-15 Thread Peter Hansen
Xah Lee wrote: > Here's the Python solution. > # implementation note: When iStep is a decimal, rounding error > # accumulates. For example, the last item returned from > # Range(0,18,0.3) is 17.7 not 18. A remedy is to turn iStep into a > # fraction and do exact arithmetics, and possibly convert th

RE: Turkish Tabloid Enrages Germany with Nazi Comparisons

2005-05-15 Thread EBU.Database. IB.Interclient
Thank you for e-mailing [EMAIL PROTECTED] This is an auto generated message, please do not respond to this mail. Most questions regarding InterClient can be resolved by first visiting http://support.borland.com/. From this site you can create a free presales or installation case, find out how to

Precision?

2005-05-15 Thread Steffen Glückselig
Hello, I've just wanted to check Python's abilities as a calculator and this is what came out: >>> 1.0 + 3.0 + 4.6 8.5996 Ehm, how could I get the intuitively 'correct' result of - say - 8.6? ;-) best regards Steffen -- http://mail.python.org/mailman/listinfo/python-list

Re: Precision?

2005-05-15 Thread tiissa
Steffen Glückselig wrote: 1.0 + 3.0 + 4.6 > > 8.5996 > > Ehm, how could I get the intuitively 'correct' result of - say - 8.6? > ;-) You may find annex B of the python tutorial an interesting read: http://docs.python.org/tut/node16.html -- http://mail.python.org/mailman/listinfo

Re: A new to Python question

2005-05-15 Thread Steven Bethard
Fredrik Lundh wrote: > which is one of the things you really love when you link against > underdocumented Fortran programs from C. ("is that parameter > a scalar or an array? crash! oh, an array. how many values does > it expect? crash! oh, a few more, I suppose"). +1 QOTW STeVe -- http://mail.

X2Y 1.1.7 Document Processor Released!

2005-05-15 Thread Chris Withers
X2Y is a flexible, configurable and extendable server-based document processing framework written in python. It has the following feaures: - Cross platform - Fully documented - Run as either a cron job, scheduled task or by hand - Fully configurable logging and notification - Fully configura

Re: Precision?

2005-05-15 Thread Steven Bethard
tiissa wrote: > Steffen Glückselig wrote: > > 1.0 + 3.0 + 4.6 >> 8.5996 >> >> Ehm, how could I get the intuitively 'correct' result of - say - 8.6? >> ;-) > > You may find annex B of the python tutorial an interesting read: > http://docs.python.org/tut/node16.html Yes, the simple

Re: incorrect(?) shlex behaviour

2005-05-15 Thread bill
Its gets worse: >>> from shlex import StringIO >>> from shlex import shlex >>> t = shlex(StringIO("2>&1")) >>> while True: ... b = t.read_token() ... if not b: break ... print b ... 2 & 1<--- where's the '>' !? >>> import shlex >>> print shlex.split("2>&1") ['2>&1']

Re: Exception question

2005-05-15 Thread Ron Adam
Steven Bethard wrote: > Ron Adam wrote: > >>Do exceptions that take place get stored in a stack or list someplace? > > [snip] > >>I know I can catch the error and store it myself with, >> >>except Exception, exc: >> >>or possibly, >> >>errlist = [] >>errlist.append(sys.exc_info()) >>

Re: Faster GUI text control

2005-05-15 Thread none
Fredrik Lundh wrote: > "none <"@bag.python.org> wrote: > > >>>no, it would mean writing some python code. if all you need is a scrolling >>>text list, you can simply use the code on this page: >>> >>>http://effbot.org/zone/wck-4.htm >>> >>>(see "A scrollable list view, with scrollbar support

Error when calling the metaclass bases function() argument 1 must be code, not str

2005-05-15 Thread sector119
I use python 2.4.1 and PIL 1.1.5 and when I execute my program I got error: ./code.py Traceback (most recent call last): File "./code.py", line 7, in ? class DrawPlus(ImageDraw.Draw): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str Why I go

Re: Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread qwweeeit
Hi Joal, I can only tell you that in my Linux Mandrake 10.1 (Community Edition), all is ok: Python 2.3.4 (#2, Aug 19 2004, 15:49:40) [GCC 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import site >>> dir (site) ['_Helpe

Re: Unique Elements in a List

2005-05-15 Thread Facundo Batista
On 5/9/05, James Stroud <[EMAIL PROTECTED]> wrote: > > Is there an easy way to grab the Unique elements from a list? >>> from sets import Set as set >>> data = [0.1,0.5,0.6,0.4,0.1,0.5,0.6,0.9] >>> for x in set(data): ... print x ... 0.5 0.9 0.6 0.4 0.1 .Facundo Blog: http://www.taniqu

Re: Does anybody know the status of PyCon recordings?

2005-05-15 Thread Facundo Batista
On 9 May 2005 11:02:27 -0700, Sébastien Boisgérault <[EMAIL PROTECTED]> wrote: > http://www.pycon.org/talks/ ¿?: """ Site Error An error was encountered while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. The object at http://www.pycon.org/t

Re: mod_python and logging

2005-05-15 Thread qwweeeit
Hi Daniel, look at the thread I started ("Modifying a built-in function for logging purposes"). http://groups.google.it/group/comp.lang.python/messages/56e905ff27462d91,8f431d9da6140849,95368b6d5db3237d,f1aa51de9139a751,79d9ad3b78f1b875,a7a68e017f064eca,1c203ffc19cdeaac,3e31db7958bffbf1,0889cc903a6

Re: incorrect(?) shlex behaviour

2005-05-15 Thread M.E.Farmer
bill wrote: > Its gets worse: > >>> from shlex import StringIO > >>> from shlex import shlex > >>> t = shlex(StringIO("2>&1")) > >>> while True: > ... b = t.read_token() > ... if not b: break > ... print b > ... > 2 > & > 1<--- where's the '>' !? > >>> import shlex >

Re: Range function

2005-05-15 Thread Xah Lee
the previous posted solutions are badly botched. Here's a better solution. Any further correction will appear on the website instead. (http://xahlee.org/tree/tree.html) Similar change needs to be made for the Perl code... Java code will come tomorror. By the way, the code from me are not expecte

Calling C/C++ not contained inside a .dll

2005-05-15 Thread delrocco
Hello, I really appreciate anyone who has time to read this and help, Thanks up front. I'm very new to python, having picked it up for the first time a week ago, but I feel I'm very close to getting this working. Here's what I'm trying to do: - call python scripts from game code - have those ca

Re: A new to Python question

2005-05-15 Thread M.E.Farmer
>No. You claimed This will only create a tuple in memory That is not what I said please do not edit my words and call it a quote! >But we just learned that this is not the case. Yes it seems I was proven wrong and have learned much from the discussion ;) That is why I am here to learn from othe

Re: A new to Python question

2005-05-15 Thread M.E.Farmer
Fredrik and Bengt: Thank you for the time. I will study the docs and play with the shell till this is firm. M.E.Farmer -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-15 Thread M.E.Farmer
It looks like the docs could use some examples of the various assignments it refers to. I think something like Bengt posted would be a nice addition if it included assignments with slices and dicts too. Just a thought. M.E.Farmer -- http://mail.python.org/mailman/listinfo/python-list

Re: string.lstrip stripping too much?

2005-05-15 Thread Roy Smith
"joram gemma" <[EMAIL PROTECTED]> wrote: > Hello, > > on windows python 2.4.1 I have the following problem > > >>> s = 'D:\\music\\D\\Daniel Lanois\\For the beauty of Wynona' > >>> print s > D:\music\D\Daniel Lanois\For the beauty of Wynona > >>> t = 'D:\\music\\D\\' > >>> print t > D:\music\D\

Re: Range function

2005-05-15 Thread Peter Hansen
Xah Lee wrote: > the previous posted solutions are badly botched. > def Range(iMin, iMax=None, iStep=None): [snip hideous code] > # Thanks to Peter Hansen for a correction. Ohmigod, he's only made it worse and he's blaming me for it. Shows what I get for replying to a cross-posted troll messag

Re: Schily ueber Deutschland

2005-05-15 Thread Bernd Nawothnig
On 2005-05-15, [EMAIL PROTECTED] wrote: > Lese selbst: > http://www.heise.de/newsticker/meldung/59427 Ja, schlimm. Trotzdem ist das hier a) eine englischsprachige NG und b) geht es hier um die Programmiersprache Python Lass es also bitte endlich! Bernd -- Those who desire to give up freed

Re: Is isinstance always "considered harmful"?

2005-05-15 Thread Terry Reedy
"Jordan Rastrick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've read arguments, here and elsewhere, to the effect that in Python > isinstance should be avoided like the plague, except in a few very > specific and narrow circumstances. Putting it like this is rather extreme.

Re: string.lstrip stripping too much?

2005-05-15 Thread Bengt Richter
On Sun, 15 May 2005 15:24:25 +0200, "joram gemma" <[EMAIL PROTECTED]> wrote: >Hello, > >on windows python 2.4.1 I have the following problem > s = 'D:\\music\\D\\Daniel Lanois\\For the beauty of Wynona' print s >D:\music\D\Daniel Lanois\For the beauty of Wynona t = 'D:\\music\\D\\'

Re: Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread Terry Reedy
"Joal Heagney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 'import site' failed; traceback: > Traceback (most recent call last): > File "/usr/lib/python2.3/site.py", line 169, in ? > sys.lib, > AttributeError: 'module' object has no attribute 'lib' Right: the sys module u

Re: string.lstrip stripping too much?

2005-05-15 Thread Terry Reedy
> why does lstrip strip the D of Daniel Lanois also? Because it does just what the Lib Ref doc on str.lstrip says that it does. >>>help(str.lstrip) # should also explain Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: Precision?

2005-05-15 Thread Ron Adam
tiissa wrote: > Steffen Glückselig wrote: > >1.0 + 3.0 + 4.6 >> >>8.5996 >> >>Ehm, how could I get the intuitively 'correct' result of - say - 8.6? >>;-) > > > You may find annex B of the python tutorial an interesting read: > http://docs.python.org/tut/node16.html In addition t

Re: Is isinstance always "considered harmful"?

2005-05-15 Thread Leif K-Brooks
Jordan Rastrick wrote: > Say you're writing, in Python, the extend() method for a Linked List > version of python's builtin list. Its really important to know what > kind of iterable youre being passed in - because if its another > Linked list, and you know it, you can connect the two in 0(1) time;

Re: Newbie : checking semantics

2005-05-15 Thread beliavsky
[EMAIL PROTECTED] wrote: > 2. Trust me (and other Python programmers most likely would agree) this > type of error happens much more seldom then newbies (especially coming > from strongly typed languages) imagine while adjusting to the language. > > 3. Python advantages "overpower" drawbacks 10

wxPython and a Control Property Editor

2005-05-15 Thread [EMAIL PROTECTED]
Hi, I'm building a modest GUI editor for myself using wxPython, and I need some help. I want to create a nice 'Control Property Editing Window', just like VisualBasic, Delphi, Visual C++, etc. After searching for a while, I found an interesting extension for wx that does exactly this (and very ni

[no subject]

2005-05-15 Thread gerald hereford
__ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Quick Reference from module doc strings.

2005-05-15 Thread Ron Adam
I think this deserves a little more of a description than I gave it initially. The routine in the previous message does a little more than just print out __doc__ strings. It outputs a formatted alphabetical list of objects in a module with each objects, name, class or type, and then tries to

Sober-Q

2005-05-15 Thread Kay Schluehr
Paul Rubin wrote: > Bernd Nawothnig <[EMAIL PROTECTED]> writes: > > On 2005-05-15, [EMAIL PROTECTED] [allegedly] wrote: ... > > I don't think that post was really from MAL. It seems to be a sporgery > attack on the newsgroup. Sigh. The spam mails stem from a Sober variant, which sends Nazi prop

Re: A new to Python question

2005-05-15 Thread Bernd Nawothnig
On 2005-05-15, M.E.Farmer wrote: >> No. You claimed > > This will only create a tuple in memory > > That is not what I said please do not edit my words and call it a > quote! Again the whole sentence: Message-ID: <[EMAIL PROTECTED]> | This will only create a tuple in memory that has no name t

Re: Precision?

2005-05-15 Thread Terry Reedy
"Steffen Glückselig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 1.0 + 3.0 + 4.6 > 8.5996 > > Ehm, how could I get the intuitively 'correct' result of - say - 8.6? >>> str(1.0+4.6+3.0) '8.6' See Lib Ref 2, Builtin functs, repr() and str(), Lan Ref (or tutorial)

Re: Schily ueber Deutschland

2005-05-15 Thread Paul Rubin
Bernd Nawothnig <[EMAIL PROTECTED]> writes: > On 2005-05-15, [EMAIL PROTECTED] [allegedly] wrote: ... I don't think that post was really from MAL. It seems to be a sporgery attack on the newsgroup. Sigh. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread Steve Horsley
[EMAIL PROTECTED] wrote: > Hi Joal, > I can only tell you that in my Linux Mandrake 10.1 (Community Edition), > all is ok: > Python 2.3.4 (#2, Aug 19 2004, 15:49:40) > [GCC 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >

Re: Precision?

2005-05-15 Thread Jeff Epler
If you want to do decimal arithmetic, use the decimal module which is new in Python 2.4. Python 2.4 (#1, Jan 22 2005, 20:45:18) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from decimal import Decimal as D >>> D(

Re: Precision?

2005-05-15 Thread Peter Dembinski
"Steffen Glückselig" <[EMAIL PROTECTED]> writes: > Hello, > > I've just wanted to check Python's abilities as a calculator and this > is what came out: > 1.0 + 3.0 + 4.6 > 8.5996 > > Ehm, how could I get the intuitively 'correct' result of - say - 8.6? > ;-) This is as correct as

Re: string.lstrip stripping too much?

2005-05-15 Thread Fredrik Lundh
"joram gemma" wrote: > on windows python 2.4.1 I have the following problem > > >>> s = 'D:\\music\\D\\Daniel Lanois\\For the beauty of Wynona' > >>> print s > D:\music\D\Daniel Lanois\For the beauty of Wynona > >>> t = 'D:\\music\\D\\' > >>> print t > D:\music\D\ > >>> s.lstrip(t) > 'aniel Lanois

RE: Is isinstance always "considered harmful"?

2005-05-15 Thread Robert Brewer
Jordan Rastrick wrote: > Subject: Is isinstance always "considered harmful"? > > Say you're writing, > in Python, the extend() method for a Linked List version of python's > builtin list. Its really important to know what kind of iterable youre > being passed in - because if its another Linked lis

Importing and namespace visibility

2005-05-15 Thread jean-marc
As an application programmer, I'm not well versed in the material aspects of computing (memory, cpu, bus and all). My understanding of imports in Python is such: the __main__ program is the center piece which holds the programs reference: globals, functions, classes, modules etc. The objects of thi

Re: Quick Reference from module doc strings.

2005-05-15 Thread John Machin
Ron Adam wrote: > Does anyone have suggestions on how to improve this further? Not functionally (from me, yet). However if you can bear a stylistic comment, do read on :-) > elif (isinstance(object,str) > or isinstance(object,int) > or isinstance(object,

deleting the terminal prompt?

2005-05-15 Thread MackS
Dear all, I just noticed the following behavior when I run import os import sys import readline histfile = os.path.join(os.environ["HOME"], ".pyhist") try: readline.read_history_file(histfile) except IOError: pass import atexit atexit.register(readline.write_history_file, histfile) del

The world is really unstable these days......

2005-05-15 Thread TheConcernedOne
We've got a lot to deal with these days. Terrorism, Recession, Weather and more. It's all got me concerned. I thought I'd tell you all about this group I found where everyday people get together and try to learn how to deal with it all. (I used to be a member, but I'm moving to an area that does

Re: Safe eval, or how to get list from string

2005-05-15 Thread Joseph Garvin
[EMAIL PROTECTED] wrote: >>http://twistedmatrix.com/users/moshez/unrepr.py >>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469 >> >> > >Thanks, this helps - but I was looking at using no additional modules, >or using something that came bundled in with python 2.3 > >I just discove

Re: Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread John Ridley
"Joal Heagney" wrote: > Hi everyone. I've been getting this error message in python, and it's > really driving me up the wall. > > > [EMAIL PROTECTED] joal]$ python > 'import site' failed; use -v for traceback > Python 2.3.4 (#1, Apr 18 2005, 19:03:06) > [GCC 3.4.1] on linux2 > Type "help", "co

RE: Property,how to use it?

2005-05-15 Thread Delaney, Timothy C (Timothy)
[EMAIL PROTECTED] wrote: > What is the "property" mean in the python? Who can explain it > for me? I don't know how to use it. http://www.catb.org/~esr/faqs/smart-questions.html Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

Resizing VListBox on parent (wxPython)

2005-05-15 Thread Ivan Voras
I hava a hierarhical sizer layout in which there's a panel in the upper part of a window with some buttons, and another panel with wxVListBox that's meant to occupy all the remaining space in the window. Both panels are put inside a vertical BoxSizer, and the VListBox in its panel is also in Bo

thread title's getting shorter...

2005-05-15 Thread Johnny Gentile
. -- http://mail.python.org/mailman/listinfo/python-list

python-dev Summary for 2005-04-16 through 2005-04-30

2005-05-15 Thread Tony Meyer
[The HTML version of this Summary is available at http://www.python.org/dev/summary/2005-04-16_2005-04-30.html] == Summary Announcements == --- Exploding heads --- After a gentle introduction for our first summary, python-dev real

MacOS X drag & drop?

2005-05-15 Thread Han-Wen Nienhuys
Hi there, this might not be the right group to ask, but I'm looking for some hints on making a drag & droppable application on MacOS X. I succeeded in producing a bundle that calls a python script. When I drop a file onto the application, the python script is called with the following arguments

RE: An example in point 2

2005-05-15 Thread Lee Cullens
    From:       [EMAIL PROTECTED]    Subject:     RE:  An example in point 2    Date:     May 15, 2005 8:35:01 PM EDT    To:       [EMAIL PROTECTED]I guess Python is just a cover for this list.  Since the holly rollers can post whatever they want, now the survivalists are chiming in also.  Yet Pyth

Re: Quick Reference from module doc strings.

2005-05-15 Thread Ron Adam
John Machin wrote: > Ron Adam wrote: > >>Does anyone have suggestions on how to improve this further? > > > Not functionally (from me, yet). However if you can bear a stylistic > comment, do read on :-) > > >> elif (isinstance(object,str) >> or isinstance(object,int) >>

Re: The world is really unstable these days......

2005-05-15 Thread Lucas Raab
> Don't change eventually while you're climbing through a light > pumpkin. If the open clouds can play wrongly, the lean elbow may > call more bedrooms. He can help believably, unless Wail teases > farmers throughout Wednesday's enigma. She wants to join good > tyrants about Allan's sign.

Re: deleting the terminal prompt?

2005-05-15 Thread MackS
Thanks, Dennis, that solved it. Cheers Mack Dennis Lee Bieber wrote: > On 15 May 2005 16:32:57 -0700, "MackS" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > while cmd != "": > > > > sys.stdout.write("prompt: ") > > cmd = raw_input() > > > > # at this point

PIGIP Meeting -- Python Interest Group In Princeton

2005-05-15 Thread [EMAIL PROTECTED]
PIGIP, the Python Interest Group In Princeton, NJ, USA will have a meeting Monday night at 7 (May 15) in the Lawrenceville, NJ library. No formal topic is set tonight, but we will be reviewing some bits of the standard library that are highlighted in the Python Tutorial. Anyone with an interest

Re: MacOS X drag & drop?

2005-05-15 Thread Simon Percivall
Take a look at Platypus at http://sveinbjorn.sytes.net/platypus. It will make it easier for you. -- http://mail.python.org/mailman/listinfo/python-list

Re: thread title's getting shorter...

2005-05-15 Thread \"Rolland\"
"Johnny Gentile" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > . ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Property,how to use it?

2005-05-15 Thread Peter Hansen
Delaney, Timothy C (Timothy) wrote: > [EMAIL PROTECTED] wrote: > >>What is the "property" mean in the python? Who can explain it >>for me? I don't know how to use it. > > http://www.catb.org/~esr/faqs/smart-questions.html Or he can just learn to use Google: http://www.google.com/search?q=python

Re: The world is really unstable these days......

2005-05-15 Thread Peter Hansen
Lucas Raab wrote: > [...] > Y'know, I really do love these random word spam messages. They're quite > entertaining to read. Although, when posting in reply to them it apparently helps those who read this through the mailing list, and who have Bayesian filtering of spam happening, if you would

German spam event [was: Re: Schily ueber Deutschland]

2005-05-15 Thread François Pinard
[Paul Rubin] > I don't think that post was really from MAL. It seems to be a > sporgery attack on the newsgroup. Sigh. For the last two days, I receive quite an amount of robotic rejects, after my name was used as the forged From: for an apparently massive spam invoice written in German. At th

RE: The world is really unstable these days......

2005-05-15 Thread Delaney, Timothy C (Timothy)
Peter Hansen wrote: > Lucas Raab wrote: >> > [...] >> Y'know, I really do love these random word spam messages. They're >> quite entertaining to read. > > Although, when posting in reply to them it apparently helps those who > read this through the mailing list, and who have Bayesian filtering o

Re: Is isinstance always "considered harmful"?

2005-05-15 Thread Bengt Richter
On Sun, 15 May 2005 14:31:21 -0400, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > >"Jordan Rastrick" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] > >> I've read arguments, here and elsewhere, to the effect that in Python >> isinstance should be avoided like the plague, except in a fe

Re: problem uploading ZIP file tp PyPI

2005-05-15 Thread richard
John Machin wrote: > Sorry in advance if this is not the correct forum ... Quite. The support link for PyPI is in the sidebar of the site. > I'm trying to upload what appears to be a perfectly OK zip file as a > "source" file type to PyPI, and am getting this response: > > Error... > There's be

Re: [Docutils-develop] Re: Have you tried eric3 ?

2005-05-15 Thread Steve Holden
Nicola Larosa wrote: >>I've recently discovered Eric3, a development environment dedicated to >>python, >>and I'm really impressed ! Up to now I'd been using kdevelop for my projects >>involving python but I always felt unsatisfied with it. >>... >>Let me know your thoughts about this nice app !

Re: thread title's getting shorter...

2005-05-15 Thread James Stroud
On Sunday 15 May 2005 06:17 pm, "Rolland" "Johnny Gentile" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > . > > ? Another instance of the extremely clever low content body email, AKA the LCBE. Let us bask in the cleverness, shall we? Boy that's clever! I can't get over how

Re: Range function

2005-05-15 Thread David Formosa (aka ? the Platypus)
On 15 May 2005 02:50:38 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: > Here's the Perl code. Where did you learn to program? Its highly unlikely that a Perl programer would ever write a range function as there is a built in Perl function that does the same thing. If your intent is purely accedemic

Re: problem uploading ZIP file tp PyPI

2005-05-15 Thread John Machin
richard wrote: > John Machin wrote: > > Sorry in advance if this is not the correct forum ... > > Quite. The support link for PyPI is in the sidebar of the site. > Tried that, when I was trying to register and getting strange error messages about the user name, like "John Machin" and "John_Machin"

Re: 20050111: list basics

2005-05-15 Thread David Formosa (aka ? the Platypus)
On 12 Jan 2005 08:22:04 GMT, Abigail <[EMAIL PROTECTED]> wrote: [...] > Wrong. Perl functions don't take memory addresses. Perl doesn't allow > the programmer to do direct memory access. Perl's pack function will allow you to do direct memory access if you ask it to via the "p" and "P" templates

Re: Precision?

2005-05-15 Thread Ron Adam
Ron Adam wrote: > tiissa wrote: > >>Steffen Glückselig wrote: >> >> >>1.0 + 3.0 + 4.6 >>> >>>8.5996 >>> >>>Ehm, how could I get the intuitively 'correct' result of - say - 8.6? >>>;-) >> >> >>You may find annex B of the python tutorial an interesting read: >>http://docs.python.org

BLT with TCL/TK 8.4.9 and Python 2.4

2005-05-15 Thread Kenneth Miller
Has anyone acheived this? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

question about the id()

2005-05-15 Thread kyo guan
HI ALL: Can someone explain why the id() return the same value, and why these values are changing? Thanks you. Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class A(object): ...

  1   2   >