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
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
https://kozikow.com/2016/07/10/visualizing-relationships-between-python-packages-2/
--
Steve
--
https://mail.python.org/mailman/listinfo/python-list
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
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
>
>
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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)
>
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
31 matches
Mail list logo