Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread namekuseijin
On Feb 29, 5:09 am, Xah Lee xah...@gmail.com wrote: New Science Discovery: Perl Idiots Remain Idiots After A Decade! A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 on “Operators”. Quote: «The associativity of an operator governs whether it evaluates from left to right

Re: Google AI challenge: planet war. Lisp won.

2011-01-20 Thread namekuseijin
On Dec 22 2010, 12:46 pm, Xah Lee xah...@gmail.com wrote: On Dec 20, 10:06 pm, Jon Harrop use...@ffconsultancy.com wrote: Wasn't that the challenge where they wouldn't even accept solutions written in many other languages (including both OCaml and F#)? Ocaml is one of the supported lang.

Re: Google AI challenge: planet war. Lisp won.

2010-12-03 Thread namekuseijin
On 2 dez, 15:06, Xah Lee xah...@gmail.com wrote: discovered this rather late. Google has a AI Challenge: planet wars.http://ai-contest.com/index.php it started sometimes 2 months ago and ended first this month. the winner is Gábor Melis, with his code written in lisp. Congrats lispers!

Re: Scheme as a virtual machine?

2010-11-25 Thread namekuseijin
On 25 nov, 09:23, Elena egarr...@gmail.com wrote: On Oct 13, 9:09 pm, namekuseijin namekusei...@gmail.com wrote: On 11 out, 08:49, Oleg  Parashchenko ole...@gmail.com wrote: Hello, I'd like to try the idea that Scheme can be considered as a new portable assembler. We could code

Re: Scheme as a virtual machine?

2010-11-25 Thread namekuseijin
On 25 nov, 14:30, m_mom...@yahoo.com (Mario S. Mommer) wrote: Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com writes: On 2010-11-24 16:19:49 -0500, toby said: And furthermore, he has cooties. Once again, not all ad hominem arguments are ad hominem fallacies.

Re: Scheme as a virtual machine?

2010-11-22 Thread namekuseijin
On 22 nov, 14:47, Howard Brazee how...@brazee.net wrote: On Mon, 22 Nov 2010 08:14:40 -0800 (PST), toby t...@telegraphics.com.au wrote: This is a good (if familiar) observation. Teaching children (or young people with little exposure to computers) how to program in various paradigms could

Re: Land Of Lisp is out

2010-10-29 Thread namekuseijin
On 29 out, 19:06, Alessio Stalla alessiosta...@gmail.com wrote: On 28 Ott, 10:42, p...@informatimago.com (Pascal J. Bourguignon) wrote: sthueb...@googlemail.com (Stefan Hübner) writes: Would it be right to say that the only Lisp still in common use is the Elisp built into Emacs?

Re: Land Of Lisp is out

2010-10-28 Thread namekuseijin
On 28 out, 06:46, Xah Lee xah...@gmail.com wrote: lol. He said REAL! how about the 10 Scheme Lisps on JVM? guess they are UNREAL. lol you know only CL is the real lisp and schmers are just zanny time- travelling folks as the webcomic depict. :p btw, who cross posted this thread to python? i

Re: Land Of Lisp is out

2010-10-28 Thread namekuseijin
On 28 out, 07:02, p...@informatimago.com (Pascal J. Bourguignon) wrote: Alain Ketterlin al...@dpt-info.u-strasbg.fr writes: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: Would it be right to say that the only Lisp still in common use is the Elisp built into Emacs? There

Re: Land Of Lisp is out

2010-10-28 Thread namekuseijin
On 27 out, 21:55, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: Would it be right to say that the only Lisp still in common use is the Elisp built into Emacs? Perhaps you should ask Google's Peter Norvig... -- http://mail.python.org/mailman/listinfo/python-list

Re: Land Of Lisp is out

2010-10-27 Thread namekuseijin
On 27 out, 09:46, Xah Lee xah...@gmail.com wrote: The Land Of Lisp is out! http://landoflisp.com/ Very well done site. spread the news, team lisp!  Xah haha, I've read some of the comics before. It's truly remarkably funny, no matter the language of your choice... going well down the

Re: Scheme as a virtual machine?

2010-10-14 Thread namekuseijin
On 14 out, 00:26, Ertugrul Söylemez e...@ertes.de wrote: BTW, you mentioned symbols ('$', '.' and '='), which are not syntactic sugar at all.  They are just normal functions, for which it makes sense to be infix.  The fact that you sold them as syntactic sugar or perlisms proves that you have

Re: Scheme as a virtual machine?

2010-10-13 Thread namekuseijin
On 11 out, 08:49, Oleg Parashchenko ole...@gmail.com wrote: Hello, I'd like to try the idea that Scheme can be considered as a new portable assembler. We could code something in Scheme and then compile it to PHP or Python or Java or whatever. Any suggestions and pointers to existing and

Re: Scheme as a virtual machine?

2010-10-13 Thread namekuseijin
On 13 out, 21:01, Ertugrul Söylemez e...@ertes.de wrote: What exactly is friggin' huge and complex about Haskell, and what's this stuff about a very own monolithic gcc?  Haskell isn't a lot more complex than Scheme.  In fact, Python is much more complex.  Reduced to bare metal (i.e. leaving

Re: Scheme as a virtual machine?

2010-10-13 Thread namekuseijin
On 13 out, 19:41, p...@informatimago.com (Pascal J. Bourguignon) wrote: namekuseijin namekusei...@gmail.com writes: On 11 out, 08:49, Oleg  Parashchenko ole...@gmail.com wrote: Hello, I'd like to try the idea that Scheme can be considered as a new portable assembler. We could code

Re: toy list processing problem: collect similar terms

2010-09-30 Thread namekuseijin
On 29 set, 11:04, w_a_x_man w_a_x_...@yahoo.com wrote: On Sep 26, 9:24 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: Xah Lee xah...@gmail.com writes: here's a interesting toy list processing problem. I have a list of lists, where each sublist is labelled by a number. I

Re: toy list processing problem: collect similar terms

2010-09-30 Thread namekuseijin
On 30 set, 09:35, namekuseijin namekusei...@gmail.com wrote: On 29 set, 11:04, w_a_x_man w_a_x_...@yahoo.com wrote: On Sep 26, 9:24 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: Xah Lee xah...@gmail.com writes: here's a interesting toy list processing problem. I

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-29 Thread namekuseijin
On 28 set, 19:38, Xah Lee xah...@gmail.com wrote: • “list comprehension” is a very bad jargon; thus harmful to functional programing or programing in general. Being a bad jargon, it encourage mis-communication, mis-understanding. I disagree: it is a quite intuitive term to describe what the

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-29 Thread namekuseijin
On 29 set, 17:46, Xah Lee xah...@gmail.com wrote: On Sep 29, 11:02 am, namekuseijin namekusei...@gmail.com wrote: On 28 set, 19:38, Xah Lee xah...@gmail.com wrote: • “list comprehension” is a very bad jargon; thus harmful to functional programing or programing in general. Being a bad

Re: Strong typing vs. strong testing

2010-09-27 Thread namekuseijin
On 27 set, 05:46, TheFlyingDutchman zzbba...@aol.com wrote: On Sep 27, 12:58 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: RG rnospa...@flownet.com writes: In article 7df0eb06-9be1-4c9c-8057-e9fdb7f0b...@q16g2000prf.googlegroups.com,  TheFlyingDutchman zzbba...@aol.com

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread namekuseijin
On 27 set, 16:06, Xah Lee xah...@gmail.com wrote: 2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda x:x+1,filter(lambda x:x%2==0,[1,2,3,4,5])) How about this: [snip] how about this: read before replying. --

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread namekuseijin
On 27 set, 18:39, Xah Lee xah...@gmail.com wrote: On Sep 27, 12:11 pm, namekuseijin namekusei...@gmail.com wrote: On 27 set, 16:06, Xah Lee xah...@gmail.com wrote: 2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda

Re: reddit = porn fodder

2010-09-13 Thread namekuseijin
Xah Lee escreveu: reddit = porn fodder Didn't realize, but Reddit is now a porn fodder. http://www.reddit.com/r/LegalTeens/ http://www.reddit.com/r/highheels http://www.reddit.com/r/gonewild/ Its traffic also seems to incleased 10 times since 2008. See: Computer Language Websites Popularity.

Python shared lib

2009-09-27 Thread namekuseijin
So, I was trying to get the yafaray raytracer to work with the 3D package Blender, but it asks for python2.6 and all I got is a 2.5. Actually, quite a lot of other related Blender packages are also migrating to 2.6, so a compilation was inevitable. Then I go: ./configure --prefix=~/ make

Re: Programming Praxis

2009-05-29 Thread namekuseijin
Phil Bewig escreveu: Please visit my blog, Programming Praxis, which presents a collection of programming etudes. Newbies will find exercises that extend their programming abilities. Savvy programmers can use the exercises to sharpen their skills or learn a new language. Brave programmers can

Re: Performance java vs. python

2009-05-21 Thread namekuseijin
On May 21, 7:47 am, s...@viridian.paintbox (Sion Arrowsmith) wrote: Duncan Booth  duncan.bo...@suttoncourtenay.org.uk wrote: namekuseijin namekusei...@gmail.com wrote: I find it completely unimaginable that people would even think suggesting the idea that Java is simpler.  It's one

