[Tutor] Extract element of dtype object
dn
PyTutor at DancesWithMice.info
Mon Dec 7 14:09:39 EST 2020
On 08/12/2020 07:18, Mats Wichmann wrote:
> On 12/7/20 11:10 AM, Stephen P. Molnar wrote:
>> On 12/07/2020 12:55 PM, Dennis Lee Bieber wrote:
>>> o/~ Talking to myself in public o/~
>>>
>>> On Sun, 06 Dec 2020 14:33:06 -0500, Dennis Lee Bieber
>>> <wlfraed at ix.netcom.com> declaimed the following:
...
>> I happen to be an Organic Chemist and Computers with some of their
>> languages are among the many tools that I have used in the past 60
>> years or so. A a gauge of my logevity, the first langauge that I
>> managed to butcher was FORTRAN II. Unfortunaly, a little bit of
>> knowledge is a very dangerous thins and last for along time.
>
> me too :) fortunately, in my case, I appear to have kept FORTRAN II (and
> later Pascal) from polluting my mind.
Me three!
Although far from "pollution", FORTRAN II is a constant in my mind...
>> line = file[28]
>
> Just as a general comment, Magic Numbers like 28 aren't very desirable.
> To the reader (including oneself at any time more than about two days
> later): "Wait... 28? What does that mean?". At the very least, give it a
> name. But better is to find a pattern to look for rather than a
> specific numeric index, as that makes it more resilient to anything
> maybe not quite fitting the original model at some later time.
...for example
TARGET = 28
perfect FORTRAN, er Pascal, er Python...
--
Regards =dn
More information about the Tutor
mailing list