Re: the best online course

2016-07-10 Thread Rustom Mody
On Monday, July 11, 2016 at 11:03:37 AM UTC+5:30, Steven D'Aprano wrote: > On Monday 11 July 2016 13:07, Rustom Mody wrote: > > > Python is good for black-box – us the ‘batteries included’ without worrying > > too much how they are made > > Scheme, assembly language, Turing machines etc are at the

Re: the best online course

2016-07-10 Thread Bob Martin
in 762282 20160711 063300 Steven D'Aprano wrote: >On Monday 11 July 2016 13:07, Rustom Mody wrote: > >> Python is good for black-box – us the ‘batteries included’ without >> worrying >> too much how they are made >> Scheme, assembly language, Turing machines etc are at the other end of the

Visualising relationships between packages

2016-07-10 Thread Steven D'Aprano
https://kozikow.com/2016/07/10/visualizing-relationships-between-python-packages-2/ -- Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: the best online course

2016-07-10 Thread Steven D'Aprano
On Monday 11 July 2016 13:07, Rustom Mody wrote: > Python is good for black-box – us the ‘batteries included’ without worrying > too much how they are made > Scheme, assembly language, Turing machines etc are at the other end of the > spectrum I would put it the other way. Python is excellent fo

Re: one command on backslash and space for review

2016-07-10 Thread Ben Finney
Ganesh Pal writes: > How will I format number to strings using .format ?? To make best use of ‘str.format’, read its documentation thoroughly https://docs.python.org/3/library/string.html#formatstrings>. To format numbers to strings, you choose which representation you want; e.g. “decimal inte

Re: one command on backslash and space for review

2016-07-10 Thread Ganesh Pal
> > > > cmd = "run_parallel -za" + str(number) + \ > > ... " -s" + " \'daemon -cf xyz; sleep 1\'" > > cmd = "run_parallel -za{} -s 'daemon -cf xyz; sleep 1'".format(number) > > How will I format number to strings using .format ?? Example >>> str(num) '100' >>> cmd = "run_parallel -z

Re: the best online course

2016-07-10 Thread Ethan Furman
On 07/09/2016 04:21 PM, Chris Angelico wrote: Yes, I hear a lot about Udacity. Has anyone taken any of the pay-for classes? Are the instructors helpful, skilled, etc? Did it seem like good value for money? Yes. Yes, yes. Yes. :) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python

Re: the best online course

2016-07-10 Thread Rustom Mody
On Sunday, July 10, 2016 at 10:36:39 PM UTC+5:30, Ethan Furman wrote: > On 07/10/2016 12:18 AM, Bob Martin wrote: > > in 762247 20160709 223746 Malik Rumi wrote: > > >> I want one of those "knuckle down and learn" classes. But even more than > >> th= > >> at, I want a class with a real teacher wh

Re: Curious Omission In New-Style Formats

2016-07-10 Thread Lawrence D’Oliveiro
On Sunday, July 10, 2016 at 7:22:42 PM UTC+12, Ian wrote: > On Sat, Jul 9, 2016 at 11:54 PM, Lawrence D’Oliveiro wrote: >> In printf-style formats, you can specify the number of digits for an >> integer separately from the field width. E.g. >> >> >>> "%#0.5x" % 0x123 >> '0x00123' >> > excep

Re: one command on backslash and space for review

2016-07-10 Thread Chris Angelico
On Mon, Jul 11, 2016 at 4:35 AM, Ganesh Pal wrote: > 'run_parallel -za1 -s 'daemon -cf xyz; sleep 1' > > We have a sleep 1 that's run run as part of abovry shell command . It > looks ok but is there a way to use something alternative to sleep was my > question. I guess the answer is " no" , bec

Re: one command on backslash and space for review

2016-07-10 Thread Ganesh Pal
On Jul 10, 2016 11:14 PM, "Ian Kelly" wrote: > They're correct, but using them before single quotes in a string > delimited by double quotes is unnecessary. Thanks . > > 3. Iam running sleep command on the cluster i.e , how could I make it > > look Python or its fine to have sleep ? > > I don't

Re: one command on backslash and space for review

2016-07-10 Thread Ian Kelly
On Sun, Jul 10, 2016 at 9:19 AM, Ganesh Pal wrote: > Hello Team, > > I am on python 2.7 and Linux , I want to form the below sample > command so that I could run it on the shell. > > Command is --> run_parallel -za1 -s 'daemon -cf xyz; sleep 1' > > Here is how I formed the command and it seems

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Ian Kelly
On Sun, Jul 10, 2016 at 9:03 AM, Marko Rauhamaa wrote: > Ian Kelly : > >> That's still excessive by any reasonable standards. Names should be >> descriptive, but no more verbose than necessary. How about: >> >> force_N = -G * mass1_kg * mass2_kg / distance_m ** 2 > > Why bother with tagging the na

Re: the best online course

2016-07-10 Thread Ethan Furman
On 07/10/2016 12:18 AM, Bob Martin wrote: in 762247 20160709 223746 Malik Rumi wrote: I want one of those "knuckle down and learn" classes. But even more than th= at, I want a class with a real teacher who is available to answer questions= and explain things. I've done a lot of books and onlin

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Random832
On Sun, Jul 10, 2016, at 10:55, Ian Kelly wrote: > force_N = -G * mass1_kg * mass2_kg / distance_m ** 2 > > I'm fine with "G" as is because it's the standard name for the value > in physics contexts, and it's presumably defined in the code as a > constant. It's every bit as clear as "pi". Shouldn

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Michael Selik
On Sun, Jul 10, 2016, 5:08 AM Chris Angelico wrote: > On Sun, Jul 10, 2016 at 8:08 PM, Steven D'Aprano > wrote: > >> Now even the basic IPython shell has autocomplete :-) > > > > Not all shells or editors are IPython, and not all abbreviations are bad. > > Would you rather print, or > > write_va

