[issue40257] Improve the use of __doc__ in pydoc

2020-04-11 Thread Vedran Čačić
Vedran Čačić added the comment: I don't agree with 1. I use that feature a lot, I write a base class which my students must subclass to their liking, but they still expect that help(TheirClass) will give them the documentation they need. I agree that in _some_ cases it is not helpful (but

Re: help me subcorrect

2020-04-11 Thread Souvik Dutta
Did you send a screenshot? If so then understand that this mailing list does not support photos so you cannot send that. Try giving us a verbal description. And if you write anything other that the sub then sorry that is my Gmail's fault. Souvik flutter dev On Sat, Apr 11, 2020, 8:32 PM khuchee

[issue40258] random module does not have type hints

2020-04-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Eddie Elizondo
Eddie Elizondo added the comment: > the CPU performance implications of adding a branch instruction to Py_INCREC > and Py_DECREF were, unsurprisingly, quite high. Yeah, makes sense. I guess it really depends on the specific profile of your application. For Instagram this was an overall net

[issue40218] sys.executable is a false path if python is executed from gdb

2020-04-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40218] sys.executable is a false path if python is executed from gdb

2020-04-11 Thread Ammar Askar
Ammar Askar added the comment: The reason you're seeing gdb still work even when all Pythons are deleted is because it embeds a Python interpreter in itself (https://docs.python.org/3/extending/embedding.html). This issue is thus out of scope here and belongs on the gdb tracker, but I can

[issue40258] random module does not have type hints

2020-04-11 Thread Nik Vaessen
Change by Nik Vaessen : -- keywords: +patch pull_requests: +18834 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19480 ___ Python tracker ___

[issue40126] Incorrect error handling in unittest.mock

2020-04-11 Thread Barry McLarnon
Barry McLarnon added the comment: Issue still exists in 3.7 and below, as it was part of a different function before. Current PR doesn't resolve the original issue that was raised. -- versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue40258] random module does not have type hints

2020-04-11 Thread Nik Vaessen
Change by Nik Vaessen : -- nosy: nikvaes priority: normal severity: normal status: open title: random module does not have type hints type: enhancement ___ Python tracker ___

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for sharing! It's good to have a patch implementing for others who might need it to try out. We experimented with an implementation of this on CPython 2.7 that we called Eternal Refcounts for YouTube many years ago. For the same reason (saving

Getting ReadTimeoutError for tensorflow while deploying python app to Azure Web App

2020-04-11 Thread kargawal . abhishek
remote: [20:44:36+] Collecting tensorflow==2.1.0 remote: [20:44:36+] Downloading tensorflow-2.1.0-cp37-cp37m-manylinux2010_x86_64.whl (421.8 MB) remote: ... remote: ... remote:

Re: RFC: For Loop Invariants

2020-04-11 Thread Peter J. Holzer
On 2020-04-10 15:44:05 -0500, Elliott Dehnbostel wrote: > *Consider the following trivial for-loop:* > > chars = "abcaaabkjzhbjacvb" > seek = {'a','b','c'} > count = 0 > for a in chars: > if a in seek: > count += 1 > > Gross. Twice nested for a simple count. > [...] > I propose

[issue39951] Ignore specific errors when closing ssl connections

2020-04-11 Thread SilentGhost
Change by SilentGhost : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40257] Improve the use of __doc__ in pydoc

2020-04-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18833 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19479 ___ Python tracker

[issue40257] Improve the use of __doc__ in pydoc

2020-04-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently pydoc outputs __doc__ for classes, functions, methods, properties, etc (using inspect.getdoc()). If the object itself does not have non-empty __doc__, it searches non-empty __doc__ in the class parenthesis (if the object is a class) or in the

[issue39953] Let's update ssl error codes

2020-04-11 Thread miss-islington
miss-islington added the comment: New changeset 2714c907df7cfe97911df6ce90364001270d9a43 by Miss Islington (bot) in branch '3.8': closes bpo-39953: Update OpenSSL error codes table. (GH-19082) https://github.com/python/cpython/commit/2714c907df7cfe97911df6ce90364001270d9a43 --

[issue39953] Let's update ssl error codes

2020-04-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a by Benjamin Peterson in branch 'master': closes bpo-39953: Update OpenSSL error codes table. (GH-19082) https://github.com/python/cpython/commit/3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a --

[issue39953] Let's update ssl error codes

2020-04-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +18832 pull_request: https://github.com/python/cpython/pull/19478 ___ Python tracker

Re: py2c - an open source Python to C/C++ is looking for developers

2020-04-11 Thread jared . h . lam
On Monday, July 30, 2012 at 6:27:04 AM UTC-7, manian...@gmail.com wrote: > I created py2c ( http://code.google.com/p/py2c )- an open source Python to > C/C++ translator! > py2c is looking for developers! > To join create a posting in the py2c-discuss Google Group or email me! > Thanks > PS:I hope

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-11 Thread SilentGhost
Change by SilentGhost : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40221] Use new _at_fork_reinit() lock method in multiprocessing

