[issue42282] Constant folding is skipped in named expressions

2020-11-06 Thread Nick Coghlan


New submission from Nick Coghlan :

While working on the PEP 642 reference implementation I removed the "default:" 
case from the switch statement in astfold_expr as part of making sure the new 
SkippedBinding node was being handled everywhere it needed to be.

This change picked up that NamedExpr_kind wasn't being handled either, and a 
check with the dis module confirmed that using the walrus operator turns off 
constant folding:

```
[ncoghlan@thechalk cpython]$ ./python
Python 3.10.0a2+ (heads/pep-642-constraint-patterns-dirty:4db2fbd609, Nov  7 
2020, 16:42:19) 
[GCC 10.2.1 20201016 (Red Hat 10.2.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dis
>>> dis.dis("1 + 1")
  1   0 LOAD_CONST   0 (2)
  2 RETURN_VALUE
>>> dis.dis("(x := 1 + 1)")
  1   0 LOAD_CONST   0 (1)
  2 LOAD_CONST   0 (1)
  4 BINARY_ADD
  6 DUP_TOP
  8 STORE_NAME   0 (x)
 10 RETURN_VALUE
>>>
```

The missing switch statement entry is just:

```
case NamedExpr_kind:
CALL(astfold_expr, expr_ty, node_->v.NamedExpr.value);
break;
```

Which gives the expected result:

```
[ncoghlan@thechalk cpython]$ ./python -c "import dis; dis.dis('(x := 1 +1)')"
  1   0 LOAD_CONST   0 (2)
  2 DUP_TOP
  4 STORE_NAME   0 (x)
  6 RETURN_VALUE
```

--
messages: 380494
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Constant folding is skipped in named expressions
type: performance
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



[issue40952] GCC overflow warnings (format-overflow, stringop-overflow)

2020-11-06 Thread Nick Coghlan


Nick Coghlan  added the comment:

I *think* the lnotab one is the compiler failing to detect that the pointer has 
been updated to point inside the body of a Python object, but I'm also not 100% 
sure that it's a false alarm.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue14791] setup.py only adds /prefix/lib, not /prefix/lib64

2020-11-06 Thread Arfrever Frehtes Taifersar Arahesis


Arfrever Frehtes Taifersar Arahesis  added the comment:

No.
setup.py still contains several hardcoded paths with "lib" (e.g. 
"/usr/local/lib", "/usr/lib/termcap").

There are also some places in setup.py which check both "lib64" and "lib", but 
such checks can possibly return incorrect results on multilib systems (when a 
library happens to be available for another ABI (32-bit vs 64-bit) but not ABI 
for which Python is being built).

--

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-06 Thread mohamed koubaa


Change by mohamed koubaa :


--
pull_requests: +22092
pull_request: https://github.com/python/cpython/pull/23188

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-06 Thread mohamed koubaa


Change by mohamed koubaa :


--
pull_requests: +22091
pull_request: https://github.com/python/cpython/pull/23139

___
Python tracker 

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



[issue1098749] Single-line option to pygettext.py

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.2

___
Python tracker 

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



[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-11-06 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 825ac383327255d38b69a753e5e41710bb3ed010 by Brett Cannon in 
branch 'master':
bpo-42133: update parts of the stdlib to fall back to `__spec__.loader` when 
`__loader__` is missing (#22929)
https://github.com/python/cpython/commit/825ac383327255d38b69a753e5e41710bb3ed010


--

___
Python tracker 

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



[issue20543] ** operator does not overflow to inf

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

If there are no objections, I will close this as a duplicate of issue3222.

--
nosy: +iritkatriel
resolution:  -> duplicate
status: open -> pending
superseder:  -> inf*inf gives inf, but inf**2 gives overflow error

___
Python tracker 

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



[issue42131] [zipimport] Update zipimport to use specs

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
keywords: +patch
pull_requests: +22090
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/23187

___
Python tracker 

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



[issue16830] Add skip_host and skip_accept_encoding to HTTPConnection.request()

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Bryan, as there isn't unanimous agreement about the feature you suggested: if 
you are still interested in working on this, could you bring it up on 
python-id...@python.org so that it can be discussed?

--
nosy: +iritkatriel
status: open -> pending
versions: +Python 3.10, Python 3.9 -Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue24397] Test asynchat makes wrong assumptions

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-06 Thread hai shi


hai shi  added the comment:

Thank you all:)

