Re: File read from stdin and printed to temp file are not identicial?

2010-09-16 Thread Jean Luc Truchtersheim
Dear Fellow python users, Many thanks for your help. Those missing brackets were the cause of my problem. Now my program works as expected. Many, many heartfelt thanks. -- http://mail.python.org/mailman/listinfo/python-list

File read from stdin and printed to temp file are not identicial?

2010-09-16 Thread Jean Luc Truchtersheim
d):\"%s\"" % (i+1, len(line), line, len(data[i]), data[i]) i += 1 sys.exit() #- I feel that I must be doing something very stupid, but I don't really know what. Any idea?

Re: Absolute beginner

2009-12-30 Thread Luc
Also thanks Ben and Simon for your help ! On Dec 30, 1:07 pm, Luc wrote: > Thanks Krister ! > Should have read specific 3.1 documentation :-(  . > > Regards,  Luc > > On Dec 30, 12:56 pm, Krister Svanlund > wrote: > > > In Python 3 the syntax for print has

Re: Absolute beginner

2009-12-30 Thread Luc
Thanks Krister ! Should have read specific 3.1 documentation :-( . Regards, Luc On Dec 30, 12:56 pm, Krister Svanlund wrote: > In Python 3 the syntax for print has changed to print() so just put > braces around the string and you'r good to go! > > On Wed, Dec 30, 2009 at

Re: Reading hex to int from a binary string

2009-10-09 Thread Luc
On Oct 9, 10:45 am, "Diez B. Roggisch" wrote: > Luc schrieb: > > > > > On Oct 8, 11:13 pm, "Diez B. Roggisch" wrote: > >> Luc schrieb: > > >>> Hi all, > >>> I read data from a binary stream, so I get hex values as chara

Reading hex to int from a binary string

2009-10-09 Thread Luc
Hi all, I read data from a binary stream, so I get hex values as characters (in a string) with escaped x, like "\x05\x88", instead of 0x05. I am looking for a clean way to add these two values and turn them into an integer, knowing that calling int() with base 16 throws an invalid literal excepti

Re: Reading hex to int from a binary string

2009-10-09 Thread Luc
On Oct 9, 3:12 am, Dennis Lee Bieber wrote: > On Thu, 8 Oct 2009 14:52:33 -0700 (PDT), Luc > declaimed the following in gmane.comp.python.general: > > > > > On Oct 8, 11:13 pm, "Diez B. Roggisch" wrote: > > > Luc schrieb: > > > > > Hi al

Re: Reading hex to int from a binary string

2009-10-08 Thread Luc
On Oct 8, 11:13 pm, "Diez B. Roggisch" wrote: > Luc schrieb: > > > Hi all, > > > I read data from a binary stream, so I get hex values as characters > > (in a string) with escaped x, like "\x05\x88", instead of 0x05. > > > I am looki

Re: marked-up Python code

2007-11-20 Thread Luc Goossens
has been hidden? I will gladly settle for some pointer into the vim documentation, which I found already. many thanks, Luc On Nov 20, 2007, at 1:03 PM, Tim Chase wrote: >> "all" the Python parser has to do is skip the mark-up. > [snip] >> I know I can put the mark-up

marked-up Python code

2007-11-20 Thread Luc Goossens
code_ smth like else : print "ERROR" return -1 "all" the Python parser has to do is skip the mark-up. Has something like this been done before? Is there a way to do this without changing the Python executable? If not, where in the source code should I start looking?

Re: The Future of Python Threading

2007-08-10 Thread Luc Heinrich
Justin T. <[EMAIL PROTECTED]> wrote: > What these seemingly unrelated thoughts come down to is a perfect > opportunity to become THE next generation language. Too late: <http://www.erlang.org/> :) -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: loose methods : Smalltalk asPython

2006-12-27 Thread Luc Heinrich
Jan Theodore Galkowski <[EMAIL PROTECTED]> wrote: > Comments? Suggestions? <http://www.ruby-lang.org> -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Looking UI for a stand alone application

2006-12-20 Thread Luc Heinrich
'libwx' in libs: print d findLinkedWithWX('/Applications') findLinkedWithWX('/Developer') -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Luc Heinrich
No it's not, because you insist on presenting only one part of the problem. Using native widgets is *far* from enough. > Such self-important pronouncements would be better received if you > brought them down the mountain on stone tablets. No problem, let me get my chisel, do you prefer Fe

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Luc Heinrich
m toolkits/frameworks are so great and automagically allow to produce superlickable and native-looking/feeling applications on all three major platforms, why is there so few of those applications on OS X ? "Because Mac users are elitists assholes" is not the good answer by the way :) -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Luc Heinrich
Apple Mac", so the rephrasing does not apply in this case. So here's a last try: "Crossplatform toolkits/frameworks suck. All of them. No exception. ESPECIALLY if one of your target is Mac OS". -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Looking UI for a stand alone application

2006-12-17 Thread Luc Heinrich
platform, abstract the core of your application and embed it in platform native GUI code. -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: [Reported] (was Re: A critic of Guido's blog on Python's lambda)

2006-05-06 Thread Luc The Perverse
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Reported for excessive crossposting. Did u report yourself? -- LTP :) -- http://mail.python.org/mailman/listinfo/python-list

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-01 Thread Luc The Perverse
"steve" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 1 Apr 2006 13:06:52 +0800, Luc The Perverse wrote > (in article <[EMAIL PROTECTED]>): > >> <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>>

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-03-31 Thread Luc The Perverse
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Programing Languiges Are Ment to be free. That is why i am starting The > Coo De Tar thats french for Blow of state it is a flash/java > alternative and if you are going to use a server side languige use > Perl,Python or better yet Ruby

