[issue42608] Installation failed from source code on Debian ([307/416] test_socket)

2020-12-11 Thread ali


ali  added the comment:

I used build_all  instead of --enable-optimizations option.

Thanks you.

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



[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

The position of the caret assumes that every character in the string takes up 
the same width, measured in pixels. That is only true for monospaced fonts like 
Courier.

The only way to position the caret precisely with a proportional-width font is 
to compute the number of pixels for each character and then line up the caret 
at a position based on pixels rather than character columns. Unless Tkinter has 
functions to do both, it will probably be complicated and expensive, and I 
doubt anyone would care enough to do it.

--
nosy: +steven.daprano -1051371

___
Python tracker 

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



[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Pratik Palwai


New submission from Pratik Palwai <1051...@student.auhsd.us>:

When I get a syntax error, it shows the line with the error, and then a little 
'^' on the next line, showing where the error is. However, the location of the 
'^' is a little misleading, since it isn't in the right spot. For example (not 
sure if it will format correctly though):
elif self.left == None and self.right =! None:
  ^
The symbol should be under the +! instead of under the 'and.' Also, this 
problem doesn't occur with the font Courier.

--
assignee: terry.reedy
components: IDLE
messages: 382900
nosy: 1051371, terry.reedy
priority: normal
severity: normal
status: open
title: Syntax Error showing pointer in wrong location
type: enhancement
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



[issue42575] Suggest to add an LinkedList data structure to python

2020-12-11 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> So I think that this issue should be closed.

I agree with the respondents.  Marking this one as closed.

--
nosy: +rhettinger
resolution:  -> rejected
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



[issue42611] PEP 594 Removing dead batteries from stdlib

2020-12-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Until a pep is approved, discussion of its ideas belong elsewhere; an issue is 
only needed for a proposed implementation  Is PR 23728 purely for discussion 
leading to possible approval of the PEP, or for merging regardless of the PEP 
fate?

--
nosy: +terry.reedy
title: PEP 594 -> PEP 594 Removing dead batteries from stdlib

___
Python tracker 

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



[issue42603] Tkinter: pkg-config is not used to get location of tcl and tk headers/libraries

2020-12-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Correctly prefixed, issue 42541 and #42541 are links.  And thanks for doing CLA 
first.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue42575] Suggest to add an LinkedList data structure to python

2020-12-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The opening claim (no linked list structures in Python) is flawed. Abstractly, 
a linked list is a binary tree with right items of nodes restricted to being a 
linked list or None.  If the left items are restricted to being non-lists 
values, then the linked list implements, in somewhat peculiar way, a sequence 
of non-list values.

Python's tuples and lists can make general trees with unrestricted numbers and 
types of items.  Add the linked-list restriction as to number and types and one 
has, in Python already, a frozen or mutable linked list.  Alternatively, one 
can make linked lists in Python with a class with two named attributes with 
whichever linked-list restrictions.  Finally, one can view a deque as a 
doubly-linked list, mutable at each end.  Internally, it is a doubly-linked 
list of blocks of values.  The block size is tuned to the cache size of modern 
processors.

Lisp's linked lists are a solution to incrementally building immutable 
structures that can be processed by function-call recursion.  The key idea is 
that a sequence can be inductively defined as the first item followed by the 
rest.  Python is not restricted to either immutable structures or recursion, 
but its iteration protocol implements that key idea.  it = iter(iterable) 
represents a non-iterator iterable by an iterator (and an iterator by itself).  
next(it) splits the sequence represented by 'it' into first and rest, mutates 
'it' to represent the rest, and returns the first.  (The proposed class is 
missing a ListIterator class and a .__iter__ method to return one.)
---

I am sure that adding linked lists has been proposed and rejected before.  I 
know that b-trees have been, and likely others specialized structures.  Guido 
decided long ago that such things should generally be left to what is now 
https://pypi.org. The major exceptional addition was deque, which filled the 
hole of being efficiently mutated at each end.  So I think that this issue 
should be closed.

Adding a new structure is too 'big' a change for a bpo issue.  Discussion on 
python-ideas list and a PEP would be needed.  But I think the chance of success 
is nil.

--
components: +Interpreter Core -C API
nosy: +terry.reedy

___
Python tracker 

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