--

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-06 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

>  Toward that end it would be fine to use "very high" cutoffs, and save tuning 
> for later.

This feels reasonable to me -- I changed the cutoff to the more cautious `if (m 
>= 100 && n - m >= 5000)`, where the averages are very consistently faster by 
my measurements, and it seems that Tal confirms that, at least for the `m >= 
100` part. More tuning may be worth exploring later, but this seems pretty safe 
for now, and it should fix all of the truly catastrophic cases like in the 
original post.

--

___
Python tracker 

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



[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7

___
Python tracker 

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



[issue1475692] replacing obj.__dict__ with a subclass of dict

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Calling the overridden __getitem__ is rejected due to performance.

Forbidding dict subclasses is rejected because subclasses like ordereddict and 
defaultdict can be useful.

I think the only remaining possibilities are to do nothing or to raise an error 
when __dict__ is set to a dict subclass that overrides __getitem__ (that should 
be ok to do, because that __getitem__ is not going to be called).

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

___
Python tracker 

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



[issue2931] optparse: various problems with unicode and gettext

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

The tests have not been merged yet.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

___
Python tracker 

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



[issue5248] Adding T_SIZET to structmember.h

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.2

___
Python tracker 

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



[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

___
Python tracker 

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



[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> "inspect" gets broken by some descriptors

___
Python tracker 

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



[issue42131] [zipimport] Update zipimport to use specs

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
assignee:  -> brett.cannon
resolution: duplicate -> 
status: closed -> open
superseder: zipimport is not PEP 3147 or PEP 488 compliant -> 

___
Python tracker 

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



[issue9849] Argparse needs better error handling for nargs

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

This is fixed now:

Python 3.10.0a2+ (heads/bpo-42184:f3cb814315, Nov  7 2020, 00:31:51) [MSC 
v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('foo', nargs='1')
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\User\src\cpython\lib\argparse.py", line 1430, in add_argument
self._get_formatter()._format_args(action, None)
  File "C:\Users\User\src\cpython\lib\argparse.py", line 611, in _format_args
raise ValueError("invalid nargs value") from None
ValueError: invalid nargs value

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



[issue15693] expose glossary link on hover

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue42281] Inconsistent ProcessPoolExecutor behaviour on macOS between 3.7 and 3.8/9

2020-11-06 Thread Mustafa Quraish


New submission from Mustafa Quraish :

The code attached produces weird behaviour on macOS (Catalina at least) on 
Python3.8 / Python3.9. Issue has been reproduced on at least one other mac 
belonging to a friend. Does not occur on Linux as far as I have tested. I have 
simplified the code as much as I can, so the example attached does not actually 
need to use parallelism.

Code description: Read text from a file, change directory using `os.chdir`, 
spawn 5 processes and pass the `print` function as the handler along with the 
text.

Expectation: File contents should be printed 5 times

Result: Code tries to load (again) the file in each thread, but fails since the 
directory was changed.


Precondition: Have `file.txt` in the same directory containing some text

Output when run on Python3.7, I get the following (expected output):

```
Reading file...
Text loaded was: 'file contents'
file contents
file contents
file contents
file contents
file contents
```

When running on 3.8 / 3.9 (on a mac) I get the following:

```
Reading file...
Text loaded was: 'file contents'
Error: /Users/mustafa/dev/ptest/test_dir/file.txt does not exist.
Error: /Users/mustafa/dev/ptest/test_dir/file.txt does not exist.
Error: /Users/mustafa/dev/ptest/test_dir/file.txt does not exist.
```

It seems to me that even opened `file.txt` is loaded in the main thread and 
text is read from it, this value isn't passed into the spawned processes and 
they are calling `load()` again (which is where the error message is produced).

--
components: macOS
files: test.py
messages: 380483
nosy: bquinlan, mustafaquraish, ned.deily, pitrou, ronaldoussoren
priority: normal
severity: normal
status: open
title: Inconsistent ProcessPoolExecutor behaviour on macOS between 3.7 and 3.8/9
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49579/test.py

___
Python tracker 

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



[issue8488] Docstrings of non-data descriptors "ignored"

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Ah yes. 

Bisect seems to be pointing at this commit: 
https://github.com/python/cpython/commit/fbf2786c4c89430e2067016603078cf3500cfe94

--

___
Python tracker 

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



[issue8488] Docstrings of non-data descriptors "ignored"

2020-11-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python 3.7 (2.7 looks almost the same):

class Demo(builtins.object)
 |  Data descriptors defined here:
 |  
 |  __dict__
 |  dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |  list of weak references to the object (if defined)
 |  
 |  data
 |  Doc of a data-descriptor.
 |  
 |  non_data
 |  Doc of a non-data descriptor.
 |  
 |  prop
 |  Doc of a property.

Python 3.8:

class Demo(builtins.object)
 |  Readonly properties defined here:
 |  
 |  data
 |  Doc of a data-descriptor.
 |  
 |  non_data
 |  Doc of a non-data descriptor.
 |  
 |  prop
 |  Doc of a property.
 |  
 |  --
 |  Data descriptors defined here:
 |  
 |  __dict__
 |  dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |  list of weak references to the object (if defined)

Python 3.9:

class Demo(builtins.object)
 |  Readonly properties defined here:
 |  
 |  data
 |  
 |  non_data
 |  
 |  prop
 |  Doc of a property.
 |  
 |  --
 |  Data descriptors defined here:
 |  
 |  __dict__
 |  dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |  list of weak references to the object (if defined)

Seems the original bug was fixed, but a regression was introduced in 3.9.

--
status: pending -> open
versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue14019] Unify tests for str.format and string.Formatter

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue17251] LWPCookieJar load() set domain_specifed wrong

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 
3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue16878] argparse: positional args with nargs='*' defaults to []

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue16834] ioctl mutate_flag behavior in regard to the buffer size limit

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 3.4

