[issue1230540] sys.excepthook doesn't work in threads

2018-04-08 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___

[issue33245] Unable to send CTRL_BREAK_EVENT

2018-04-08 Thread Ofek Lev
New submission from Ofek Lev : Vault (https://github.com/hashicorp/vault) requires the use of signals to trigger certain output https://www.vaultproject.io/docs/internals/telemetry.html. The required signal isn't sent on py2.7: >>> import os >>> import signal >>>

[issue33244] Overflow error

2018-04-08 Thread Vignesh
New submission from Vignesh : Help me to recover this... -- assignee: terry.reedy components: IDLE files: New Doc 2018-04-09.pdf messages: 315107 nosy: Vignesh, terry.reedy priority: normal severity: normal status: open title: Overflow error type:

[issue33243] nltk is not working properly

2018-04-08 Thread Ali Abbas
New submission from Ali Abbas : nltk is not working properly, showing this error Traceback (most recent call last): File "token.py", line 1, in from nltk.tokenize import word_tokenize, sent_tokenize File "D:\PYTHON36\lib\site-packages\nltk\__init__.py", line 89,

[issue33240] shutil.rmtree fails when the inner floder is opened in Explorer on Windows

2018-04-08 Thread Eryk Sun
Eryk Sun added the comment: A sub-millisecond wait is fairly quick, but it depends on the machine speed. I should have included a counter. Try the following. It's not reproducing the problem if num_retries doesn't get incremented. import os import time

[issue12015] possible characters in temporary file name is too few

2018-04-08 Thread miss-islington
miss-islington added the comment: New changeset 335efd7c252799eeeb8cbf51d178b1b897a91ae2 by Miss Islington (bot) in branch '3.6': Update docstring of tempfile._RandomNameSequence (GH-6414)

[issue33240] shutil.rmtree fails when the inner floder is opened in Explorer on Windows

2018-04-08 Thread Yu Liu
Yu Liu added the comment: The result is 0.00026412295632975946 on my computer. Does this mean it is caused by an anti-malware program? -- ___ Python tracker

[issue12015] possible characters in temporary file name is too few

2018-04-08 Thread miss-islington
miss-islington added the comment: New changeset d964f51f813282171d4da831e8de0fe003253e9e by Miss Islington (bot) in branch '3.7': Update docstring of tempfile._RandomNameSequence (GH-6414)

[issue12015] possible characters in temporary file name is too few

2018-04-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6125 ___ Python tracker ___

[issue12015] possible characters in temporary file name is too few

2018-04-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6124 ___ Python tracker ___

[issue12015] possible characters in temporary file name is too few

2018-04-08 Thread INADA Naoki
INADA Naoki added the comment: New changeset 9c463ec88ba21764f6fff8e01d6045a932a89438 by INADA Naoki (Wolfgang Maier) in branch 'master': Update docstring of tempfile._RandomNameSequence (GH-6414)

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2018-04-08 Thread Martin Falatic
Martin Falatic added the comment: The correction of `buffering=None` --> `buffering=-1` for the defaults definitely needs to happen. A reference to `open()` is already present in the 3.x documentation: "buffering, encoding and newline are interpreted as for open()."

[issue33242] Support binary symbol names

2018-04-08 Thread Eryk Sun
Eryk Sun added the comment: If you're automatically wrapping a C source file and don't know the source encoding, you could naively decode it as Latin-1. You're still faced with the problem of characters that Python doesn't allow in identifiers. For example, gcc allows "$"

[issue33242] Support binary symbol names

2018-04-08 Thread Matthias Urlichs
Matthias Urlichs added the comment: Well, the original problem remains: symbol names aren't constrained to UTF-8 … so if I happen to stumble onto one of those (maybe generated by a code obfuscator), the answer is "don't use Python3 then"? --

[issue33242] Support binary symbol names

2018-04-08 Thread Eryk Sun
Change by Eryk Sun : -- resolution: not a bug -> rejected ___ Python tracker ___ ___

[issue33242] Support binary symbol names

2018-04-08 Thread Eryk Sun
Eryk Sun added the comment: Field names define CField descriptor attributes on the class. Attribute names should be strings, not bytes. There's no syntactically clean way to use a bytes name. Consider the example of a generic property on a class: >>> T = type('T', (),

[issue33242] Support binary symbol names

2018-04-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___

[issue33242] Support binary symbol names

2018-04-08 Thread Matthias Urlichs
New submission from Matthias Urlichs : ctypes should support binary symbols. Rationale: There's no requirement that the symbol name in question is encoded as ASCII or UTF-8. >>> import ctypes >>> t = type('iface', (ctypes.Structure,), {'_fields_': [(b'c_string_symbol',

[issue24068] statistics module - incorrect results with boolean input

2018-04-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: Fixed as part of resolving issue 25177. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue25177] OverflowError in statistics.mean when summing large floats

