Re: Not able use installed modules

2020-05-08 Thread DL Neil via Python-list
On 7/05/20 4:15 PM, Music lover wrote: Hello python team, I have installed the latest version of python from your site. Then I successfully installed some modules like :- numpy , pandas, matplotlib from command prompt. But I am not able to use them while programing in python Idle.

Re: IP address to binary conversion

2020-05-08 Thread Alan Bawden
al.alex...@gmail.com writes: > Just for the records and to have a fully working bidirectional solution: > > >>> ip > '10.44.32.0' > >>> struct.unpack('L', socket.inet_aton(ip))[0] > 2108426 > >>> socket.inet_ntoa(struct.pack(' '10.44.32.0' > >>> > > Good luck ;-) This will not work as expected

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: I looked into this a little after reproducing it locally. What I found is that MultiLoopChildWatcher._sig_chld() *is* called. It's just that it's only called immediately after timeout=5 has elapsed. (The timeout=5 was added by Andrew here:

[issue40574] segfault causing regression from PEP 573 implementation

2020-05-08 Thread Thomas Caswell
Thomas Caswell added the comment: Sorry, forgot to add this is on Linux. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40574] segfault causing regression from PEP 573 implementation

2020-05-08 Thread Thomas Caswell
New submission from Thomas Caswell : https://github.com/python/cpython/commit/e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 causes pyqt5 to segfault an accessing an attribute To reproduce this: pip install pyqt5 pip install sip python -c "import PyQt5.QtCore; PyQt5.QtCore.Qt.Key_Control" # this

[issue40573] inspect.iscorutinefunction() returns False for unittest.mock.AsyncMock instances

2020-05-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I couldn't reproduce the change in result for consecutive calls on master branch. They should return the same value. ./python Python 3.9.0a6+ (heads/master:7f7e706d78, May 9 2020, 04:00:36) [GCC 7.5.0] on linux Type "help", "copyright",

[issue40573] inspect.iscorutinefunction() returns False for unittest.mock.AsyncMock instances

2020-05-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40573] inspect.iscorutinefunction() returns False for unittest.mock.AsyncMock instances

2020-05-08 Thread Moriyoshi Koizumi
New submission from Moriyoshi Koizumi : inspect.iscoroutinefunction() returns False for unittest.mock.AsyncMock instances while asyncio.iscoroutinefunction() returns True. ``` >>> import unittest.mock >>> import inspect >>> import asyncio >>>

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-08 Thread Inada Naoki
Inada Naoki added the comment: > See also > https://mail.python.org/archives/list/python-committ...@python.org/thread/WEU5CQKIA4LIHWHT53YA7HHNUY5H2FUT/. > This was a problem with other CI GitHub actions when a change had to be > merged to master with which all PRs need to be manually

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://mail.python.org/archives/list/python-committ...@python.org/thread/WEU5CQKIA4LIHWHT53YA7HHNUY5H2FUT/. This was a problem with other CI GitHub actions when a change had to be merged to master with which all PRs need to be manually

Re: SaveAs on macOS Catalina.

2020-05-08 Thread Bev In TX
 > On May 8, 2020, at 8:29 PM, Terry Reedy wrote: > > https://bugs.python.org/issue40553 > > At least a couple of people have had problems using SaveAs from IDLE when > running on macOS Catalina. But Ned Deily cannot reproduce the issue. I > cannot because I have refused the buggy

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-08 Thread Inada Naoki
Inada Naoki added the comment: I don't think this is a real issue we should solve: * Travis-CI, at least, does test against "merge commit", not HEAD of PR branch. * As you said already, master branch grow after PR is created anyway. * We run CI and buildbots against master branch too. So we

SaveAs on macOS Catalina.

2020-05-08 Thread Terry Reedy
https://bugs.python.org/issue40553 At least a couple of people have had problems using SaveAs from IDLE when running on macOS Catalina. But Ned Deily cannot reproduce the issue. I cannot because I have refused the buggy 'upgrade'. We could use more data. What do other Catalina Python

Re: IP address to binary conversion

2020-05-08 Thread al . alexiev
Just for the records and to have a fully working bidirectional solution: >>> ip '10.44.32.0' >>> struct.unpack('L', socket.inet_aton(ip))[0] 2108426 >>> socket.inet_ntoa(struct.pack('>> Good luck ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
On Friday, May 8, 2020 at 6:07:33 PM UTC-7, John Ladasky wrote: > Is there a recommended way to keep the internal reference and the setup.py > reference in sync? Is there any reason someone would NOT want these numbers > to match? Replying to myself... I just found this:

Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
I just came across a package in PyPI which is in a state of neglect. The official version on the PyPI page is 1.3.1 -- but the installed module reports its version as 1.2.0. This is confusing. There are several bugs in this package besides the mismatched version number. I've forked a copy

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is acting up here is the Catalina system SaveAs dialog on some systems with some settings when closing after being asked to display the current contents of the target location, allow the content to be variously filtered or not, and add a default

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Alexander Overvoorde
Alexander Overvoorde added the comment: I understand that it's not a perfect solution, but at least it's a little bit closer. Thanks for your patch :) -- ___ Python tracker

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks David for the report and the draft PR (which helped me validate my thinking on the matter). In PR 20015, I've included additional tests. I've also re-written the compatibility functions to rely on the main `__iter__` override. Another situation

Re: Can a print overwrite a previous print ?

2020-05-08 Thread Cameron Simpson
On 08May2020 09:36, Sir Real wrote: On Fri, 8 May 2020 16:25:52 +0200, ast wrote: Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? On a terminal, yes. This is a display issue. It should since the progress bar

[issue39791] New `files()` api from importlib_resources.

2020-05-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've merged PR 19722. Some follow up actions I'd like to do: - Add hooks for `.files()` on built-in loaders. - Replace `loader.get_resource_reader()` with adapters around `.files()` for built-in loaders. -- ___

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +19326 pull_request: https://github.com/python/cpython/pull/20015 ___ Python tracker ___

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I click Full Disk Access in Mohave, I see an empty box with a Header something like "All app to access Mail, ..., and all user data". None of it has anything obviously to do with the user Documents folder. Nor does it seem appropriate for a

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Zain Said
Zain Said added the comment: Ned, I do not use DropBox nor do i have Desktop & Documents Folders checked under my iCloud settings. Someone else in the community reached out to me and suggested that if IDLE is acting up its not worth the hassle. And that they're alternatives. I came a

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: If it is important to retain the `len`, it's probably also important to retain the `[-N]` accesses and possibly other behaviors of a length 6 tuple. -- ___ Python tracker

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: It was intentional to address issue35967, although it was meant to remain compatible. Is len(uname()) an important behavior to retain? It feels like an implementation detail to me. -- ___ Python tracker

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Ned Deily
Ned Deily added the comment: That enabling FullDiskAccess makes a difference makes some sense but that is not something we should be recommending without better understanding what's going on here. We still need a reproducible test case; I still am not able to reproduce. Raymond, your hint

[issue40425] Refleak in CDataObject

2020-05-08 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39791] New `files()` api from importlib_resources.

2020-05-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 7f7e706d78ab968a1221c6179dfdba714860bd12 by Jason R. Coombs in branch 'master': bpo-39791: Add files() to importlib.resources (GH-19722) https://github.com/python/cpython/commit/7f7e706d78ab968a1221c6179dfdba714860bd12 --

[issue40569] Add optional weights to random.sample()

2020-05-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +19325 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20014 ___ Python tracker

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Zain Said
Zain Said added the comment: I posted my issue on Experts Exchange and they suggested to go to system preferences>Security>go to privacy tab on the top>scroll down to Full Disk Access>Add IDLE and Python>then check off the box next to it> Since then my issue with IDLE not being able to

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-08 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +19324 pull_request: https://github.com/python/cpython/pull/20013 ___ Python tracker ___

[issue40561] Provide docstrings for public-facing webbrowser functions

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Missing docstrings are almost a bug, but I am not sure if we backport additions. This needs the attention of a coredev to review, approve, and merge, but there is no particular 'webbrowser' maintainer. If no one shows up, you might use git to find those

[issue30250] StringIO module truncate behavior of current position

2020-05-08 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40557] Move captured_stdin(), captured_stdout(), and captured_stderr() to the public API.

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The proposal should include the idea that the functions in test.support be replaced with from unittest.helpers import * # or from unittest.helpers import captured_stdin, ... so that a) no other changes need be made to existing tests and b) the possibility

[issue40425] Refleak in CDataObject

2020-05-08 Thread Zachary Ware
Zachary Ware added the comment: This looks like a simple reference cycle, as far as I can tell; I don't see an actual refleak. Reproducing using Mark's code from StackOverflow (adjusted): $ ./python.exe -X showrefcount Python 3.9.0a6+ (heads/master-dirty:d10091aa17, May 8 2020, 17:43:51)

[issue30250] StringIO module truncate behavior of current position

2020-05-08 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40557] Move captured_stdin(), captured_stdout(), and captured_stderr() to the public API.

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am rather sure that test.support is going to remain private. So the concrete proposal should be to move them into the unittest package somewhere, perhaps in a new unittest.utils/support/helpers module, for battle-tested helper functions. I strongly

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-08 Thread Christian Heimes
Christian Heimes added the comment: There is no need to add a new flag to quote. You can easily archive your goal with a simple regular expression substitution: >>> import re, urllib.parse >>> s = urllib.parse.quote("Example|#?") >>> s 'Example%7C%23%3F' >>> re.sub("%[0-9A-F]{2}", lambda q:

[issue40572] Support basic asynchronous cross-interpreter operations.

2020-05-08 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +19323 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20012 ___ Python tracker

[issue1944] Document PyUnicode_* API

2020-05-08 Thread Furkan Onder
Change by Furkan Onder : -- nosy: +furkanonder nosy_count: 8.0 -> 9.0 pull_requests: +19322 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20011 ___ Python tracker

[issue40572] Support basic asynchronous cross-interpreter operations.

2020-05-08 Thread Eric Snow
New submission from Eric Snow : (This is a continuation of the work from bpo-33608. That issue ended up with a lot of baggage and clutter (due to problems that have since been resolved), so we closed it. This issue is where we're picking it up fresh.) When two interpreters are cooperating,

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Zain, do you happen to be working in a Dropbox synced directory when you observe the failure? -- ___ Python tracker ___

[issue38728] Update PC/pyconfig.h to support disabling auto linking

2020-05-08 Thread Jean-Christophe Fillion-Robin
Jean-Christophe Fillion-Robin added the comment: Associated pull request has been updated, CLA signed and it is ready for final review and integration. Thanks so much for your time, -- ___ Python tracker

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-08 Thread Guido van Rossum
Guido van Rossum added the comment: @Terry: Thanks for confirming the bug in the old parser. Regarding whether column offsets should be 0-based or 1-based: I agree with Tk, but my hand was forced for SyntaxError: we found that it was already using 1-based offsets and we found

[issue40547] 2to3 raise can silently remove code from old 2.4 string exceptions

2020-05-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40544] Formatter exception when using logging.config.fileConfig

2020-05-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40546] Inconsistencies between PEG parser and traceback SyntaxErrors

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that 3.8 puts the caret under '|', and agree that this is bug that should be fixed at least in a new version. Other such bugs have been fixed in the past. tk Text widgets have 1-based line numbers and 0-based column numbers. The latter is

[issue40571] Make lru_cache(maxsize=None) more discoverable

2020-05-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, this doesn't preclude the other proposal if it ever gains traction and moves forward. This just takes existing functionality and improves clarity and discoverability. The core issue is that if you only want a simple unbounded cache, it isn't

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Filipe Laíns
Filipe Laíns added the comment: I submitted a patch. As explained above, this only mitigates the time-of-check/time-of-action issue in case the process doesn't exist, it *is not* a proper fix for the issue. But don't see any way to properly fix it. --

[issue40571] Make lru_cache(maxsize=None) more discoverable

2020-05-08 Thread Raymond Hettinger
New submission from Raymond Hettinger : The recent discussions on python-ideas showed that people have a hard time finding the infinity-cache option for lru_cache(). Also, in the context of straight caching without limits, the name *lru_cache()* makes the tool seem complex and heavy when in

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-08 Thread Kyle Stanley
Kyle Stanley added the comment: > What other MultiLoopWatcher tests are currently having random hangs? Oh, never mind. I see `test_stdin_stdout` is also hanging in https://bugs.python.org/issue38182. I would like to take a closer look at that one before skipping it as well. --

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +19321 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20010 ___ Python tracker ___

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +jaraco, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-08 Thread Kyle Stanley
Kyle Stanley added the comment: > There are more MultiLoopWatcher tests which hang randomly, it's not only > test_close_kill_running(). What other MultiLoopWatcher tests are currently having random hangs? From searching "MultiLoopWatcher" on bpo, I'm only finding this issue. For now, I'll

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Filipe Laíns
Filipe Laíns added the comment: This is a simple time-of-check - time-of-action issue, which is why I suggested that it shouldn't be fixed. I was not aware send_signal did have this check, which tells us it is supposed to be suported(?). Anyway, to fix it we need to catch the exception and

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-08 Thread Zachary Ware
Zachary Ware added the comment: This can be accomplished already by just including newlines in the string: $ cat multiline_python_bash_script.sh #!/bin/bash python3 -c ' from math import * print(e**(1j * pi)) import sys print(sys.argv)' echo "here's some random text" > somefile.txt

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-08 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-08 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset d10091aa171250c67a5079abfe26b8b3964ea39a by Joannah Nanjekye in branch 'master': bpo-40502: Initialize n->n_col_offset (GH-19988) https://github.com/python/cpython/commit/d10091aa171250c67a5079abfe26b8b3964ea39a --

[issue40397] Refactor typing._GenericAlias

2020-05-08 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The most recent change here caused a regression. The following file: ``` from typing import Generic, TypeVar, Union class CannotTransform(Exception): pass T = TypeVar("T") E = TypeVar("E", bound=Exception) class Ok(Generic[T]): pass class Err(Generic[E]):

Re: basic Python question

2020-05-08 Thread MRAB
On 2020-05-08 21:19, joseph pareti wrote: yet, something is still unclear; in Python you can do things like: *clf0.fit(X_train,y_train)* which is not the way I programmed in other languages where a left-hand side and a right hand side is required. All it's doing is performing the

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Alexander Overvoorde
Alexander Overvoorde added the comment: I'm not sure that it is expected since Popen.send_signal does contain the following check: ``` def send_signal(self, sig): """Send a signal to the process.""" # Skip signalling a process that we know has already died. if self.returncode is

[issue40503] PEP 615: Add zoneinfo module

2020-05-08 Thread Paul Ganssle
Paul Ganssle added the comment: I've separated this into two separate PRs, one for docs and one for tests/implementation. I have not yet implemented the logic for the ability to configure the TZPATH at compile time because I'm not quite sure how to start on that. How are other compile-time

[issue40543] Tamil locale is using outdated encoding

2020-05-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson, ezio.melotti, lemburg, vstinner stage: -> needs patch type: -> enhancement versions: +Python 3.9 ___ Python tracker

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread David Tucker
Change by David Tucker : -- keywords: +patch pull_requests: +19320 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20009 ___ Python tracker ___

[issue40481] Add include and exclude filters to zipapp cli

2020-05-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: basic Python question

2020-05-08 Thread joseph pareti
yet, something is still unclear; in Python you can do things like: *clf0.fit(X_train, y_train)* which is not the way I programmed in other languages where a left-hand side and a right hand side is required. Am Fr., 8. Mai 2020 um 21:52 Uhr schrieb joseph pareti < joeparet...@gmail.com>: > yes,

[issue40474] Code coverage report not entirely accurate

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Use git to find out who previously edited the file and request reviews from at least a couple. The 2 recommendations on the PR may be based on that, but good to check. -- nosy: +terry.reedy ___ Python tracker

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2020-05-08 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 nosy_count: 7.0 -> 8.0 pull_requests: +19319 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20008 ___ Python tracker

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-08 Thread David Tucker
New submission from David Tucker : https://github.com/python/cpython/commit/518835f3354d6672e61c9f52348c1e4a2533ea00#diff-47c8e5750258a08a6dd9de3e9c3774acL741-R804 That diff changed len(platform.uname()) to 5 (from 6). I noticed because we have some code that checks for 6 strs (arguably

[issue40569] Add optional weights to random.sample()

2020-05-08 Thread Raymond Hettinger
New submission from Raymond Hettinger : Weighted sampling without replacement isn't easy for a user to do with the current tooling. There is a StackOverflow question about how to do it. Also, this service is currently offered by numpy. Use it like this: >>> sample(['katniss', 'prim',

Re: basic Python question

2020-05-08 Thread joseph pareti
yes, it is random forest classifier from scikit learn. Thank you. Am Fr., 8. Mai 2020 um 21:50 Uhr schrieb MRAB : > On 2020-05-08 20:02, joseph pareti wrote: > > In general I prefer doing: > > > > > > X_train, X_test, y_train, y_test = train_test_split(X, y, > test_size=0.33, random_state=42) >

Re: basic Python question

2020-05-08 Thread MRAB
On 2020-05-08 20:02, joseph pareti wrote: In general I prefer doing: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) >clf = RandomForestClassifier(n_estimators = 100, max_depth= None) *clf_f = clf.fit(X_train, y_train)* predicted_labels =

