fileinput

2019-10-26 Thread Pascal
I have a small python (3.7.4) script that should open a log file and display its content but as you can see, an encoding error occurs : --- import fileinput import sys try: source = sys.argv[1:] except IndexError: source = None for line in fileinput.input(source):

sudo python PermissionError [Errno 13] Permission denied

2020-12-17 Thread Pascal
hi, here, I have this simple script that tests if the /tmp/test file can be opened in write mode : $ cat /tmp/append #!/usr/bin/python with open('/tmp/test', 'a'): pass the file does not exist yet : $ chmod +x /tmp/append $ ls -l /tmp/test ls: cannot access '/tmp/test': No such file or director

Re: sudo python PermissionError [Errno 13] Permission denied

2020-12-17 Thread Pascal
gt; On 2020-12-17 at 11:17:37 +0100, > Pascal wrote: > > > hi, > > > > here, I have this simple script that tests if the /tmp/test file can be > > opened in write mode : > > > > $ cat /tmp/append > > #!/usr/bin/python > > with open('/tm

Re: [Py2exe-users] py2exe 0.6.9 released

2008-12-08 Thread Pascal
On Mon, 17 Nov 2008 12:39:36 +, Pascal wrote: > On Sun, 16 Nov 2008 21:23:59 -0500, Chris Spencer wrote: > >> After I "compile" my program with py2exe 0.6.9 with Python 2.6, I'm >> still getting the "Application Did Not Initialize Properly" error &

Re: [Py2exe-users] py2exe 0.6.9 released

2008-12-08 Thread Pascal
On Mon, 08 Dec 2008 14:47:13 +, Pascal wrote: > On Mon, 17 Nov 2008 12:39:36 +0000, Pascal wrote: > >> On Sun, 16 Nov 2008 21:23:59 -0500, Chris Spencer wrote: >> >>> After I "compile" my program with py2exe 0.6.9 with Python 2.6, I'm >>>

Re: [Py2exe-users] py2exe 0.6.9 released

2008-11-17 Thread Pascal
On Sun, 16 Nov 2008 21:23:59 -0500, Chris Spencer wrote: > After I "compile" my program with py2exe 0.6.9 with Python 2.6, I'm > still getting the "Application Did Not Initialize Properly" error dialog > whenever I run my code. What am I doing wrong? I have exactly the same problem. I have tried

openmp do loops

2010-11-04 Thread Pascal
(2,i),hkltable(3,i)) end do !$OMP END PARALLEL DO However it seems that the order of the final table is not guarantee compared to the serial version. I need a j element of the table to stay there because I have an other table and I am using the index to match the data. Regards, Pascal -- http

Re: openmp do loops

2010-11-04 Thread Pascal
On 11/04/2010 11:13 AM, Pascal wrote: Hi, Oops, wrong group, sorry... Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Pascal Chambon
Hi, cool down, people, if anything gave FOSS a bad reputation, that's well the old pyjamas website (all broken, because "wheel must be reinvented here"), and most of all the "terror management" that occurred on its mailing list. Previously I had always considered open-source as a benevolent st

Re: GIL in alternative implementations

2011-05-30 Thread Pascal Chambon
Thanks for the details on IronPython's implementation B-) Hopefully Pypy will eventually get rid of its own Gil, since it doesn't do refcounting either. Regards, Pascal Le 28/05/2011 00:52, Dino Viehland a écrit : In IronPython we have fine grained locking on our mutable data

Re: Perl-Python-a-Day: Sorting

2005-10-10 Thread Pascal Costanza
y apologies for not being very fluent anymore. > > CL-USER> (setf list (sort '(1 9 2 3) #'<)); input > (1 2 3 9); output Careful. Common Lisp's sort function is specified to be destructive, so you shouldn't use it on literal constants. S

Re: Jargons of Info Tech industry

