Re: How to "wow" someone new to Python

2015-01-22 Thread Grant Edwards
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 &

Re: How to "wow" someone new to Python

2015-01-21 Thread Steven D'Aprano
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Steven D'Aprano
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Irmen de Jong
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Paul Rubin
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Chris Angelico
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Mario Figueiredo
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Alan Bawden
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Matthew Ruffalo
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Alan Bawden
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Chris Angelico
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Matthew Ruffalo
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

Re: How to "wow" someone new to Python

2015-01-21 Thread André Roberge
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Mario Figueiredo
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Chris Angelico
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

Re: How to "wow" someone new to Python

2015-01-21 Thread André Roberge
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Irmen de Jong
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

Re: How to "wow" someone new to Python

2015-01-21 Thread Steve Hayes
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

Re: How to "wow" someone new to Python

2015-01-19 Thread Ned Batchelder
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

Re: How to "wow" someone new to Python

2015-01-18 Thread alex23
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Emile van Sebille
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Tim Chase
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Chris Angelico
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Rustom Mody
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Albert-Jan Roskam
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Mirage Web Studio
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Rustom Mody
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Marco Buttu
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Marko Rauhamaa
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Andrew Berg
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

Re: How to "wow" someone new to Python

2015-01-16 Thread Skip Montanaro
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

How to "wow" someone new to Python

2015-01-16 Thread 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? I was thinking along the lines o

wow !!

2010-06-13 Thread reader
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

2008-04-22 Thread hobgoodoreneyhb
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

2007-07-15 Thread www.ebankgame.com
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

2007-05-21 Thread ebankgame.com
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

Re: Wow, Python much faster than MatLab

2007-01-01 Thread Wensui Liu
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: >

Re: Wow, Python much faster than MatLab

2007-01-01 Thread gblais
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

Re: Wow, Python much faster than MatLab

2006-12-31 Thread sturlamolden
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

Re: Wow, Python much faster than MatLab

2006-12-31 Thread Klaas
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Robert Kern
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Wensui Liu
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Ramon Diaz-Uriarte
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> 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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread gblais
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
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

RE: Wow, Python much faster than MatLab

2006-12-30 Thread Doran, Harold
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Mathias Panzenboeck
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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> > 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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
>> 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

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Steven D'Aprano
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.

Re: Wow, Python much faster than MatLab

2006-12-29 Thread Beliavsky
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

Wow, Python much faster than MatLab

2006-12-29 Thread Stef Mientki
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

Unlimited Free Music Downloads WOW! 100% Legal

2006-05-29 Thread BlackPassion39
  -- http://mail.python.org/mailman/listinfo/python-list

Unlimited Free Music Downloads WOW! 100% Legal

2005-10-09 Thread Free Music
Download Unlimited Free Music, Movies, Games, Software & Much More 100% Safe & Legal Click Here! -- http://mail.python.org/mailman/listinfo/python-list

Wow!, This chick is HOT! LZl6:Tu

2005-02-13 Thread Hottime
. -- 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

Wow!

2005-01-26 Thread Bernie
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