___
Python tracker 

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



[issue7057] tkinter doc: more 3.x updates

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue16784] Int tests enhancement and refactoring

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

It seems that all dependencies are complete, so if nobody will object I will 
close this too.

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue11176] [doc] give more meaningful argument names in argparse documentation

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
title: give more meaningful argument names in argparse documentation -> [doc] 
give more meaningful argument names in argparse documentation
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue8535] passing optimization flags to the linker required for builds with gcc -flto

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

I think this was resolved by issue9189.

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue29086] Document C API that is not part of the limited API

2020-11-06 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 3.0 -> 4.0
pull_requests: +22089
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23185

___
Python tracker 

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



[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2020-11-06 Thread Itamar Turner-Trauring


Itamar Turner-Trauring  added the comment:

Another person with the same issue: 
https://twitter.com/volcan01010/status/1324764531139248128

--
nosy: +itamarst2

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-06 Thread Tim Peters


Tim Peters  added the comment:

But that also suggests a different approach: start with the current code, but 
add introspection to switch to your enhancement of C if the current code is 
drifting out of linear-time territory.

--

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-06 Thread Tim Peters


Tim Peters  added the comment:

I'm sorry I haven't been able to give more time to this. I love what's been 
done, but am just overwhelmed :-(

The main thing here is to end quadratic-time disasters, without doing 
significant damage in other cases. Toward that end it would be fine to use 
"very high" cutoffs, and save tuning for later. It's clear that we _can_ get 
significant benefit even in many non-disastrous cases, but unclear exactly how 
to exploit that. But marking the issue report as "fixed" doesn't require 
resolving that - and I want to see this improvement in the next Python release.

An idea that hasn't been tried: in the world of sorting, quicksort is usually 
the fastest method - but it's prone to quadratic-time disasters. OTOH, heapsort 
never suffers disasters, but is almost always significantly slower in ordinary 
cases. So the more-or-less straightforward "introsort" compromises, by starting 
with a plain quicksort, but with "introspection" code added to measure how 
quickly it's making progress. If quicksort appears to be thrashing, it switches 
to heapsort.

It's possible an "introsearch" would work well too. Start with pure brute force 
(not even with the current preprocessing), and switch to something else if it's 
making slow progress. That's easy to measure: compare the number of character 
comparisons we've made so far to how many character positions we've advanced 
the search window so far. If that ratio exceeds (say) 3, we're heading out of 
linear-time territory, so should switch to a different approach.

With no preprocessing at all, that's likely to be faster than even the current 
code for very short needles, and in all cases where the needle is found at the 
start of the haystack.

This context is trickier, though, in that the current code, and pure C, can 
also enjoy sub-linear time cases. It's always something ;-)

--

___
Python tracker 

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



[issue42275] Jupyter Lab Terminals not available (error was No module named 'winpty.cywinpty')

2020-11-06 Thread shakir_juolay


shakir_juolay  added the comment:

I do not think the issue is related to Jupyter since even import winpty in 
Python IDLE is giving the same error.

I resolved the issue by doing the following but I do not know which of them is 
the main culprit.

1. Downgraded to Python 3.8.5 (pywinpty currently does not have cp39 version 
wheel file)

2. pip install wheel (since when I trying to pip install pywinpty in Python 
3.9.0 I was getting the message package 'wheel' is not installed using setup.py 
instead, and as I understand .whl files are better options for installation, 
and some folks on Google have resolved this issue using manual wheel files from 
Christoph Gohlke's PythonLibs)

3. pip install jupyterlab (I noticed pywinpty was installed using .whl file)

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-06 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

I used the following script, and the raw results are attached.


import pyperf
runner = pyperf.Runner()

ms = [12, 16, 24, 32, 48, 64, 96, 128, 
  192, 256, 384, 512, 768, 1024, 1536]

ns = [2000, 3000, 4000, 6000, 8000,
  12000, 16000, 24000, 32000, 48000,
  64000, 96000]

for n, m in product(ns, ms):
runner.timeit(f"needle={m}, haystack={n}",
  setup="needle = zipf_string(m); haystack = 
zipf_string(n)",
  stmt="needle in haystack",
  globals=locals() | globals())

--
Added file: https://bugs.python.org/file49578/length_benchmarks.txt

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-11-06 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

I am attempting to better understand the performance characteristics to 
determine where a cutoff should go.

Attached is a colorful table of benchmarks of the existing algorithm to the PR 
with the cutoff changed to `if (1)` (always two-way) or `if (0)` (always status 
quo), and tested on a variety of needle lengths and haystack lengths.

--
Added file: https://bugs.python.org/file49577/Table of benchmarks on lengths.jpg

___
Python tracker 

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



[issue12436] [doc] Missing items in installation/setup instructions

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
title: Missing items in installation/setup instructions -> [doc] Missing items 
in installation/setup instructions
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue16399] argparse: append action with default list adds to list instead of overriding

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue1375011] http.cookies, Cookie.py: Improper handling of duplicate cookies

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

___
Python tracker 

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



[issue1576313] [doc] os.execvp[e] on win32 fails for current directory

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
title: os.execvp[e] on win32 fails for current directory -> [doc] os.execvp[e] 
on win32 fails for current directory
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

___
Python tracker 

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



[issue8041] No documentation for Py_TPFLAGS_HAVE_STACKLESS_EXTENSION or Py_TPFLAGS_HAVE_VERSION_TAG.

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue6253] optparse.OptionParser.get_usage uses wrong formatter

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Jan, if you are still interested in fixing this you would need to add a test to 
the patch.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6