2005-10-16 Thread Pascal Bourguignon
Roedy Green <[EMAIL PROTECTED]> writes: > 3. You don't have to guess what the end user will see. If you include the fonts, which makes big documents which slows down the loading and rendering... I've seen quite a number of PDF that are ill-rendered or not rendered at all. -- "You cannot really

Re: Can python 'read disk sectors' like/via linux:dd ?

2005-11-05 Thread Pascal Bourguignon
[EMAIL PROTECTED] writes: > Hi, > in order to justify learning another language I'd first need to be convinced > that python could easily do the following:- > > ReadSectors2Bufr(hdx, StartSectr, SectrCnt, Bufr); <-- like linux: dd > PrintDecOf4Bytes(Offset, Bufr); <-- and also 1 and 2 byte v

Re: Can python 'read disk sectors' like/via linux:dd ?

2005-11-06 Thread Pascal Bourguignon
Tauno Voipio <[EMAIL PROTECTED]> writes: > Pascal Bourguignon wrote: > >> In unix, disks are files like any other file. So if your programming >> language allows you to read and write files, it allows you to read and >> write disks. >> Just write the equiv

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

2005-12-06 Thread Pascal Bourguignon
"Xah Lee" <[EMAIL PROTECTED]> writes: > i had the pleasure to read the PHP's manual today. > > http://www.php.net/manual/en/ > > although Pretty Home Page is another criminal hack of the unix lineage, > but if we are here to judge the quality of its documentation, it is a > impeccability. > > it h

Re: what's OOP's jargons and complexities?

2005-01-30 Thread Pascal Bourguignon
"Larry" <[EMAIL PROTECTED]> writes: > Xah Lee wrote: > > in computer languages, often a function definition looks like this: > > > [EMAIL PROTECTED] > > http://xahlee.org/PageTwo_dir/more.html > > Your ideas are original, insightful and simply reflect incredibly deep > creative genius. I have

Re: Lisp-likeness

