Re: Ask for help about class variable scope (Re: Why doesn't a dictionary work in classes?)

2018-12-28 Thread jfong
eryk sun at 2018/12/27 UTC+8 PM 6:58:33 wrote: > On 12/27/18, jf...@ms4.hinet.net wrote: > > > > I still don't get it. When I change it to using list comprehension, the > > problem is still there. (it now has no late-binding variable, right? :-) > > > class Too: > > ... XS = [15, 15, 15,

Re: dangerous class neighborhood

2018-12-28 Thread Abdur-Rahmaan Janhangeer
thanks, the 3 dots are more explicit, thought was another py trick yours, Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10628 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10629 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Facing an Error after migrating from python 3.4.1 to python 3.6.6 ( Failed to import the site module )

2018-12-28 Thread Piet van Oostrum
sandeep.ba...@gmail.com writes: > ``` > Error code: > -- > > > Traceback (most recent call last): > File >

[issue35603] table header in output of difflib.HtmlDiff.make_table is not escaped and can be rendered as code in the browser

2018-12-28 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : HtmlDiff.make_table takes fromdesc and todesc that are not escaped causing problems while rendering html when they contain tags like fromdesc="", todesc="". There is no validation for them to be filenames so they could be arbitrary strings.

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: What Python version do you use? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10627 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10627, 10628, 10629 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10627, 10628 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35595] Add sys flag to always show full paths in stack traces (instead of relative paths)

2018-12-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

graded randomness

2018-12-28 Thread Abdur-Rahmaan Janhangeer
greetings, let us say that i have a box of 5 balls, green balls - 2 with probability 2/5 red balls 2 - with probability 2/5 blue balls 1 - with probability 1/5 how to program the selection so that the random choices reflect the probabilities? -- Abdur-Rahmaan Janhangeer

Re: graded randomness

2018-12-28 Thread Abdur-Rahmaan Janhangeer
@Tim do you have something like choice(balls) >>> red and subsequent repetitions for long enough yield approximately 2/5 times r 2/5 times g and 1/5 b like one without random choice over list/tuples Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2018-12-28 Thread Alisue Lambda
Alisue Lambda added the comment: https://github.com/python/asyncio/pull/419 It seems the PR above which has not merged solve the issue. -- ___ Python tracker ___

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: graded randomness

2018-12-28 Thread Abdur-Rahmaan Janhangeer
ah yes, powerful enough for further customisations * scratches head thanks everybody ! Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

[issue35604] Is python used more than Java Nowadays?

2018-12-28 Thread manchun kumar
New submission from manchun kumar : Whether we should choose Python or Java! Which one is easy or which is used more often? These questions are natural if you belong to this industry where everyone is talking about this. Programmers community endlessly debate about these two languages and

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There were no changes in zipimport between 3.7.1 and 3.7.2, and there were just few looking unrelated changes in the import machinery. Maybe this is caused by some changes in the interpreter initialization code? -- nosy: +brett.cannon, eric.snow,

[issue35604] Is python used more than Java Nowadays?

2018-12-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please add some context over what this has to do with performance and docs category. The tracker might not be the appropriate place to have language debates. Please specify the outcome of the issue since your description has no actionable item or

Re: graded randomness

2018-12-28 Thread Ben Bacarisse
Abdur-Rahmaan Janhangeer writes: > let us say that i have a box of 5 balls, > > green balls - 2 with probability 2/5 > red balls 2 - with probability 2/5 > blue balls 1 - with probability 1/5 > > how to program the selection so that the random choices reflect the > probabilities? >>> import

Re: graded randomness

2018-12-28 Thread Chris Angelico
On Sat, Dec 29, 2018 at 12:28 AM Abdur-Rahmaan Janhangeer wrote: > > woops @ben me too i got that solution but i'm searching for a neater answer. > > let us say i'm using it over new data, 1 million data of red blue green can > be saved by just dealing with the probabilities ^^_ Assuming you're

[issue35604] Is python used more than Java Nowadays?

2018-12-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is spam. -- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35594] Python script generating Segmentation Fault

2018-12-28 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the report, but that example is so large and complicated that it's difficult for someone not familiar with it to understand what's going on. If you could simplify it down to the smallest example that duplicates the problem, then perhaps we could

Re: graded randomness

2018-12-28 Thread Tim Chase
On 2018-12-28 16:15, Abdur-Rahmaan Janhangeer wrote: > greetings, > > let us say that i have a box of 5 balls, > > green balls - 2 with probability 2/5 > red balls 2 - with probability 2/5 > blue balls 1 - with probability 1/5 > > how to program the selection so that the random choices reflect

[issue11191] test_search_cpp error on AIX (with xlc)

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332590 Removed message: https://bugs.python.org/msg332594 Removed message: https://bugs.python.org/msg332608 Removed message: https://bugs.python.org/msg332609 ___ Python tracker

[issue34373] test_time errors on AIX

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332608 Removed message: https://bugs.python.org/msg332609 ___ Python tracker ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332594 Removed message: https://bugs.python.org/msg332608 ___ Python tracker ___

[issue22703] Idle Code Context menu entrie(s)

2018-12-28 Thread Tal Einat
Tal Einat added the comment: Terry, I'm having trouble getting Tk to work on my Mac since the Mojave update, so I'm not yet able to check this. -- ___ Python tracker ___

[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mdk, steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34373] test_time errors on AIX

2018-12-28 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e2926b72488596f59e43c27f3b7cedf0c5b9e88e by Nick Coghlan (Michael Felt) in branch 'master': bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726)

[issue34897] distutils test errors when CXX is not set

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

Re: graded randomness

2018-12-28 Thread Tim Chase
On 2018-12-28 17:31, Abdur-Rahmaan Janhangeer wrote: > do you have something like > > choice(balls) > > >>> red Don't specify the "k=" (which defaults to 1 if you omit it) and use the first element of the results: >>> from random import choices >>> distribution = {"green":2, "red": 2,

[issue35588] Speed up mod/divmod/floordiv for Fraction type

2018-12-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: divmod imposes higher fixed overhead in exchange for operating more efficiently on larger values. Given the differences are small either way, and using divmod reduces scalability concerns for larger values (which are more likely to occur in code that

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread miss-islington
miss-islington added the comment: New changeset bbf695441af9def8a121ff3e245415d9fc0bab9a by Miss Islington (bot) in branch '3.7': bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)

Re: graded randomness

2018-12-28 Thread Abdur-Rahmaan Janhangeer
woops @ben me too i got that solution but i'm searching for a neater answer. let us say i'm using it over new data, 1 million data of red blue green can be saved by just dealing with the probabilities ^^_ Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ

[issue35591] IDLE: Traceback on Find Selection

2018-12-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for looking at this one. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewing the diff at https://github.com/python/cpython/compare/v3.7.1...v3.7.2 the only item I've spotted that seems like it could even plausibly be related is the tweak at

Re: ANNOUNCE: TIB/Rendezvous module for python

2018-12-28 Thread zhen . zhong
Hi, There, I am an engineer in Taiwan and I was trying to install rvpython-2.1final.tar.gz but it's built up in python 2.x which cannot be installed in python 3 or above. Is there any officially released version of rvpython compatible with python 3 or above? Thank

[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile
New submission from Anthony Sottile : Noticed this while packaging 3.6.8 for deadsnakes (ubuntu ppa) This patch: https://github.com/python/cpython/pull/11251 Requires a version of sphinx where `sphinx.util.logging.getLogger` is available. It appears that the first version which that was

Re: Undocumented issue: Open system call blocks on named pipes (and a feature request)

2018-12-28 Thread Grant Edwards
On 2018-12-27, Daniel Ojalvo via Python-list wrote: open("this_is_a_pipe") > Opening a tty device can also block[1]. However, if somebody is using the open() builtin on tty devices that's probably the least of their problems. [1] Technically, opening any character-mode device could block

[issue27643] test_ctypes fails on AIX with xlc

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue11192] test_socket error on AIX

2018-12-28 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332590 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332590 Removed message: https://bugs.python.org/msg332607 Removed message: https://bugs.python.org/msg332661 ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332590 Removed message: https://bugs.python.org/msg332607 ___ Python tracker ___

[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10630 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10630, 10631, 10632 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10630, 10631 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11191] test_search_cpp error on AIX (with xlc)

2018-12-28 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset ed57e13df60ce28ba89bd49c9c5a15b1d9bf79c7 by Nick Coghlan (Michael Felt) in branch 'master': bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg332609 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat
Tal Einat added the comment: New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 'master': bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213) https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a

[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Anthony Sottile
Anthony Sottile added the comment: oops, pressed the button too quickly, meant to mention that sphinx 1.6 was released 2017-05 -- ___ Python tracker ___

[issue34055] IDLE: erroneous 'smart' indents in shell

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10643 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10645 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5471420faa84519530f29b08f2b042b2288e3e96 by Pablo Galindo in branch 'master': bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH-11337)

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10646, 10647, 10648, 10649, 10650 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10645, 10646 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10647, 10650 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10646, 10647, 10649, 10650 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10645, 10646, 10647 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35601] Race condition in test_signal_handling_args x86-64 High Sierra 3.75

2018-12-28 Thread miss-islington
miss-islington added the comment: New changeset 8f9228dd3a37c98876c9c8ff7fb0042650303474 by Miss Islington (bot) in branch '3.7': bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH-11337)

Re: Ask for help about class variable scope (Re: Why doesn't a dictionary work in classes?)

2018-12-28 Thread jfong
jf...@ms4.hinet.net於 2018年12月28日星期五 UTC+8下午4時04分07秒寫道: > eryk sun at 2018/12/27 UTC+8 PM 6:58:33 wrote: > > On 12/27/18, jf...@ms4.hinet.net wrote: > > > > > > I still don't get it. When I change it to using list comprehension, the > > > problem is still there. (it now has no late-binding

[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
Change by 白稳平 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
Change by 白稳平 : Removed file: https://bugs.python.org/file48020/新建文本文档.txt ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
New submission from 白稳平 : I used multi-processes to handle cpu intensive task,I have a thread reading data from stdin and put it to a input_queue, a thread get data from output_queue and write it to stdout, multiple processes get data from input queue,then handled the data,and put it to

[issue35607] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
Change by 白稳平 : -- components: Library (Lib) files: 新建文本文档.txt nosy: 白稳平 priority: normal severity: normal status: open title: python3 multiprocessing queue deadlock when use thread and process at same time type: behavior versions: Python 3.6 Added file:

[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
Change by 白稳平 : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread 白稳平
New submission from 白稳平 : I used multi-processes to handle cpu intensive task,I have a thread reading data from stdin and put it to a input_queue, a thread get data from output_queue and write it to stdout, multiple processes get data from input queue,then handled the data,and put it to

[issue35570] 2to3 creates code using deprecated imp module

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: It was decided in #21446 to only backport the change, labelled an enhancement, to 3.7 and it is now too late to challenge that decision as 3.6 only gets security fixes. -- nosy: +terry.reedy resolution: -> duplicate stage: -> resolved status: open

[issue35593] Register standard browser: Chrome

2018-12-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +10651, 10652 stage: -> patch review ___ Python tracker ___

[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi >def write_to_stdout(result_queue: Queue): I think that you have to write here a sleep. IMO this is blocking all. -- nosy: +eamanu ___ Python tracker

[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias
New submission from Emmanuel Arias : Hi! I prepare a little improve. I added some samples usage, some clarification and delete some whitespace unnecessary. Attach patch. Regards -- assignee: docs@python components: Documentation files: 0001-improve-abc.py-docstring.patch keywords:

[issue35593] Register standard browser: Chrome

2018-12-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10651 stage: -> patch review ___ Python tracker ___ ___

[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-28 Thread Emmanuel Arias
Emmanuel Arias added the comment: > data = result_queue.get() And this is blocked -- ___ Python tracker ___ ___ Python-bugs-list

[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +10653 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +10653, 10654 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35609] Improve of abc.py docstring

2018-12-28 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +10653, 10654, 10655 stage: -> patch review ___ Python tracker ___ ___

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Steve Dower
Steve Dower added the comment: I took a closer look at the diff since 3.7.1, and I'm not seeing anything either. I suspect we need to step through zipimport/importlib and figure out exactly where it rejects the .pyc files in the zip. -- ___

[issue35593] Register standard browser: Chrome

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10652 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35593] Register standard browser: Chrome

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: As near as I can tell, this is *not* a duplicate of #8232. -- nosy: +terry.reedy stage: patch review -> ___ Python tracker ___

[issue35594] Python script generating Segmentation Fault

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The script has 14 imports from 10 external packages, perhaps half of which include C code. In such cases, the crash is nearly always in the external package, and Daugeras has already identified a pandas routine. Daugeras, you can re-open if you gain

Passing back the ERRORLEVEL

2018-12-28 Thread Gisle Vanem
I have trouble understanding why a 'sys.exit(2)' is *not* passed back to the CMD shell in this little example: - c:\py_cmd_test.cmd -- @%WinDir%\py.exe -2 -x %~dp0py_cmd_test.cmd & exit /b %ERRORLEVEL% # The '-x' is for Python to skip the 1st line of this file. import sys print ("Hello,

[issue28009] core logic of uuid.getnode() is broken for netstat

2018-12-28 Thread Michael Felt
Michael Felt added the comment: p.s., removed 2.7 and 3.6 as too old for any interest. -- versions: -Python 2.7, Python 3.6 ___ Python tracker ___

[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10631 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: dangerous class neighborhood

2018-12-28 Thread Avi Gross
[REAL SUBJECT: an assortment of nothings] Python tricks? Speaking from a tutorial forum, tricks can catch people trying to learn. I am not sure of the history of the ellipsis object. >>> dir(...) ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__',

[issue22703] Idle Code Context menu entrie(s)

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I understand. Until tcl/tk can be patched to work with both Mohave and past macOS versions, it is a nasty situation. -- ___ Python tracker

[issue35555] IDLE: Gray out Code Context on non-editor windows

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10633, 10634, 10635 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-28 Thread Steve Dower
Steve Dower added the comment: None of the code you linked is defined on Windows at all, so it can't be that. Are any stat checks done when there's only a .pyc to import? Could it be deciding that the .pyc is out of date and then failing to find source? --

[issue35606] Add prod() function to the math module

2018-12-28 Thread Raymond Hettinger
New submission from Raymond Hettinger : Back in 2007, a user suggested a built-in prod() function with an API similar to the built-in sum() function. The proposal was rejected because it wasn't needed often enough to justify a builtin function. See https://bugs.python.org/issue1093 Though

[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2018-12-28 Thread Ned Deily
Ned Deily added the comment: I would view this as a build regression in 3.6.8 so I would accept a fix for the 3.6 branch. -- ___ Python tracker ___

[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c0381aaea4ad3e866bde70393c4f7efe9bcf3568 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325)

[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10636, 10637, 10638 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue28097] IDLE: document all key bindings, add menu items for more.

2018-12-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10636 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

Re: Undocumented issue: Open system call blocks on named pipes (and a feature request)

2018-12-28 Thread Chris Angelico
On Sat, Dec 29, 2018 at 4:24 AM Grant Edwards wrote: > > On 2018-12-27, Daniel Ojalvo via Python-list wrote: > > open("this_is_a_pipe") > > > > Opening a tty device can also block[1]. However, if somebody is using > the open() builtin on tty devices that's probably the least of their >

[issue35588] Speed up mod/divmod/floordiv for Fraction type

2018-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using divmod() makes the case of small integers 2-3% slower, but makes the case of large integers more significantly faster. And since the code with divmod() is simpler, I think it is worth to use it. The Fraction class also serves educational goals. The

[issue20849] add exist_ok to shutil.copytree

2018-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset 9e00d9e88fbf943987e4771c753f5ca8f794103e by Giampaolo Rodola (jab) in branch 'master': bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)

  1   2   >