___
Python tracker 

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



[issue27408] Document importlib.abc.ExecutionLoader implements get_data()

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> out of date
stage: needs patch -> 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



[issue27408] Document importlib.abc.ExecutionLoader implements get_data()

2020-11-06 Thread Brett Cannon


Brett Cannon  added the comment:

Not necessary to specify as InspectLoader also provides get_data() concretely 
now.

--

___
Python tracker 

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



[issue27387] Thread hangs on str.encode() when locale is not set

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

>From the discussion I conclude that all three issues reported here have been 
>resolved. If nobody objects I will close this issue.

--
nosy: +iritkatriel
resolution: not a bug -> out of date
status: open -> pending

___
Python tracker 

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



[issue27182] PEP 519 support in the stdlib

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


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



[issue27129] Wordcode, part 2

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2020-11-06 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue25228] Regression in http.cookies parsing with brackets and quotes

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue12611] 2to3 crashes when converting doctest using reduce()

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

The test in issue12611_test.patch is still failing.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue32300] print(os.environ.keys()) should only print the keys

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
type:  -> behavior
versions: +Python 3.10, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue42279] replacements function corrupts file

2020-11-06 Thread Zachary Ware


Change by Zachary Ware :


--
components:  -IDLE

___
Python tracker 

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