2005-03-15 Thread Pascal Costanza
for i below 10 collect (lambda (x) (setq i x)) into setters collect (lambda () i) into getters finally (print (funcall (elt getters 0))) (funcall (elt setters 4) 42) (print (funcall (elt getters 9 => 10 => 42 If this difference matters to you, just be more exp

Re: Lisp-likeness

2005-03-16 Thread Pascal Bourguignon
[EMAIL PROTECTED] (Peter Lewerin) writes: > Fred Gilham <[EMAIL PROTECTED]> wrote > > > > And Lisp's "macro language" isn't involved at all here. > > > Also, #' is a read-macro. > > A read-macro and a macro aren't the same thing. > > > Then there's the "defun" macro . . . . > > There is IMHO

Code with random module faster on the vm than the vm host...

2013-11-08 Thread Pascal Bit
Here's the code: from random import random from time import clock s = clock() for i in (1, 2, 3, 6, 8): M = 0 N = 10**i for n in xrange(N): r = random() if 0.5 < r < 0.6: M += 1 k = (N, float(M)/N) print (clock()-s) Running on win7 python 2.7 32 b

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-23 Thread Pascal Bourguignon
"Xah Lee" <[EMAIL PROTECTED]> writes: > As i've indicated in the Responsible Licensing article, that today's > software come with disclaimers that essentially say the producer is not > liable even if the software don't work at all. It will be hard to > change this zero responsibility stance to a 1

Re: Xah's Edu Corner: Tech Geekers and their Style

2005-12-30 Thread Pascal Bourguignon
"Xah Lee" <[EMAIL PROTECTED]> writes: > Sometimes you want your text to flow into multiple columns, as in > newspaper's layout. However, as of 2005-12 this is not yet possible. > One can make-do by hard-coding it into HTML TABLE using multiple > columns. It is a pain because when you change your t

newbie question about import tools

2006-08-20 Thread pascal . roca
i have just downloas python and trying to import tools module C:\Documents and Settings\toto>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v Type "help", "copyright", "credits" or "license" >>> import tools Traceback (most recent call last): File "", line 1, in ? ImportError: No module nam

Re: The Nature of the “Unix Philosophy”

2006-06-08 Thread Pascal Bourguignon
Frank Silvermann <[EMAIL PROTECTED]> writes: > Nils O. Selåsdal wrote: >> Xah Lee wrote: >>> The Nature of the “Unix Philosophy” > [snip] > >> Perhaps you should take a peek at the ideas in Plan 9 from Bell Labs, >> which is a continuation of this philosophy, unlike the "modern" unix >> clones. >

Re: What is Expressiveness in a Computer Language

2006-06-14 Thread Pascal Costanza
lly takes quite a while to convince the Haskell compiler to accept their programs. (They perceive this to be worthwhile because of some benefits wrt correctness they claim to get in return.) Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop

Re: What is Expressiveness in a Computer Language

2006-06-14 Thread Pascal Bourguignon
Joachim Durchholz <[EMAIL PROTECTED]> writes: > Raffael Cavallaro schrieb: >> a program which would be perfectly permissible in a dynamically >> typed language such as common lisp - for example - heterogeneous >> lists and forward references to as yet non-existent functions. > > Um... heterogenous

Re: What is Expressiveness in a Computer Language

2006-06-15 Thread Pascal Costanza
Neelakantan Krishnaswami wrote: > In article <[EMAIL PROTECTED]>, Pascal Costanza wrote: >> Torben Ægidius Mogensen wrote: >> >>> On a similar note, is a statically typed langauge more or less >>> expressive than a dynamically typed language? Some would say

Re: What is Expressiveness in a Computer Language

2006-06-16 Thread Pascal Costanza
Torben Ægidius Mogensen wrote: > Raffael Cavallaro <[EMAIL PROTECTED]'espam-s'il-vous-plait-mac.com> writes: > >> On 2006-06-14 16:36:52 -0400, Pascal Bourguignon <[EMAIL PROTECTED]> said: >> >>> In lisp, all lists are homogenous: lists of T. &g

Re: What is Expressiveness in a Computer Language

2006-06-16 Thread Pascal Costanza
Torben Ægidius Mogensen wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> Torben Ægidius Mogensen wrote: >> >>> On a similar note, is a statically typed langauge more or less >>> expressive than a dynamically typed language? Some would sa

Re: What is Expressiveness in a Computer Language

2006-06-16 Thread Pascal Costanza
Torben Ægidius Mogensen wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> Torben Ægidius Mogensen wrote: > >>> So while it may take longer to get a program that gets >>> past the compiler, it takes less time to get a program that works. >> Th

Re: What is Expressiveness in a Computer Language

2006-06-19 Thread Pascal Costanza
oving the > absence of certain program behaviors, then they don't mean anything at > all. Pretending that there's a distinction at runtime between "type > errors" and "other errors" serves only to confuse things and > artificially limit which problems we are willing to concieve as being > solvable by types. Your problem doesn't exist. Just say "types" when you're amongst your own folks, and "static types" when you're amongst a broader audience, and everything's fine. Instead of focusing on terminology, just focus on the contents. Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-19 Thread Pascal Costanza
yped if its definition > includes (or ever better: is based on) a static type system, i.e., a > static semantics with typing judgments derivable by typing rules. > Usually typing judgmets associate program phrases ("expressions") with > types given a typing environment. How do

Re: What is Expressiveness in a Computer Language

2006-06-19 Thread Pascal Costanza
Chris Smith wrote: > Pascal Costanza <[EMAIL PROTECTED]> wrote: >> Types can be represented at runtime via type tags. You could insist on >> using the term "dynamically tagged languages", but this wouldn't change >> a lot. Exactly _because_ it doesn'

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Pascal Costanza
Lisp, Java, etc., make use of such program updates to improve edit-compile-test cycles. However, it is also possible (and done in practice) to use such program updates to minimize downtimes when adding new features to deployed systems. Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Pascal Costanza
Matthias Blume wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> - In a dynamically typed language, you can run programs successfully >> that are not acceptable by static type systems. > > This statement is false. The example I have given is more importa

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Pascal Costanza
Rob Thorpe wrote: > Pascal Costanza wrote: >> Matthias Blume wrote: >>> Pascal Costanza <[EMAIL PROTECTED]> writes: >>>> (slot-value p 'address) is an attempt to access the field 'address in >>>> the object p. In many languages, the no

Re: What is Expressiveness in a Computer Language

2006-06-21 Thread Pascal Costanza
David Hopwood wrote: > Pascal Costanza wrote: >> Rob Thorpe wrote: >>> Pascal Costanza wrote: >>>> Matthias Blume wrote: >>>>> Pascal Costanza <[EMAIL PROTECTED]> writes: >>>>> >>>>>> (slot-value p 'address)

Re: What is Expressiveness in a Computer Language

2006-06-21 Thread Pascal Costanza
Joachim Durchholz wrote: > Pascal Costanza schrieb: >> (It's really important to understand that the idea is to use this for >> deployed programs - albeit hopefully in a more structured fashion - >> and not only for debugging. The example I have given is an extr

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Costanza
arnings but still allows you to run a program even in the presence of static type errors. I guess the feedback you get from such a system is probably not "strong" enough to be appreciated by static typing advocates in the first setting (where you have a good understanding of your domain). Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is a type error?

2006-06-22 Thread Pascal Costanza
or example, if it simply forwards the message to another object that is known to be able to respond to it, then you remove a potential type error; however, if it pops up a dialog box to ask the user how to continue from here, it is still a type error, but just gives you a way to deal with

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Costanza
add a number and a hastable. > The static view > was not there and the dynamic view must have been too complicated so > they had > nothing to think about. We have all seen less-than-average programmers who would fail in all kinds of languages. What they do is typically not

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Costanza
Andreas Rossberg wrote: > Pascal Costanza wrote: >> >> Consider a simple expression like 'a + b': In a dynamically typed >> language, all I need to have in mind is that the program will attempt >> to add two numbers. In a statically typed language, I addition

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Bourguignon
Andreas Rossberg <[EMAIL PROTECTED]> writes: > Pascal Costanza wrote: >> Consider a simple expression like 'a + b': In a dynamically typed >> language, all I need to have in mind is that the program will >> attempt to add two numbers. In a statically typed lan

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Bourguignon
Pascal Costanza <[EMAIL PROTECTED]> writes: > Andreas Rossberg wrote: >> Pascal Costanza wrote: >>> >>> Consider a simple expression like 'a + b': In a dynamically typed >>> language, all I need to have in mind is that the program will &

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Bourguignon
Matthias Blume <[EMAIL PROTECTED]> writes: > Pascal Bourguignon <[EMAIL PROTECTED]> writes: > >> Moreover, a good proportion of the program and a good number of >> algorithms don't even need to know the type of the objects they >> manipulate. >> >

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Bourguignon
"Marshall" <[EMAIL PROTECTED]> writes: > Pascal Costanza wrote: >> >> Consider a simple expression like 'a + b': In a dynamically typed >> language, all I need to have in mind is that the program will attempt to >> add two numbers. In a stat

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Pascal Bourguignon
Matthias Blume <[EMAIL PROTECTED]> writes: > Pascal Bourguignon <[EMAIL PROTECTED]> writes: > >> Matthias Blume <[EMAIL PROTECTED]> writes: >> >>> Pascal Bourguignon <[EMAIL PROTECTED]> writes: >>> >>>> Moreover, a good p

Re: What is a type error?

2006-06-23 Thread Pascal Costanza
Matthias Blume wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> Chris Smith wrote: >> >>> While this effort to salvage the term "type error" in dynamic >>> languages is interesting, I fear it will fail. Either we'll al

Re: What is a type error?

2006-06-23 Thread Pascal Costanza
Chris Smith wrote: > Pascal Costanza <[EMAIL PROTECTED]> wrote: >> What about this: You get a type error when the program attempts to >> invoke an operation on values that are not appropriate for this operation. >> >> Examples: adding numbers to strings; d

Re: What is Expressiveness in a Computer Language

2006-06-23 Thread Pascal Costanza
t; Oh, and I also want to say that of all the cross-posted mega threads > on static vs. dynamic typing, this is the best one ever. Most info; > least flames. Yay us! Yay! :) Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-23 Thread Pascal Costanza
Marshall wrote: > Pascal Costanza wrote: >> Consider a simple expression like 'a + b': In a dynamically typed >> language, all I need to have in mind is that the program will attempt to >> add two numbers. In a statically typed language, I additionally need to >

Re: What is Expressiveness in a Computer Language

2006-06-23 Thread Pascal Costanza
have access even after the customer has started to use the program. See http://www.paulgraham.com/road.html for a good essay on this idea. Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Saying "latently-typed language" is making a category mistake

2006-06-23 Thread Pascal Costanza
Scheme to have a latently typed view of programs, in the sense that Anton describes. So latent typing is a property that can at least be enabled / supported by a programming language, so it is reasonable to talk about this as a property of some dynamically typed languages. Pascal [1] Yet Co

Re: Saying "latently-typed language" is making a category mistake

2006-06-23 Thread Pascal Costanza
el, than any of the languages > mentioned in the newsgroups header for this message. Not quite. See http://en.wikipedia.org/wiki/ACL2 Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Saying "latently-typed language" is making a category mistake

2006-06-23 Thread Pascal Costanza
Matthias Blume wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> Patricia Shanahan wrote: >>> Vesa Karvonen wrote: >>> ... >>>> An example of a form of informal reasoning that (practically) every >>>> programmer does dail

Re: Saying "latently-typed language" is making a category mistake

2006-06-23 Thread Pascal Costanza
Patricia Shanahan wrote: > Pascal Costanza wrote: >> Matthias Blume wrote: >>> Pascal Costanza <[EMAIL PROTECTED]> writes: >>> >>>> Patricia Shanahan wrote: >>>>> Vesa Karvonen wrote: >>>>> ... >>>>>> An

Re: Saying "latently-typed language" is making a category mistake

2006-06-23 Thread Pascal Costanza
Chris Uppal wrote: > Pascal Costanza wrote: > >> Sorry, obviously I was far from being clear. ACL2 is not >> Turing-complete. All iterations must be expressed in terms of >> well-founded recursion. > > How expressive does that end up being for real problems ?

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Pascal Costanza
xt, the term "latently-typed language" refers to the >> language that a programmer experiences, not to the subset of that >> language which is all that we're typically able to formally define. > > That is starting to get a bit too mystical for my tastes. To paraph

Re: What is Expressiveness in a Computer Language

2006-06-25 Thread Pascal Costanza
typed unsafe. > > Here's a matrix how most people that I know would fill in with terminology: > > | Statically | Not | > | typed| statically | > | | typed | >-----+-

Re: What is a type error?

2006-06-26 Thread Pascal Costanza
David Hopwood wrote: > Pascal Costanza wrote: >> Chris Smith wrote: >> >>> While this effort to salvage the term "type error" in dynamic >>> languages is interesting, I fear it will fail. Either we'll all have >>> to admit that "typ

Re: What is a type error?

2006-06-26 Thread Pascal Costanza
Chris Smith wrote: > Pascal Costanza <[EMAIL PROTECTED]> wrote: >> Consider division by zero: appropriate arguments for division are >> numbers, including the zero. The dynamic type check will typically not >> check whether the second argument is zero, but will cou

Re: What is a type error?

2006-06-26 Thread Pascal Costanza
Chris Smith wrote: > Pascal Costanza <[EMAIL PROTECTED]> wrote: >> Chris Smith wrote: >>> Of course zero is not appropriate as a second argument to the division >>> operator! I can't possibly see how you could claim that it is. The >>> only

Re: What is Expressiveness in a Computer Language

2006-06-26 Thread Pascal Bourguignon
"Marshall" <[EMAIL PROTECTED]> writes: > Yes, an important question (IMHO the *more* important question > than the terminology) is what *programs* do we give up if we > wish to use static typing? I have never been able to pin this > one down at all. Well, given Turing Machine equivalence... I'd m

Re: What is a type error?

2006-06-27 Thread Pascal Costanza
Chris Smith wrote: > Pascal Costanza <[EMAIL PROTECTED]> wrote: >>> Clearly, in this example, the program >>> is invoking an operation (division) on values that are not appropriate >>> (zero for the second argument). Hence, if your definition really is a &g

Re: What is a type error?

2006-06-27 Thread Pascal Costanza
Marshall wrote: > Pascal Costanza wrote: >> Consider division by zero: appropriate arguments for division are >> numbers, including the zero. > > A bold assertion! > > The general question is, what do we do about partial functions? > > >> The dynamic

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Pascal Costanza
uot; type, all > dynamically typed programs are straightforwardly expressible. What about programs where the types change at runtime? Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Pascal Costanza
nificance > in the # ' on the third line, but I have no idea what it is. You can ignore the #'. In Scheme this as follows: (define blackhole (argument) blackhole) It just means that the function blackhole returns the function blackhole. Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-28 Thread Pascal Costanza
David Hopwood wrote: > Pascal Costanza wrote: >> David Hopwood wrote: >>> Marshall wrote: >>> >>>> The real question is, are there some programs that we >>>> can't write *at all* in a statically typed language, because >>>> they&

Re: What is Expressiveness in a Computer Language

2006-06-28 Thread Pascal Costanza
David Hopwood wrote: > Pascal Costanza wrote: >> David Hopwood wrote: >>> Pascal Costanza wrote: >>>> David Hopwood wrote: >>>>> Marshall wrote: >>>>> >>>>>> The real question is, are there some programs that we >

Re: What is Expressiveness in a Computer Language

2006-06-28 Thread Pascal Costanza
Matthias Blume wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >> Whether you consider something you cannot do with statically typed >> languages a bad idea or not is irrelevant. You were asking for things >> that you cannot do with statically typed lang

Re: What is Expressiveness in a Computer Language

2006-06-28 Thread Pascal Costanza
Matthias Blume wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >>> And I am convinced that updating a running system in the style of, >>> e.g., Erlang, can be statically typed. >> Maybe. The interesting question then is whether you can express the

Re: Reddit broke - should have remained on Lisp?

2006-06-30 Thread Pascal Costanza
lisp.html Compare this to that report: http://groups.google.com/group/comp.lang.lisp/msg/33fec2394f38546b Pascal -- 3rd European Lisp Workshop July 3 - Nantes, France - co-located with ECOOP 2006 http://lisp-ecoop06.bknr.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: languages with full unicode support

2006-07-04 Thread Pascal Bourguignon
Joachim Durchholz <[EMAIL PROTECTED]> writes: > Oliver Bandel schrieb: >> Matthias Blume wrote: >> >>> Tin Gherdanarra <[EMAIL PROTECTED]> writes: >>> >>> Oliver Bandel wrote: > こんいちわ Xah-Lee san ;-) Uhm, I'd guess that Xah is Chinese. Be careful with such things in r

Re: What is a type error?

2006-07-10 Thread Pascal Bourguignon
Chris Smith <[EMAIL PROTECTED]> writes: > But the point here is that I don't WANT the compiler to be able to infer > that, because it's a transient consequence of this year's tax code. I > want the compiler to make sure my code works no matter what the tax code > is. The last thing I need to

Re: merits of Lisp vs Python

2006-12-08 Thread Pascal Bourguignon
[EMAIL PROTECTED] writes: > However, it is nice to work > with friends, who know Python and not Lisp.) It would be nicer a friendship if you taught them Lisp... -- __Pascal Bourguignon__ http://www.informatimago.com/ In a World without Walls and Fences, who needs Windows an

Re: merits of Lisp vs Python

2006-12-09 Thread Pascal Costanza
Ken Tilton wrote: > What is up the power continuum from Lisp? 3-Lisp. ;) Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/closer/ -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-09 Thread Pascal Costanza
t to CPS, you have to be able to actually > save the continuation when you switch to another one, so you can go > back to the first one later. You get this for free once your program is in CPS. (This is true for any language, btw. It's just that it's easier to abstract away from the

Re: merits of Lisp vs Python

2006-12-09 Thread Pascal Bourguignon
Kirk Sluder <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > "mystilleef" <[EMAIL PROTECTED]> wrote: > >> 1). More and better mature standard libraries (Languages don't matter, >> libraries do). > >> On Lisp Macros: >> >> I think they are overrated, and in general cause more

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
s. May you have tried the wrong Lisp dialects so far: (loop for i from 2 to 10 by 2 do (print i)) This is Common Lisp. (Many Lisp and Scheme tutorials teach you that you should implement this using recursion, but you really don't have to. ;) Pascal -- My website:

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: >> May you have tried the wrong Lisp dialects so far: >> >> (loop for i from 2 to 10 by 2 >>do (print i)) > > The loop language is so complicated and confusing that I never > bother

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: >> You can start with loop by using only the simple and straightforward >> constructs, and slowly move towards the more complicated cases when >> necessary. The nice thing about loop is that with some prac

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
s at > the REPL. If you hate LOOP then you don't have to use it. There's an important lesson to learn here: Not all language constructs are supposed to be loved by everyone. ;) Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer t

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
se of software libraries. Yet every five years, or so, new languages and technologies come up that require everyone to start from scratch. Starting from scratch is even being applauded, due to some mythical belief that "this time, we are going to get it all right." Something seems w

Re: merits of Lisp vs Python

2006-12-13 Thread Pascal Bourguignon
Christophe <[EMAIL PROTECTED]> writes: > Robert Uhl a écrit : >> [EMAIL PROTECTED] (Aahz) writes: >>> Consider this: Lisp has had years of development, it has had millions of >>> dollars thrown at it by VC firms -- and yet Python is winning over Lisp >>> programmers. Think about it. >> >> The arg

Re: merits of Lisp vs Python

2006-12-15 Thread Pascal Bourguignon
Paul Rubin writes: > André Thieme <[EMAIL PROTECTED]> writes: >> and the Lisp version has only 9: >> nth, 1+, truncate, signum, num, list, pos, zero, neg > > Oh come on, you have to count the parentheses too. No. Parentheses are editor commands. They don't count anymor

Re: merits of Lisp vs Python

2006-12-20 Thread Pascal Bourguignon
"Rob Thorpe" <[EMAIL PROTECTED]> writes: > Anders J. Munch wrote: >> jayessay wrote: >> > Please note: GC is not part of CL's definition. It is likely not part >> > of any Lisp's definition (for reasons that should be obvious), and for >> > the same reasons likely not part of any language's def

Re: What are OOP's Jargons and Complexities?

2005-05-26 Thread Pascal Costanza
mething meaningful but not to a core dump. Some people use the term weak typing to refer to languages that potentially core dump whereas they use the term strong typing for languages that don't. Pascal -- 2nd European Lisp and Scheme Workshop July 26 - Glasgow, Scotland - co-located with

Re: I need some cleanings tips and advice.

2007-06-22 Thread Pascal Bourguignon
"Colin B." <[EMAIL PROTECTED]> writes: > In comp.lang.perl.misc [EMAIL PROTECTED] wrote: >> Me and my buddy made a website called www.stupidpinheads.com, its >> basically a free forum and free blog driven web site dedicated as a >> source people can goto to find out how to clean and remove stains

Re: I need some cleanings tips and advice.

2007-06-22 Thread Pascal Bourguignon
Neil Cerutti <[EMAIL PROTECTED]> writes: > ["Followup-To:" header set to comp.lang.python.] > On 2007-06-22, Colin B. <[EMAIL PROTECTED]> wrote: >> In comp.lang.perl.misc [EMAIL PROTECTED] wrote: >>> Me and my buddy made a website called www.stupidpinheads.com, its >>> basically a free forum and

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-22 Thread Pascal Bourguignon
Twisted <[EMAIL PROTECTED]> writes: > On Jun 21, 12:09 pm, Robert Uhl <[EMAIL PROTECTED]> wrote: >> Twisted <[EMAIL PROTECTED]> writes: >> >> >> > I have that exact URL now -- >> >> >http://www.asktog.com/columns/027InterfacesThatKill.html >> >> >> Utterly unrelated to Emacs. >> >> > I think it is

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-22 Thread Pascal Bourguignon
Falcolas <[EMAIL PROTECTED]> writes: > On Jun 22, 3:06 pm, Pascal Bourguignon <[EMAIL PROTECTED]> wrote: >> How do you call a Mac user interface that let a user work during 3 >> hours to do a simple modification to a MS-Word file that takes 15 >> seconds to do w

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-22 Thread Pascal Bourguignon
Twisted <[EMAIL PROTECTED]> writes: > The Windows world may have a fair bit to learn from the Unix world > about software reliability and QA, and also about better supporting > task automation. But not about user interface design for when tasks > are done manually. That's the point. Manual tasks

Re: Lisp-like macros in Python?

2007-05-01 Thread Pascal Costanza
Converge is a Python-style language with a macro facility. See http://convergepl.org/ Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/closer/ -- http://mail.python.org/mailman/list

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-02 Thread Pascal Costanza
only statement about the technology I have read so far is that the DLR is a thin layer on top of the CLR. This doesn't say a lot. So it's hard to tell whether this is a (good) marketing stunt or whether there are actual substantial improvement to the infrastructure. Pascal -- My w

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-02 Thread Pascal Costanza
Fuzzyman wrote: > On May 2, 8:20 pm, Pascal Costanza <[EMAIL PROTECTED]> wrote: >> sturlamolden wrote: >>> On Monday Microsoft announced a new runtime for dynamic languages, >>> which they call "DLR". It sits on top of the conventional .NET runtime >&

Re: Why stay with lisp when there are python and perl?

2007-05-04 Thread Pascal Costanza
performance may be determined by those library routines." - "The performance of a benchmark, even if it is derived from a real program, may not help to predict the performance of similar programs that have different hot spots." Pascal -- My website: http://p-cos.net Common

[CfP] Dynamic Languages Symposium 2007

2007-03-06 Thread Pascal Costanza
electronically at http://www.dcl.hpi.uni-potsdam.de/dls2007/ in PDF format. Submissions must not exceed 12 pages and need to use the ACM format, templates for which can be found at http://www.acm.org/sigs/pubs/proceed/template.html. Program chairs: *** * Pascal Costanza, Programming Technology

Subclass str: where is the problem?

2006-04-24 Thread pascal . parent
Hello, can anybody explain/help me: Python 2.4.2 (#2, Sep 30 2005, 21:19:01) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 class Upper(str): def __new__(cls, value): return str.__new__(cls, value.upper()) u = Upper('test') u 'TEST' type(u) u = Upper('') u '' type(u)

Re: Subclass str: where is the problem?

2006-04-24 Thread pascal . parent
This is good... try this: value = 'test' value 'test' type(value) value = type(value) is type('') and Upper(value) or value value 'TEST' type(value) value = 1 value 1 type(value) value = type(value) is type('') and Upper(value) or value value 1 type(value) -- http://mail.python.org/mailman

Re: Subclass str: where is the problem?

2006-04-24 Thread pascal . parent
Effectively. Thanks a lot Peter and Harold. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-16 Thread Pascal Bourguignon
"[EMAIL PROTECTED] opalinski from opalpaweb" <[EMAIL PROTECTED]> writes: >> Simply put, tabs is proper, and spaces are improper. >> Why? This may seem >> ridiculously simple given the de facto ball of confusion: the semantics >> of tabs is what indenting is about, while, using spaces to align code

  1   2   3   >