[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2020-12-11 Thread Irit Katriel


Irit Katriel  added the comment:

I think this is the same as issue42247, where I've recently attached a patch 
that removes __unittest frames from the traceback rather than count them and 
then set a limit for printing. 

I could add to that patch what Robert suggests here - to filter the __cause__ 
traceback as well.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -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



[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-11 Thread Christoph Reiter


Christoph Reiter  added the comment:

I would expect Python to print the current statement up to the error instead of 
just the last line:

```
File "error.py", line 3-5
  print(((123))

  if 2:
  ^
```

This would solve this case nicely while in the common case still show one line 
as before.

--

___
Python tracker 

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



[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-11 Thread Andre Roberge


Andre Roberge  added the comment:

I suspect that the Python parser cannot easily be changed to given any other 
message. Replace the colon by "else" and add one more closing parenthesis and 
you have a valid Python program.  So, is it a matter of an unclosed 
parenthesis, or not using "else" ? 



If you want possible additional help in such situations, you can try to use the 
third-party package friendly-traceback which gives the following information 
for this case (I put your code in a file named "ignore.py")


Traceback (most recent call last):
  File "ignore.py", line 5
if 2:
^
SyntaxError: invalid syntax

A `SyntaxError` occurs when Python cannot understand your code.

Python could not understand the code in the file
'ignore.py'
beyond the location indicated by --> and ^.

   2: if 1:
   3: print(((123))
   4:
-->5: if 2:
  ^
   6: print(123)

I make an effort below to guess what caused the problem
but I might guess incorrectly.

The opening parenthesis `(` on line 3 is not closed.

3: print(((123))
^

--
nosy: +aroberge

___
Python tracker 

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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://docs.python.org/3/library/idle.html#startup-failure says
"A common cause of failure is a user-written file with the same name as a 
standard library module, such as random.py and tkinter.py. When such a file is 
located in the same directory as a file that is about to be run, IDLE cannot 
import the stdlib file. The current fix is to rename the user file."

In this case, the offending file and name is your Desktop/code.py.  Rename it.

--
resolution:  -> not a bug

___
Python tracker 

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



[issue42610] Get the type from a variable

2020-12-11 Thread Filipe Laíns

Filipe Laíns  added the comment:

There is type() to get the runtime type.

https://docs.python.org/3/library/functions.html#type

```python
>>> foo = 1
>>> type(foo)

```

Keep in mind that in Python using type hints does not enforce anything at 
runtime. You can say `foo: int = 1` but `int` there is just some extra 
information for type checkers, like mypy, to use.

If you want the type hints, you can use typing.get_type_hints() but this is 
only available for modules, classes or functions, not variables.

--
nosy: +FFY00

___
Python tracker 

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



[issue41559] Add support for PEP 612 (Parameter Specification Variables) to typing.py

2020-12-11 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
title: Add support for PEP 612  to typing.py -> Add support for PEP 612 
(Parameter Specification Variables) to typing.py

___
Python tracker 

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



[issue41559] Add support for PEP 612 to typing.py

2020-12-11 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
title: Add support for PEP 612 to typing.py -> Add support for PEP 612  to 
typing.py

___
Python tracker 

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



[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2020-12-11 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
title: Implement PEP 626 -> Implement PEP 626 -- Precise line numbers for 
debugging

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘

--

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

雅雯  added the comment:

你全家死光

--
Added file: https://bugs.python.org/file49671/IMAG0629_1.jpg

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘
我是渣男專打老婆騙吃拐幹

--
Added file: https://bugs.python.org/file49670/IMAG0629_1.jpg

___
Python tracker 

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



[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread paul j3


paul j3  added the comment:

An existing parser can be included in a new subparser via the 'parents' 
mechanism.  With that the _actions and groups of the parent are copied (by 
reference) to the new subparser.

There are some rough edges to the parents mechanism, but people have used it to 
add a common subset of arguments to all subparsers.

--

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

Change by 雅雯 :


Removed file: https://bugs.python.org/file49668/IMAG0629_1.jpg

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

雅雯  added the comment:

全家死光

--
Added file: https://bugs.python.org/file49669/IMAG0629_1(1).jpg

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings


Larry Hastings  added the comment:

Sorry, somehow bpo decided I added two people to this issue?  Weird.  Anyway I 
have removed them (Ned and "froody").

--
nosy: +larry -froody, ned.deily

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings


Change by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘

--
nosy: +zhtw1234
Added file: https://bugs.python.org/file49668/IMAG0629_1.jpg

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings


Change by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings


Larry Hastings  added the comment:

Stop adding me to this issue.

--

___
Python tracker 

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



[issue21536] extension built with a shared python cannot be loaded with a static python

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘

--
nosy: +zhtw1234

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯

Change by 雅雯 :


Removed file: https://bugs.python.org/file49667/IMAG0629_1.jpg

___
Python tracker 

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



[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2020-12-11 Thread paul j3


paul j3  added the comment:

In the subparser example, it's the `build` subparser that puts '--overwritte' 
in the unrecognized list.  That is then passed back to the main parser, which 
then issues the 'unrecognized' error, along with its own usage.

The subparser is called with `parse_known_args` while the proposed patch is run 
in the `parse_args` method of the main parser.  It doesn't have access to the 
subparser's arguments.  So implementing the proposed matching will be much 
harder.

For some types of error, such as type or choices, the subparser itself raises 
the error, with the appropriate usage.  

===

https://bugs.python.org/issue42297
[argparse] Bad error message formatting when using custom usage text

is another case where error messages produced by the subparser differ from 
messages produced by the main. In this case the unrecognized error usage 
message is clearer since it is produced by the main parser.

===

I didn't close this issue, but it does feel like an enhancement that's too big 
for the bug/issues forum.  The proposed patch could be developed as a separate 
'parser.parse_args_with_hints' method, and distributed as a pypi addition.  
During development and testing, the regular 'parser.parse_args()' does not need 
to be touched.

--

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯

雅雯  added the comment:

你們全都有病,現實生活沒朋友上網做夫妻,纸上談兵沒有用,叫對方離婚和你們在一起阿!賤人、渣男……

--
nosy: +larry

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings


Change by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘

--
components: +2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, 
Cross-Build, asyncio, ctypes
nosy: +Alex.Willmer, asvetlov, larry, yselivanov, zhtw1234
versions: +Python 3.10, Python 3.6, Python 3.7
Added file: https://bugs.python.org/file49667/IMAG0629_1.jpg

___
Python tracker 

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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Tom Birch


Tom Birch  added the comment:

> Does this affect unix-style builds with --enable-shared or framework builds?

I believe the answer is no, since in both those cases the `python` executable 
doesn't contain definitions for any of the libpython symbols. In my testing I 
was using a python binary from anaconda, where the `python` executable defines 
all the symbols found in libpython.

--

___
Python tracker 

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



[issue42608] Installation failed from source code on Debian ([307/416] test_socket)

2020-12-11 Thread Neil Schemenauer


Neil Schemenauer  added the comment:

Maybe something to do the configuration of the machine, so that TCP/UDP socket 
networking if failing?  Two things to try:

- give the "python" process a SIGINT signal and you should get a traceback 
showing where it is hanging.  Or you could use "gdb" and attach to the process 
(assuming you know how to use gdb).

- configure without PGO (i.e. don't specify "--enable-optimizations" to 
conifgure).  That will result in a slightly slower build but the build will not 
require running of the tests.

--
nosy: +nascheme

___
Python tracker 

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



[issue42571] [docs] add links to Glossary#parameter in libraries

2020-12-11 Thread Éric Araujo

Éric Araujo  added the comment:

I don’t think every function signature should have links when using `*`, 
`*args` or `**kwargs`.

Is there another page that we could improve?
What did you search for when you wanted to understand what it means?

Possible candidates: tutorial page about functions; language reference about 
functions; others?

--
nosy: +eric.araujo

___
Python tracker 

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



[issue42456] Logical Error

2020-12-11 Thread Éric Araujo

Change by Éric Araujo :


--
hgrepos:  -394

___
Python tracker 

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



[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Rick van Rein


Rick van Rein  added the comment:

Excellent, thanks.  I personally would appreciate if a remark about IPv6 would 
also be made.

--

___
Python tracker 

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



[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-11 Thread Sviatoslav Sydorenko


Sviatoslav Sydorenko  added the comment:

> What is "VendorImporter"

@brett.cannon `VendorImporter` is something comping from `pkg_resources`. 
Because of an entangled traceback and the fact that it dynamically injects a 
vendored copy of `six`, it's hard to spot. Here's an upstream issue I filed 
about this warning: https://github.com/pypa/setuptools/issues/2481.

--
nosy: +webknjaz

___
Python tracker 

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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur


Avinash Gaur <8962...@gmail.com> added the comment:

I tried deleting Environment Variables which has python. and now it is working.

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



[issue42246] Implement PEP 626

2020-12-11 Thread Mark Shannon


Mark Shannon  added the comment:

Ned,
What are the failures?

I'd like to take a look, to see if things are as expected, and if there are any 
tests we can add to CPython.

--

___
Python tracker 

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



[issue42246] Implement PEP 626

2020-12-11 Thread Ned Batchelder


Ned Batchelder  added the comment:

Mark, BTW: I have run the coverage.py test suite on 3.10.0a3, and as expected 
there are failures.  I haven't dug into it yet to see what looks expected and 
what does not.  I also see there are still changes happening on master, so I'm 
not sure when to commit the time.

--

___
Python tracker 

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



[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2020-12-11 Thread conchylicultor


conchylicultor  added the comment:

I don't think this should have been closed.

[1]  If the user is using sub_parser, the options are not even displayed. For 
example in our https://github.com/tensorflow/datasets project:

```
$ tfds build mnist --overwritte
usage: tfds [-h] [--helpfull] [--version] {build,new} ...
tfds: error: unrecognized arguments: --overwritte
```

[2] For some programs, there can be 20+ options and having to scroll through 
the list is not user friendly at all.

[3] Other CLI, like Google absl.flags has this option too and it is very 
convenient.

--
nosy: +conchylicultor

___
Python tracker 

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



[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +paul.j3, rhettinger

___
Python tracker 

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



[issue15898] OSX TTY bug

2020-12-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Closing this issue, because this is a platform bug.


The reproducer in msg170147 works reliably for me on macOS 10.15 with Python 
3.9, the system bug may have been fixed in the meantime.

--
components: +macOS
resolution: not a bug -> third party
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



[issue42246] Implement PEP 626

2020-12-11 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +22601
pull_request: https://github.com/python/cpython/pull/23743

___
Python tracker 

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



[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Christian Heimes


Christian Heimes  added the comment:

Good point. The address info depends on the address family, 
https://docs.python.org/3/library/socket.html#socket-families . I have updated 
the doc string:

>>> import socket
>>> print(socket.socket.getsockname.__doc__)
getsockname() -> address info

Return the address of the local endpoint. The format depends on the
address family. For IPv4 sockets, the address info is a pair
(hostaddr, port).

--
versions: +Python 3.10, Python 3.8, 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



[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
nosy: +christian.heimes
nosy_count: 1.0 -> 2.0
pull_requests: +22600
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23742

___
Python tracker 

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



[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi


Change by Bohdan Borkivskyi :


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



[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi


New submission from Bohdan Borkivskyi :

Currently, there is only a possibility to create empty parser as subparser - 
argparse.py, line 1122

The purpose of issue is to add support for existing parser to be added as 
subparser

--
components: Library (Lib)
messages: 382867
nosy: borkivskyi
priority: normal
severity: normal
status: open
title: Add support to add existing parser to ArgumentParser.subparsers
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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
Removed message: https://bugs.python.org/msg382866

___
Python tracker 

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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread 雅雯

雅雯  added the comment:

幹你娘

--
nosy: +zhtw1234

___
Python tracker 

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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur


Avinash Gaur <8962...@gmail.com> added the comment:

I downloaded the .exe file from python.org
After trying to open the idle from cmd "py -3.9 -m idlelib", the error shown in 
picture comes.(python 3.7 was also showing same error)

--
Added file: https://bugs.python.org/file49666/error.png

___
Python tracker 

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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur


Change by Avinash Gaur <8962...@gmail.com>:


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



[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur


New submission from Avinash Gaur <8962...@gmail.com>:

I was able to use python IDLE earlier. But when I tried to open now, I was 
unable to open Python 3.7 IDLE. I have tried uninstalling and reinstalling 
Python(different versions) and deleting the .idlerc folder. I am using Windows 
10.

--
assignee: terry.reedy
components: IDLE
messages: 382864
nosy: 8962avi, terry.reedy
priority: normal
severity: normal
status: open
title: Python IDLE no longer opens after clicking on its icon
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Rick van Rein


New submission from Rick van Rein :

Shown in the session below is unexpected output of a 4-tuple from an AF_INET6 
socket along with documentation that *suggests* to expect a 2-tuple.  The 
phrasing "IP" might have to be toned down to "IPv4" or "AF_INET" to be accurate 
enough to avoid confusion.

Opinion: I think you should be explicit about the different behaviour for 
AF_INET6, so it is not reduced to a special/nut case for special interest 
groups.  IPv6 has a hard enough time getting in; different formats for AF_INET 
and AF_INET6 should ideally be shown to all programmers, to at least avoid 
*uninformed* decisions to be incompatible with IPv6 while they develop on an 
IPv4 system (and the same in the opposite direction).


Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> sox6 = socket.socket (socket.AF_INET6)
>>> sox6.getsockname ()
('::', 0, 0, 0)
>>> sox6.getsockname.__doc__
'getsockname() -> address info\n\nReturn the address of the local endpoint.  
For IP sockets, the address\ninfo is a pair (hostaddr, port).'

--
components: Library (Lib)
messages: 382863
nosy: vanrein
priority: normal
severity: normal
status: open
title: documentation on `getsockname()` wrong for AF_INET6
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2020-12-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Currently macOS 11 is needed to build a universal2 framework. That because we 
haven't spent time yet on detecting if the current compiler can compile for 
arm64.

An easy workaround: Patch _osx_support.py, in particular the function 
"_supports_arm64_builds". This checks that the macOS version is 11.0 or later.



A PR that detects if Xcode 12 or the corresponding command line tools are used  
would be welcome :-)

--

___
Python tracker 

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



[issue31904] Python should support VxWorks RTOS

2020-12-11 Thread Peixing Xin


Change by Peixing Xin :


--
pull_requests: +22599
pull_request: https://github.com/python/cpython/pull/23741

___
Python tracker 

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



[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2020-12-11 Thread xz_sophos


New submission from xz_sophos :

With 3.9.1 source code, I am trying to make univerisal2 build of 
python.framework from the source code. The problem I am seeing is the main 
python binary is universal, but all the .so files in lib-dynload 
(Python.framework/Versions/3.9/lib/python3.9/lib-dynload/) are only x86_64.

The Mac is MacOS 10.15, with Xcode 12.2 installed. Xcode12.2 has SDKs to 
support universal build for both arm64 and x86_64 architecture. I have no 
problems making other universal applications and frameworks on the machine. 

Following the documentation. I ran the following build command:
./configure --enable-universalsdk --enable-framework=./tmp 
--with-universal-archs=universal2 --without-ensurepip
make
make install

The resulting python was universal but the .so files are not.

--
components: macOS
messages: 382861
nosy: ned.deily, ronaldoussoren, xz_sophos
priority: normal
severity: normal
status: open
title: python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on 
Mac
type: compile error
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



[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Does this affect unix-style builds with --enable-shared or framework builds?

For the latter the python executable is linked to the framework, and lib 
python.dylib is an alias for the framework. 


A related known problem is that linking an extension to a different interpreter 
than it was loaded into. That is, link to /opt/lib/libpython.dylib, and use 
with a framework build (of v.v.).  That's one reason why linking extensions to 
libpython is not commonly done.

It might be interesting to experiment with "-bundle_loader ..." in the link 
flags instead of linking to libpython, this checks symbols not found in one of 
the linked to libraries against the bundle_loader ("like it was one of the 
dynamic libraries the bundle was linked with").  I don't know if this is a 
recursive check that will also look at libraries linked to by the bundle loader.

--
priority: normal -> low

___
Python tracker 

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



[issue42609] Eval with too high string multiplication crashes newer Python versions

2020-12-11 Thread hongweipeng


Change by hongweipeng :


--
nosy: +hongweipeng

___
Python tracker 

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



[issue41879] Outdated description of async iterables in documentation of async for statement

2020-12-11 Thread miss-islington


miss-islington  added the comment:


New changeset 4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6 by Nick Gaya in branch 
'master':
bpo-41879: Doc: Fix description of async for statement (GH-23548)
https://github.com/python/cpython/commit/4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6


--
nosy: +miss-islington

___
Python tracker 

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