[issue42279] replacements function corrupts file

2020-11-06 Thread Zachary Ware


Zachary Ware  added the comment:

That's because you're writing an output line once per replacement rather than 
once per input line.

For usage questions such as this, you'll be better off on a forum such as 
discuss.python.org, the python-l...@python.org mailing list, or the Python 
Discord community (pythondiscord.com).

--
assignee: terry.reedy -> 
nosy: +zach.ware
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



[issue10016] shutil.copyfile -- allow sparse copying

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-06 Thread jack1142


New submission from jack1142 :

It looks like the documentation lists standard library collections that support 
parameterized generics[1] however, it seems to only feature a part of all the 
collections that support parametrizing (I'm going by the list that was produced 
by Ethan Smith[2], it could be slightly inaccurate now, but that can be 
cross-checked when making the contribution).

I would be interested in making a PR adding these if/when this issue gets 
accepted.


[1] 
https://docs.python.org/3.10/library/stdtypes.html#standard-generic-collections
[2] https://github.com/gvanrossum/cpython/pull/1#issuecomment-582781121

--
assignee: docs@python
components: Documentation
messages: 380467
nosy: docs@python, jack1142
priority: normal
severity: normal
status: open
title: The list of standard generic collections is incomplete
type: enhancement
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue42279] replacements function corrupts file

2020-11-06 Thread John Dutcher


New submission from John Dutcher :

If the file below 0f 239 records is processed by the code below it throws no 
errors and writes the output...but the output has 615 records instead of 239 
seemingly having written any revised ones three times instead of only once.

replacements = {'/1':'/01', '9/':'09/', '7/':'07/'}
file2 = open(r"c:\users\liddvdp\desktop\IBC CAP OUT.txt", "w")
with open(r"c:\users\liddvdp\desktop\IBC CAP.txt", "r") as reader:
 for line in reader:
 for src, target in replacements.items():
 line = line.replace(src, target)
 file2.write(line)

--
assignee: terry.reedy
components: IDLE
files: IBC CAP.txt
messages: 380466
nosy: dutch58, terry.reedy
priority: normal
severity: normal
status: open
title: replacements function corrupts file
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file49576/IBC CAP.txt

___
Python tracker 

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



[issue8488] Docstrings of non-data descriptors "ignored"

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

I got this output on 3.10, so I think this has been fixed:


lass Demo(builtins.object)
 |  Readonly properties defined here:
 |
 |  data
 |
 |  non_data
 |
 |  prop
 |  Doc of a property.
 |
 |  --
 |  Data descriptors defined here:
 |
 |  __dict__
 |  dictionary for instance variables (if defined)
 |
 |  __weakref__
 |  list of weak references to the object (if defined)

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
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



[issue12625] sporadic test_unittest failure

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Is this test still failing? Or can this be closed?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

There are still several tests that use find_unused_port:

test_asyncio/test_events.py
test_asyncio/test_proactor_events.py
test_asyncio/test_sendfile.py
test_asyncio/test_unix_events.py
test_ftplib.py
test_httplib.py
test_largefile.py
test_socket.py
test_smtplib.py

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 
3.1, Python 3.2

___
Python tracker 

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



[issue8988] import + coding = failure (3.1.2/win32)

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

> See also #3080 for the full unicode support in the import machinery.

I'm confident that I fixed this issue in bpo-3080. I mark this one as a 
duplicate.

--
resolution:  -> duplicate
stage: test needed -> resolved
status: pending -> closed
superseder:  -> Full unicode import system

___
Python tracker 

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



[issue8988] import + coding = failure (3.1.2/win32)

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

I think this can be closed as out of date.

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue25516] threading.Condition._is_owned() is wrong when using threading.Lock

2020-11-06 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue25516] threading.Condition._is_owned() is wrong when using threading.Lock

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25769] Crash due to using weakref referent without acquiring a strong reference

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

> Oh by the way, this issue was fixed on UNIX in Python 3.2: all file 
> descriptors are now closed by default (close_fds=True by default on UNIX).

Issue fixed in Python 3.4 (sorry, 3.4, not 3.2): 
https://www.python.org/dev/peps/pep-0446/

