[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan


Change by Batuhan :


--
pull_requests: +14968
pull_request: https://github.com/python/cpython/pull/15247

___
Python tracker 
<https://bugs.python.org/issue37830>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan


Batuhan  added the comment:

serhiy can you review the solution i found?

--

___
Python tracker 
<https://bugs.python.org/issue37830>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan


Batuhan  added the comment:

Can i work on this?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue37893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +15061
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15344

___
Python tracker 
<https://bugs.python.org/issue37893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37925] --embed not included in python3.8-config usage/--help

2019-08-23 Thread Batuhan


Batuhan  added the comment:

I can work on this.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue37925>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36946] Possible signed integer overflow in slice handling

2019-08-24 Thread Batuhan


Batuhan  added the comment:

Should we close this?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue36946>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37925] --embed not included in python3.8-config usage/--help

2019-08-24 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +15153
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15458

___
Python tracker 
<https://bugs.python.org/issue37925>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19867] pickletools.OpcodeInfo.code is a string

2019-08-24 Thread Batuhan


Batuhan  added the comment:

What should we do then, close?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue19867>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26093] __qualname__ different when calling generator object w/ functions.partial

2019-08-24 Thread Batuhan


Batuhan  added the comment:

This bug is fixed in 3.9 (probably in 3.8 too)

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue26093>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38201] Anotation problem at flask_httpauth package

2019-09-17 Thread Batuhan


Batuhan  added the comment:

I dont think this is a bug for cpython project. Extension modules category has 
a different meaning.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38201>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

2019-10-02 Thread Batuhan


Batuhan  added the comment:

https://gitlab.com/python-devs/importlib_metadata/issues/92

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38342>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-02 Thread Batuhan


New submission from Batuhan :

Allow user to set indent level and parsing status of type comments

--
components: Library (Lib)
messages: 353741
nosy: BTaskaya, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Make python -m ast more configurable
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38348>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-02 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16129
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16540

___
Python tracker 
<https://bugs.python.org/issue38348>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-03 Thread Batuhan


Batuhan  added the comment:

I was checking typed_ast and i wanted to know which parts changed and
implement that parts to astor. But there was no flags for --type-comments
False.

Also it can be handy to have an indention option to change it for fitting
tree into the terminal width.

On Thu, Oct 3, 2019, 11:45 AM Serhiy Storchaka 
wrote:

>
> Serhiy Storchaka  added the comment:
>
> Why do you need this feature?
>
> --
>
> ___
> Python tracker 
> <https://bugs.python.org/issue38348>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue38348>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-04 Thread Batuhan


Batuhan  added the comment:

> I do not want to complicate this tiny feature.
Making more configurable isn't making it complicated. It is just improving 
users control over it by indentation and parsing option.

--

___
Python tracker 
<https://bugs.python.org/issue38348>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Batuhan


New submission from Batuhan :

def _convert_num(node):
if isinstance(node, Constant):
if type(node.value) in (int, float, complex):
return node.value
>   raise ValueError('malformed node or string: ' + repr(node))
E   ValueError: malformed node or string: <_ast.Name object at 
0x7f0e7ebab320>

When a malformed node passes into literal_eval, it raises ValueError with repr 
of node (which is just a memory address and type). I think using dump(node) at 
there is a better option, like

node = <_ast.Name object at 0x7fa8279847d0>

def _convert_num(node):
if isinstance(node, Constant):
if type(node.value) in (int, float, complex):
return node.value
>   raise ValueError('malformed node or string: ' + dump(node))
E   ValueError: malformed node or string: Name(id='a', ctx=Load())

--
components: Library (Lib)
messages: 354103
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: ast.literal_eval doesn't give information about node except the type of 
it
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38396>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16208
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16620

___
Python tracker 
<https://bugs.python.org/issue38396>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38454] test_listdir is failing on ubuntu with WSL

2019-10-11 Thread Batuhan

