Dennis Lee Bieber writes:
> On Sun, 15 Aug 2021 00:15:58 -0300, Hope Rouselle
> declaimed the following:
>
> Giganews seems to have just vomited up three days worth of traffic...
>
>>Dennis Lee Bieber writes:
>>
>>>
>>> Granted, the fact that the Amiga used a shared common address spa
Chris Angelico writes:
> On Tue, Aug 17, 2021 at 3:51 AM Hope Rouselle
> wrote:
>>
>> Chris Angelico writes:
>> >> Wow, I kinda feel the same as you here. I think this justifies
>> >> perhaps
>> >> using a hardware solution. (Crazy idea?! Lol.)
>> >
>> > uhhh Yes. Very crazy idea. Can
On Sun, 15 Aug 2021 00:15:58 -0300, Hope Rouselle
declaimed the following:
Giganews seems to have just vomited up three days worth of traffic...
>Dennis Lee Bieber writes:
>
>>
>> Granted, the fact that the Amiga used a shared common address space for
>> all running applications ma
Hello,
One of my absolute favorite places to go to practice Python questions from
is https://projecteuler.net . It's just Maths based questions that cannot
be solved by hand without consuming a Ton of time because of the high
limits.
This is how I learnt Python. By solving problems from the site in
On Tue, Aug 17, 2021 at 3:51 AM Hope Rouselle wrote:
>
> Chris Angelico writes:
> >> Wow, I kinda feel the same as you here. I think this justifies perhaps
> >> using a hardware solution. (Crazy idea?! Lol.)
> >
> > uhhh Yes. Very crazy idea. Can't imagine why anyone would ever
> > thin
Grant Edwards writes:
> On 2021-08-12, Hope Rouselle wrote:
>
>>> OS/2 had all kinds of amazing features (for its time). [...] Plus,
>>> it had this fancy concept of "extended attributes"; on older
>>> systems (like MS-DOS's "FAT" family), a file might be Read-Only,
>>> Hidden, a System file, or
Hope Rouselle writes:
[...]
>> Granted you may have to restrict some features if [...]
>
> To let students use the entire language feels a bit weird in the sense
> that the group goes in so many different directions. It definitely put
> teachers in a position they have to be --- I don't know th
Chris Angelico writes:
> On Fri, Aug 13, 2021 at 2:15 AM Hope Rouselle wrote:
>>
>> Chris Angelico writes:
>>
>> > History lesson!
>> >
>> > Once upon a time, IBM and Microsoft looked at what Intel was
>> > producing, and went, hey, we need to design an operating system that
>> > can take advan
Dennis Lee Bieber writes:
> On Wed, 11 Aug 2021 09:27:38 -0300, Hope Rouselle
> declaimed the following:
>>
>>I wouldn't. This is all Python-stuff. The course chooses a language
>>like Python, but it is not trying to teach Python --- it is trying to
>>teach computer programming, that is, strat
Chris Angelico writes:
> On Thu, Aug 12, 2021 at 9:23 AM Dennis Lee Bieber
> wrote:
[...]
>> I was spoiled by the Amiga variant of REXX. Most current
>> implementations (well, Regina is the only one I've looked at) can just pass
>> command to the default shell. The Amiga version took
Dennis Lee Bieber writes:
> On Thu, 12 Aug 2021 06:15:28 +1000, Chris Angelico
> declaimed the following:
>
>>The default command interpreter and shell on OS/2 was fairly primitive
>>by today's standards, and was highly compatible with the MS-DOS one,
>>but it also had the ability to run REXX sc
On 13/08/21 5:52 am, Grant Edwards wrote:
I think what he's talking about is allowing the user to attach
arbitrary _metadata_ to the file ... IOW, something similar to the > "resource
fork" that MacOS used to have.
The resource fork was used for more than just metadata, it was
often the entire
On 13/08/21 11:42 am, Cameron Simpson wrote:
2: It took me a while to see, but this is a type annotiation.
Interestingly, it seems to be parsed as a form of assignment with
a missing RHS.
>>> from ast import parse, dump
>>> dump(parse("if0: print('yes!')"))
"Module(body=[AnnAssign(target=Name(
On 12Aug2021 12:09, Hope Rouselle wrote:
>Chris Angelico writes:
>> [...] Plus, it had this fancy
>> concept of "extended attributes"; on older systems (like MS-DOS's
>> "FAT" family), a file might be Read-Only, Hidden, a System file, or
>> needing to be Archived, and that was it - but on HPFS, y
On 11Aug2021 09:11, Hope Rouselle wrote:
>Greg Ewing writes:
>> That may not be doing what you think it's doing. Consider also
>>
> if0: print('yes!')
>> yes!
>
>So, yes, that's puzzling.
>
0 == False
>True
if0: print("yes")
>yes
if(0): print("yes")
>
>
>What's going on th
On Fri, 13 Aug 2021 04:41:42 +1000, Chris Angelico
declaimed the following:
>Yeah. It was a strange choice by today's standards, but back then,
>most of my GUI programs were written in REXX.
>
>https://en.wikipedia.org/wiki/VX-REXX
>http://www.edm2.com/0206/vrexx.html
>
There was a librar
On 2021-08-12, MRAB wrote:
>
>> Windows never had filesystems that supported metadata like OS/2 and
>> MacOS did. The registry was an ugly hack that attempted (very poorly)
>> to make up for that lack of metadata.
>>
> FYI, NTFS does support Alternate Data Streams.
That is interesting -- and it
On Thu, 12 Aug 2021 12:09:58 -0300, Hope Rouselle
declaimed the following:
>How is it possible that Microsoft would take part of the code of OS/2?
>Did IBM just hand it to them?
>
Because IBM subcontracted (IE: "paid") M$ to create an OS with XYZ
features for their latest PC (under supe
On 2021-08-12 18:52, Grant Edwards wrote:
On 2021-08-12, Hope Rouselle wrote:
OS/2 had all kinds of amazing features (for its time). [...] Plus,
it had this fancy concept of "extended attributes"; on older
systems (like MS-DOS's "FAT" family), a file might be Read-Only,
Hidden, a System file,
On Fri, Aug 13, 2021 at 5:03 AM Grant Edwards wrote:
>
> On 2021-08-12, Hope Rouselle wrote:
>
> >> OS/2 had all kinds of amazing features (for its time). [...] Plus,
> >> it had this fancy concept of "extended attributes"; on older
> >> systems (like MS-DOS's "FAT" family), a file might be Read-
On 2021-08-12, Hope Rouselle wrote:
>> OS/2 had all kinds of amazing features (for its time). [...] Plus,
>> it had this fancy concept of "extended attributes"; on older
>> systems (like MS-DOS's "FAT" family), a file might be Read-Only,
>> Hidden, a System file, or needing to be Archived, and th
On Fri, Aug 13, 2021 at 2:15 AM Hope Rouselle wrote:
>
> Chris Angelico writes:
>
> > History lesson!
> >
> > Once upon a time, IBM and Microsoft looked at what Intel was
> > producing, and went, hey, we need to design an operating system that
> > can take advantage of the fancy features of this
Chris Angelico writes:
[...]
>> > [1] And boy oh boy was that good fun. The OS/2 Presentation Manager
>> > had a wealth of power available. Good times, sad that's history now.
>>
>> I know OS/2 only by name. I never had the pleasure of using it. In
>> fact, I don't even know how it looks. I m
On Thu, Aug 12, 2021 at 9:23 AM Dennis Lee Bieber wrote:
>
> On Thu, 12 Aug 2021 06:15:28 +1000, Chris Angelico
> declaimed the following:
>
>
> >The default command interpreter and shell on OS/2 was fairly primitive
> >by today's standards, and was highly compatible with the MS-DOS one,
> >but i
On Wed, 11 Aug 2021 09:27:38 -0300, Hope Rouselle
declaimed the following:
>
>I wouldn't. This is all Python-stuff. The course chooses a language
>like Python, but it is not trying to teach Python --- it is trying to
>teach computer programming, that is, strategies in high-precision.
>
On Thu, 12 Aug 2021 06:15:28 +1000, Chris Angelico
declaimed the following:
>The default command interpreter and shell on OS/2 was fairly primitive
>by today's standards, and was highly compatible with the MS-DOS one,
>but it also had the ability to run REXX scripts. REXX was *way* ahead
>of its
On Thu, Aug 12, 2021 at 7:25 AM Rob Cliffe via Python-list
wrote:
>
> On 11/08/2021 19:10, MRAB wrote:
> > On 2021-08-11 18:10, Wolfram Hinderer via Python-list wrote:
> >>
> >>
> >> Am 11.08.2021 um 05:22 schrieb Terry Reedy:
> >>> Python is a little looser about whitespace than one might expect
This conversation has, of course, veered away from the original question so
I am starting afresh.
My memory of the original question is about how one sets up a test for
material covered in class or associated materials for what sounds like a
beginner class. I am not sure whether this would be the
On 11/08/2021 19:10, MRAB wrote:
On 2021-08-11 18:10, Wolfram Hinderer via Python-list wrote:
Am 11.08.2021 um 05:22 schrieb Terry Reedy:
Python is a little looser about whitespace than one might expect
from reading 'normal' code when the result is unambiguous in that it
cannot really mean a
On Thu, Aug 12, 2021 at 5:00 AM Hope Rouselle wrote:
>
> Chris Angelico writes:
>
> > On Wed, Aug 11, 2021 at 4:18 AM Hope Rouselle
> > wrote:
> >>
> >> Chris Angelico writes:
> >>
> >> [...]
> >>
> >> >> not disagreeing... and yeah I could have thought deeper about the
> >> >> answer, but I s
Chris Angelico writes:
> On Wed, Aug 11, 2021 at 4:18 AM Hope Rouselle wrote:
>>
>> Chris Angelico writes:
>>
>> [...]
>>
>> >> not disagreeing... and yeah I could have thought deeper about the
>> >> answer, but I still think "notthing has been OOP" -> "yes it has, they
>> >> just didn't realiz
Chris Angelico writes:
> On Wed, Aug 11, 2021 at 4:18 AM Hope Rouselle wrote:
>>
>> I totally agree with you but I didn't know that even numbers were like
>> that in Python. In fact, I still don't quite believe it...
>>
>> >>> 2.__add__(3)
>> SyntaxError: invalid syntax
>
> Yeah, that's because
Greg Ewing writes:
> On 11/08/21 3:22 pm, Terry Reedy wrote:
>> Python is a little looser about whitespace than one might expect
>> from reading 'normal' code when the result is unambiguous in that it
>> cannot really mean anything other than what it does.
>> >>> if3: print('yes!')
>> yes!
>
> T
On 11/08/21 3:22 pm, Terry Reedy wrote:
Python is a little looser about whitespace than one might expect from
reading 'normal' code when the result is unambiguous in that it cannot
really mean anything other than what it does.
>>> if3: print('yes!')
yes!
That may not be doing what you think
Terry Reedy writes:
> On 8/10/2021 5:27 PM, Hope Rouselle wrote:
>> Terry Reedy writes:
>>
>>> On 8/10/2021 9:15 AM, Hope Rouselle wrote:
>>> 2.__add__(3)
SyntaxError: invalid syntax
But then I tried:
>>> (2).__add__(3)
5
>>>
>>> Add a space is easier.
>> 2 .__ad
On 2021-08-11 18:10, Wolfram Hinderer via Python-list wrote:
Am 11.08.2021 um 05:22 schrieb Terry Reedy:
Python is a little looser about whitespace than one might expect from
reading 'normal' code when the result is unambiguous in that it cannot
really mean anything other than what it does.
Am 11.08.2021 um 05:22 schrieb Terry Reedy:
Python is a little looser about whitespace than one might expect from
reading 'normal' code when the result is unambiguous in that it cannot
really mean anything other than what it does. Two other examples:
>>> if3: print('yes!')
yes!
>>> [0] [0]
On 8/10/2021 5:27 PM, Hope Rouselle wrote:
Terry Reedy writes:
On 8/10/2021 9:15 AM, Hope Rouselle wrote:
2.__add__(3)
SyntaxError: invalid syntax
But then I tried:
(2).__add__(3)
5
Add a space is easier.
2 .__add__(3)
5
Hah. That's brilliant! So cool.
Python is a little loose
Terry Reedy writes:
> On 8/10/2021 9:15 AM, Hope Rouselle wrote:
> 2.__add__(3)
>> SyntaxError: invalid syntax
>> But then I tried:
>>
> (2).__add__(3)
>> 5
>
> Add a space is easier.
2 .__add__(3)
> 5
Hah. That's brilliant! So cool.
--
https://mail.python.org/mailman/listi
Chris Angelico writes:
> On Wed, Aug 11, 2021 at 4:14 AM Hope Rouselle wrote:
>>
>> Chris Angelico writes:
>>
>> > On Tue, Aug 10, 2021 at 7:25 AM Hope Rouselle
>> > wrote:
>> >> I came up with the following question. Using strings of length 5
>> >> (always), write a procedure histogram(s) th
On 8/10/2021 9:15 AM, Hope Rouselle wrote:
2.__add__(3)
SyntaxError: invalid syntax
But then I tried:
(2).__add__(3)
5
Add a space is easier.
>>> 2 .__add__(3)
5
>>>
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 11, 2021 at 4:18 AM Hope Rouselle wrote:
>
> Chris Angelico writes:
>
> [...]
>
> >> not disagreeing... and yeah I could have thought deeper about the
> >> answer, but I still think "notthing has been OOP" -> "yes it has, they
> >> just didn't realize it" was worth mentioning
> >
> >
On Wed, Aug 11, 2021 at 4:18 AM Hope Rouselle wrote:
>
> I totally agree with you but I didn't know that even numbers were like
> that in Python. In fact, I still don't quite believe it...
>
> >>> 2.__add__(3)
> SyntaxError: invalid syntax
Yeah, that's because "2." looks like the beginning of a
On Wed, Aug 11, 2021 at 4:14 AM Hope Rouselle wrote:
>
> Chris Angelico writes:
>
> > On Tue, Aug 10, 2021 at 7:25 AM Hope Rouselle
> > wrote:
> >> I came up with the following question. Using strings of length 5
> >> (always), write a procedure histogram(s) that consumes a string and
> >> pro
Mats Wichmann writes:
> On 8/9/21 3:07 PM, Hope Rouselle wrote:
>> I'm looking for questions to put on a test for students who never had
>> any experience with programming, but have learned to use Python's
>> procedures, default arguments, if-else, strings, tuples, lists and
>> dictionaries. (Th
Chris Angelico writes:
[...]
>> not disagreeing... and yeah I could have thought deeper about the
>> answer, but I still think "notthing has been OOP" -> "yes it has, they
>> just didn't realize it" was worth mentioning
>
> Oh yes, absolutely agree.
At the same time, inside the machine nothing
Chris Angelico writes:
> On Tue, Aug 10, 2021 at 7:25 AM Hope Rouselle wrote:
>> I came up with the following question. Using strings of length 5
>> (always), write a procedure histogram(s) that consumes a string and
>> produces a dictionary whose keys are each substrings (of the string) of
>>
On Tue, Aug 10, 2021 at 1:41 PM Mats Wichmann wrote:
>
>
> On 8/9/21 6:34 PM, Chris Angelico wrote:
>
> > If you want to highlight the OOP nature of Python, rather than looking
> > at magic methods, I'd first look at polymorphism. You can add a pair
> > of integers; you can add a pair of tuples; y
On 8/9/21 6:34 PM, Chris Angelico wrote:
If you want to highlight the OOP nature of Python, rather than looking
at magic methods, I'd first look at polymorphism. You can add a pair
of integers; you can add a pair of tuples; you can add a pair of
strings. Each one logically adds two things toge
On Tue, Aug 10, 2021 at 8:19 AM Mats Wichmann wrote:
> Even if you do
>
> x = 2 + 3
>
> you're actually creating an integer object with a value of 2, and
> calling its add method to add the integer object with the value of 3 to
> it. The syntax hides it, but in a way it's just convenience that it
On 8/9/21 3:07 PM, Hope Rouselle wrote:
I'm looking for questions to put on a test for students who never had
any experience with programming, but have learned to use Python's
procedures, default arguments, if-else, strings, tuples, lists and
dictionaries. (There's no OOP at all in this course.
On Tue, Aug 10, 2021 at 7:25 AM Hope Rouselle wrote:
> I came up with the following question. Using strings of length 5
> (always), write a procedure histogram(s) that consumes a string and
> produces a dictionary whose keys are each substrings (of the string) of
> length 1 and their correspondin
52 matches
Mail list logo