Re: Performance java vs. python

2009-05-20 Thread namekuseijin
On Tue, May 19, 2009 at 7:21 PM, David Stanek dsta...@dstanek.com wrote: On Tue, May 19, 2009 at 5:43 PM, namekuseijin namekusei...@gmail.com wrote: someone said: If you took a look at Java, you would notice that the core language syntax is much simpler than Python's. thanks for the laughs

Re: Performance java vs. python

2009-05-20 Thread namekuseijin
Ant escreveu: # Python fh = open(myfile.txt) for line in fh: print line // Java ... BufferedReader reader = new BufferedReader(new FileReader (myfile.txt)); String line = reader.readLine(); while (line != null) { System.out.println(line); } ... And that's without all of the

Re: Performance java vs. python

2009-05-19 Thread namekuseijin
someone said: If you took a look at Java, you would notice that the core language syntax is much simpler than Python's. thanks for the laughs whoever you are! -- a game sig: http://tinyurl.com/d3rxz9 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to consume .NET webservice

2009-05-12 Thread namekuseijin
On May 12, 4:12 am, Diez B. Roggisch de...@nospam.web.de wrote: namekuseijin schrieb:   Diez B. Roggisch wrote:   namekuseijin schrieb:   bav escreveu:   question from a python newbie;       how can i consume in python language, a .NET web service, passing     a string array as parameter

Re: Nimrod programming language

2009-05-12 Thread namekuseijin
On May 8, 12:48 pm, Andreas Rumpf rump...@web.de wrote: Dear Python-users, I invented a new programming language called Nimrod that combines Python's readability with C's performance. Please check it out:http://force7.de/nimrod/ Any feedback is appreciated. heh, looks more like a

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-11 Thread namekuseijin
On May 10, 7:18 pm, Carl Banks pavlovevide...@gmail.com wrote: On May 10, 12:40 pm, namekuseijin namekuseijin.nos...@gmail.com wrote: theoretical argument like, everything reduces to a function so it doesn't matter what syntax you use, yet people in the real world are out there trying to find

Re: how to consume .NET webservice

2009-05-11 Thread namekuseijin
bav escreveu: question from a python newbie; how can i consume in python language, a .NET web service, passing a string array as parameter in some easy steps? Unless Microsoft extended the standard in any way, then it should be just as you consume any web service, I guess. ;) -- a game

Re: how to consume .NET webservice