--
resolution:  -> fixed
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

I will close this as out of date unless someone objects.

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2020-11-06 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue15049] [doc] say in open() doc that line buffering only applies to write

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
title: line buffering isn't always -> [doc] say in open() doc that line 
buffering only applies to write
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue14791] setup.py only adds /prefix/lib, not /prefix/lib64

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

Was this resolved by the fix for https://bugs.python.org/issue32059?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue16212] mmap() dumps core upon resizing the underlying file

2020-11-06 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue42173] Drop Solaris support

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

Gaige B Paulsen offered to set up a SmartOS (Illumos-derived) buildbot:
https://mail.python.org/archives/list/python-buildb...@python.org/thread/7HGPHD3WZG6V6NVP6EGQO6NHZ3DAPPXN/

--

___
Python tracker 

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



[issue16212] mmap() dumps core upon resizing the underlying file

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue42173] Drop Solaris support

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

This issue title is "Drop Solaris support". I no longer plan to drop Solaris 
support. I suggest to open new issues and continue the discussion there.

--

___
Python tracker 

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



[issue42173] Drop Solaris support

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

Copy of my email sent to python-dev.

https://mail.python.org/archives/list/python-...@python.org/message/46UUJ4J5YLCWF2JQMC5L7OIYG6PNQLRL/

Since I created the issue and the PR, and sent this email to
python-dev (one week ago), many Solaris and Solaris-like (ex: Illumos)
users replied that the operating system is definitively alive. I
didn't know that Oracle still ships new Solaris updates every month:
that's a good thing!

But this is not enough to support a platform. We would need proactive
contributors to fix known Solaris issues, but also fix new Solaris
issues (either regressions, or bugs newly discovered). We would also
need a buildbot to run the Python test suite on Solaris (or again, a
Solaris-like OS).

The good news is that Jakub Kulik started to fix some Solaris issues.
I understood that Solaris and Solaris-like operating systems do have
downstream patches on Python to fix a bunch of bugs. It seems like
some people want to push these fixes to Python upstream which is also
a good sign.

The other problem that I wanted to discuss is that fixing Solaris
issues require core devs (who merge PRs) accessing Solaris. If
contributors send patches and some core devs are fine with merging
fixes without being able to test them manually, I'm also fine with
that.

My first intent was to remove support for a definitely dead operating
system, but it seems like I was completely wrong (it's alive!). Thanks
to people starting to fix Solaris issues, I close my PR and I no
longer plan to drop Solaris support. I prefer to leave bpo-42173 open
for now, since people decide to use it as a place to collaborate on
fixing Solaris issues.

Once most tests will pass on the master branch, I also hope that
someone will set up a buildbot *and* fix issues discovered by this
buildbot. Sorry but just setting up a buildbot doesn't solve any
problem, it only increases the maintenance burden for people who
maintain the buildbot fleet. For example, we have two AIX buildbots, I
report bugs on bugs.python.org, but it seems like nobody is available
to fix them...

Overall, I'm quite happy with what is happening with Solaris! More
collaboration, issues being fixed in Python upstream. I just hope that
this work will continue next months. ;-)

--

___
Python tracker 

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



[issue16238] Automatically remove build directory when build options changed

2020-11-06 Thread Éric Araujo

Change by Éric Araujo :


--
assignee: eric.araujo -> 
components:  -Distutils
versions:  -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



[issue16238] Automatically remove build directory when build options changed

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2020-11-06 Thread Irit Katriel


Irit Katriel  added the comment:

This is still unresolved. For instance, this says 3.7 is in development:
https://docs.python.org/release/3.6.2/

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 88c2cfd9ffbcfc43fd1364f2984852a819547d43 by Hai Shi in branch 
'master':
bpo-41832: PyType_FromModuleAndSpec() now accepts NULL tp_doc (GH-23123)
https://github.com/python/cpython/commit/88c2cfd9ffbcfc43fd1364f2984852a819547d43


--

___
Python tracker 

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Hai Shi.

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



[issue13433] [doc] Improve string format documentation regarding %g

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
title: String format documentation contains error regarding %g -> [doc] Improve 
string format documentation regarding %g
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-06 Thread STINNER Victor


Change by STINNER Victor :