New submission from Batuhan :

Run tests sequentially
0:00:00 load avg: 0.52 [1/1] test_os
test test_os failed -- Traceback (most recent call last):
  File "/home/isidentical/cpython/Lib/test/test_os.py", line 2059, in 
test_listdir
self.assertEqual(found, expected)
AssertionError: Items in the first set but not the second:
'@test_12966_tmp-�'
Items in the second set but not the first:
'@test_12966_tmp-\udcff'

test_os failed

== Tests result: FAILURE ==

1 test failed:
test_os

Total duration: 2 sec 587 ms
Tests result: FAILURE


System:
 - Ubuntu 18.04 bionic
 - x86_64 Linux 4.4.0-18362-Microsoft

--
components: Tests
messages: 354518
nosy: BTaskaya, steve.dower
priority: normal
severity: normal
status: open
title: test_listdir is failing on ubuntu with WSL
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38454>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38530] Offer suggestions on AttributeError

2019-10-19 Thread Batuhan


Batuhan  added the comment:

It already exists as a 3rd party module and it would be really cool to have 
this in core level.

https://github.com/dutc/didyoumean (by James Powell)

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38530>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38530] Offer suggestions on AttributeError

2019-10-19 Thread Batuhan


Change by Batuhan :


--
nosy: +james

___
Python tracker 
<https://bugs.python.org/issue38530>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16411
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16865

___
Python tracker 
<https://bugs.python.org/issue38531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan


Batuhan  added the comment:

Sorry for the inconvenience. I'm fixing it

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38522] Py_USING_MEMORY_DEBUGGER is referenced in docs but not present in code

2019-10-20 Thread Batuhan


Batuhan  added the comment:

It looks like benjamin peterson removed remaining references from obmalloc.c in 
3924f93794fd740c547b44884f73303196475cd5

--
nosy: +BTaskaya, benjamin.peterson

___
Python tracker 
<https://bugs.python.org/issue38522>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan


Batuhan  added the comment:

@rhettinger, should we mention about it in whats new too?

--

___
Python tracker 
<https://bugs.python.org/issue38531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33463] Can namedtuple._asdict return a regular dict instead of OrderedDict?

2019-10-22 Thread Batuhan


Batuhan  added the comment:

we can close this (raymond resolved this in bpo-35864)

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue33463>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24313] json fails to serialise numpy.int64

2019-10-22 Thread Batuhan


Batuhan  added the comment:

What is the next step of this 4-year-old issue? I think i can prepare a patch 
for using __index__ (as suggested by @r.david.murray)

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue24313>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25635] urllib2 cannot fully read FTP file

2019-10-22 Thread Batuhan


Batuhan  added the comment:

It works as expected on master (3.9.0a0). I think we can close this

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue25635>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-22 Thread Batuhan


Batuhan  added the comment:

Adrian are you still want to work on this or can i take it?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue35448>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan


Change by Batuhan :


--
versions: +Python 3.9 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue35448>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16452
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/16920

___
Python tracker 
<https://bugs.python.org/issue35448>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-25 Thread Batuhan


Batuhan  added the comment:

> I do not think that adding an extra parameter to .read() will solve any 
> problem.

There is a use case of this (which some of tools depends) about checking if 
configuration exists and if not, raising an error. Now, they can solve this by 
just adding check_exist argument. 

> Changing the default behavior will break existing code.

Can you give an example of how this feature can/could break existing code?

--

___
Python tracker 
<https://bugs.python.org/issue35448>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14196] Unhandled exceptions in pdb return value display

2019-10-29 Thread Batuhan


Batuhan  added the comment:

Can't reproducible in py3 (3.8), IMHO can be closed.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue14196>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19510] lib2to3.fixes.fix_import gets confused if implicit relative imports and absolute imports are on the same line

2019-10-29 Thread Batuhan

Batuhan  added the comment:

> It’s still a bug though :)

