[issue44493] Missing terminated NUL in the length of sockaddr_un

2021-07-25 Thread ty


ty  added the comment:

Changes have been made in this PR, waiting for reviewing.

--
resolution:  -> fixed

___
Python tracker 

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



[issue39812] Avoid daemon threads in concurrent.futures

2021-07-25 Thread Jack DeVries


Jack DeVries  added the comment:

The regression that @janfrederik.konopka points out also has it's own open 
issue: bpo-43944. 

I'm trying to work on a fix for this regression. Slowly but surely. Now I've 
finally found these threads, this information will be a big help! Any tips are 
appreciated.

--
nosy: +jack__d

___
Python tracker 

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



[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

I agree that UnionType is marginally better so we should rename it. It doesn't 
seem worth doing if this doesn't make it in in time for 3.10, though. With the 
advent of PEP 604 typing.Union will hopefully become irrelevant.

--
nosy: +Jelle Zijlstra

___
Python tracker 

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



[issue44737] Mapping from to collections.abc

2021-07-25 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

This sounds like a bug in the third-party library you're using, not in Python 
itself. Could you report this bug to the library?

According to https://docs.python.org/3.9/library/collections.html, aliases like 
collections.Mapping were removed from the collections namespace in 3.10.

--
nosy: +Jelle Zijlstra
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue44737] Mapping from to collections.abc

2021-07-25 Thread Du


New submission from Du <491609...@qq.com>:

When using Sanic, referencing Mapping in collections in SANic-Jinja2 brings 
ImportError: Cannot import name 'Mapping' from 'collections'. When you use 
Mapping, shouldn't you call from collections.abc?

--
messages: 398208
nosy: haitanghuadeng
priority: normal
severity: normal
status: open
title: Mapping from to collections.abc
type: resource usage
versions: Python 3.10

___
Python tracker 

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



[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2021-07-25 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

3.6 no longer gets bugfixes, so I think this can be closed.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -miss-islington
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4ce6c5285abd78dc936ec6036e7bb964fd55d955 by Miss Islington (bot) 
in branch '3.9':
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27358)
https://github.com/python/cpython/commit/4ce6c5285abd78dc936ec6036e7bb964fd55d955


--

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 642d873d672eb1b4ddffd99e665c54ed358a4562 by Miss Islington (bot) 
in branch '3.10':
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27357)
https://github.com/python/cpython/commit/642d873d672eb1b4ddffd99e665c54ed358a4562


--

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 0363a4014d90df17a29042de008ef0b659f92505 by Steven Hsu in branch 
'main':
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349)
https://github.com/python/cpython/commit/0363a4014d90df17a29042de008ef0b659f92505


--

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25899
pull_request: https://github.com/python/cpython/pull/27358

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25898
pull_request: https://github.com/python/cpython/pull/27357

___
Python tracker 

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