2009-05-11 Thread namekuseijin
Diez B. Roggisch wrote: namekuseijin schrieb: bav escreveu: question from a python newbie; how can i consume in python language, a .NET web service, passing a string array as parameter in some easy steps? Unless Microsoft extended the standard in any way, then it should be just as you

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-10 Thread namekuseijin
Carl Banks wrote: On May 9, 10:57 am, namekuseijin namekuseijin.nos...@gmail.com wrote: Carl Banks wrote: On May 8, 7:19 pm, namekuseijin namekusei...@gmail.com wrote: On May 8, 10:13 pm, Carl Banks pavlovevide...@gmail.com wrote: In Haskell, Lisp and other functional programming languages

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-09 Thread namekuseijin
Lawrence D'Oliveiro wrote: In message 692b7ae8-0c5b-498a- a012-51bda980f...@s28g2000vbp.googlegroups.com, namekuseijin wrote: On May 8, 6:48 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message gu269i$16i...@adenine.netfront.net, namekuseijin wrote: Carl Banks

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-09 Thread namekuseijin
Carl Banks wrote: On May 8, 7:19 pm, namekuseijin namekusei...@gmail.com wrote: On May 8, 10:13 pm, Carl Banks pavlovevide...@gmail.com wrote: In Haskell, Lisp and other functional programming languages, any extra syntax gets converted into the core lambda constructs. So? The user still uses

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-09 Thread namekuseijin
Steven D'Aprano wrote: On Sat, 09 May 2009 14:57:24 -0300, namekuseijin wrote: I'm saying syntax is nothing special. They are user-defined, as functions. And it all gets converted into functions. Functions matter, syntax is irrelevant because you can do away with it. How do you call

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-08 Thread namekuseijin
prueba...@latinmail.com escreveu: Don't forget that the Python interpreter is simple. It makes maintenance easier and allows embedding it into other programs. Good optimizing compilers for functional languages are not simple. Good optimizing compilers are not simple, period. The python

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-08 Thread namekuseijin
Carl Banks escreveu: 2. However, functional programming is cryptic at some level no matter how nice you make the syntax. When your program is nothing but function definition and function application, syntax is meaningless. It's kinda like scripting, say, Microsoft Word in either Visual

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-08 Thread namekuseijin
On May 8, 6:48 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message gu269i$16i...@adenine.netfront.net, namekuseijin wrote: Carl Banks escreveu: 2. However, functional programming is cryptic at some level no matter how nice you make the syntax. When your program

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-08 Thread namekuseijin
On May 8, 7:22 pm, Carl Banks pavlovevide...@gmail.com wrote: On May 8, 1:56 pm, namekuseijin namekusei...@gmail.com wrote: Carl Banks escreveu: 2. However, functional programming is cryptic at some level no matter how nice you make the syntax. When your program is nothing but function

Re: I'm intrigued that Python has some functional constructions in the language.

2009-05-08 Thread namekuseijin
On May 8, 10:13 pm, Carl Banks pavlovevide...@gmail.com wrote: On May 8, 5:47 pm, namekuseijin namekusei...@gmail.com wrote: My point is that when all you do is call functions, syntax is irrelevant.  You call functions pretty much in the same way regardless of language:  functionname

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread namekuseijin
On May 8, 3:37 am, guptha gjango...@gmail.com wrote: The code Works fine ,but I doubt about the performance issue ,My intention is to send mails concurrently to large number of mail. 1.For every mail id i send It creates a new SMTP object,in case, if i send to 1000 or more ids why should I

Re: yet another list comprehension question

2009-05-05 Thread namekuseijin
2009/5/5 Ricardo Aráoz ricar...@gmail.com: This seems to work for any length tuples : a = [(1,2), (3,4, 'goes'), (5,None), (6,7, 8, 'as', None), (8, None), (9, 0)] [tup for tup in a if not [e for e in tup if e == None]] [(1, 2), (3, 4, 'goes'), (9, 0)] Why that extra for? KISS a =

Re: Using Help inside Python

2009-05-04 Thread namekuseijin
I'm from the time when I inspected python objects themselves, say: print obj.__doc__ or dir( obj ) to know the goodies... -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange interaction between timeit and recursion

2009-05-04 Thread namekuseijin
Recursion is unpythonic. Do not use it. -- http://mail.python.org/mailman/listinfo/python-list

Re: yet another list comprehension question

2009-05-04 Thread namekuseijin
ls = [(1,2), (3,4), (5, None), (6,7), (8, None)] [(x,y) for (x,y) in ls if y] [(1, 2), (3, 4), (6, 7)] -- http://mail.python.org/mailman/listinfo/python-list