--
title: FAIL tkinter ttk LabeledScale test_resize, and more -> test_ttk timeout: 
FAIL tkinter ttk LabeledScale test_resize, and more

___
Python tracker 

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



[issue41839] Solaris: Fix error checking in sched_get_priority_ functions

2020-11-06 Thread Jakub Kulik


Jakub Kulik  added the comment:

> Checking for -1 rather than all negative values fixes this issue.

To be 100% exact, it should be "checking for -1 and errno" (as other Jakub 
noted in the PR). Here is the standard for reference:
https://pubs.opengroup.org/onlinepubs/009695399/functions/sched_get_priority_min.html

Sticking to it should hopefully not break anything.

--

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2020-11-06 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue6304] Confusing error message when passing bytes to print with file pointing to a binary file

2020-11-06 Thread Irit Katriel


Change by Irit Katriel :


--
stage: test needed -> 
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue42278] Remove usage of tempfile.mktemp in stdlib

2020-11-06 Thread E. Paine


New submission from E. Paine :

Currently, there are many uses of `tempfile.mktemp` in the stdlib. I couldn't 
find an issue where this has already been discussed, but I think the usage of 
mktemp in the stdlib should be completely reviewed. I grepped the Lib and a 
slightly filtered version is the following:

Lib/asyncio/windows_utils.py:34: address = tempfile.mktemp(
Lib/distutils/command/bdist_wininst.py:185: archive_basename = mktemp()
Lib/distutils/util.py:386: (script_fd, script_name) = None, mktemp(".py")
Lib/msilib/__init__.py:214: filename = mktemp()
Lib/multiprocessing/connection.py:81: return 
tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir())
Lib/multiprocessing/connection.py:83: return 
tempfile.mktemp(prefix=r'\.\pipe\pyc-%d-%d-' %
Lib/pydoc.py:1620: filename = tempfile.mktemp()
Lib/test/bisect_cmd.py:75: tmp = tempfile.mktemp()
Lib/test/test_bytes.py:1193: tfn = tempfile.mktemp()
Lib/test/test_contextlib.py:316: tfn = tempfile.mktemp()
Lib/test/test_doctest.py:2724: >>> fn = tempfile.mktemp()
Lib/test/test_doctest.py:2734: >>> fn = tempfile.mktemp()
Lib/test/test_doctest.py:2744: >>> fn = tempfile.mktemp()
Lib/test/test_faulthandler.py:51: filename = tempfile.mktemp()
Lib/test/test_shutil.py:1624: filename = tempfile.mktemp(dir=dirname)
Lib/test/test_shutil.py:1935: dst_dir = tempfile.mktemp(dir=self.mkdtemp())
Lib/test/test_shutil.py:2309: name = tempfile.mktemp(dir=os.getcwd())
Lib/test/test_shutil.py:272: filename = tempfile.mktemp(dir=self.mkdtemp())
Lib/test/test_shutil.py:677: dst = tempfile.mktemp(dir=self.mkdtemp())
Lib/test/test_socket.py:699: path = tempfile.mktemp(dir=self.dir_path)
Lib/test/test_socketserver.py:100: fn = tempfile.mktemp(prefix='unix_socket.', 
dir=dir)

I am hoping this issue will be spotted as I couldn't find who to add to the 
nosy for this. I think, bearing in mind that use of this method is a security 
issue, we should reduce this number as low as feasible (though, I am sure that 
a number of those will have good reasons for using mktemp, and will be doing so 
in a safe way).

--
components: Library (Lib)
messages: 380450
nosy: epaine
priority: normal
severity: normal
status: open
title: Remove usage of tempfile.mktemp in stdlib
type: security
versions: Python 3.10, 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



[issue42277] Solaris & PEP 3149: start using ABI version tagged .so files

2020-11-06 Thread Jakub Kulik


Change by Jakub Kulik :


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

___
Python tracker 

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



[issue42277] Solaris & PEP 3149: start using ABI version tagged .so files

2020-11-06 Thread Jakub Kulik


New submission from Jakub Kulik :

Solaris doesn't have ABI version tagged .so files enabled in upstream CPython 
yet, but almost every Solaris distribution* patches this functionality in:

Oracle Solaris: 
https://github.com/oracle/solaris-userland/blob/master/components/python/python39/patches/13-SOABI.patch
OpenIndiana: 
https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/python/python37/patches/13-SOABI.patch
OmniOS: 
https://github.com/omniosorg/omnios-build/blob/master/build/python37/patches/13-SOABI.patch

Because of that, I think it should be merged into master.

*) The only exception is pkgsrc (used in SmartOS), but they are patching it out 
for every system, so no change there:
https://github.com/joyent/pkgsrc/blob/trunk/lang/python39/patches/patch-configure