[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-25 Thread Jack DeVries


Jack DeVries  added the comment:

The first bad commit was a fix for bpo-39812.

--

___
Python tracker 

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



[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-25 Thread Jack DeVries


Jack DeVries  added the comment:

I've identified the first bad commit with git-bisect:

commit b61b818d916942aad1f8f3e33181801c4a1ed14b
Author: Kyle Stanley 
Date:   Fri Mar 27 15:31:22 2020 -0400

bpo-39812: Remove daemon threads in concurrent.futures (GH-19149)

Remove daemon threads from :mod:`concurrent.futures` by adding
an internal `threading._register_atexit()`, which calls registered functions
prior to joining all non-daemon threads. This allows for compatibility
with subinterpreters, which don't support daemon threads.

--

___
Python tracker 

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



[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-07-25 Thread Ryan Ozawa


Ryan Ozawa  added the comment:

Hi all,

This is my first issue so feedback is welcome.

Following @vstinner 's suggestions:
> * os.rename() can fail if source and destination are on two different
file systems
> * Use shutil.move() to support move to a different directory

And from @eryksun :
> ... on Windows the "operation will fail if src and dst are on different 
> filesystems".

Just 2 short lines:
2292,6 +2292,8 @@ features:
will fail with an :exc:`OSError` subclass in a number of cases:
 
On Windows, if *dst* exists a :exc:`FileExistsError` is always raised.
+   The operation will fail if *src* and *dst* are on different filesystems. Use
+   :func:`shutil.move` to support moves to a different filesystem.


If nothing to change, I will make a PR soon.

--
keywords: +patch
nosy: +rhyn0
Added file: https://bugs.python.org/file50180/os_rename_windows.patch

___
Python tracker 

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



[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread miss-islington


miss-islington  added the comment:


New changeset 01601aa7360ae51e74a64dbe957288096bb364fd by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346) 
(GH-27356)
https://github.com/python/cpython/commit/01601aa7360ae51e74a64dbe957288096bb364fd


--

___
Python tracker 

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



[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread Brandt Bucher


Change by Brandt Bucher :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +25897
pull_request: https://github.com/python/cpython/pull/27356

___
Python tracker 

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



[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread Brandt Bucher


Brandt Bucher  added the comment:


New changeset 4214f470f0cb9b6fef9a90758756fbc00ba95b5a by Charles Burkland in 
branch 'main':
bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346)
https://github.com/python/cpython/commit/4214f470f0cb9b6fef9a90758756fbc00ba95b5a


--

___
Python tracker 

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



[issue19217] Calling assertEquals for moderately long list takes too long

2021-07-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Lukasz, perhaps you can finish this.  Too many assistent cooks and no chief 
cook.  At least tell Jack (above) whether to submit his PR.

--
nosy: +lukasz.langa, terry.reedy
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue43950] Include column offsets for bytecode instructions

2021-07-25 Thread miss-islington


miss-islington  added the comment:


New changeset 3e235e0447e373d81f195f4292959c7be9c013dc by Batuhan Taskaya in 
branch 'main':
bpo-43950: support some multi-line expressions for PEP 657 (GH-27339)
https://github.com/python/cpython/commit/3e235e0447e373d81f195f4292959c7be9c013dc


--

___
Python tracker 

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



[issue41203] Replace references to OS X in documentation with macOS

2021-07-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Patrick, are you interested in reviving your PR? It mostly LGTM, except several 
not addressed comments. I clarified them.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41203] Replace references to OS X in documentation with macOS

2021-07-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
versions: +Python 3.11

___
Python tracker 

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



[issue42378] logging reopens file with same mode, possibly truncating

2021-07-25 Thread miss-islington


miss-islington  added the comment:


New changeset 96cf5a63d2dbadaebf236362b4c7c09c51fda55c by andrei kulakov in 
branch 'main':
bpo-42378: fixed log truncation on logging shutdown (GH-27310)
https://github.com/python/cpython/commit/96cf5a63d2dbadaebf236362b4c7c09c51fda55c


--
nosy: +miss-islington

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 5a0c6abb569cadfc6b418a7d23ecffec01bd234d by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. 
(GH-27348) (GH-27350)
https://github.com/python/cpython/commit/5a0c6abb569cadfc6b418a7d23ecffec01bd234d


--

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 628baf6fef4d633e756024cf813941a4075360c1 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-44399: Update logging cookbook to document patterns to be avoided. 
(GH-27348) (GH-27352)
https://github.com/python/cpython/commit/628baf6fef4d633e756024cf813941a4075360c1


--

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 59058a65a27de434a79adb749637b74a7fe418ba by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-43184: Add information about added attribute and method. (GH-27347) 
(GH-27355)
https://github.com/python/cpython/commit/59058a65a27de434a79adb749637b74a7fe418ba


--

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset ce2033694ef4bf4c304e5c98d19fdeb684cd961b by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-43184: Add information about added attribute and method. (GH-27347) 
(GH-27353)
https://github.com/python/cpython/commit/ce2033694ef4bf4c304e5c98d19fdeb684cd961b


--

___
Python tracker 

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



[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Guido van Rossum

Guido van Rossum  added the comment:

Agreed. I think we should do it, Serhiy’s reasoning makes sense.

We should just update the PEP and add a note that this was changed during the 
beta period.

--

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25894
pull_request: https://github.com/python/cpython/pull/27353

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25896
pull_request: https://github.com/python/cpython/pull/27355

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25892
pull_request: https://github.com/python/cpython/pull/27351

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25895
pull_request: https://github.com/python/cpython/pull/27354

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25893
pull_request: https://github.com/python/cpython/pull/27352

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25891
pull_request: https://github.com/python/cpython/pull/27350

___
Python tracker 

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



[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Steven Hsu


Change by Steven Hsu :


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

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 9751f85914e0ef3324671a91da34a635d48b17fb by Vinay Sajip in branch 
'main':
bpo-44399: Update logging cookbook to document patterns to be avoided. 
(GH-27348)
https://github.com/python/cpython/commit/9751f85914e0ef3324671a91da34a635d48b17fb


--

___
Python tracker 

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



[issue43967] Valgrind memcheck on Py_Initialize

2021-07-25 Thread hai shi


hai shi  added the comment:

Hi, Simon. Thanks for your report.
There have an relatived issue in: bpo-43145, this bpo have mentioned  
`Py_Initialize()`. So I suggest to close this bpo. We can reopen it if we have 
seperated questions need to be discussed in here.

> Running a Valgrind memcheck of Py_Initialize still produces issues even when 
> using the suggested suppressions file. Am I doing something wrong or is this 
> expected?
AFAIK, You are right;)

--
nosy: +shihai1991
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue44605] functools.total_ordering doesn't work with metaclasses

2021-07-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

To add support for metaclasses, replacing 'self.__lt__(other)' with 
'type(self).__lt__(self, other)' will work. 

The performance degradation for the common case is about 25%:

$ py -m timeit -s 'from tmp import a, b' 'a >= b' # op_result = 
type(self).__lt__(self, other)
100 loops, best of 5: 283 nsec per loop

$ py -m timeit -s 'from tmp import a, b' 'a >= b' # op_result = 
self.__lt__(other)
100 loops, best of 5: 227 nsec per loop

--

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 50b72768ffe6413424dc4eba916dd1ff89a2fe7b by Vinay Sajip in branch 
'main':
bpo-43184: Add information about added attribute and method. (GH-27347)
https://github.com/python/cpython/commit/50b72768ffe6413424dc4eba916dd1ff89a2fe7b


--

___
Python tracker 

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



[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip


Change by Vinay Sajip :


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

___
Python tracker 

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



[issue44725] Expose specialization stats in python

2021-07-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

This is a feature added to 3.10 so if we change it before the release there is 
no deprecation period needed. On the other hand if we don't get it to 3.10 is 
going to be much difficult to rename.

--

___
Python tracker 

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



[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-25 Thread Logan Jones


Change by Logan Jones :


--
nosy: +loganasherjones

___
Python tracker 

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



[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip


Change by Vinay Sajip :


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

___
Python tracker 

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



[issue13824] argparse.FileType opens a file and never closes it

2021-07-25 Thread Nils Kattenbeck


Nils Kattenbeck  added the comment:

A good alternative would be to use pathlib.Path. The only downside would be 
that one has to manually handle `-` but besides that it solves most problems.

Still the fact that file descriptors are kept open should be added as a warning 
to the docs

--
nosy: +Nils Kattenbeck

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

That's not a Python issue, that's a feature of your terminal. That's how tabs 
are supposed to work.

By default, most terminals set tab stops every 8 columns. Printing a tab 
character jumps to the next tab stop.

If you are using Linux or Mac, you can use the `tabs` command in the terminal 
to control where the tab stops are. This is not a Python command, it is part of 
your OS shell.

https://askubuntu.com/questions/63424/how-to-change-tab-width-in-terminal-in-ubuntu-10-04

https://superuser.com/questions/110421/tab-character-width-in-terminal

I don't know about the Windows Terminal. It is possible it doesn't support 
changing the tab stops.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR


Change by BAHADIR :


Removed file: https://bugs.python.org/file50179/IDLE.jpeg

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR


BAHADIR  added the comment:

>>> print("1\t1")
1   1
>>> print("12\t1")
12  1
>>> print("123\t1")
123 1
>>> print("1234\t1")
12341
>>> print("12345\t1")
12345   1
>>> print("123456\t1")
123456  1
>>> print("1234567\t1")
1234567 1
>>> print("12345678\t1")
123456781
>>> print("1","12","123","1234","12345","123456","1234567","12345678",sep="\t")
1   12  123 123412345   123456  1234567 12345678
space length is always changing

--

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR


Change by BAHADIR :


Added file: https://bugs.python.org/file50179/IDLE.jpeg

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I'm sorry, I don't understand what "different results for different values" you 
are talking about.

Can you please copy and paste (not a screen shot) code demonstrating:

- what code you ran
- what result you expected
- why you expected it
- and what result you got instead.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR


New submission from BAHADIR :

While working on several examples I noticed that ASCII Horizontal Tab (TAB) 
gives different results for different values. When I looked at the rfc 
documents, I couldn't see any result about its calculation. The calculation 
method I noticed myself is as follows ((8 -(string from previous "\t"))%8) * a 
number of spaces(in python IDLE) result change in other IDE or editors.

--
components: Parser
messages: 398180
nosy: BAHADIR, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: '\t' Escape Sequence behaving differently.
type: behavior
versions: Python 3.9

___
Python tracker 

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