[issue40565] is comparison returns False while ids are the same.

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: python-list mailing list, mail.python.org, is one good place to ask "Is this a bug?" -- nosy: +terry.reedy ___ Python tracker ___

[issue40503] PEP 615: Add zoneinfo module

2020-05-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +19318 pull_request: https://github.com/python/cpython/pull/20006 ___ Python tracker ___

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-08 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @rhettinger can you clarify how does this arguments act on argv? Should they be hidden like the first argument, or should they remain visible as a passing argument? $ python -c 'import sys;print(sys.argv)' ['-c'] $ python -c

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-08 Thread Eisuke Kawashima
Eisuke Kawashima added the comment: > Why do you require a lower case string here? Well, I want to use urllib.parse.quote to escape special characters, such as ()[]#*/\, in filenames, and for visibility lower hex digits are preferable. PR 19766 does not break compatibility. --

pyspread 1.99.2 released

2020-05-08 Thread Martin Manns
pyspread 1.99.2 === Pyspread 1.99.2 has been released. This is the second Beta release for pyspread 2.0. This version can be started both as a script and a module. About pyspread == Pyspread is a non-traditional spreadsheet that is based on and written in the

[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-08 Thread Raymond Hettinger
New submission from Raymond Hettinger : It would be nice to write this: $ python -c 'from math import *' 'print(e**(1j * pi))' Instead of this: $ python -c 'from math import *; print(e**(1j * pi))' (-1+1.22464679915e-16j) That would also make it possible input an indented block:

basic Python question

2020-05-08 Thread joseph pareti
In general I prefer doing: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) clf = RandomForestClassifier(n_estimators = 100, max_depth= None) *clf_f = clf.fit(X_train, y_train)* predicted_labels = clf_f.predict( X_test) score = clf.score(X_test, y_test)