Re: String comparison question

2006-03-20 Thread luc . saffre
s how I do such comparisons: if a.strip().split() == b.strip().split() Luc -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: What is Expressiveness in a Computer Language

2006-03-19 Thread Luc The Perverse
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Dag Sunde" <[EMAIL PROTECTED]> wrote: > >> "Xah Lee" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> What is Expressiveness in a Computer Language >> >> PLONK. > > Don't post PLONK messages you idiot. P

Re: OT: excellent book on information theory

2006-01-16 Thread Luc The Perverse
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > Grant Edwards <[EMAIL PROTECTED]> writes: >> That made me smile on a Monday morning (not an insignificant >> accomplishment). I noticed in the one footnote that the H.P. >> book had been "translated into American".

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-14 Thread Luc The Perverse
"javuchi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why do you have such a need of being hating everything and everybody > and expressing it so offen? > Can you live without hate? > Can you let others live without your hates? A person can live without hate, living love and wor

Re: Microsoft Hatred FAQ

2005-10-25 Thread Luc The Perverse
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 25 Oct 2005 11:51:02 -0700, David Schwartz wrote: > >> >> "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> The first two points are factually wrong, and the third is an op

Re: problem installing wxPython 2.5.3, wxWidgets installed ok

2005-02-27 Thread Luc
[EMAIL PROTECTED] a écrit: > I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 > machine. > > I have python in a non-standard place, but I'm using --prefix with the > configure script to point to where I have everything. The make install > in $WXDIR seemed to go fine. I have

Re: Web interface GUI??

2005-02-12 Thread Luc
Irmen de Jong a écrit: > Luc wrote: > >> So I am looking for another solution with a web interface that should >> work with linux and windows XP. >> I had a look to zope but was afraid with the complexity and debug >> difficulties. >> Are there some ot

Web interface GUI??

2005-02-12 Thread Luc
I am a newbye. I am looking for a multi-platform user interface solution (windows, linux). Untill now, I used wxPython which worked fine at the beginning (MDK9, Windows NT4). Nevertheless, I was very disapointed when I noticed that my applications did not work with recent linux distributions (MDK10