[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > We report all sorts of things found by the bytecode compiler as SyntaxError. Except of these which are reported with IndentationError or its subclass TabError. -- ___ Python tracker

[issue34488] improve performance of BytesIO.writelines() by avoiding creation of unused PyLongs

2019-08-05 Thread Inada Naoki
Change by Inada Naoki : -- components: +IO -Extension Modules versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for going through the history of this issue. It was surprisingly convoluted. I still hope this feature comes to fruition. -- ___ Python tracker

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Happy to post a pull request if it would be considered. I don't we should do this. Mostly, it seems pointless, but it also isn't really something we would want people to be doing. > Should that give [1, 2, 3] or [1, 2, 3, 4]? I think that > either

[issue25172] Unix-only crypt should not be present on Windows.

2019-08-05 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: Hello I would like to work on this issue. First time contributor here. Would putting the import _crypt statement on line 3 in crypt.py inside a try/except block and checking to see if platform is windows then give an appropriate message be a good fix?

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Terry, I used a similar patch. My main use case was around typing where normal shell autocompletes it and was curious if it was intentional. I didn't know that windows didn't give keywords. The keywords are short and added very rarely and

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Both 3.7 and 3.8 are in feature-freeze, so the earliest we can get this would be 3.9. But before that, we have to decide on what reversing a reversed object means. it = reversed([1, 2, 3, 4]) next(it) list( reversed(it) ) Should that give [1, 2, 3] or [1,

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: But we don't do that with any of the other (many) errors detected by later passes of the compiler. Those report dozens of SyntaxErrors, with good descriptive messages. Users can search the web for those messages too. Also, I doubt that many people will

[issue37771] No equivalent of `inspect.getcoroutinestate` for PyAsyncGenASend instances

2019-08-05 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37771] No equivalent of `inspect.getcoroutinestate` for PyAsyncGenASend instances

2019-08-05 Thread GeeVye
New submission from GeeVye : In PEP 525, async generators were introduced. They use `.asend()` and `.athrow()` methods that return a "coroutine-like" object - specifically, a PyAsyncGenASend and PyAsyncGenAThrow respectively. While these "coroutine-like" object implement `.send()`,

Re: Python/SQLite best practices

2019-08-05 Thread Cameron Simpson
On 06Aug2019 00:01, Jonathan Moules wrote: Some gotcha tips from using SQLite with Python that I've encountered. [...] * To be reliably INSERTed Byte data should be first converted to sqlite3.Binary(my_data) explicitly Interesting. Is that Python 2 specific, or also in Python 3. Because

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Nick Coghlan
Nick Coghlan added the comment: I believe our main motivation for separating it out was the fact that even though TargetScopeError is a compile-time error, the affected code is syntactically fine - there are just issues with unambiguously inferring the intended read/write location for the

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The history is confusing. bpo user Louie Lu (louielu), as github user 'noname louisom', open PR 1511 for this existing issue on 2017 May 9. On May 12, he opened #30348 and PR 1512 with the tests for fetch_completions and get_entity that were part of PR

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Why is the code in `Lib/importlib/metadata/__init__.py` Mainly because originally, the code was in multiple modules. I'm happy for it to move into a single file module. -- ___ Python tracker

Re: Python/SQLite best practices

2019-08-05 Thread Jonathan Moules
Some gotcha tips from using SQLite with Python that I've encountered. You may already know some/all of these: * SQLite doesn't have a "Truncate" function - simply delete the file if possible for larger datasets. * Explicitly committing is good because the default python sqlite3 library does

[issue2889] curses for windows (alternative patch)

2019-08-05 Thread Ulf Magnusson
Ulf Magnusson added the comment: Just as an FYI, there is a repository for building curses wheels for Windows at https://github.com/zephyrproject-rtos/windows-curses, based on patches from here and Gohlke's work. Building wheels is less straightforward than it used to be, e.g. due to term.h

[issue37770] implement __reversed__ on reversed types

2019-08-05 Thread Jason Curtis
Change by Jason Curtis : -- title: reversed class should implement __reversed__ -> implement __reversed__ on reversed types ___ Python tracker ___

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
Jason Curtis added the comment: Ok, not so sure about the PR now; I dug around and realized this is a C implementation and my C is likely not strong enough! -- ___ Python tracker

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Eryk Sun
Eryk Sun added the comment: > I think this only happens with open(). Well, and everything else that calls a CRT function and relies on errno, such as C read() and write(). Though we'd have to look through on a case-by-case basis to ensure that _doserrno is valid in each case, i.e. that

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Eryk Sun
Eryk Sun added the comment: > First it seems the error is being raised incorrectly - winerror 2 is > for file not found, but it's being passed as errno 2. I think this only happens with open(). The _io module could use the CRT's _doserrno value to call

Re: Please help me

2019-08-05 Thread MRAB
On 2019-08-05 17:40, arash kohansal wrote: Hello ive just installed python on my pc and ive already check the path choice part but microsoft visual code can not find it and it does not have the reload item 1. Open Visual Studio Code. 2. Press F1, type "Python: Select Interpreter", and then

[issue37770] reversed class should implement __reversed__

2019-08-05 Thread Jason Curtis
New submission from Jason Curtis : I've just been trying to implement some logic which potentially involves reversing things back to their initial orders, and it'd be nice to just be able to call reversed() on something that has already been reversed. >>> reversed(reversed([1,2,3,4]))

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Guido van Rossum
Guido van Rossum added the comment: [Barry] > I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it > doesn't really explain why a subclass is necessary. I think seeing > "TargetScopeError" will be a head scratcher. Why not just SyntaxError > without introducing a

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Steve Dower
Steve Dower added the comment: Short of adding a popup into Python itself the first time you run it (and would that include if you run "pip" first?), we don't have any ability to extend the installer. We could reduce the "local-packages/Python37/site-packages" part of the path by

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 26f91db5ba487033994b396011518cfc80bf8401 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) (GH-15139)

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-08-05 Thread Christian Berger
Christian Berger added the comment: I have the same problem on RH6 with icc 2019.4 and Python 3.6.9. Do you want a new bug for that? Changing Include/pyatomic.h to use _Atomic as suggested by Victor in msg346785 leads to the error that _Atomic was undefined. -- nosy: +cberger

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I remembered this morning that we need to check test_tkk_guionly or (easier, but less obviously also all gui) test_tk either in test suite output, or run by itself with python -m test.test_tk # or test -ugui test_tk because idle it has non-gui tests that