[issue40567] asyncio.StreadReader `async for line in reader` is not documented

2020-05-08 Thread Марк Коренберг
Change by Марк Коренберг : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue40567] asyncio.StreadReader `async for line in reader` is not documented

2020-05-08 Thread Марк Коренберг
New submission from Марк Коренберг : Actually it works. But it is not documented. Please ad docs. -- components: asyncio messages: 368453 nosy: asvetlov, socketpair, yselivanov priority: normal severity: normal status: open title: asyncio.StreadReader `async for line in reader` is

Re: Not able use installed modules

2020-05-08 Thread boB Stepp
On Fri, May 08, 2020 at 09:31:55AM -0600, Mats Wichmann wrote: > On 5/6/20 10:15 PM, Music lover wrote: > > Hello python team, > > I have installed the latest version of python from your site. > > Then I successfully installed some modules like :- numpy , pandas, > > matplotlib from

Re: Not able use installed modules

2020-05-08 Thread Mats Wichmann
On 5/6/20 10:15 PM, Music lover wrote: > Hello python team, > I have installed the latest version of python from your site. > Then I successfully installed some modules like :- numpy , pandas, > matplotlib from command prompt. But I am not able to use them while > programing in python

[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-05-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40566] Apply PEP 573 to abc module

2020-05-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20005 ___ Python tracker ___

