[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов

Change by Константин Глухов :


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

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Yair Frid


Yair Frid  added the comment:

This issue was discovered when i was writing unit tests for #42766, since 
#42766 was fixed when i discovered it, i realized i might want a new issue, i 
don't mind moving this to be a comment, but there *are* 2 distinct test cases 
that fail:

a test case that would fail here:
is_suburi('/foo/bar', '/bar/foo') == True
which is different than;
is_suburi('/foo/bar', '/foobar') == True

--

___
Python tracker 

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



[issue44575] Windows installer prohibits different patches for the same version

2021-07-06 Thread Константин Глухов

New submission from Константин Глухов :

Windows installer prohibits different patches for the same version.
I do not see any reason why the installer cannot put two different versions, 
e.g. 3.9.4 and 3.9.6 into different folders.
This makes it very difficult to debug issues introduced in higher versions. 
Please allow installation of different patches into separate folders.

--
components: Installation, Windows
messages: 397063
nosy: glukhov.k, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows installer prohibits different patches for the same version
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



[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-07-06 Thread huantian


huantian  added the comment:

This issue is somewhat old, but I think either applying the patch attached 
earlier or noting this difference in behavior in the documentation would be 
ideal, as it can be quite difficult to debug shutil.unpack_archive silently 
skipping files. If the files you expect to unpack do contain '..' for 
non-malicious purposes this makes shutil.unpack_archive unsuitable for the 
situation.

--
nosy: +huantian

___
Python tracker 

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



[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I'm not sure if shutil module docs should be updated or not, as this change 
applies to a narrow corner case.

--

___
Python tracker 

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



[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've opened the PR here:
https://github.com/python/cpython/pull/27049/files

.. but can someone trigger builds for other OSes like Aix, FreeBSD, etc? I'm 
not sure what errors they would use for this case so the unit test may have to 
be updated to skip some of them.

--

___
Python tracker 

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



[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I should check whether all other keybindings are implemented.

--

___
Python tracker 

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



[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy


New submission from Terry J. Reedy :

The config.IdleConf.GetCoreKeys keyBindings dict contains
   '<>': ['']
The was included in the initial version by Steven Gava, 9930061c, on 2001 Dec 
2.  So it appears in the Keys page of the config dialog, as noticed by Mondher 
on SO 
((https://stackoverflow.com/questions/68263769/idle-shell-context-documentation-broken)

The string does not appear elsewhere in idlelib, nor is the feature mentioned 
in the IDLE doc.  So it is unimplemented and undocumented.  Based on experience 
with other IDEs (Mathematica) Mondher suggests that one should be able to 
select a word and have it looked up in the index of the document opened by 
python-doc F1.  'Very useful' he says.

On Windows, F1 opens an offline Windows help window with the Python docs.  
Currently, modifier(s)-F1 is interpreted as F1 and the help window is opened.  
I presume a shift-F1 binding will override that. I also presume that an 
argument can be added to the Windows open-help command.

I don't know about online docs on other systems and don't think we can access 
indexes on opened python webpages.  Where shift-F1 does not work, a message 
should be displayed.

If we decided to not implement index search anywhere, the line in config.py 
should be removed.

--
assignee: terry.reedy
components: IDLE
messages: 397058
nosy: terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Implement or delete python-context-help.
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



[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
keywords: +patch
nosy: +andrei.avk
nosy_count: 2.0 -> 3.0
pull_requests: +25605
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27049

___
Python tracker 

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



[issue43262] "_weakrefset.py", line 56: IndexError: pop from empty list

2021-07-06 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
type: crash -> behavior

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Yair, is this really a separate bug from that reported in #42766?  In other 
words, are there separate and distinct failing test cases?  If not, this should 
be closed as a duplicate.

--
nosy: +orsenthil, terry.reedy

___
Python tracker 

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



[issue42766] urllib.request.HTTPPasswordMgr uses commonprefix instead of commonpath

2021-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +orsenthil

___
Python tracker 

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



[issue44573] Organize some data files in the Lib/test directory

2021-07-06 Thread Leonardo Freua


New submission from Leonardo Freua :

I noticed that some data files (used to perform some specific tests) are not 
organized in specific directories of their categories. Some files that I found 
are audiotest.au, badcert.pem, badkey.pem, cfgparser.1, cfgparser.2, etc (some 
are even .py files).

I'm working on an organization so they don't get mixed up with the test files, 
but how the rest of the data files are organized (audiodata, capath, 
cjkencodings, etc.).

--
components: Tests
messages: 397056
nosy: Leonardofreua
priority: normal
severity: normal
status: open
title: Organize some data files in the Lib/test directory
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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов

Константин Глухов  added the comment:

I will try

--

___
Python tracker 

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



[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Robert: I haven't worked with importlib or pyclbr before, so these may be naive 
questions, but:

- can your usecase be resolved with a workaround, e.g. setting ModuleSpec 
manually in / on __main__ module, something like `from importlib._bootstrap 
import ModuleSpec; __spec__ = ModuleSpec('main',None)

- You mention that this issue may apply to other modules, but the Python docs 
say __main__ is the only case that may have __spec__=None in some cases (in my 
testing it indeed have it set to None). Do you have any examples where other 
modules have __spec__=None?

What's your usecase for examining __main__ with pyclbr? Not trying to sound 
doubtful, just really curious.

- Re your PR I have a bit of a concern that catching a ValueError silently 
might mask other types of ValueError, but I haven't looked more closely into 
that, just want to note it here for the future.

Btw thanks for the reply on PR to my question, it makes sense.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Zachary Ware


Zachary Ware  added the comment:

Would you like to create a pull request to that effect?

--
components:  -IO
stage:  -> needs patch
versions: +Python 3.10, Python 3.11

___
Python tracker 

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



[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-06 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
pull_requests: +25604
pull_request: https://github.com/python/cpython/pull/27048

___
Python tracker 

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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов

Константин Глухов  added the comment:

The obvious fix is to add "stdin=subprocess.DEVNULL" argument to check_output() 
call.

--

___
Python tracker 

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



[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-07-06 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
type: crash -> behavior

___
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-06 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +25603
pull_request: https://github.com/python/cpython/pull/27047

___
Python tracker 

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



[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-06 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset c45fa1a5d9b419cf13ad4b5a7cb453956495b83e by Yurii Karabas in 
branch 'main':
bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)
https://github.com/python/cpython/commit/c45fa1a5d9b419cf13ad4b5a7cb453956495b83e


--

___
Python tracker 

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



[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-06 Thread Guido van Rossum


Change by Guido van Rossum :


--
status: open -> closed

___
Python tracker 

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



[issue43298] Windows build cannot detect missing Windows SDK

2021-07-06 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I was able to export the configuration using these instructions: 
https://docs.microsoft.com/en-us/visualstudio/install/import-export-installation-configurations?view=vs-2019

That produced this config:

{
  "version": "1.0",
  "components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.TextTemplating",
"Microsoft.VisualStudio.Component.VC.CoreIde",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.19041",
"Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
"Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
"Microsoft.VisualStudio.Workload.NativeDesktop"
  ]
}

Using that, I tried to install those components using vs_buildtools:

# Install Visual Studio
RUN ./vs_buildtools.exe --quiet --wait --norestart --nocache \
 --add Microsoft.VisualStudio.Component.CoreEditor \
 --add Microsoft.VisualStudio.Workload.CoreEditor \
 --add Microsoft.VisualStudio.Component.Roslyn.Compiler \
 --add Microsoft.Component.MSBuild \
 --add Microsoft.VisualStudio.Component.TextTemplating \
 --add Microsoft.VisualStudio.Component.VC.CoreIde \
 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \
 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 \
 --add Microsoft.VisualStudio.Component.VC.Redist.14.Latest \
 --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core \
 --add Microsoft.VisualStudio.Workload.NativeDesktop


In order to avoid noise here, I'm going to continue the investigation in  
https://github.com/jaraco/jaraco.windows/issues/21.

--

___
Python tracker 

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



[issue43493] EmailMessage mis-folding headers of a certain length

2021-07-06 Thread R. David Murray


R. David Murray  added the comment:

Ah, yes, the problem is more subtle than I thought.

The design here is that we should be starting with the largest lexical unit, 
seeing if that fits on the current line, or a line by itself, and if so, using 
that, and if not, move down to the next smaller lexical unit and try again, 
until we are finally left with an unbreakable unit.  For unstructured headers 
such as Subject the lexical units should be encoded words followed by blank 
delimited words.  I'm guessing the code is treating the collection of words it 
has accumulated as a unit in the above algorithm, and since it fits on a line 
by itself, it goes with that.  So yeah, it's sort of intentional.

So the bug here is that in your step 2 we ideally want to be considering 
whether the last token on the current line is at the same lexical level as the 
token that precedes it...and if so, and if moving that token to the next line 
lets the remainder fit on the first line, we should do that.  Exactly how to 
implement that correctly is a good question...it's been too long since I wrote 
that code, and I may not have time to investigate it more deeply.

If you come up with something based on my description of the intent above, I 
should be able to review it (though you might need to ping me directly to get 
my attention).

--

___
Python tracker 

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



[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I should have been more exact - I've used python3.7.7 .

--

___
Python tracker 

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



[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Running R.David's test script on python3.7, it also works, there's no exception.

--

___
Python tracker 

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



[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread R. David Murray


R. David Murray  added the comment:

How are you encountering this error?  The following program runs without 
exception for me on master:

from email import message_from_binary_file
from email.policy import SMTP

msg = message_from_binary_file(open('mail.eml', 'rb'), policy=SMTP)
print(msg)

--

___
Python tracker 

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



[issue44560] Unrecognized charset "eucgb2312_cn" in email header for many MUA

2021-07-06 Thread R. David Murray

R. David Murray  added the comment:

I can't tell tell for sure if this behavior is intentional or not from a quick 
glance at the code (though like you I wouldn't think it would be).

That's part of the legacy api, at this point.  The new api will just use utf8:

from email.message import EmailMessage

m = EmailMessage()
m['Subject'] = '中文'

print(bytes(m))

results in

b'Subject: =?utf-8?b?5Lit5paH?=\n\n'

The fix, assuming it is correct, would be to add the line:

'eucgb2312_cn': 'gb2312',

to the CODEC_MAP in email/charset.py, and then specify the internal codec name 
in your Charset call.  I'm not sure that's right, though...once upon I time I 
think I understood the logic behind the charset module, but I no longer 
remember the details.

I'd recommend just using the new API and not the legacy API.

--

___
Python tracker 

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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов

New submission from Константин Глухов :

Starting with version 3.9.5 platform.win32* functions have been re-written and 
consume STDIN. The bug comes down to running 'ver', 'command /c ver', 'cmd /c 
ver' in platform._syscmd_ver() via subprocess.check_output().

The following code demonstrate the problem:

Python\396\python -c "import platform as p, 
sys;print(sys.stdin.tell());p.win32_ver();print(sys.stdin.tell())" < file
0
8000

All functions dependent on platform._syscmd_ver(), including platform.uname(), 
consume STDIN.

This behavior breaks all the scripts on Windows platform that have the calls 
mentioned above and use the following invocation:

python script.py < file

--
components: IO, Library (Lib), Windows
messages: 397044
nosy: glukhov.k, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Calls to platform._syscmd_ver() dependent functions consume STDIN
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



[issue36643] Forward reference is not resolved by dataclasses.fields()

2021-07-06 Thread Paolo Lammens


Paolo Lammens  added the comment:

I was about to create the exact same ticket; I'm nudging this.

--
nosy: +plammens

___
Python tracker 

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



[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-06 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 8b849ea0f3482ad834e7989ff474dd5db2f295c8 by Sebastian Rittau in 
branch 'main':
bpo-38291: Fix a spurious warning when using help(object) (#27039)
https://github.com/python/cpython/commit/8b849ea0f3482ad834e7989ff474dd5db2f295c8


--

___
Python tracker 

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



[issue27875] Syslogs /usr/sbin/foo as /foo instead of as foo

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

This was fixed in https://github.com/python/cpython/pull/16557 , so 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



[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
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



[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Note the traceback is from 2.7, which is not supported. Hodai: Can you verify 
it on a 3.6-3.11 release?

--
nosy: +andrei.avk
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



[issue44560] Unrecognized charset "eucgb2312_cn" in email header for many MUA

2021-07-06 Thread Mark Sapiro


Change by Mark Sapiro :


--
versions: +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



[issue43098] tarfile list() method does not show file type

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've tested this patch on OS X with symbolic links, dirs, files and it works 
fine.

--
nosy: +andrei.avk

___
Python tracker 

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



[issue34919] Crash caused by certain characters in a string

2021-07-06 Thread Irit Katriel


Irit Katriel  added the comment:

As per message https://bugs.python.org/issue34919#msg327639, the issue was 
fixed in 3.7.1.

--
nosy: +iritkatriel
resolution:  -> fixed
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



[issue31218] del expects __delitem__ if __setitem__ is defined

2021-07-06 Thread Irit Katriel


Irit Katriel  added the comment:

It is still the same in 3.11:

>>> class WithoutSetItem:
... def __getitem__(self, key):
... return "foo"
...
>>> class WithSetItem:
... def __getitem__(self, key):
... return "foo"
... def __setitem__(self, key, val):
... return
...
>>> wo = WithoutSetItem()
>>> del wo[0]
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'WithoutSetItem' object doesn't support item deletion
>>> w = WithSetItem()
>>> del w[0]
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: __delitem__
>>>

--
components: +Interpreter Core
nosy: +iritkatriel
versions: +Python 3.11 -Python 3.6

___
Python tracker 

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



[issue16321] Move eq.h out of stringlib

2021-07-06 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

To add irit's comment, It is *also* used in Objects/unicodeobject.c

--
nosy: +thatiparthy

___
Python tracker 

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



[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-06 Thread Dong-hee Na


Dong-hee Na  added the comment:

@vstinner

https://github.com/python/cpython/pull/27007 is not yet merged due to CLA issue

--

___
Python tracker 

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



[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-06 Thread STINNER Victor


STINNER Victor  added the comment:

This issue can be closed, no?

--

___
Python tracker 

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



[issue44547] fraction.Fraction does not implement __int__.

2021-07-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

On other hand, there are classes which define __int__ but not __trunc__: UUID 
and IP4Address. So it makes sense to keep separate __int__ and __trunc__.

--

___
Python tracker 

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



[issue44571] itertools: takedowhile()

2021-07-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What if set the last item as an attribute of the takewhile iterator?

--
nosy: +serhiy.storchaka

___
Python tracker 

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