It gives a warning about this though
 RefactoringTool: ### In file test/t.py ###
 RefactoringTool: Line 1: absolute and local imports together

If it still counts as a bug, let me know and i'll try to prepare a patch.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue19510>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21142] Daily/weekly ABI scan?

2019-10-29 Thread Batuhan


Batuhan  added the comment:

Tools/c-globals moved under Tools/c-analyzer

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue21142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38316] docs: Code object's "co_stacksize" field is described with mistake

2019-10-29 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16509
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16983

___
Python tracker 
<https://bugs.python.org/issue38316>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26669] time.localtime(float("NaN")) does not raise a ValueError on all platforms

2019-10-29 Thread Batuhan


Batuhan  added the comment:

Victor's PR 11507 is closed, what actions are going to be taken next? Close the 
issue as Mariatta said?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue26669>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32081] ipaddress should support fast IP lookups

2019-10-29 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya, pmoody

___
Python tracker 
<https://bugs.python.org/issue32081>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30533] missing feature in inspect module: getmembers_static

2019-10-29 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya
versions: +Python 3.9 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue30533>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36971] Add subsections in C API "Common Object Structures" page

2019-10-29 Thread Batuhan


Batuhan  added the comment:

PR 13446 is merged, anything else is needed or can this issue be closed?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue36971>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-29 Thread Batuhan


Batuhan  added the comment:

Ran, do you want to work on this or can i take it?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-29 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16511
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16985

___
Python tracker 
<https://bugs.python.org/issue38629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-30 Thread Batuhan


Batuhan  added the comment:

$ ./python -m pyperf timeit -s "from math import floor" --duplicate 100 
"floor(12345.6)"
Before:  Mean +- std dev: 52.5 ns +- 2.6 ns
After:  Mean +- std dev: 71.0 ns +- 1.7 ns

$ ./python -m pyperf timeit -s "from math import ceil" --duplicate 100 
"ceil(12345.6)"
Before:  Mean +- std dev: 51.2 ns +- 1.5 ns
After:  Mean +- std dev: 74.4 ns +- 2.2 ns

--

___
Python tracker 
<https://bugs.python.org/issue38629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2019-11-15 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16680
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17171

___
Python tracker 
<https://bugs.python.org/issue21767>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7687] Bluetooth support untested

2019-11-15 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya
versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 
<https://bugs.python.org/issue7687>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2019-11-15 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16681
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17172

___
Python tracker 
<https://bugs.python.org/issue3530>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan


Batuhan  added the comment:

@nanjekyejoannah, are you still interested in adding tests or can i add tests?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue35453>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan


Batuhan  added the comment:

> From what I see, there is no consensus yet.

@serhiy.storchaka said this isn't an issue. I can add tests about this behavior 
(as you mentioned) or this issue can be directly resolved as not a bug. What 
are you thinking @nanjekyejoannah and @serhiy.storchaka?

--

___
Python tracker 
<https://bugs.python.org/issue35453>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38446] Ambiguous signature for builtins.__build_class__

2019-11-15 Thread Batuhan


Batuhan  added the comment:

This issue is fixed with PR 16735, @pablogsal can we close it?

--
nosy: +BTaskaya, pablogsal

___
Python tracker 
<https://bugs.python.org/issue38446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26011] Document necesities for cmp argument of sorted

2019-11-15 Thread Batuhan


Batuhan  added the comment:

I agree with @josh.r, also for the key (and reverse), they are documented in 
py3.8. IMHO this issue can be resolved as not a bug.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue26011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37083] Document TYPE_COMMENT in documentation reference for compound statements

2019-11-15 Thread Batuhan


Batuhan  added the comment:

@pablogsal, PR 13202 is merged

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue37083>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2019-11-15 Thread Batuhan


Batuhan  added the comment:

IMHO there is no need/way for adding that clarification after this date (1.5 
months left).

--
nosy: +BTaskaya, benjamin.peterson