[issue37769] Windows Store installer should warn user about MAX_PATH

2019-08-05 Thread Jonas Binding
New submission from Jonas Binding : The "Windows Store" installer for Python has a seemingly low entry barrier, causing people to install without reading something like https://docs.python.org/3.7/using/windows.html. However, due to the really long path it uses for Python (e.g.

Re: Python/SQLite best practices

2019-08-05 Thread Chris Angelico
On Tue, Aug 6, 2019 at 7:45 AM David Raymond wrote: > The context manager transaction feature I can see using, and might actually > start switching to it as it's explicit enough. Though oddly, __enter__ > doesn't seem to actually begin a transaction, not even a deferred one. It's > only

RE: Python/SQLite best practices

2019-08-05 Thread David Raymond
"What's the advantage of this over letting the connection object do that for you? As the context manager exits, it will automatically either commit or roll back. If you want to guarantee closing _as well_, then you can do that, but you can at least use what already exists." After review I guess I

ANN: poliastro 0.13.0 released 

2019-08-05 Thread Juan Luis Cano Rodríguez
Hi all, It fills us with astronomical joy to announce the release of poliastro 0.13.0!  poliastro is a pure Python library that allows you to simulate and analyze interplanetary orbits in a Jupyter notebook in an interactive and easy way, used in academia and the industry by people from all

[issue21261] Teach IDLE to Autocomplete dictionary keys