[issue40566] Apply PEP 573 to abc module

2020-05-08 Thread Dong-hee Na
New submission from Dong-hee Na : Since PEP 573 is landed, we can apply the PEP 573 to abc module. -- assignee: corona10 components: Interpreter Core messages: 368452 nosy: corona10, vstinner priority: normal severity: normal status: open title: Apply PEP 573 to abc module type:

[issue40565] is comparison returns False while ids are the same.

2020-05-08 Thread Eric V. Smith
Eric V. Smith added the comment: This isn't doing what you think. Because you throw away the object after computing its id, the same memory is reused and you get the same id. Consider: >>> a = [1,2,3] >>> b = [3,4,5] >>> id(a[:]) == id(b[:]) True There's no problem here, but it does show

[issue31861] add aiter() and anext() functions to operator module

2020-05-08 Thread rb
Change by rb : -- nosy: +rb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40565] is comparison returns False while ids are the same.

2020-05-08 Thread halil ibrahim yıldırım
New submission from halil ibrahim yıldırım : While id(a[:]) and id(a[0:3]) are the same however is comparison returns False. I thought it could be a bug. >>> a = [1, 2, 3] >>> id(a[:]) == id(a[0:3]) True >>> a[:] is a[0:3] False -- files:

[issue40564] Using zipfile.Path with several files prematurely closes zip