one command on backslash and space for review

2016-07-10 Thread Ganesh Pal
Hello Team, I am on python 2.7 and Linux , I want to form the below sample command so that I could run it on the shell. Command is --> run_parallel -za1 -s 'daemon -cf xyz; sleep 1' Here is how I formed the command and it seems to look fine and work fine , but I think it could still be better

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Marko Rauhamaa
Ian Kelly : > That's still excessive by any reasonable standards. Names should be > descriptive, but no more verbose than necessary. How about: > > force_N = -G * mass1_kg * mass2_kg / distance_m ** 2 Why bother with tagging the names with standard units? Somewhat related: Many programming frame

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Ian Kelly
On Sun, Jul 10, 2016 at 2:01 AM, Jussi Piitulainen wrote: > Ian Kelly writes: > >> On Sat, Jul 9, 2016 at 3:45 PM, Chris Angelico wrote: >>> On Sat, Jul 9, 2016 at 3:26 PM, Steven D'Aprano wrote: I'd like to get a quick show of hands regarding the names. Which do you prefer?

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Ian Kelly
On Sun, Jul 10, 2016 at 8:29 AM, Rustom Mody wrote: > Newton's law F = -Gm₁m₂/r² > > Better seen in its normal math form: > https://en.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation#Modern_form > > De-abbreviated > > Force is given by the negative of the universal_gravitational_constan

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Rustom Mody
On Sunday, July 10, 2016 at 8:00:00 PM UTC+5:30, Rustom Mody wrote: > Newton's law F = -Gm₁m₂/r² > > Better seen in its normal math form: > https://en.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation#Modern_form > > De-abbreviated > > Force is given by the negative of the universal_gra

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Rustom Mody
On Sunday, July 10, 2016 at 3:39:02 PM UTC+5:30, Steven D'Aprano wrote: > On Sun, 10 Jul 2016 07:24 pm, Michael Selik wrote: > > > On Sun, Jul 10, 2016, 4:56 AM Steven D'Aprano wrote: > > > >> On Sun, 10 Jul 2016 05:28 pm, Rustom Mody wrote: > >> > >> > From fuzzy memory of sitting in statistics

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Chris Angelico
On Sun, Jul 10, 2016 at 8:08 PM, Steven D'Aprano wrote: >> Now even the basic IPython shell has autocomplete :-) > > Not all shells or editors are IPython, and not all abbreviations are bad. > Would you rather print, or > write_values_as_strings_to_the_predefined_standard_output_file? Also: Inter

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Steven D'Aprano
On Sun, 10 Jul 2016 07:24 pm, Michael Selik wrote: > On Sun, Jul 10, 2016, 4:56 AM Steven D'Aprano wrote: > >> On Sun, 10 Jul 2016 05:28 pm, Rustom Mody wrote: >> >> > From fuzzy memory of sitting in statistics classes decades ago >> > filled with μ-σ etc I'd suggest μ gμ hμ >> >> In all the sta

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Michael Selik
On Sun, Jul 10, 2016, 4:56 AM Steven D'Aprano wrote: > On Sun, 10 Jul 2016 05:28 pm, Rustom Mody wrote: > > > From fuzzy memory of sitting in statistics classes decades ago > > filled with μ-σ etc I'd suggest μ gμ hμ > > In all the stats books and references I've seen, μ is always the population

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Steven D'Aprano
On Sun, 10 Jul 2016 05:28 pm, Rustom Mody wrote: > From fuzzy memory of sitting in statistics classes decades ago > filled with μ-σ etc I'd suggest μ gμ hμ In all the stats books and references I've seen, μ is always the population mean (implicitly the arithmetic mean). When discussing the differ

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Jussi Piitulainen
Ian Kelly writes: > On Sat, Jul 9, 2016 at 3:45 PM, Chris Angelico wrote: >> On Sat, Jul 9, 2016 at 3:26 PM, Steven D'Aprano wrote: >>> I'd like to get a quick show of hands regarding the names. Which do you >>> prefer? >>> >>> hmean and gmean >>> >>> harmonic_mean and geometric_mean >> >> I'd

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Rustom Mody
On Saturday, July 9, 2016 at 10:56:27 AM UTC+5:30, Steven D'Aprano wrote: > As requested in issue 27181 on the bug tracker, I'm adding functions to > calculate the harmonic and geometric means to the statistics module. > > I'd like to get a quick show of hands regarding the names. Which do you > p

Re: Quick poll: gmean or geometric_mean

2016-07-10 Thread Ian Kelly
On Sat, Jul 9, 2016 at 3:45 PM, Chris Angelico wrote: > On Sat, Jul 9, 2016 at 3:26 PM, Steven D'Aprano wrote: >> I'd like to get a quick show of hands regarding the names. Which do you >> prefer? >> >> hmean and gmean >> >> harmonic_mean and geometric_mean > > I'd prefer the shorter names. I'd

Re: Curious Omission In New-Style Formats

2016-07-10 Thread Ian Kelly
On Sat, Jul 9, 2016 at 11:54 PM, Lawrence D’Oliveiro wrote: > In printf-style formats, you can specify the number of digits for an integer > separately from the field width. E.g. > > >>> "%#0.5x" % 0x123 > '0x00123' > > but not in new-style formats: > > >>> "{:#0.5x}".format(0x123) >

Re: the best online course

2016-07-10 Thread Bob Martin
in 762247 20160709 223746 Malik Rumi wrote: >I want one of those "knuckle down and learn" classes. But even more than th= >at, I want a class with a real teacher who is available to answer questions= >and explain things. I've done a lot of books and online video, but there's= >usually no help. If