2019-08-05 Thread Tal Einat
Tal Einat added the comment: I had no idea that this was desired... I had this working in a old version of autocomplete back before 2010! I'm not sure whether I'll be able to find it though. I can't understand why Louie's PR was closed, it seemed to be going in the right direction... Any

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread Chris Angelico
On Tue, Aug 6, 2019 at 7:09 AM DL Neil wrote: > As a matter of interest (and if you don't mind sharing), which packages > are included in the organisation's student "stack"? > (again: no 'judgement', please) TBH the best stack I can describe is what we teach for JavaScript students, as they're

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Ned Deily
Ned Deily added the comment: Terry, using an out-of-date version of Tcl/Tk is the least of the problems here. My point was that, the way things are now, IDLE GUI tests are not being run at all on macOS Azure CI runs regardless of the Tk version in use and, AFAIK, there is no easy way to

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 6/08/19 12:04 AM, Chris Angelico wrote: On Mon, Aug 5, 2019 at 8:54 PM DL Neil wrote: On 3/08/19 5:50 PM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: ... Sometimes there can be magical firewall penetration tricks that

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Raymond, I'm interested in your opinion on this. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Tal Einat added the comment: See PR GH-15140. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +14878 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15140 ___ Python tracker

[issue37767] TTK Treeview alternating row color not working

2019-08-05 Thread Zachary Ware
Zachary Ware added the comment: That file is part of Tcl/Tk and just bundled with Python on Windows; please raise an issue on the Tk issue tracker (which appears to be here: https://core.tcl-lang.org/tk/ticket). If and when the change is released in a new version of Tcl/Tk, please feel

[issue37768] IDLE: Show help(object) output in a text viewer

2019-08-05 Thread Tal Einat
New submission from Tal Einat : Currently, IDLE just writes the entire help message into the shell. If auto-squeezing is enabled, then long help messages are automatically squeezed, following which the help text can be viewed in a text viewer or expanded inline. This is still not great UX.

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are proposing to wrap the site-added help with a function that would check object outputs and put them either in the shell unsqueezed or directly into a viewer. Seems plausible. -- ___ Python

[issue37767] TTK Treeview alternating row color not working

2019-08-05 Thread Christopher Caputo
New submission from Christopher Caputo : The default installation of Python3.7 on all my Win10 machines has a ttk theme file that disables treeview alternating row colors. The specific file for me is "vistaTheme.tcl" located at "C:\Program Files\Python37\tcl\tk8.6\ttk". In the #Treeview

[no subject]

2019-08-05 Thread arash kohansal
Hello i have a laptob and working with windows 10 ive installed python in my pc and ive already check the path choice pary in the installation im working with microsoft visual studio code but it cant find the python installed extention and it doesnt have the green star on the top of python

[issue27609] IDLE completions: format, factor, and fix

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37765 Include keywords in ''(__main__) list. ## Annotate completion list, at least as an option, with 'keyword' or class, possibly prefixed with 'built-in', so 'built-in function', 'function', and so on. #37766 revise fetch_completions, add htest

[issue37766] IDLE autocomplete: revise fetch_completions, add htest

2019-08-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : #36419 did not cover fetch_ completions. Most of the remaining 7% of autocomplete not covered by tests is in that function. I want to rename smalll to small and bigl to big (and in test file); they are awkward to read and write. I may want to revise

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +14877 pull_request: https://github.com/python/cpython/pull/15139 ___ Python tracker ___

[issue37759] Polish whatsnew for 3.8

2019-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4f9ffc9d1a6a293563def4a13331302219b4 by Raymond Hettinger in branch 'master': bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) https://github.com/python/cpython/commit/4f9ffc9d1a6a293563def4a13331302219b4

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 6/08/19 1:43 AM, Hugh Sasse wrote: I might not have followed this thread closely enough.  I remembered there is a thing called Copilot. It connects two machines so that two people can work together. https://www.copilot.com/About If this is the wrong answer, it may at least help define the

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +14876 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15138 ___ Python tracker

[issue37765] IDLE: Include keywords in __main__ autocomplete list

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: If keywords are included when the REPL has tab completions (which Windows doesn't), then it is plausible that IDLE should. It could be considered part of 'Shell should (mostly) imitate REPL'. But I can see Tal's point, though the relative expansion is

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Regarding help(), there's actually a comment in IDLE's code by KBK that it should be opened in a reader (this was before TextViewer was added). IMO that's a much better approach for long help() outputs, and is simple to implement. --

Please help me

2019-08-05 Thread arash kohansal
Hello ive just installed python on my pc and ive already check the path choice part but microsoft visual code can not find it and it does not have the reload item -- https://mail.python.org/mailman/listinfo/python-list

Re: Python/SQLite best practices

2019-08-05 Thread Chris Angelico
On Tue, Aug 6, 2019 at 5:05 AM David Raymond wrote: > I believe the default Connection context manager is set up for the context to > be a single transaction, with a commit on success or a rollback on a failure. > As far as I know it does NOT close the connection on exiting the context >

RE: Python/SQLite best practices

2019-08-05 Thread David Raymond
Not a full expert, but some notes: I believe the default Connection context manager is set up for the context to be a single transaction, with a commit on success or a rollback on a failure. As far as I know it does NOT close the connection on exiting the context manager. That only happens

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Tal Einat
Tal Einat added the comment: To be clear, I'm currently -1 on this suggestion. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Tal Einat
Tal Einat added the comment: The global completion list (i.e. when not completing a file name or object attribute) is already full of all the built-ins, imported modules and variables. So IMO we'd need a good reason to add yet more options into the completions list. Personally, I don't

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @jaraco - Why is the code in `Lib/importlib/metadata/__init__.py` instead of `Lib/importlib/metadata.py`? Is that to make it easier to port between CPython stdlib and the standalone version? -- ___ Python

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Including a module directive with synopsis as below in importlib.metadata.rst seems to fix this. It would also be good to include a link to source code from the importlib.metadata docs page since it's written in Python. .. module::

Re: Python/SQLite best practices

2019-08-05 Thread Karsten Hilbert
On Mon, Aug 05, 2019 at 08:12:27PM +0200, Karsten Hilbert wrote: > Transactions involving several commands may require passing > around of connections and/or cursors, however. Among chains of python code, that is. Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B --

Re: Python/SQLite best practices

2019-08-05 Thread Karsten Hilbert
On Mon, Aug 05, 2019 at 01:49:24PM -0400, Dave via Python-list wrote: > * Passing connections and cursors - good, bad indifferent? I try to avoid > passing file handles unless necessary, so I view connections and cursors the > same. Connections may be more long-lived, per thread perhaps.

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37765] Include keywords in autocomplete list for IDLE

2019-08-05 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently, the basic repl for python provides keywords as part of autocompletion but IDLE doesn't provide them. I was trying to build an async repl on top of IDLE to support top level await statements as part of IDLE since "python -m asyncio"

Python/SQLite best practices

2019-08-05 Thread Dave via Python-list
I'm looking for some tips from experienced hands on on this subject. Some of the areas of interest are (feel free to add more): * Passing connections and cursors - good, bad indifferent? I try to avoid passing file handles unless necessary, so I view connections and cursors the same. Though

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There's an importlib.metadata.rst file which describes how to use the API, but that doesn't appear to be linked from either the main library ToC or the importlib documentation itself. I'll see if I can put together a PR to fix this. -- assignee:

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: One may copy and paste small chunks of code and output into a message. By 'demo script', I presume you mean the following. import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train),(x_test, y_test) = mnist.load_data() x_train, x_test =

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: A4: Autosqueeze long lines output in chunks. tensorflow.keras appears to do this. See #37762. Easy reproducer: for i in range(1): print('%6s' % i, end='') --