___
Python tracker 
<https://bugs.python.org/issue33740>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38116] Make select module PEP-384 compatible

2019-11-17 Thread Batuhan


Batuhan  added the comment:

PR 15971 is merged, what else is needed @dino.viehland?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35143] `from __future__ import annotations` has no effect inside `ast.parse`

2019-11-17 Thread Batuhan


Batuhan  added the comment:

Hey @lukasz.langa, I want to work on this. Should we add an interface to 
_PyAST_ExprAsUnicode or just the bugfix for annotations?

--
nosy: +BTaskaya, benjamin.peterson

___
Python tracker 
<https://bugs.python.org/issue35143>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35004] Odd behavior when using datetime.timedelta under cProfile

2019-11-18 Thread Batuhan


Batuhan  added the comment:

This bug is fixed in both 3.8 and 3.7, @p-ganssle what do you think about 
closing this?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue35004>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22229] wsgiref doesn't appear to ever set REMOTE_HOST in the environ

2019-11-18 Thread Batuhan


Batuhan  added the comment:

I didn't understand the issue. WSGIRequestHandler can be subclassed and 
address_string method may return something else.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue9>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-18 Thread Batuhan


Batuhan  added the comment:

Can you give us a case where we can reproduce this locally?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue32371>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22593] Automate update of doc references to UCD version when it changes.

2019-11-18 Thread Batuhan


Batuhan  added the comment:

I want to work on this. What do you think about using include directive and 
include a static file like UCD_VERSION.txt in the documents?

makeunicodedata.py can write the current version every run to UCD_VERSION.txt

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue22593>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36287] Make ast.dump() not output optional default fields

2019-11-18 Thread Batuhan


Batuhan  added the comment:

@eamanu are you still interested in this issue? (bumped to 3.9)

--
nosy: +BTaskaya
versions: +Python 3.9

___
Python tracker 
<https://bugs.python.org/issue36287>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31521] segfault in PyBytes_AsString

2019-11-18 Thread Batuhan


Batuhan  added the comment:

Is there a simpler code for reproducing the issue?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue31521>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19080] Enrich SyntaxError with additional information

2019-11-18 Thread Batuhan


Batuhan  added the comment:

I am not sure about how to implement this to the core, but you can combine 
tokenize with ast to reproduce this kind of messages in your projects. You can 
match tokens with SyntaxErrors by lineno and offset.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue19080>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27724] PEP3119 inconsintent with actual CPython impl

2019-11-18 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya, gvanrossum
versions:  -Python 3.5

___
Python tracker 
<https://bugs.python.org/issue27724>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya
versions: +Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue36424>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-11-19 Thread Batuhan

Batuhan  added the comment:

Is there a consensus about fixing this? By the way, this isn't valid in the 
current tokenizer too. 
1,0-1,2:NAME   'iÌ'
1,2-1,3:ERRORTOKEN '‡'
1,4-1,5:OP '='
1,6-1,7:NUMBER '5'
1,7-1,8:NEWLINE'\n'

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38032>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan


New submission from Batuhan :

I was going through old issues and I found @inada.naoki's comment on issue 36551

> How about converting `[x for x in it]` to `[*it]` in AST?

Is this feature still wanted? I can try to work on an implementation for this 
if there is a need. Also should this cover set (`{x for x in it}`) 
comprehensions?

--
messages: 356965
nosy: BTaskaya, inada.naoki
priority: normal
severity: normal
status: open
title: AST Optimization for Single Target List Comprehension

___
Python tracker 
<https://bugs.python.org/issue38847>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan


Change by Batuhan :


--
nosy: +vstinner

___
Python tracker 
<https://bugs.python.org/issue38847>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan


Change by Batuhan :


--
components: +Interpreter Core
versions: +Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38847>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38876] pickle is raising KeyError insteat of pickle.UnpicklingError under certain conditions

