On 2015-01-22, Steven D'Aprano wrote:
> Mario Figueiredo wrote:
>
>> But speaking about impressing more experient programmers, I personally
>> don't think Python has a wow factor in any of its features and syntax. At
>> least in the way I understand the word &
Alan Bawden wrote:
> Alan Bawden writes:
>> ... Score one for untyped languages.
>
> Drat. I should have writted "dynamically typed languages".
>
> The language has changed. When I was a novice Lisp hacker, we were
> comfortable saying that Lisp was "untyped". But nowadays we always say
> t
Mario Figueiredo wrote:
> But speaking about impressing more experient programmers, I personally
> don't think Python has a wow factor in any of its features and syntax. At
> least in the way I understand the word "wow".
Quote:
I've seen Python criticized a
ought about (Python 3):
number = 2 * 3 * 5 * 103# okay.
number = number * 3120937 * 6977407 * 8431103# hmm...
number = number *
70546381234168412430433268433712277793053956898109255590133639943
print("I know a huge number, it is:", number)
secret_message = number.to_bytes(37, "big")
print(secret_message)
Or
Alan Bawden writes:
> The language has changed. When I was a novice Lisp hacker, we were
> comfortable saying that Lisp was "untyped". But nowadays we always say
> that Lisp is "dynamically typed". I could write an essay about why...
I'd be interested in seeing that. Lisp of course descends f
On Thu, Jan 22, 2015 at 8:46 AM, Matthew Ruffalo wrote:
> No, Java's String.length returns an int and Strings are limited to ~2 **
> 31 characters even in 64-bit Java.
Huh, annoying. In Python, the length of a string (in characters) is
stored in a Py_ssize_t (if I recall correctly), which is, I b
the longest novel ever produced (2).
And considering you can always flush the buffer, I'm finding an hard
time looking at unlimited string length in Python as wow factor. Even if
we consider unicode strings.
(1)
http://en.wikipedia.org/wiki/Wikipedia:Size_comparisons#Comparison_of_en
cyclo
Alan Bawden writes:
> ... Score one for untyped languages.
Drat. I should have writted "dynamically typed languages".
The language has changed. When I was a novice Lisp hacker, we were
comfortable saying that Lisp was "untyped". But nowadays we always say
that Lisp is "dynamically typed". I
On 01/21/2015 04:26 PM, Chris Angelico wrote:
> On Thu, Jan 22, 2015 at 8:20 AM, Matthew Ruffalo wrote:
>> Yes, length-unlimited strings are *extremely* useful in some
>> applications. I remember bitterly cursing Java's string length limit of
>> 2 ** 31 (maybe - 1) on multiple occasions. Python's
Chris Angelico writes:
> ..., and I would guess a 64-bit Java would
> also raise the limit.
Even in a 64-bit Java, the _type_ returned by String.length() is 'int',
and is thus at most (2**31 - 1). This isn't a problem for strings,
which never get that long in practice, but for some other Java da
On Thu, Jan 22, 2015 at 8:20 AM, Matthew Ruffalo wrote:
> Yes, length-unlimited strings are *extremely* useful in some
> applications. I remember bitterly cursing Java's string length limit of
> 2 ** 31 (maybe - 1) on multiple occasions. Python's strings seem to
> behave like integers in that thei
On 01/21/2015 02:06 PM, Chris Angelico wrote:
> On Thu, Jan 22, 2015 at 5:20 AM, Irmen de Jong wrote:
>> On 21-1-2015 18:59, Steve Hayes wrote:
>>
>>> 3. When I started to look at it, I found that strings could be any length
>>> and
>>> were not limited to swomething arbitrary, like 256 character
On Wednesday, 21 January 2015 15:06:33 UTC-4, Chris Angelico wrote:
> On Thu, Jan 22, 2015 at 5:20 AM, Irmen de Jong wrote:
> > On 21-1-2015 18:59, Steve Hayes wrote:
> >
> >> 3. When I started to look at it, I found that strings could be any length
> >> and
> >> were not limited to swomething a
where given by others already. I especially liked the variable
swap one liner by Emile van Sebille. That's a little simple gem that will
impress any seasoned developer of other programming languages.
But speaking about impressing more experient programmers, I personally don't
think P
On Thu, Jan 22, 2015 at 5:20 AM, Irmen de Jong wrote:
> On 21-1-2015 18:59, Steve Hayes wrote:
>
>> 3. When I started to look at it, I found that strings could be any length and
>> were not limited to swomething arbitrary, like 256 characters.
>
> Even more fun is that Python's primitive integer t
On Friday, 16 January 2015 11:04:20 UTC-4, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show of
On 21-1-2015 18:59, Steve Hayes wrote:
> 3. When I started to look at it, I found that strings could be any length and
> were not limited to swomething arbitrary, like 256 characters.
Even more fun is that Python's primitive integer type (longs for older Python
versions)
has no arbitrary limita
On Sat, 17 Jan 2015 02:03:57 +1100, Chris Angelico wrote:
>Scenario: You're introducing someone to Python for the first time.
>S/he may have some previous programming experience, or may be new to
>the whole idea of giving a computer instructions. You have a couple of
>minutes to show off how awes
On 1/16/15 10:03 AM, Chris Angelico wrote:
Scenario: You're introducing someone to Python for the first time.
S/he may have some previous programming experience, or may be new to
the whole idea of giving a computer instructions. You have a couple of
minutes to show off how awesome Python is. What
On 17/01/2015 1:03 AM, Chris Angelico wrote:
Scenario: You're introducing someone to Python for the first time.
S/he may have some previous programming experience, or may be new to
the whole idea of giving a computer instructions. You have a couple of
minutes to show off how awesome Python is. Wh
On 1/16/2015 9:44 AM, Chris Angelico wrote:
> exact line of code that would
show off Python's awesomeness.
a,b = b,a
Emile
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-01-17 02:03, Chris Angelico wrote:
> Ideally, this should be something that can be demo'd quickly and
> easily, and it should be impressive without going into great details
> of "and see, this is how it works on the inside". So, how would you
> brag about this language?
First, I agree with
On Sat, Jan 17, 2015 at 4:31 AM, Rustom Mody wrote:
> Nice point!
> First class concrete data structures is a blessing especially for
> a C programmer.
Definitely! Worth noting.
There've been some nice concepts mentioned; concrete suggestions would
be good too. Some specific feature or exact lin
On Friday, January 16, 2015 at 10:51:52 PM UTC+5:30, Mirage Web Studio wrote:
> On 01/16/2015 08:33 PM, Chris Angelico wrote:
> > Scenario: You're introducing someone to Python for the first time.
> > S/he may have some previous programming experience, or may be new to
> > the whole idea of giving
On Fri, Jan 16, 2015 4:24 PM CET Andrew Berg wrote:
>On 2015.01.16 09:03, Chris Angelico wrote:
>> Scenario: You're introducing someone to Python for the first time.
>> S/he may have some previous programming experience, or may be new to
>> the whole idea of giving a
On 01/16/2015 08:33 PM, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Pytho
On Friday, January 16, 2015 at 8:34:20 PM UTC+5:30, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to
On 16/01/2015 16:03, Chris Angelico wrote:
Scenario: You're introducing someone to Python for the first time.
S/he may have some previous programming experience, or may be new to
the whole idea of giving a computer instructions. You have a couple of
minutes to show off how awesome Python is. What
Chris Angelico :
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Python is. What do you do?
My exp
On 2015.01.16 09:03, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Python is
If you want to show off the REPL, I'd got for iPython and show them some
simple matplotlib examples (plotting sin waves, maybe dig up a CSV file on
the net with some data your friend is familiar with, etc)
Skip
On Fri, Jan 16, 2015 at 9:03 AM, Chris Angelico wrote:
> Scenario: You're introduci
Scenario: You're introducing someone to Python for the first time.
S/he may have some previous programming experience, or may be new to
the whole idea of giving a computer instructions. You have a couple of
minutes to show off how awesome Python is. What do you do?
I was thinking along the lines o
Excuse me!!
Would you stop for a moment?!
O...man...Haven't you thought-one day- about yourself ?
Who has made it?
Have you seen a design which hasn't a designer ?!
Have you seen a wonderful,delicate work without a worker ?!
It's you and the whole universe!..
Who has made them all ?!!
You know wh
wow patch downloads
http://cracks.12w.net
F
R
E
E
C
R
A
C
K
S
--
http://mail.python.org/mailman/listinfo/python-list
www.eBankGame.com Buy WoW gold RS gold WG k gold Lotro gold
http://www.eBankGame.com (w w w .e BankGame . c o m ) As you might or
might not known that Taiwan earthquake has caused most of supplier are
experiencing the serve problem to process the gold.
However, eBankGame is always stay line with
www.eBankGame.com Buy WoW gold RS gold WG k gold
www.eBankGame.com (w w w .e BankGame . c o m )
As you might or might not known that Taiwan earthquake has caused most
of supplier are experiencing the serve problem to process the gold.
However, eBankGame is always stay line with all the game
Gerry,
I have the similar background as yours, many years using SAS/R. Right
now I am trying to pick up python.
>From your point, is there anything that can be done with python easily
but not with SAS/R?
thanks for your insight.
wensui
On 1/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
We're not so far apart.
I've used SAS or 25 years, and R/S-PLUS for 10.
I think you've said it better than I did, though: R requires more attention
(which is often needed).
I certainly didn't mean that R crashed - just an indictment of how much I
thought I was holding in my head.
Gerry
--
http
Klaas wrote:
> C/C++ do not allocate extra arrays. What you posted _might_ bear a
> small resemblance to what numpy might produce (if using vectorized
> code, not explicit loop code). This is entirely unrelated to the
> reasons why fortran can be faster than c.
Array libraries in C++ that use o
sturlamolden wrote:
> as well as looping over the data only once. This is one of the main
> reasons why Fortran is better than C++ for scientific computing. I.e.
> instead of
>
> for (i=0; i array1[i] = (array1[i] + array2[i]) * (array3[i] + array4[i]);
>
> one actually gets something like thre
sturlamolden wrote:
> array3[:] = array1[:] + array2[:]
OT, but why are you slicing array1 and array2? All that does is create new array
objects pointing to the same data.
> Now for my question: operator overloading is (as shown) not the
> solution to efficient scientific computing. It creates se
Wensui Liu wrote:
> doing. However, that is not the fault of excel/spss itself but of
> people who is using it.
Yes and no. I think SPSS makes it too tempting. Like children playing
with fire, they may not even know it's dangerous. You can do an GLM in
SPSS by just filling out a form - but how m
Stef Mientki wrote:
> MatLab: 14 msec
> Python: 2 msec
I have the same experience. NumPy is usually faster than Matlab. But it
very much depends on how the code is structured.
I wonder if it is possible to improve the performance of NumPy by
having its fundamental types in the language, instea
Sturla,
I am working in the healthcare and seeing people loves to use excel /
spss as database or statistical tool without know what he/she is
doing. However, that is not the fault of excel/spss itself but of
people who is using it. Things, even include SAS/R, would look stupid,
when it has been m
Stef Mientki wrote:
> I always thought that SPSS or SAS where thé standards.
> Stef
As far as SPSS is a standard, it is in the field of "religious use of
statistical procedures I don't understand (as I'm a math retard), but
hey p<0.05 is always significant (and any other value is proof of the
op
On 12/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> R is the free version of the S language. S-PLUS is a commercial version.
> Both are targeted at statisticians per se. Their strengths are in
> exploratory data analysis (in my opinion).
>
> SAS has many statistical featues, and is phenom
> I think of SAS and R as being like airliners and helicopters --
I like that comparison,...
.. Airplanes are inherent stable,
.. Helicopters are inherent not-stable ;-)
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
R is the free version of the S language. S-PLUS is a commercial version.
Both are targeted at statisticians per se. Their strengths are in
exploratory data analysis (in my opinion).
SAS has many statistical featues, and is phenomenally well-documented and
supported. One of its great strengths
Stef Mientki <[EMAIL PROTECTED]> writes:
> Doran, Harold wrote:
> > R is the open-source implementation of the S language developed at Bell
> > laboratories. It is a statistical programming language that is becoming
> > the de facto standard among statisticians.
> Thanks for the information
> I al
Stef Mientki <[EMAIL PROTECTED]> writes:
> Mathias Panzenboeck wrote:
> > A other great thing: With rpy you have R bindings for python.
>
> forgive my ignorance, what's R, rpy ?
> Or is only relevant for Linux users ?
[...]
R is a language / environment for statistical programming. RPy is a
Pyt
Doran, Harold wrote:
> R is the open-source implementation of the S language developed at Bell
> laboratories. It is a statistical programming language that is becoming
> the de facto standard among statisticians.
Thanks for the information
I always thought that SPSS or SAS where thé standards.
Ste
age-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Stef Mientki
> Sent: Saturday, December 30, 2006 9:24 AM
> To: python-list@python.org
> Subject: Re: Wow, Python much faster than MatLab
>
> Mathias Panzenboeck wrote:
> > A other great thing: With r
Mathias Panzenboeck wrote:
> A other great thing: With rpy you have R bindings for python.
forgive my ignorance, what's R, rpy ?
Or is only relevant for Linux users ?
cheers
Stef
> So you have the power of R and the easy syntax and big standard lib of
> python! :)
--
http://mail.python.org/mai
A other great thing: With rpy you have R bindings for python.
So you have the power of R and the easy syntax and big standard lib of python!
:)
--
http://mail.python.org/mailman/listinfo/python-list
>
> I'm not sure about SciPy,
Yes SciPy allows it too !
but lists in standard Python allow this:
>
array = [1, 2, 3, 4]
array[2:5]
> [3, 4]
>
> That's generally a good thing.
>
You're not perhaps by origin an analog engineer ;-)
cheers,
Stef Mientki
--
http://mail.python.org
>> MatLab: 14 msec
>> Python: 2 msec
>
> For times this small, I wonder if timing comparisons are valid. I do
> NOT think SciPy is in general an order of magnitude faster than Matlab
> for the task typically performed with Matlab.
The algorithm is meant for real-time analysis,
where these kind o
On Fri, 29 Dec 2006 19:35:22 -0800, Beliavsky wrote:
>> Especially I like:
>> - more relaxed behavior of exceeded the upper limit of a (1-dimensional)
>> array
>
> Could you explain what this means? In general, I don't want a
> programming language to be "relaxed" about exceeding array bounds.
Stef Mientki wrote:
> hi All,
>
> instead of questions,
> my first success story:
>
> I converted my first MatLab algorithm into Python (using SciPy),
> and it not only works perfectly,
> but also runs much faster:
>
> MatLab: 14 msec
> Python: 2 msec
For times this small, I wonder if timing com
hi All,
instead of questions,
my first success story:
I converted my first MatLab algorithm into Python (using SciPy),
and it not only works perfectly,
but also runs much faster:
MatLab: 14 msec
Python: 2 msec
After taking the first difficult steps into Python,
all kind of small problems as yo
--
http://mail.python.org/mailman/listinfo/python-list
Download Unlimited Free Music, Movies, Games, Software & Much More 100% Safe & Legal Click Here!
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Want to get laid tonight?? Find local girls now
http://www.youandmeswing.com/index.php?ref_id=130
--
,iy^3aQvw
--
http://mail.python.org/mailman/listinfo/python-list
That is clever, gives a lot of insight into how the __dict__ == the
object.
This is somewhat like the solution I am using from the Cookbook, an
Empty object copy. This is cleaner and very much more concise.
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
63 matches
Mail list logo