[issue37757] TargetScopeError not raised for comprehension scope conflict

2019-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it doesn't really explain why a subclass is necessary. I think seeing "TargetScopeError" will be a head scratcher. Why not just SyntaxError without introducing a new exception?

[issue37706] IDLE: fix sidebar click-drag bug and macOS test failures

2019-08-05 Thread Steve Dower
Steve Dower added the comment: All I can add is these are the steps: https://github.com/python/cpython/blob/master/.azure-pipelines/macos-steps.yml The Linux steps use xvfb, but the macOS steps do not. And we don't do anything at all to install Tcl/Tk on the build agent. --

[issue32912] Raise non-silent warning for invalid escape sequences

2019-08-05 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37722] imaplib crashes when trying to read a letter from an imap server imaps.почта.рус

2019-08-05 Thread My Tran
Change by My Tran : -- components: +email -Library (Lib) nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue37764] email.Message.as_string infinite loop

2019-08-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37764] email.Message.as_string infinite loop

2019-08-05 Thread My Tran
New submission from My Tran : The following will hang the system until it runs out of memory. import email import email.policy text = """From: u...@host.com To: u...@host.com Bad-Header: =?us-ascii?Q?LCSwrV11+IB0rSbSker+M9vWR7wEDSuGqmHD89Gt=ea0nJFSaiz4vX3XMJPT4vrE?=

Re: base = 1024 if (gnu or binary) else 1000

2019-08-05 Thread MRAB
On 2019-08-05 16:01, Hongyi Zhao wrote: Hi, I read the source code of of `humanize/filesize.py' and find the 24 line writing as follows: base = 1024 if (gnu or binary) else 1000 It seems this is not the standard usage of if ... else Is this a variant of lambda or some others? Could you

Re: base = 1024 if (gnu or binary) else 1000

2019-08-05 Thread Rhodri James
On 05/08/2019 16:01, Hongyi Zhao wrote: Hi, I read the source code of of `humanize/filesize.py' and find the 24 line writing as follows: base = 1024 if (gnu or binary) else 1000 It seems this is not the standard usage of if ... else It's a perfectly standard conditional *expression*

Re: Python scripts

2019-08-05 Thread Rhodri James
On 04/08/2019 10:29, Arun Kumar wrote: In python application in scripts folder files are missing then how to get those files. That depends on exactly what you mean by "files are missing". If (most likely) the application is trying to import a third party module that you don't have

[issue37763] Need setup.py to pick up -isystem flags from CPPFLAGS

2019-08-05 Thread Johan Herland
Change by Johan Herland : -- keywords: +patch pull_requests: +14874 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15136 ___ Python tracker ___

Python scripts

2019-08-05 Thread Arun Kumar
Dear sir In python application in scripts folder files are missing then how to get those files. -- https://mail.python.org/mailman/listinfo/python-list

[issue37763] Need setup.py to pick up -isystem flags from CPPFLAGS

2019-08-05 Thread Johan Herland
New submission from Johan Herland : First time contributor here, still learning the ropes. We're cross-compiling python in an environment where we set up CPPFLAGS, LDFLAGS, etc. to point directly to the locations where we have built Python's dependencies. For example, we will typically build

base = 1024 if (gnu or binary) else 1000

2019-08-05 Thread Hongyi Zhao
Hi, I read the source code of of `humanize/filesize.py' and find the 24 line writing as follows: base = 1024 if (gnu or binary) else 1000 It seems this is not the standard usage of if ... else Is this a variant of lambda or some others? Could you please give me some more hints?

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-08-05 Thread Michael Felt
Michael Felt added the comment: I did not ask back in June - but could this also be backported to 3.7. I am trying very hard to have all tests also passing on 3.7. as @asvetlov is ok with a skipped test for AIX - see https://bugs.python.org/issue35545#msg344003 I can make the backport, if

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Removed Python 3.6 as it is in security fixes now. -- versions: +Python 3.8, Python 3.9 -Python 3.6 Added file: https://bugs.python.org/file48532/test_multiprocessing.py ___ Python tracker

Re: Any bad patterns we can find with static analyzing

2019-08-05 Thread Terry Reedy
On 8/5/2019 8:11 AM, Batuhan Taskaya wrote: I am developing a project called Inspector Tiger (from monty python :)) and with that project i am trying to perform a static check over the source code to find common mistakes. If you know a common mistaken pattern, it would be really great to share

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Library (Lib) -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33997] multiprocessing Pool hangs in terminate()

2019-08-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, I got bit by this bug last week, I wrote an example that reproduce the basic idea of our program main loop and it hangs - around 20% of the time with a release build of Python 3.7.4 - around 6% of the time with a debug build of Python 3.7, 3.8 and 3.9

[issue37762] IDLE very slow due to special characters

2019-08-05 Thread Bernhard Hiller
New submission from Bernhard Hiller : After installing tensorflow, I tried to run the demo script found at https://www.tensorflow.org/tutorials? In a common python shell, the "model.fit(x_train, y_train, epochs=5)" step takes a few minutes. In IDLE, no end is in sight after half an hour.

[issue19692] Rename Py_SAFE_DOWNCAST

2019-08-05 Thread hai shi
hai shi added the comment: It's a big problem, no ability to answer this question :( -- ___ Python tracker ___ ___

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread Hugh Sasse
I might not have followed this thread closely enough.  I remembered there is a thing called Copilot. It connects two machines so that two people can work together. I've never used it, and have no connection with the company.  I remember reading about it on a page written by Joel Spolsky.

[issue33829] C API: provide new object protocol helper

2019-08-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33829] C API: provide new object protocol helper

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I agree with rejecting and closing this issue. -- nosy: +jdemeyer ___ Python tracker ___ ___

Any bad patterns we can find with static analyzing

2019-08-05 Thread Batuhan Taskaya
I am developing a project called Inspector Tiger (from monty python :)) and with that project i am trying to perform a static check over the source code to find common mistakes. If you know a common mistaken pattern, it would be really great to share it with me or implement it and PR to inspector

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread Chris Angelico
On Mon, Aug 5, 2019 at 8:54 PM DL Neil wrote: > > On 3/08/19 5:50 PM, Chris Angelico wrote: > > On Sat, Aug 3, 2019 at 3:36 PM DL Neil > > wrote: > >> > >> On 3/08/19 4:02 PM, Terry Reedy wrote: > >>> Good. Master-satellite would be much easier. We added line numbers to > >>> IDLE's editor

[issue37752] Redundant Py_CHARMASK called in some files

2019-08-05 Thread Jordon.X
Jordon.X <9651...@qq.com> added the comment: After the full search for the project code, there are more than a dozen similar issues that need to be modified. A new PR will be added later. -- title: Redundant Py_CHARMASK called in normalizestring(codecs.c) -> Redundant Py_CHARMASK

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 5/08/19 9:59 PM, Dennis Lee Bieber wrote: On Mon, 5 Aug 2019 18:52:14 +1200, DL Neil declaimed the following: Herewith a progress-report, and an attempt to respond to (interposed) questions:- I didn't have questions so much as just comments based on documentation... Your

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 4/08/19 8:20 AM, Chris Angelico wrote: On Sun, Aug 4, 2019 at 4:46 AM Terry Reedy wrote: On 8/3/2019 1:50 AM, Chris Angelico wrote: Since master and clone are copies of the same program, switching roles should be simple, and easier than trading seats. Should be indeed, though having

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 4/08/19 6:44 AM, Terry Reedy wrote: On 8/3/2019 1:50 AM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: Is that really "p-p" or more "code review"? The latter.  The quotes here mean "the closest I currently come to pair

[issue37562] PEP 590 implementation may have introduced a performance regression

2019-08-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 3/08/19 5:50 PM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: Good. Master-satellite would be much easier. We added line numbers to IDLE's editor last week, so verbal feedback from satellite to master should be sufficient for

asyncio, transports, protocols, etc.

2019-08-05 Thread Hugh Sasse
Hello, I didn't get a response to this before, possibly because of lack of concision. I'd like to ask whether (provided I'm understanding this): https://docs.python.org/3/library/asyncio-protocol.html#tcp-echo-server could be improved by adding: """ Create a TCP echo server using the

[issue36974] Implement PEP 590

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Should we add a note like "if you get a 'SystemError: bad call flags' on > import, check the descriptor flags of your functions" in What's New in Python > 3.8? A better solution would be to change the error message. We could change it to something like

[issue37562] PEP 590 implementation may have introduced a performance regression

2019-08-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Please close -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >