https://discuss.python.org/t/how-do-we-want-to-manage-additions-removals-to-the-stdlib/10681
This comes from my language summit talk on the stdlib to help clarify some
things about how we manage the stdlib from the perspective of
additions/deletions.
FYI I will be *muting this email thread
On 9/16/2021 3:02 AM, Paul Moore wrote:
The debate here is (I think!) whether an *iterator* that is not also
an *iterable* is a valid iterator.
This framing of the question seems biased in that it initially uses
'iterator' to mean 'object with __next__ but not __iter__' whe the
propriety of
On Wed, Sep 15, 2021 at 4:06 PM Guido van Rossum wrote:
> [SNIP]
> Reminder about how for-loops work:
>
> This:
>
> for x in seq:
>
>
> translates (roughly) to this:
>
> _it = iter(seq)
> while True:
> try:
> x = next(_it)
> except StopIteration:
> break
>
>
As you are using termux it might be worth checking out the build
arguments and patches termux uses to build their own version of python
(Currently 3.9.7):
https://github.com/termux/termux-packages/tree/master/packages/python
I'm not sure if this will be enough to build python3.10 or if
Hi Mark,
https://bugs.python.org/issue45220 now tracks these Windows build errors.
Victor
On Thu, Sep 16, 2021 at 3:25 PM Mark Shannon wrote:
>
> Hi,
>
> I'm getting build errors on Windows for
> https://github.com/python/cpython/pull/28386
>
> The error message is:
>
> C:\Program Files
Hi all,
I have a weird case where I thought line events would be issued and yet
they aren't even though they're in the instructions in the bytecode (both
in 3.9 and 3.10).
i.e.:
Given the code:
def check_backtrack(x): # line 1
if not (x == 'a' # line 2
or x == 'c'): # line 3
Hi,
I'm getting build errors on Windows for
https://github.com/python/cpython/pull/28386
The error message is:
C:\Program Files (x86)\Windows
Kits\10\Include\10.0.22000.0\um\winnt.h(253): error RC2188:
D:\a\cpython\cpython\PCbuild\obj\311win32_Release\pythoncore\RCa01688(47)
: fatal error
Hi,
On Wed, Sep 15, 2021 at 7:16 PM Sandeep Gupta wrote:
> I get following warnings and errors:
> Python/pytime.c:398:10: warning: implicit conversion from 'long' to 'double'
> changes value from 9223372036854775807 to 9223372036854775808
> [-Wimplicit-const-int-float-conver
> sion]
>if
On Thu, 16 Sept 2021 at 01:30, Chris Barker via Python-Dev
wrote:
> """
> "[i]terators are required to have an __iter__() method" which neither `for`
> nor `iter()` actually enforce.
> """
>
> I'm confused -- as far as I can tell `for` does enforce this -- well, it
> doesn't enforce it, but it