Re: yet another list comprehension question

2009-05-04 Thread namekuseijin
On May 4, 9:15 am, David Robinow drobi...@gmail.com wrote: On Mon, May 4, 2009 at 2:33 AM, namekuseijin namekuseijin.nos...@gmail.com wrote: ls = [(1,2), (3,4), (5, None), (6,7), (8, None)] [(x,y) for (x,y) in ls if y] [(1, 2), (3, 4), (6, 7)] Nope. That filters out 0 as well as None

Re: Lisp mentality vs. Python mentality

2009-04-28 Thread namekuseijin
Dan Sommers escreveu: Yes, I agree: Python and Lisp are extremely dynamic languages. I *can* redefine map, reduce, +, and other operators and functions, but I know better. When is the last time you examined someone else's code, and asked them what their map function did (in Lisp or in

Re: Lisp mentality vs. Python mentality

2009-04-27 Thread namekuseijin
Dan Sommers wrote: On Mon, 27 Apr 2009 07:57:00 +0300, Ciprian Dorin, Craciun wrote: I agree with your opinion about keeping the abstraction layers shallow, but in my view high-order and helper functions do not comprise a new abstraction layer. For example in Lisp, using map, reduce (fold),

Re: Lisp mentality vs. Python mentality

2009-04-26 Thread namekuseijin
Ciprian Dorin, Craciun wrote: On Sun, Apr 26, 2009 at 7:54 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I liked very much your implementation for the compare function, it is very short and at the same time readable: def compare(a, b, comp=operator.eq): return (len(a)

Re: python list handling and Lisp list handling

2009-04-26 Thread namekuseijin
On Apr 25, 4:34 am, Michele Simionato michele.simion...@gmail.com wrote: which has some feature you may like. For instance, there is a weak form of pattern matching built-in: head, *tail = [1,2,3] # Python 3.0 only! head 1 tail [2, 3] Good seeing yet another long time Perl feature

Re: python list handling and Lisp list handling

2009-04-26 Thread namekuseijin
On Apr 26, 1:31 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 24 Apr 2009 21:01:10 -0700, Carl Banks wrote: That's because Python lists aren't lists. Surely you meant to say that Lisp lists aren't lists? It-all-depends-on-how-you-define-lists-ly y'rs, Yeah, the

Re: Lisp mentality vs. Python mentality

2009-04-26 Thread namekuseijin
Paul Rubin wrote: namekuseijin namekuseijin.nos...@gmail.com writes: return (len(a) == len(b)) and not any(not comp(*t) for t in (zip(a, b))) plus the zip call enclosed in parentheses got turned into an iterator. zip in python 2.x always makes a list. You want itertools.izip. You

Re: Lisp mentality vs. Python mentality

2009-04-26 Thread namekuseijin
Travis wrote: I've noticed that every one of you is wrong about programming. Since I can't say it effectively, here's someone who can: http://www.youtube.com/watch?v=XHosLhPEN3k That's the answer. Hmm, perhaps it was the answer by the time that song was written? ;) cool anyway... :) --

Re: Weird lambda behavior (bad for)

2009-04-25 Thread namekuseijin
The real issue here has nothing to do with closures, lexical capture or anything like that. It's a long known issue called side-effects. Trying to program in a functional style in the presence of side-effects is bad. *for* is the main perpetrator of side-effects here, because it updates its

Re: Lisp mentality vs. Python mentality

2009-04-25 Thread namekuseijin
Paul Rubin wrote: Carl Banks pavlovevide...@gmail.com writes: Python programmer: a == b. Next question. in lisp you'd use (equal a b) I see you walk both sides. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp mentality vs. Python mentality

2009-04-25 Thread namekuseijin
That was amusing, but that's not a question of Lisp vs Python programmers, just one of fun vs practicality. Mark Tarver is the implementor of Qi, a higher order Lisp of sorts. He's writing a compiler from Qi to Python and was learning Python along the way. He's having fun with it, not

Re: Lisp mentality vs. Python mentality