2018-04-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: Steven's commit here also fixed issue 24068. -- nosy: +wolma ___ Python tracker

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-04-08 Thread Ned Deily
Ned Deily added the comment: I don't know anything about appJar (looks interesting!) but any issue like this is almost certainly a Tk issue, since Python's tkinter provides a fairly lightweight wrapper around calls to Tk. As far as I can tell from a quick test, it appears

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-04-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Side note: > One concern I do have - while writing the patch, I noticed the existing > submit method (specifically the adjust_thread_count function) isn't thread > safe. True. The executor is obviously thread-safe internally (as it handles

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If each worker thread ties up other resources in an application, such as > handles to server connections, conserving threads could have a significant > impact. You may want to implement a pooling mechanism for those connections,

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not fond of this proposal. The existing behaviour is harmless; especially for a thread pool, since threads are cheap resources. Improving the logic a bit might seem nice, but it also complicates the executor implementation a bit more.

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-04-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-04-08 Thread Louis Martin
New submission from Louis Martin : Tested with : from appJar import gui with gui() as app: app.label('hello world', tip="help me") app.addLabel("l1", "text") app.setLabelTooltip("l1", "more help") -- ___

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-04-08 Thread Louis Martin
Change by Louis Martin : -- components: Tkinter nosy: louis-martin priority: normal severity: normal status: open title: Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer versions: Python 3.6

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2018-04-08 Thread Ned Deily
Ned Deily added the comment: Would you care to provide a PR fix with a test? -- keywords: +easy nosy: +ned.deily stage: -> needs patch ___ Python tracker

[issue25370] Add support of pickling very large bytes and str objects with protocol < 4

2018-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, now that protocol 4 is the default, this isn't needed anymore, right? -- ___ Python tracker

[issue25451] tkinter: PhotoImage transparency methods

2018-04-08 Thread Matthias Kievernagel
Change by Matthias Kievernagel : -- nosy: +mkiever ___ Python tracker ___ ___

[issue25370] Add support of pickling very large bytes and str objects with protocol < 4

2018-04-08 Thread Igor
Change by Igor : -- nosy: +i3v ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28053] parameterize what serialization is used in multiprocessing

2018-04-08 Thread Igor
Change by Igor : -- nosy: +i3v ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33198] Build on Linux with --enable-optimizations fails

2018-04-08 Thread Antoine Pitrou
Change by Antoine Pitrou : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list

[issue33198] Build on Linux with --enable-optimizations fails

2018-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I wasn't able to reproduce the test_httplib with gcc 5.4.1 on Ubuntu 16.04. It would be nice if you could get more information about the crash by printing the gdb backtrace. It seems there is some help here doing that:

[issue33233] Suggest third-party cmd2 module as alternative to cmd

2018-04-08 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29613] Support for SameSite Cookies

2018-04-08 Thread Alex Gaynor
Alex Gaynor added the comment: Good catch. -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue25735] math.factorial doc should mention integer return type

2018-04-08 Thread Akshay Sharma
Change by Akshay Sharma : -- pull_requests: +6123 stage: needs patch -> patch review ___ Python tracker ___

[issue13940] imaplib: Mailbox names are not quoted

2018-04-08 Thread Alexander Harkness
Alexander Harkness added the comment: Pull Request opened on GH to fix this issue: https://github.com/python/cpython/pull/6395 -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-04-08 Thread Nick Coghlan
Change by Nick Coghlan : -- stage: patch review -> commit review ___ Python tracker ___

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-04-08 Thread Nick Coghlan
Change by Nick Coghlan : -- keywords: +patch pull_requests: +6122 stage: needs patch -> patch review ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2018-04-08 Thread Akshay Sharma
Change by Akshay Sharma : -- keywords: +patch pull_requests: +6120 stage: -> patch review ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2018-04-08 Thread Akshay Sharma
Akshay Sharma added the comment: Hi, will it be good to link the cross-reference for `open`(https://docs.python.org/3/library/functions.html#open) in the documentation? I think specifically mentioning the usage of the `buffering` is a better way. --

[issue29613] Support for SameSite Cookies

2018-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Alex, the PR has landed into 3.8 (master). Should the issue's "versions" field be updated? Now it is 3.7 -- nosy: +asvetlov ___ Python tracker

[issue15727] PyType_FromSpecWithBases tp_new bugfix

2018-04-08 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +encukou, ncoghlan ___ Python tracker ___ ___

[issue33229] Documentation - io — Core tools for working with streams - seek()

2018-04-08 Thread Mikhail Zakharov
Change by Mikhail Zakharov : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31201] make test: module test that failed doesn't exist

2018-04-08 Thread Aaron Ang
Change by Aaron Ang : -- keywords: +patch pull_requests: +6119 stage: needs patch -> patch review ___ Python tracker ___

[issue23403] Use pickle protocol 4 by default?

2018-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shelve still uses protocol 3 by default. Should it be bumped too? -- ___ Python tracker