Re: Why did Quora choose Python for its development?

2011-05-28 Thread Roy Smith
In article fbd69b90-b709-48ed-a247-af943ddbc...@glegroupsg2000goo.googlegroups.com , Carl Banks pavlovevide...@gmail.com wrote: On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote: One of the truly awesome things about the Python re library is that it lets you write complex regexes

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Thorsten Kampe
* Steven D'Aprano (27 May 2011 03:07:30 GMT) Okay, I've stayed silent while people criticize me long enough. What exactly did I say that was impolite? Nothing. John threw down a distinct challenge: if Python is really so much better than Python [sic] readability wise, why do I

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Steven D'Aprano
On Fri, 27 May 2011 10:10:55 +0200, Thorsten Kampe wrote: * Steven D'Aprano (27 May 2011 03:07:30 GMT) [...] If I got it wrong about John, oh well, I said it was a guess, and trying to get inside someone else's head is always a chancy business. Why were you trying to speculate in response

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Roy Smith
In article 948l8nf33...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: John Bokma wrote: A Perl programmer will call this line noise: double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w), re.IGNORECASE) One of the truly

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Ethan Furman
Thorsten Kampe wrote: * Steven D'Aprano (27 May 2011 03:07:30 GMT) Okay, I've stayed silent while people criticize me long enough. What exactly did I say that was impolite? Nothing. John threw down a distinct challenge: if Python is really so much better than Python [sic]

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Karim
On 05/27/2011 03:47 PM, Roy Smith wrote: In article948l8nf33...@mid.individual.net, Gregory Ewinggreg.ew...@canterbury.ac.nz wrote: John Bokma wrote: A Perl programmer will call this line noise: double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w),

Re: Why did Quora choose Python for its development?

2011-05-27 Thread Carl Banks
On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote: In article 948l8n...@mid.individual.net, Gregory Ewing greg@canterbury.ac.nz wrote: John Bokma wrote: A Perl programmer will call this line noise: double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w),

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Thorsten Kampe
* John Bokma (Wed, 25 May 2011 07:01:07 -0500) Thorsten Kampe thors...@thorstenkampe.de writes: * Chris Angelico (Wed, 25 May 2011 08:01:38 +1000) On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: One of my favorite quotes (not sure if it was about Perl or APL) is

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Neil Cerutti
On 2011-05-25, Matty Sarro msa...@gmail.com wrote: General readability is a farce. If it was true we would only have one section to the library. Different people enjoy reading, and can comprehend better in different ways. THat's why some people are super verbose - hell, just look at this here

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Roy Smith
In article 94709uf99...@mid.individual.net, Neil Cerutti ne...@norwich.edu wrote: On 2011-05-25, Matty Sarro msa...@gmail.com wrote: General readability is a farce. If it was true we would only have one section to the library. Different people enjoy reading, and can comprehend better in

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Ben Finney
Roy Smith r...@panix.com writes: Also, the purpose of source code is to transmit information (to both the compiler and to human readers). And the relative importance of readability for those two purposes is often misunderstood. Composing source code so that the *machine* will understand it is

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Steven D'Aprano
On Thu, 26 May 2011 12:44:47 +, Neil Cerutti wrote: On 2011-05-25, Matty Sarro msa...@gmail.com wrote: General readability is a farce. If it was true we would only have one section to the library. Different people enjoy reading, and can comprehend better in different ways. THat's why some

Re: Why did Quora choose Python for its development?

2011-05-26 Thread theg...@nospam.net
On 5/25/2011 7:52 PM, Steven D'Aprano wrote: On Wed, 25 May 2011 17:30:48 -0400, theg...@nospam.net wrote: On 5/24/2011 1:39 PM, D'Arcy J.M. Cain wrote: [snip] One of my favorite quotes (not sure if it was about Perl or APL) is I refuse to use a programming language where the proponents of it

Re: Why did Quora choose Python for its development?

2011-05-26 Thread John Bokma
Ben Finney b...@benfinney.id.au writes: Get a life. Or better, just fuck off and die. It will improve both the world and the Python community, of which you are nothing but a little, smelly shitstain. That abuse is entirely unwelcome in this community, against any person. Please desist. You

Re: Why did Quora choose Python for its development?

2011-05-26 Thread theg...@nospam.net
So when quora.com fails we can all say it is Python's fault? Maybe they should have focused more on content instead of the bits under the hood? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Ethan Furman
John, You say English is not your first language. Let me assure you that the words you chose to use in reply to Stephen were vulgar as well as rude, and did more to lesson the overall friendliness of this forum than Stephen's adversarial style. You usually have interesting and informative

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Terry Reedy
On 5/26/2011 11:36 AM, John Bokma wrote: Ben Finneyb...@benfinney.id.au writes: [impolite comment not quoted] Get a life. Or better, just fuck off and die. It will improve both the world and the Python community, of which you are nothing but a little, smelly shitstain. That abuse is

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Karim
On 05/26/2011 10:03 PM, Terry Reedy wrote: On 5/26/2011 11:36 AM, John Bokma wrote: Ben Finneyb...@benfinney.id.au writes: [impolite comment not quoted] Get a life. Or better, just fuck off and die. It will improve both the world and the Python community, of which you are nothing but a

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Daniel Kluev
On Wed, May 25, 2011 at 3:10 AM, Octavian Rasnita orasn...@gmail.com wrote: Once again. Suppose we have array of key-value pairs (two-dimensional array), This is a forced example to fit the way Python can do it with a clean syntax, but I don't think there are cases in which somebody wants to

Re: Why did Quora choose Python for its development?

2011-05-26 Thread RainyDay
On May 26, 5:33 pm, Daniel Kluev dan.kl...@gmail.com wrote: On Wed, May 25, 2011 at 3:10 AM, Octavian Rasnita orasn...@gmail.com wrote: Once again. Suppose we have array of key-value pairs (two-dimensional array), This is a forced example to fit the way Python can do it with a clean

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Steven D'Aprano
On Thu, 26 May 2011 16:03:58 -0400, Terry Reedy wrote: On 5/26/2011 11:36 AM, John Bokma wrote: Ben Finneyb...@benfinney.id.au writes: [impolite comment not quoted] Get a life. Or better, just fuck off and die. It will improve both the world and the Python community, of which you are

Re: Why did Quora choose Python for its development?

2011-05-26 Thread Gregory Ewing
John Bokma wrote: A Perl programmer will call this line noise: double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w), re.IGNORECASE) for match in double_word_re.finditer(text): print ({0} is duplicated.format(match.group(word)) Actually, Python

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Thorsten Kampe
* Chris Angelico (Wed, 25 May 2011 08:01:38 +1000) On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: One of my favorite quotes (not sure if it was about Perl or APL) is I refuse to use a programming language where the proponents of it stick snippets under each

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Roy Smith
In article mailman.2052.1306303508.9059.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 24 May 2011 13:39:02 -0400, D'Arcy J.M. Cain da...@druid.net declaimed the following in gmane.comp.python.general: My point was that even proponents of the language can

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Chris Angelico
On Wed, May 25, 2011 at 9:36 PM, Roy Smith r...@panix.com wrote: Remembering that I, J, K, L, M, and N were integer was trivial if you came from a math background.  And, of course, Fortran was all about math, so that was natural.  Those letters are commonly used for integers in formulae.  If I

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Dennis Lee Bieber wlfr...@ix.netcom.com writes: Python books than after six months of trying to understand PERL... And Perl is the language, and perl is what runs Perl. -- John Bokma j3b Blog: http://johnbokma.com/Perl

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Thorsten Kampe thors...@thorstenkampe.de writes: * Chris Angelico (Wed, 25 May 2011 08:01:38 +1000) On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: One of my favorite quotes (not sure if it was about Perl or APL) is I refuse to use a programming language where

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Roy Smith
In article mailman.2069.1306324514.9059.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Wed, May 25, 2011 at 9:36 PM, Roy Smith r...@panix.com wrote: Remembering that I, J, K, L, M, and N were integer was trivial if you came from a math background.  And, of course, Fortran

Re: Why did Quora choose Python for its development?

2011-05-25 Thread D'Arcy J.M. Cain
On Wed, 25 May 2011 07:36:40 -0400 Roy Smith r...@panix.com wrote: Remembering that I, J, K, L, M, and N were integer was trivial if you came from a math background. And, of course, Fortran was all about The easiest way to remember was that the first two letters of INteger gave you the

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Chris Angelico
On Thu, May 26, 2011 at 12:23 AM, D'Arcy J.M. Cain da...@druid.net wrote: The easiest way to remember was that the first two letters of INteger gave you the range. G for Green and R for Right, which are the first two letters of Green. (I wonder how many Pythonistas are familiar with that?)

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Steven D'Aprano
On Wed, 25 May 2011 10:23:59 -0400, D'Arcy J.M. Cain wrote: On Wed, 25 May 2011 07:36:40 -0400 Roy Smith r...@panix.com wrote: Remembering that I, J, K, L, M, and N were integer was trivial if you came from a math background. And, of course, Fortran was all about The easiest way to

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Matty Sarro
I hate using L for anything, namely because if you type it lowercase you always have to wonder if its an l or a 1 in a terminal window. -Matthew On Wed, May 25, 2011 at 10:56 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 25 May 2011 10:23:59 -0400, D'Arcy J.M. Cain

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Terry Reedy
On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time dropping Perl and moving on? [you meant 'than Perl'] You are one of the people whose brain fits Perl (or vice versa)

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Ethan Furman
Terry Reedy wrote: On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time dropping Perl and moving on? [you meant 'than Perl'] You are one of the people whose brain fits Perl

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Ethan Furman et...@stoneleaf.us writes: Terry Reedy wrote: On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time dropping Perl and moving on? [you meant 'than Perl'] You are

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Matty Sarro
On Wed, May 25, 2011 at 3:14 PM, John Bokma j...@castleamber.com wrote: Ethan Furman et...@stoneleaf.us writes: Terry Reedy wrote: On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a

Re: Why did Quora choose Python for its development?

2011-05-25 Thread theg...@nospam.net
On 5/24/2011 1:39 PM, D'Arcy J.M. Cain wrote: [snip] One of my favorite quotes (not sure if it was about Perl or APL) is I refuse to use a programming language where the proponents of it stick snippets under each other's nose and say 'I bet you can't guess what this does.' I dunno. That sounds

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Steven D'Aprano
On Wed, 25 May 2011 07:01:07 -0500, John Bokma wrote: if Python is really so much better than Python [Perl] readability wise, why do I have such a hard time dropping Perl and moving on? My guess is that you have an adversarial view of computer languages, therefore after investing so much

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Steven D'Aprano
On Wed, 25 May 2011 08:01:38 +1000, Chris Angelico wrote: On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: When I first looked at Perl it looked like line noise.  When I first looked at Python it looked like pseudo-code. When I first looked at assembly language it

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Steven D'Aprano
On Wed, 25 May 2011 17:30:48 -0400, theg...@nospam.net wrote: On 5/24/2011 1:39 PM, D'Arcy J.M. Cain wrote: [snip] One of my favorite quotes (not sure if it was about Perl or APL) is I refuse to use a programming language where the proponents of it stick snippets under each other's nose and

Re: Why did Quora choose Python for its development?

2011-05-25 Thread RainyDay
On May 25, 3:14 pm, John Bokma j...@castleamber.com wrote: Ethan Furman et...@stoneleaf.us writes: Terry Reedy wrote: On 5/25/2011 8:01 AM, John Bokma wrote: to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time

Re: Why did Quora choose Python for its development?

2011-05-25 Thread John Bokma
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 25 May 2011 07:01:07 -0500, John Bokma wrote: if Python is really so much better than Python [Perl] readability wise, why do I have such a hard time dropping Perl and moving on? My guess is that you have an adversarial

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Ben Finney
Get a life. Or better, just fuck off and die. It will improve both the world and the Python community, of which you are nothing but a little, smelly shitstain. That abuse is entirely unwelcome in this community, against any person. Please desist. If you find any contributing members so

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Ulrich Eckhardt ulrich.eckha...@dominolaser.com Ahem, is this Java the language that a certain, well-known service provider is getting screwed over hard currently, because they forgot to read the fineprint in the declaration of freedom? And this Objective C, isn't this the language that

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Mon, May 23, 2011 at 10:17 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com Aha, so with other words that ORM doesn't have that feature. DBIX::Class also use the DateTime module, but it can use it directly, without

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com Moreover, you are comparing apples to oranges here, and then complaining that apples somehow turned out to be not oranges. If we take python way of defining dicts and check it in perl, we find that it is not supported, so obviously perl is non-intuitive and

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Stefan Behnel
Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Stefan --

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Stefan Behnel stefan...@behnel.de Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Maybe I have

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
/Why-did-Quora-choose-Python-for-its-development It's the reason for the thread title, regardless of the current thread content :) Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Daniel Kluev
On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita orasn...@gmail.com wrote: And you are telling that in Perl should be used an even more complicated and ugly syntax just for beeing the same as in Python just for showing that I am wrong, but I was comparing just the shortness and cleraness of

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: So, again, in Perl is just: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer. A Python programmer looking at that sees

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me screaming in the opposite direction. --

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Teemu Likonen
* 2011-05-24T06:05:35-04:00 * D'Arcy J. M. Cain wrote: On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer. A Python

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Kevin Walzer
On 5/22/11 3:44 AM, Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used freely, so from the freedom point of view,

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 12:09 AM, Kevin Walzer k...@codebykevin.com wrote: Proprietary? Licensing options for C# in its Mono (Free Platform) implementation: http://www.mono-project.com/Licensing Licensing options for Objective-C in its GNUStep (Free Platform) implementaiton

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Kevin Walzer
On 5/24/11 2:23 AM, Stefan Behnel wrote: Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Stefan I kind of

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: D'Arcy J.M. Cain da...@druid.net On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: So, again, in Perl is just: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer.

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: D'Arcy J.M. Cain da...@druid.net On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita orasn...@gmail.com wrote: And you are telling that in Perl should be used an even more complicated and ugly syntax just for beeing the same as in Python just for showing that I am wrong, but I was

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Kevin Walzer k...@codebykevin.com On 5/22/11 3:44 AM, Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
Subject: Re: Why did Quora choose Python for its development? I've been programming for about seven years, and am basically self-taught. I got my first taste of writing code when trying do to some basic hacking on my (then) shiny new G3 iBook. (Even though it was a Mac, I was enthralled

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Teemu Likonen tliko...@iki.fi writes: * 2011-05-24T06:05:35-04:00 * D'Arcy J. M. Cain wrote: On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 19:10:56 +0300 Octavian Rasnita orasn...@gmail.com wrote: If I was even considering using Perl, this one exchange would send me screaming in the opposite direction. If you didn't consider to change the language you prefer it means that you are closed minded and use to

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 2:50 AM, John Bokma j...@castleamber.com wrote: Wise words. And I agree. To me Python vs. Perl has nothing to do with being a fanboy (unlike many other posters here). I like both languages, I have invested a lot of time in learning Python and I am really not dense. Yet,

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 11:52:39 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me screaming in the opposite direction.

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 2:50 AM, John Bokma j...@castleamber.com wrote: Wise words. And I agree. To me Python vs. Perl has nothing to do with being a fanboy (unlike many other posters here). I like both languages, I have invested a lot of time in

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 11:52:39 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: John Bokma j...@castleamber.com Octavian Rasnita orasn...@gmail.com writes: From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array;

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 3:56 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: To me, a language is a tool. To me, and to a lot of Perl programmers it's not different. The more tools you have competence with, the easier it will be to select the right one for

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: My point was that even proponents of the language can make a significant error based on the way the variable is named.  It's like the old Fortran IV that I first learned where the name of the variable determined whether

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 3:56 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: To me, a language is a tool. To me, and to a lot of Perl programmers it's not different. The more tools you have competence with, the

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: My point was that even proponents of the language can make a significant error based on the way the variable is named.  It's like the old Fortran IV that I first learned where the

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 9:16 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: Yes, I believe that was Perl. And an amusing quote. But most of the point of it comes from the fact that Perl uses punctuation for most of its keywords, For example? whereas

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 9:16 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: Yes, I believe that was Perl. And an amusing quote. But most of the point of it comes from the fact that Perl uses punctuation for most of

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Dennis Lee Bieber wlfr...@ix.netcom.com Since indentation seems so crucial to easy comprehension of the logical structure of a program, making it a mandatory syntactical structure becomes a desirable feature for code that must be maintained (by others, in many cases). Why in many

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Sun, May 22, 2011 at 11:47 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com I am talking about that flexibility which was criticized in the previous messages telling that this flexibility allows any programmer to

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Chris Angelico
On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Dennis Lee Bieber wlfr...@ix.netcom.com Since indentation seems so crucial to easy comprehension of the logical structure of a program, making it a mandatory syntactical structure becomes a desirable feature

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Terry Reedy
On 5/23/2011 1:31 AM, Octavian Rasnita wrote: I am talking about a simple way of creating a hash/dict from an array, which is so simple that there should be really a single way to do it, or very few. Again, Python has such: dict([['one',1],['two', 2]]) {'two': 2, 'one': 1} -- Terry Jan

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Carl Banks
On Sunday, May 22, 2011 12:44:18 AM UTC-7, Octavian Rasnita wrote: I've noticed that on many Perl mailing lists the list members talk very rarely about Python, but only on this Python mailing list I read many discussions about Perl, in which most of the participants use to agree that yes,

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Chris Angelico
On Mon, May 23, 2011 at 4:46 PM, Carl Banks pavlovevide...@gmail.com wrote: On Sunday, May 22, 2011 12:44:18 AM UTC-7, Octavian Rasnita wrote: If Python would be so great, you wouldn't talk so much about how bad are other languages, Sure we would.  Sometimes it's fun to sit on your lofty

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 5:06 PM, Octavian Rasnita orasn...@gmail.com wrote: There are more, but a single eloquent feature is the possibility of interpreting variables in strings which cannot be done so nice in Python. I've should probably mentioned it earlier, but I'm not Perl expert, not

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Aleksandar Radulovic
Hi, I'm going to skip the Perl vs. Python flame-bait and correct your one statement. On Sun, May 22, 2011 at 7:44 AM, Octavian Rasnita orasn...@gmail.com wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Terry Reedy tjre...@udel.edu On 5/23/2011 1:31 AM, Octavian Rasnita wrote: I am talking about a simple way of creating a hash/dict from an array, which is so simple that there should be really a single way to do it, or very few. Again, Python has such: dict([['one',1],['two', 2]])

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Chris Angelico ros...@gmail.com On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Dennis Lee Bieber wlfr...@ix.netcom.com Since indentation seems so crucial to easy comprehension of the logical structure of a program, making it a mandatory syntactical

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Mon, May 23, 2011 at 5:06 PM, Octavian Rasnita orasn...@gmail.com wrote: There are more, but a single eloquent feature is the possibility of interpreting variables in strings which cannot be done so nice in Python. I've should probably mentioned it

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 7:49 PM, Octavian Rasnita orasn...@gmail.com wrote: That is not an array, but a list. An array has a name and we can't do something like the following simple statement in Python: l = (1, 2) d = dict(l) An array has a name What? In python there is no difference

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 8:41 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com As I said, that ORM is not able to do those SQL constructs without using literal SQL code, but only Python variables and data structures... An ORM is usually prefered exactly

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com ... Can it also set the current locale, for example romanian, and print the name of the current month? ...something like t1.date.set_locale('ro').month_name? There is separate module for date localization. You can pass datetime object to it and it will

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Ulrich Eckhardt
Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used freely, so from the freedom point of view, Perl, Ruby, Python and

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Duncan Booth
Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Ahem, is this Java the language that a certain, well-known service provider is getting screwed over hard currently, because they forgot to read the fineprint in the declaration of freedom? That would be the case where the plaintiff has

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 10:17 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com Aha, so with other words that ORM doesn't have that feature. DBIX::Class also use the DateTime module, but it can use it directly, without needing to write more code for that,

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
Chris Angelico ros...@gmail.com writes: That said, though, I still do not believe in Python's philosophy of significant whitespace. I like to be able, if I choose, to put one entire logical unit on one line, such that it can be commented out with a single comment marker, Use an editor that

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Terry Reedy
On 5/23/2011 4:49 AM, Octavian Rasnita wrote: But let's remember from what this discussion started. This is not a Python critique, because each language has its own ways. I just wanted to show that the fact that there is more than one way to do it in Perl and that there is a single way in

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Terry Reedy tjre...@udel.edu On 5/23/2011 4:49 AM, Octavian Rasnita wrote: But let's remember from what this discussion started. This is not a Python critique, because each language has its own ways. I just wanted to show that the fact that there is more than one way to do it in Perl

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; because it has exactly those numerous number of params and brackets which is used as a reason for bashing Perl and an aditional dict word. Octavian --

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 10:10 PM, Octavian Rasnita orasn...@gmail.com wrote: is not so nice as $d = @a; It is 'not so nice' only in your perception. Python clearly defines dict as container of (key, value) pairs, and therefore its constructor expects such pairs. Adding unjustified arbitrary

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
Octavian Rasnita orasn...@gmail.com writes: From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; -- John Bokma

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Octavian Rasnita
From: Hansmeet Singh hansmeetsch...@gmail.com i think we should end our butchering of perl on a light note (you may have already read this): EXTERIOR: DAGOBAH -- DAY With Yoda strapped to his back, Luke climbs up one of the many thick vines that grow in the swamp until he reaches the Dagobah

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Daniel Kluev
On Sun, May 22, 2011 at 6:44 PM, Octavian Rasnita orasn...@gmail.com wrote: Because of its flexibility, Perl offers more advanced modules and libraries which are not available for Python. What 'flexibility' are you talking about? This seem to be very biased statement, based on lack of

  1   2   >