2020-04-11 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +18831 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19477 ___ Python tracker ___

[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-11 Thread Yusuf Mumtaz
New submission from Yusuf Mumtaz : Hello. I am having trouble running python IDLE on Windows 10 Bootcamp. When searching and opening from windows taskbar, no window appears and nothing else appears to happen. Please help me! -- components: Windows messages: 366217 nosy: YusufM,

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +nascheme, pitrou, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-11 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +18830 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19476 ___ Python tracker

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch pull_requests: +18829 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19474 ___ Python tracker ___

[issue40255] Fixing Copy on Writes from reference counting

2020-04-11 Thread Eddie Elizondo
New submission from Eddie Elizondo : Copy on writes are a big problem in large Python application that rely on multiple processes sharing the same memory. With the implementation of `gc.freeze`, we've attenuated the problem by removing the CoW coming from the GC Head. However, reference

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-11 Thread Guido van Rossum
Guido van Rossum added the comment: yes On Sat, Apr 11, 2020 at 04:46 Lysandros Nikolaou wrote: > > Lysandros Nikolaou added the comment: > > I have working code that checks if there is a quotation mark right after > an identifier. Here is an example: > > ╰─ ./python > Python 3.9.0a5+

Re: problem in installing

2020-04-11 Thread Souvik Dutta
You are running the installer instead of the program itself. Try searching idle from the start menu and run it in that way. Souvik flutter dev On Sat, Apr 11, 2020, 8:36 PM shina sameeran wrote: > i tried to install python 3.8.2 in my HP windows 8 laptop(core i3). after > installation when i

problem in installing

2020-04-11 Thread shina sameeran
i tried to install python 3.8.2 in my HP windows 8 laptop(core i3). after installation when i tried to open the programme it shows window says modify, repair or uninstall. it does not work after modify and repair. please help. yours sincerely shina m j chennai --

plead add persian languges

2020-04-11 Thread m. bahrami
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

help me subcorrect

2020-04-11 Thread khuchee
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: For Loop Invariants

2020-04-11 Thread Terry Reedy
On 4/10/2020 4:44 PM, Elliott Dehnbostel wrote: chars = "abcaaabkjzhbjacvb" seek = {'a','b','c'} count = 0for a in chars: if a in seek: count += 1 Why did you repeatly omit the \n after 0? Please paste code that ran Gross. Twice nested for a simple count. Twice indented

[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer

2020-04-11 Thread Eryk Sun
Eryk Sun added the comment: > How do I get to the "rocket" launcher? The py.exe launcher is installed by default with the Python 3 distribution from python.org. Did you install that, or did you install the app distribution from the Microsoft Store? --

[issue26571] turtle regression in 3.5

2020-04-11 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Is it possible to inheret a metaclass.

2020-04-11 Thread Peter Otten
Antoon Pardon wrote: > > > Op 9/04/20 om 18:37 schreef Peter Otten: >> Antoon Pardon wrote: >> >>> I am experimenting with subclasses that all need the same metaclass as >>> the base class. Is there a way to make the metaclass be inherited, so >>> that you don't have to repeat the "metaclass =

[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer

2020-04-11 Thread virtualnobi
virtualnobi added the comment: Eryk - thanks for your response. > I recommend selecting the installed "Python.File" progid instead. > It's the "Python" app with the launcher icon that has a rocket on it. I don't have a Python with rocket launcher. When I use "Open With" on Windows

[issue19468] Relax the type restriction on reloaded modules

2020-04-11 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21760] inspect documentation describes module type inaccurately

2020-04-11 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-11 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I've just compiled python with (xlc 16.1.0, debug build) and can't experience that compile failure, can you give a specific spot that failure happens? -bash-4.4$ ./python -m test.pythoninfo|grep -E 'CFLAGS|CC|OPT|LDFLAGS' sysconfig[CC]:

[issue40235] confusing documentation for IOBase.__exit__

2020-04-11 Thread Daniel Holth
Daniel Holth added the comment: Thanks, I'm sorry I didn't save when I was having my strange problem. The io module is still practically undocumented. It should have examples subclasses for each class, perhaps a link to the PEP and a link to a Python implementation of the module.

[issue40221] Use new _at_fork_reinit() lock method in multiprocessing

2020-04-11 Thread Dong-hee Na
Dong-hee Na added the comment: we should find all usages from Lib/multiprocessing/*.py -- ___ Python tracker ___ ___

[issue40218] sys.executable is a false path if python is executed from gdb

2020-04-11 Thread Volker Weißmann
Volker Weißmann added the comment: "I have never used gdb, but I am curious what *is* the path to the python running the python code after 'python'? Is it part of or included with gdb?" I honestly don't know. I think the python interpreter gets compiled into the python binary, because as a

[issue40225] recursive call within generator expression is O(depth)

2020-04-11 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +18828 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19473 ___ Python tracker ___

[issue40221] Use new _at_fork_reinit() lock method in multiprocessing

2020-04-11 Thread Dong-hee Na
Dong-hee Na added the comment: I am going to take a look -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40225] recursive call within generator expression is O(depth)

2020-04-11 Thread Mark Shannon
Mark Shannon added the comment: The problem is that generators always raise an exception, even when they terminate normally. They don't in 2.7 and didn't prior to https://github.com/python/cpython/commit/1f7ce62bd61488d5d721896a36a1b43befab88b5#diff-23c87bfada1d01335a3019b9321502a0

[issue40203] Warn about invalid PYTHONUSERBASE

2020-04-11 Thread Volker Weißmann
Volker Weißmann added the comment: "there is no good reason to do so" meant that there is no good reason to set PYTHONUSERBASE to non existing path or a path that is not a directory. The history behind this bug report is that I used a program that, because of a bug in this program, set

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-11 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I have working code that checks if there is a quotation mark right after an identifier. Here is an example: ╰─ ./python Python 3.9.0a5+ (heads/pegen-dirty:502dfb719e, Apr 11 2020, 14:43:12) [GCC 9.2.1 20191008] on linux Type "help", "copyright",

[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer

2020-04-11 Thread Eryk Sun
Eryk Sun added the comment: An "Applications\python.exe" progid gets created by browsing for "python.exe" when configuring the file association. For example, it gets created by the Windows shell (Explorer) via "open with" -> "choose another app" -> "look for another app on this PC". The

[issue40225] recursive call within generator expression is O(depth)

2020-04-11 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I've been looking at this, I find the effect more visible when you don't do the division in the last print(). After bisecting, it looks like ae3087c6382011c47db82fea4d05f8bbf514265d may account for most of the performance gap between 3.6 and 3.7. --

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-11 Thread hai shi
hai shi added the comment: FWIW, gcc Instrumentation Options in https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html -- ___ Python tracker ___

Re: RFC: For Loop Invariants

2020-04-11 Thread Rhodri James
On 10/04/2020 21:44, Elliott Dehnbostel wrote: Hello Everyone, I've also posted this to the python-ideas mailing list, but I thought to post here as well for a more general audience. If I've done this incorrectly, please let me know so that I can improve/revise. I'm new to the Python community

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-11 Thread hai shi
hai shi added the comment: After `CFLAGS` replcaced by `CFLAGS_NODIST`, some extension module built failed, some info like: *** WARNING: renaming "_struct" since importing it failed: build/lib.linux-x86_64-3.9/_struct.cpython-39-x86_64-linux-gnu.so: undefined symbol: __gcov_merge_add the

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-11 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: In my understanding of the C code that's what the C tokenizer is doing as well. Here's the relevant snippet of the tokenizer (https://github.com/python/cpython/blob/4b222c9491d1700e9bdd98e6889b8d0ea1c7321e/Parser/tokenizer.c#L1358): When the tokenizer

[issue39943] Meta: Clean up various issues in C internals

2020-04-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18827 pull_request: https://github.com/python/cpython/pull/19472 ___ Python tracker ___

[issue40254] pyspecific directives are not translatable

2020-04-11 Thread Tomohiko Kinebuchi
Change by Tomohiko Kinebuchi : -- keywords: +patch pull_requests: +18825 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19470 ___ Python tracker

[issue40254] pyspecific directives are not translatable

2020-04-11 Thread Tomohiko Kinebuchi
New submission from Tomohiko Kinebuchi : The new mechanism of Sphinx for internationalization was introduced at Sphinx 1.8, but directives implemented on pyspecific.py were not updated to follow that renewal. As a result, the text of these directives is left untranslated. (e.g.

[issue40129] Add test classes for custom __index__, __int__, __float__ and __complex__

2020-04-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40126] Incorrect error handling in unittest.mock

2020-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4b222c9491d1700e9bdd98e6889b8d0ea1c7321e by Serhiy Storchaka in branch 'master': bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351) https://github.com/python/cpython/commit/4b222c9491d1700e9bdd98e6889b8d0ea1c7321e

[issue39943] Meta: Clean up various issues in C internals

2020-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cd8295ff758891f21084a6a5ad3403d35dda38f7 by Serhiy Storchaka in branch 'master': bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345)

[issue40235] confusing documentation for IOBase.__exit__

2020-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot reproduce the issue. __exit__() calls close(). >>> import io >>> class F(io.IOBase): ... def close(self): ... print('close') ... super().close() # set closed = True ... >>> with F(): pass ... close -- nosy:

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer

2020-04-11 Thread virtualnobi
New submission from virtualnobi : Recently installed Python 3.8 (from 2.7) on Windows 10, and all my scripts didn't work anymore. For some strange reason > python -s script.py args would put the args into sys.argv[], while > script.py args would only show the script in sys.argv[]. I found

Re: Is it possible to inheret a metaclass.

2020-04-11 Thread Pieter van Oostrum
Pieter van Oostrum writes: > Your Pardon is not a class, it is a function. Class A is created by > type(cls, *args), so 'type' is the metaclass of A, and therefore also of > B. > Creation of B does not call Pardon. With a class it *does* work: In [74]: class Pardon(type): ... def