--
components: Build
messages: 380449
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Solaris & PEP 3149: start using ABI version tagged .so files
type: enhancement
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



[issue42207] Python 3.9 testing fails when building with clang and optimizations are enabled

2020-11-06 Thread STINNER Victor


STINNER Victor  added the comment:

commit 100964e0310d3a2040d0db976f7984d0507b2dbd
Author: serge-sans-paille 
Date:   Wed Nov 4 23:01:08 2020 +

Disable peg generator tests when building with PGO (GH-23141)

Otherwise, when running the testsuite, test_peg_generator tries to compile C
code using the optimized flags and fails because it cannot find the profile
data.


commit 3997a4e6bca18c7f220d6212ef1e86d8aa9c7aee (upstream/3.9, 3.9)
Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
Date:   Wed Nov 4 15:22:13 2020 -0800

Disable peg generator tests when building with PGO (GH-23141)


Otherwise, when running the testsuite, test_peg_generator tries to compile C
code using the optimized flags and fails because it cannot find the profile
data.
(cherry picked from commit 100964e0310d3a2040d0db976f7984d0507b2dbd)

Co-authored-by: serge-sans-paille 

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



[issue42276] Bug in adfuller test and a suggested fix

2020-11-06 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Statsmodel is not part of the Python standard library. 

The issue tracker for this packages seems to be at: 
https://github.com/statsmodels/statsmodels/issues

--
nosy: +ronaldoussoren
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type: enhancement -> behavior

___
Python tracker 

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



[issue42276] Bug in adfuller test and a suggested fix

2020-11-06 Thread Guo

New submission from Guo :

from statsmodels.tsa.stattools import adfuller
adf = adfuller(x, regression=‘c’, autolag=‘t-stat’)

Sometimes comes error message:
UnboundLocalError: local variable ‘bestlag’ referenced before assignment 

I found the reason: when using t-stat, bestlag is only assigned, when the last 
lag becomes significant the first time, so if no lag has a significant t-value, 
then bestlag is never assigned

I fixed this bug this way: open the file stattools.py and find the lines:
elif method == “t-stat”:
  #stop = stats.norm.ppf(.95)
  stop = 1.6448536269514722
Then add here following two lines:
  bestlag = startlag
  icbest = np.abs(results[startlag].tvalues[-1])

This way, the code won’t crash again and t-stat simply uses no lag when there 
is no significant value

--
components: Library (Lib)
messages: 380446
nosy: gyllila
priority: normal
severity: normal
status: open
title: Bug in adfuller test and a suggested fix
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue42274] Imaplib hangs up infinitely when performing append operation

2020-11-06 Thread Eric V. Smith


Eric V. Smith  added the comment:

The bug tracker isn't the appropriate place to ask for help. 

Your problem is most likely with your code, or possibly with the server you're 
talking to. But you haven't provided us any way of knowing which.

I suggest you ask for help on the python-list mailing list, or maybe on Stack 
Overflow. But no matter where you ask for help, you'll need to show the code 
that is causing your problem. You'll want to reproduce the problem with a small 
example. You should remove any code that doesn't relate to reproducing the 
problem, and preferably without using any third party libraries.

If you can show that this is a bug in Python, then you can re-open this issue.

--
nosy: +eric.smith
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



[issue42275] Jupyter Lab Terminals not available (error was No module named 'winpty.cywinpty')

2020-11-06 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

The tracker is for issues related to CPython and doesn't seem to be caused due 
to python itself. I would suggest following it up on jupyterlab's issue tracker 
and forums.

--
nosy: +xtreak

___
Python tracker 

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



[issue42271] Remove the error and the zipfile.ZipFile.BadZipfile aliases

2020-11-06 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +alanmcintyre, serhiy.storchaka, twouters

___
Python tracker 

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



  1   2   >