2009-04-25 Thread namekuseijin
Paul Rubin wrote: Python tries to be simple and pragmatic while not aiming for as heavy-duty applications as Common Lisp. Scheme is more of a research language that's way past its prime. If you like Scheme, you should try Haskell. Python has the motto practicality beats purity. With Haskell,

Re: Is there any way to find out the definition of a function in a file of C language?

2009-04-16 Thread namekuseijin
Jebel escreveu: Hi ,everyone. I have the name of a function of C language, and have the source file which the function is defined in. And I want to find out the type and name of the parameters. If I need to analyze the file by myself, or have some way to do it more easily? ever heard of grep?

Re: Best way to start

2009-04-06 Thread namekuseijin
I was able to get a friend into Python over a Google Chat. I pointed him to the downloads page, waited for him to install, then covered the basics in quite a few steps (syntax, conditionals, loops, function definition and application, classes and methods, lists, dicts and comprehensions).

Re: Best way to start

2009-04-06 Thread namekuseijin
Avi escreveu: A BIG Thanks to Chris and Andrew for suggestions. This is an awesome place. namekuseijin: haha...got a friend hooked to Python on chat? hilarious! True story. But he was already a programmer. Only Pascal Delphi though. -- a game sig: http://tinyurl.com/d3rxz9 -- http

Re: Best way to start

2009-04-06 Thread namekuseijin
Google's automatic chat logging is nice too. My first online python tutorial for someone who never saw it before (sorry for not being in english): 14/09/08 00:50 KALEL: I'm on Phyton Shell 00:52 me: cool let's go type it: 2 just to get rid of your fears... :) KALEL: Hah hah hah hah

Re: Commercial Products in Python

2008-10-21 Thread namekuseijin
On 21 out, 15:59, Sebastian Bassi [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 2:50 PM, Paulo J. Matos [EMAIL PROTECTED] wrote: I was just wondering, if you wish to commercialize an application developed in Python, what's the way to go? You choose the conditions. Nothing in Python

Re: PYTHON WORKING WITH PERL ??

2008-09-29 Thread namekuseijin
On 29 set, 14:16, Blubaugh, David A. [EMAIL PROTECTED] wrote: To All, I was wondering if it was possible to have a situation where a programming project would utilized BOTH python and perl?  Such as utilizing python for internet programming and then utilize perl for text processing and

Re: What is not objects in Python?

2008-09-29 Thread namekuseijin
On 28 set, 15:29, process [EMAIL PROTECTED] wrote: I have heard some criticism about Python, that it is not fully object- oriented. So what? Why isn't len implemented as a str.len and list.len method instead of a len(list) function? Because postfix notation sucks. The natural way of

Re: Linq to Python

2008-09-23 Thread namekuseijin
On Sep 23, 2:07 pm, Jason Scheirer [EMAIL PROTECTED] wrote: On Sep 23, 7:48 am, hrishy [EMAIL PROTECTED] wrote: Hi Will LINQ be ported to Python ? regards Hrishy I think this question is more appropriate to ask on an IronPython development list -- LINQ is pretty solidly intertwined

Re: Python is slow?

2008-09-23 Thread namekuseijin
On Sep 23, 10:57 am, Grant Edwards [EMAIL PROTECTED] wrote: AFAICT, _everybody_ is bad at programming C++. Thankfully, at least Numpy developers are not bad at C programming. -- http://mail.python.org/mailman/listinfo/python-list

Re: python syntax for conditional is unfortunate

2008-09-23 Thread namekuseijin
On 23 set, 20:52, Neal Becker [EMAIL PROTECTED] wrote: In hindsight, I am disappointed with the choice of conditional syntax.  I know it's too late to change.  The problem is y = some thing or other if x else something_else When scanning this my eye tends to see the first phrase and only

Re: python syntax for conditional is unfortunate

2008-09-23 Thread namekuseijin
On 23 set, 22:50, Neal Becker [EMAIL PROTECTED] wrote: I find I'm often tripped up by: x = Y (lots of  constructor arguments) if something ... on first glance, I don't notice the if. Nobody does. This peculiar syntax has much better usage in short expressions. dothis if this else