Il giorno giovedì 4 marzo 2021 alle 23:51:39 UTC+1 Igor Korot ha scritto:
> Hi,
> On Thu, Mar 4, 2021 at 4:42 PM alberto wrote:
> >
> > Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto:
> > > I don't see a Python program in that link.
> > >
> > > Are you asking how to
On 3/4/2021 4:28 PM, Terry Reedy wrote:
Quentin privately sent me 12 lines (which should have been posted here
instead), which can be reduced to the following 4 that exhibit his bug.
if a == b:
print('correct')
if a != b:
print('incorrect')
The bug is a != b will never be t
On 03Mar2021 16:50, Grant Edwards wrote:
>On 2021-03-03, Chris Angelico wrote:
>> On Thu, Mar 4, 2021 at 1:40 AM Grant Edwards
>> wrote:
>>
>>> I thought the entire point of asser being a keyword was so that if you
>>> disable asserts then they go away completely: the arguments aren't
>>> even
So, I recently downloaded the pygame module, this code is from a youtube
tutorial by the way, I am following along the tutorial, the error involves
the pygame.init() and also says this:
import pygame
# Initialize Pygame
pygame.init()
#create the screen
screen = pygame.display.set_mode((800, 600)
On 2021-03-06 02:54, Quentin Bock wrote:
So, I recently downloaded the pygame module, this code is from a youtube
tutorial by the way, I am following along the tutorial, the error involves
the pygame.init() and also says this:
import pygame
# Initialize Pygame
pygame.init()
#create the screen
Hi all
This is purely academic, but I would like to understand the following -
>>>
>>> a = [('x', 'y')]
>>>
>>> s = []
>>> for b, c in a:
... s.append((b, c))
...
>>> s
[('x', 'y')]
This is what I expected.
>>>
>>> s = []
>>> s.append(((b, c) for b, c in a))
>>> s
[ at 0x019FC3F863C0>]
>>>
>>> s = []
>>> s.append(((b, c) for b, c in a))
>>> s
[ at 0x019FC3F863C0>]
>>>
TIA for any insights.
Replace "append" above with "extend" and observe the results. Then
ponder the difference between append and extend. I suspect that the
heart of your confusion actua
On Sat, Mar 06, 2021 at 08:21:47AM +0200, Frank Millman wrote:
> [...]
> I understand the concept that a generator does not return a value until you
> call next() on it, but I have not grasped the essential difference between
> the above two constructions.
>
> TIA for any insights.
>
> Frank Mill
On 2021-03-06 8:21 AM, Frank Millman wrote:
Hi all
This is purely academic, but I would like to understand the following -
>>>
>>> a = [('x', 'y')]
>>>
>>> s = []
>>> for b, c in a:
... s.append((b, c))
...
>>> s
[('x', 'y')]
This is what I expected.
>>>
>>> s = []
>>> s.append(((