2019-11-21 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya, alexandre.vassalotti
versions: +Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38876>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38870] Expose ast.unparse in the ast module

2019-11-21 Thread Batuhan


Batuhan  added the comment:

@gvanrossum are you OK with adding type comments support? Current version loses 
type comment information so if typed_ast parses this, they wont be the same in 
AST representation.

--
nosy: +gvanrossum

___
Python tracker 
<https://bugs.python.org/issue38870>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-21 Thread Batuhan


Change by Batuhan :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue38878>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2019-11-21 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya, steve.dower
versions: +Python 3.9 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue38883>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2019-11-21 Thread Batuhan


Change by Batuhan :


--
versions: +Python 3.8

___
Python tracker 
<https://bugs.python.org/issue38883>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37063] Incorrect application of func.__defaults__ by inspect's signature APIs

2019-11-24 Thread Batuhan


Batuhan  added the comment:

As mentioned in docs, getfullargspec is based on signature() and signature 
objects doesnt keep record of all defaults. It tries to map defaults with 
parameters but if you have less default then total parameter amount it will 
discard rest of defaults. IMHO this isn't a bug.

--
nosy: +BTaskaya, yselivanov

___
Python tracker 
<https://bugs.python.org/issue37063>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38603] inspect.getdoc could examine the __class__ cell for dynamically generated subclasses

2019-11-24 Thread Batuhan


Change by Batuhan :


--
nosy: +yselivanov

___
Python tracker 
<https://bugs.python.org/issue38603>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38870] Expose ast.unparse in the ast module

2019-11-25 Thread Batuhan


Change by Batuhan :


--
pull_requests: +16859
pull_request: https://github.com/python/cpython/pull/17377

___
Python tracker 
<https://bugs.python.org/issue38870>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17068] peephole optimization for constant strings

2019-11-29 Thread Batuhan


Batuhan  added the comment:

I think this operation is more suitable for AST optimizer then peephole but i'm 
still not sure if such a conversion gains anything compared to usage of old 
type string formattings.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue17068>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29598] Write unit tests for pdb module

2019-11-30 Thread Batuhan


Batuhan  added the comment:

PR 218 is closed and this issue looks like just created for that PR. If that PR 
is closed and there are nothing to do with this issue, maybe this can also be 
closed?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue29598>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-11-30 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16902
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17421

___
Python tracker 
<https://bugs.python.org/issue38673>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28805] Add documentation for METH_FASTCALL and _PyObject_FastCall*()

2019-12-01 Thread Batuhan


Batuhan  added the comment:

PR 14079 has been merged, is there anything left as unresolved about this issue?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue28805>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37496] Support annotations in signature strings.

2019-12-01 Thread Batuhan


Batuhan  added the comment:

We have exposed Tools/unparse.py under ast module, so that option also can 
help. @potomak are you still interested in working on this issue?

--
nosy: +BTaskaya, pablogsal

___
Python tracker 
<https://bugs.python.org/issue37496>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16649] Add a PyCF_DISPLAY_EXPRESSION_RESULTS flag

2019-12-01 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue16649>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2019-12-01 Thread Batuhan


Batuhan  added the comment:

This issue looks like specific to 2.7, which is almost dead. Is there any 
interest about adding this to 2.7 branch?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue4724>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan


Change by Batuhan :


--
versions: +Python 3.9

___
Python tracker 
<https://bugs.python.org/issue32894>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue32894>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16905
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17426

___
Python tracker 
<https://bugs.python.org/issue32894>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35632] support unparse for Suite ast

2019-12-01 Thread Batuhan


Batuhan  added the comment:

Tools/parser/unparse.py has been moved under ast module and exposed via 
ast.unparse() interface. If you want to support custom AST statements, the 
current version is incapable of doing such changes because of the real unparser 
class is private. As a workaround you can import it and subclass it /assign a 
method and then use ast.unparse() but that is a hacky way and there is no one 
who can guarantee if that unparser class will change its API or not. Currently 
it uses NodeVisitor API. Also you can use Berker's astor project to do this 
job, which gives you ability of changing source generator class.

