[Python-Dev] Re: PEP 677 (Callable Type Syntax): Final Call for Comments

2022-01-13 Thread Batuhan Taskaya
> Has anyone considered adding a new special method like `__arrow__` or > something, that would be user-definable, but also defined for tuples and > types as returning a Callable? For example `int -> str` could mean > Callable[[int], str], and (int, str) -> bool could mean Callable[[int, str],

[Python-Dev] Re: PEP 679 – Allow parentheses in assert statements

2022-01-10 Thread Batuhan Taskaya
> While it can indeed, make otherwise stable projects with "nop"s assert sudden failing, that should be a trivial fix for any non-unmaintained project. Agreed. This would be like a bug fix. I don't think anyone is depending on the current behavior (beside explicit tests in linters, which is only

[Python-Dev] Re: PEP 679 – Allow parentheses in assert statements

2022-01-10 Thread Batuhan Taskaya
> Does someone know if linters like pylint or pylakes current warn on > "assert(test, msg)" statements? I believe so, both the python itself (through SyntaxWarnings) and other linters warn about this. > Is it possible to run a code search on PyPI top 5000 projects to see > if such always-true

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-18 Thread Batuhan Taskaya
I think I've posted it as a standalone reply (sorry for my bad mailing list skills), so linking my thread about potential concerns/reservations: https://mail.python.org/archives/list/python-dev@python.org/thread/FI4AFU3I25PECARIH2EVKAD5C5RJRE2N/ ___

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-18 Thread Batuhan Taskaya
First of all, thank you for authoring a really well-written PEP. tl;dr: I find it very troubling that we are going on a path where need to increase the language complexity (syntax) only in the cause 'easier' typing. So I am opposed to this change. Most of the native typing use cases until now

[Python-Dev] Interaction of PEP 563's Annotations with Symbol Table

2021-04-23 Thread Batuhan Taskaya
About 4 months ago, I've created bpo-42725 in order to resolve some of the points below though I decided to postpone it for various reasons that blocked it completely until the point of where we have a beta cut in a week or so. So I'm asking for comments regarding how should we resolve this

[Python-Dev] Re: PEP 637 - Support for indexing with keyword arguments: request for feedback for SC submission

2021-02-06 Thread Batuhan Taskaya
Lurking around the discussions I started to wonder whether this syntax actually worths the burden it introduces. As you have commented out earlier, there are no use cases in the built-in types, perhaps a research would be great regarding possible use cases of keyword arguments in and out of the

[Python-Dev] Re: PEP 11: Drop support for AIX releases without dlopen

2020-10-16 Thread Batuhan Taskaya
As far as I am aware, we already dropped support for AIX 5.3<=.  See https://bugs.python.org/issue40680 for details. On 16.10.2020 23:15, Kevin Adler wrote: Python has supported using dynload_shlib (using dlopen) on AIX since

[Python-Dev] Re: Remove module's __version__ attributes in the stdlib

2020-10-14 Thread Batuhan Taskaya
I've indexed a vast majority of the files from top 4K pypi packages to this system, and here are the results about __version__ usage on argparse, cgi, csv, decimal, imaplib, ipaddress, optparse, pickle, platform, re, smtpd, socketserver, tabnanny (result of an quick grep)

[Python-Dev] Re: Hygenic macros PEP.

2020-09-16 Thread Batuhan Taskaya
On 16.09.2020 16:33, Benjamin Peterson wrote: Is there any proposal that would let you add new tokens? Not a proposal, but drafted a project a while back. By patching tokenizer and the parser at runtime (generated from lib2to3.pgen), allowed to introduce different tokens / rules, and

[Python-Dev] Re: Accepting PEP 617: New PEG parser for CPython

2020-04-20 Thread Batuhan Taskaya
Congratulations! On Mon, Apr 20, 2020, 9:30 PM Brett Cannon wrote: > The steering council is happy to announce that we have accepted PEP 617! > Thanks to the PEP authors for all their hard work (which includes sending a > PR to update the acceptance of the PEP ). >

[Python-Dev] Re: PEP 617: New PEG parser for CPython

2020-04-02 Thread Batuhan Taskaya
Wonderful news! I'm really excited to see what is coming alongside this flexible parser. On Thu, Apr 2, 2020 at 9:16 PM Guido van Rossum wrote: > > Since last fall's core sprint in London, Pablo Galindo Salgado, Lysandros > Nikolaou and myself have been working on a new parser for CPython. We

[Python-Dev] Re: PEP 614 accepted

2020-03-03 Thread Batuhan Taskaya
Congratulations Brandt! On Tue, Mar 3, 2020, 9:19 PM Barry Warsaw wrote: > By unanimous consent, the Python Steering Council unanimously accepts PEP > 614 — > Relaxing Grammar Restrictions On Decorators. > > Congratulations to PEP author Brandt and PEP sponsor Guido, and thanks to > everyone

[Python-Dev] Re: PEP 585: Type Hinting Generics In Standard Collections

2020-02-23 Thread Batuhan Taskaya
This issue might be useful about it: https://bugs.python.org/issue39019 On Sun, Feb 23, 2020 at 2:12 PM Ethan Smith wrote: > > While working on the implementation with Guido I made a list of things that > inherit from typing.Generic in typeshed that haven't been listed/implemented > yet. > >

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-04 Thread Batuhan Taskaya
> Instead, we can do: > > * Don't recommend u-prefix except in Python 2&3 code. > * Provide a tool to remove the u-prefix. Great idea, +1 from me. On Wed, Dec 4, 2019, 8:39 AM Inada Naoki wrote: > On Wed, Dec 4, 2019 at 11:49 AM Ned Batchelder > wrote: > > > > On 12/3/19 8:13 PM, Inada Naoki

[Python-Dev] Re: Should we require all deprecations to have a removal version that we follow through on?

2019-11-27 Thread Batuhan Taskaya
> What do people think of the idea of requiring all deprecations specifying a version that the feature will be removed in (which under our annual release cadence would be at least the third release from the start of the deprecation, hence the deprecation being public for 2 years)? And that we also

[Python-Dev] Re: Exposing Tools/parser/unparse.py in the stdlib?

2019-11-19 Thread Batuhan Taskaya
Yes, there is a to_source function which allows AST to source conversation. On Wed, Nov 20, 2019, 9:02 AM Guido van Rossum wrote: > On Tue, Nov 19, 2019 at 10:24 PM Nathaniel Smith wrote: > >> On Mon, Nov 18, 2019 at 4:41 PM Pablo Galindo Salgado >> wrote: >> > >> > Hi, >> > >> > What do

[Python-Dev] Re: Exposing Tools/parser/unparse.py in the stdlib?

2019-11-19 Thread Batuhan Taskaya
This is a really great idea, after pretty ast.dump it will be great addition for people who works with AST code transformations. I think with the new end_lineno and end_col_offset information output can be little bit close the original. I want to volunteer the work if there is an open

[Python-Dev] PEP 601: discussion-to discuss.python.org

2019-09-03 Thread Batuhan Taskaya
Please use https://discuss.python.org/t/pep-601-forbid-return-break-continue-breaking-out-of-finally/2239 for feedback and discussion. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

Re: [Python-Dev] ast changes for "debug" f-strings

2019-05-20 Thread Batuhan Taskaya
> This strictly speaking isn't necessary. I could have added another Constant node for "x=" and left FormattedValue alone. I didn't for three reasons: it was expedient; it didn't require a lot of surgery to f-string parsing, which the extra Constant node would require; and it allowed the