2020-05-08 Thread Xavier
New submission from Xavier : Given a .zip file with more than one inner file, when reading those inner files using zipfile.Path the zip module closes the .zip file prematurely, causing an error. Given the following code (example zipfile is attached, but any should work). with

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-05-08 Thread Simon Willison
Simon Willison added the comment: I asked about this on Twitter and got a couple of tips from Google engineers: https://twitter.com/simonw/status/1258767730263552000 It sounds like a good solution would be to explicitly design the breadcrumbs using this mechanism:

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-05-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk, willingc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40563] Support pathlike objects on dbm/shelve

2020-05-08 Thread Hakan
Hakan added the comment: I work on this issue to fix it. -- nosy: +hakancelik ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40334] PEP 617: new PEG-based parser

2020-05-08 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19315 pull_request: https://github.com/python/cpython/pull/20003 ___ Python tracker ___

EuroPython 2020: Second call for proposals (CFP) - Going global

2020-05-08 Thread M.-A. Lemburg
After participating in several other online events in Europe, we found that there is a lot of interest in these events from other time zones as well. This is a real advantage of running an online event: without the need to travel, joining an event becomes much easier. *

EuroPython 2020: Second call for proposals (CFP) - Going global

2020-05-08 Thread M.-A. Lemburg
After participating in several other online events in Europe, we found that there is a lot of interest in these events from other time zones as well. This is a real advantage of running an online event: without the need to travel, joining an event becomes much easier. *

Can a print overwrite a previous print ?

2020-05-08 Thread ast
Hello Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? It should since the progress bar tdqh seems to do that try: from tkdm import tkdm for i in tqdm(range(100_000_000)): pass It produces a progress bar

[issue40563] Support pathlike objects on dbm/shelve

2020-05-08 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : >>> dbm.open("/tmp/x.db", "n").close() >>> from pathlib import Path >>> tmp = Path("/tmp") >>> dbm.open(tmp / "x.db", "n").close() Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.9/dbm/__init__.py", line 95, in open

[issue40541] Add optional weights parameter to random.sample()

2020-05-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

  1   2   >