--
components: +Library (Lib) -Demos and Tools
nosy: +BTaskaya, pablogsal
versions: +Python 3.9 -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue35632>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19541] ast.dump(indent=True) prettyprinting

2019-12-01 Thread Batuhan


Batuhan  added the comment:

issue 37995 has added pretty printing to the ast.dump, IMHO this issue can be 
closed.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue19541>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38702] Adding new types to parser/unparse.py

2019-12-01 Thread Batuhan


Batuhan  added the comment:

> be changed to span across more number of lines?
Yes, that changed in ast._Unparser, and i agree with Serhiy. There is no need 
for supporting that old constant nodes. IMHO this issue can be closed

--
nosy: +BTaskaya, pablogsal

___
Python tracker 
<https://bugs.python.org/issue38702>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21992] New AST node Else() should be introduced

2019-12-01 Thread Batuhan


Batuhan  added the comment:

IMHO there are no need to keep this issue open according to opinions of core 
developers, so can this be closed or it needs more discussion (which i prefer 
to do on mailing lists)?

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue21992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36000] __debug__ is a keyword but not a keyword

2019-12-01 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue36000>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27119] `compile` doesn't compile into an AST object as specified

2019-12-01 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya
versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 
<https://bugs.python.org/issue27119>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34000] Document when compile returns a code object v. AST

2019-12-01 Thread Batuhan


Batuhan  added the comment:

I think this is a duplicate of issue 27119

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue34000>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33754] f-strings should be part of the Grammar

2019-12-01 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue33754>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15273] Remove unnecessarily random behavior from test_unparse.py

2019-12-02 Thread Batuhan


Batuhan  added the comment:

@pablogsal should we add Lib/test/test_grammar by default to every test? Also 
if this is still needed @Daniel.Cioata do you still want to prepare another 
patch for current version?

--
nosy: +BTaskaya, pablogsal

___
Python tracker 
<https://bugs.python.org/issue15273>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38964] Output of syntax error in f-string contains wrong filename

2019-12-04 Thread Batuhan


Batuhan  added the comment:

This is actually specified behavior in PEP 498
 
https://www.python.org/dev/peps/pep-0498/#expression-evaluation

> Expressions are parsed with the equivalent of ast.parse('(' + expression + 
> ')', '', 'eval')

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38964>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-05 Thread Batuhan


Batuhan  added the comment:

I want to be a volunteer, if no one is working on this.

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-07 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +16969
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17491

___
Python tracker 
<https://bugs.python.org/issue38978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-07 Thread Batuhan


Change by Batuhan :


--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue38992>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-12-07 Thread Batuhan


Batuhan  added the comment:

@vstinner 

> Tools/importbench/importbench.py:10:import imp
> I think that it's fine to keep imp there. 

Any reason to keep imp there? We can just port it to sole importlib (it already 
uses it in some places)

--
nosy: +BTaskaya

___
Python tracker 
<https://bugs.python.org/issue25160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-07 Thread Batuhan


Batuhan  added the comment:

> I think that applying the same to PathLike makes sense as well, but it 
> deserves another issue.

Yes, it looks like they are using that in typeshed. I'm opening another issue 
with a patch. Thanks for reminding that

--

___
Python tracker 
<https://bugs.python.org/issue38978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38994] Implement __class_getitem__ for PathLike

2019-12-07 Thread Batuhan


New submission from Batuhan :

Typeshed already using __class_getitem__ syntax for PathLike
https://github.com/python/typeshed/search?q=PathLike&unscoped_q=PathLike

--
components: Library (Lib)
messages: 357978
nosy: BTaskaya, asvetlov
priority: normal
severity: normal
status: open
title: Implement __class_getitem__ for PathLike
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38994>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   >