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
* 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
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
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
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]
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),
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),
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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?)
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
/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
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
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
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.
--
* 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
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,
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
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
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.
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
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
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
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
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
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
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
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,
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.
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
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
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;
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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]])
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
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
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
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
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
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
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
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,
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
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
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
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
--
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
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
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
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 - 100 of 109 matches
Mail list logo