[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +16304 pull_request: https://github.com/python/cpython/pull/16725 ___ Python tracker ___

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread miss-islington
miss-islington added the comment: New changeset 19a3d873005e5730eeabdc394c961e93f2ec02f0 by Miss Islington (bot) (Abhilash Raj) in branch 'master': bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15522)" (GH-16724)

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +16305 pull_request: https://github.com/python/cpython/pull/16725 ___ Python tracker ___

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-11 Thread miss-islington
miss-islington added the comment: New changeset 19a3d873005e5730eeabdc394c961e93f2ec02f0 by Miss Islington (bot) (Abhilash Raj) in branch 'master': bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15522)" (GH-16724)

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Default arguments are evaluated only once as the function is defined and not per call. This is a common gotcha : https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument --

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Pouria
Pouria added the comment: For example Def a(time=datetime.datetime.today()): Print(time) Output: The output of each run is equal to the first time output For exaple : If you run a() Sleep(10) a() Sleep(10) a() You see one output

[issue38454] test_listdir is failing on ubuntu with WSL

2019-10-11 Thread Batuhan
New submission from Batuhan : Run tests sequentially 0:00:00 load avg: 0.52 [1/1] test_os test test_os failed -- Traceback (most recent call last): File "/home/isidentical/cpython/Lib/test/test_os.py", line 2059, in test_listdir self.assertEqual(found, expected) AssertionError: Items in

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without more information, we cannot do anything with this. -- nosy: +terry.reedy status: open -> pending versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

Re: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-11 Thread Eryk Sun
On 10/11/19, Gisle Vanem wrote: > > An "alias" could also simply be created using: >doskey python3=f:\ProgramFiles\Python36\python.exe That's a console alias [1], which gets evaluated by the console host process (conhost.exe) when the target process does a normal read via ReadConsoleW or

Re: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-11 Thread Gisle Vanem
Eryk Sun wrote: The simplest way to create a shell link is via the Windows GUI shell, Explorer. To inherit the working directory of the parent process, leave the link's "start in" field empty. Also, add ".LNK" to the system PATHEXT environment variable to allow finding link files without having

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Cameron Simpson
On 12Oct2019 14:04, Greg Ewing wrote: Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. Personally, I would not consider this: % python3 -c 'import sys;print(repr(sys.path))' ['',

Re: question about making an App for Android

2019-10-11 Thread pyotr filipivich
Dennis Lee Bieber on Fri, 11 Oct 2019 20:05:03 -0400 typed in comp.lang.python the following: > >* To support my practically unused 8" SCT {especially in cloudy Michigan}{I >also need to find some sort of battery holders that will fit the fork arms >-- the originals have cracked at the ends and

[issue38424] typing.Generator shorthand

2019-10-11 Thread Dima Tisnek
Dima Tisnek added the comment: Clearly my attention span does not exceed 5 paragraphs, so sorry! -- ___ Python tracker ___ ___

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Eryk Sun
On 10/11/19, Cameron Simpson wrote: > > Python's default sys.path includes the current working directory. > (Worse: at the front!) Python normally sets the script directory at the front of sys.path to allow a script to override site paths and the standard library. If you're running the REPL,

Re: 3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Eryk Sun
On 10/11/19, Jim Elphick wrote: > I upgraded my Python 3.7.3 windows install to 3.7.4 using the windows > download from python.org. > > After the install, the keyword "python" will no longer invoke python. > "python3" also fails. "py" is now the only access to python. "python3" would normally

[issue38378] os.sendfile() has improperly named parameter

2019-10-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I’m for renaming both. Since the function is about transmitting or copying (on Linux) files src_fd and dst_fd could also be good candidates. -- nosy: +giampaolo.rodola ___ Python tracker

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Gregory Ewing
Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue38445] os.path.exists() takes bool as argument and returns True

2019-10-11 Thread Eryk Sun
Eryk Sun added the comment: > Maybe os.fspath() can be used I think that would already be the case if genericpath.exists didn't have to support file descriptors. It's documented that the path argument "refers to an existing path or an open file descriptor". Modifying _fd_converter would

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-11 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +16303 pull_request: https://github.com/python/cpython/pull/16724 ___ Python tracker ___

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Abhilash Raj
Change by Abhilash Raj : -- keywords: +patch pull_requests: +16302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16724 ___ Python tracker ___

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Abhilash Raj
Abhilash Raj added the comment: Yeah, I agree. I'll submit a PR for reverting the commits. -- ___ Python tracker ___ ___

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Cameron Simpson
On 11Oct2019 11:06, Tobiah wrote: On 10/11/19 10:56 AM, Tobiah wrote: I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7

[issue38453] ntpath.realpath() should make absolute path earlier

2019-10-11 Thread Steve Dower
Steve Dower added the comment: PR 16723 is just for the test fix. The realpath() fix should get tests that chdir (without change_cwd()) into a symlink and then realpath() on a relative path. Today, that should fail to resolve the sections in the CWD, and with the fix it should resolve the

[issue38453] ntpath.realpath() should make absolute path earlier

2019-10-11 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +16301 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16723 ___ Python tracker

[issue38453] ntpath.realpath() should make absolute path earlier

2019-10-11 Thread Steve Dower
Steve Dower added the comment: Updating change_cwd() in Lib/test/support/__init__.py to call chdir(realpath(path)) also fixes the test issues I was facing, but the realpath() implementation needs fixing. -- ___ Python tracker

[issue38450] 3.8 Release Notes: IDLE section dupe

2019-10-11 Thread A.M. Kuchling
Change by A.M. Kuchling : -- pull_requests: +16300 pull_request: https://github.com/python/cpython/pull/16621 ___ Python tracker ___

[issue38445] os.path.exists() takes bool as argument and returns True

2019-10-11 Thread Tal Einat
Tal Einat added the comment: Mariano Anaya, you're welcome to work on this and create a PR. There's no need to have this issue assigned to you: feel free to just begin working. Anyone reading this will know that you intended to work on this. (FYI, we only assign issues to core developers,

[issue38440] Possible new issues with IDLE

2019-10-11 Thread Tal Einat
Change by Tal Einat : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38453] ntpath.realpath() should make absolute path earlier

2019-10-11 Thread Steve Dower
New submission from Steve Dower : Because the abspath() call is deferred until the end of the resolution process, if the current working directory is not already a real path, it will not be fully resolved. By passing it through abspath() at the start of the function, we ensure that the

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-10-11 Thread Tal Einat
Tal Einat added the comment: >From the PR, the rationale for this suggestion is: "Whenever I use path.suffix I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking." -- nosy: +taleinat

[issue38401] Make dataclass attribute docstrings accessible

2019-10-11 Thread Tal Einat
Tal Einat added the comment: Thanks for this suggestion John! Unfortunately, only the first string literal in the example is a doc-string, and the rest indeed are not. (PEP-258 suggested adding such doc-strings, but it was rejected.) There is currently no standard way to attach a

[issue38452] unittest setUpClass missing 1 required positional argument: 'cls'

2019-10-11 Thread Zachary Ware
Zachary Ware added the comment: `setUpClass` and `tearDownClass` are classmethods and must be decorated as such (`@classmethod`). -- nosy: +zach.ware resolution: -> not a bug status: open -> pending ___ Python tracker

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Ned Deily
Ned Deily added the comment: Thanks for looking into this, @maxking. With both 3.8.0 final and 3.7.5 final scheduled for just a few days away, I wonder if the best thing to do at this point is to revert them and work on a more robust fix targeted for the next maintenance releases since the

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-10-11 Thread Tal Einat
Tal Einat added the comment: I'd certainly be surprised to have the order of zero and negative values in the input have such a dramatic effect on the result. It would make debugging these cases unnecessarily confusing and difficult. And I think it is indeed worth fixing, as these edge-cases

[issue30672] PEP 538: Unexpected locale behaviour on *BSD (including Mac OS X)

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: Since this issue has been created, I deeply reworked the Python Initialization with the PEP 587, and I made many changes related to locales and the UTF-8 Mode (PEP 540). What's the status of this issue? -- nosy: +vstinner

[issue32238] Handle "POSIX" in the legacy locale detection

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.8, if the LC_CTYPE is "POSIX", the default stdio error handler is now "surrogateescape" instead of "strict", and the UTF-8 is now enabled. In short, LC_CTYPE="POSIX" now behaves as LC_CTYPE="C". This change impacts at least FreeBSD. If I

[issue38452] unittest setUpClass missing 1 required positional argument: 'cls'

2019-10-11 Thread Danylo
New submission from Danylo : Currently, unittest setUpClass and tearDownClass methods are incorrectly called from within its core. ``` class TestUltrasonicEnv(unittest.TestCase): def setUpClass(cls): pass def tearDownClass(cls): pass ``` Traceback (the same for

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Abhilash Raj
Abhilash Raj added the comment: The bug is interesting due to some of the implementation details of "guess_type". The documentation says that it can parse either a URL or a filename. Switching from urllib.parse._splittype to urllib.parse.urlparse changed what a valid "path" is. _splittype

[issue28188] os.putenv should support bytes arguments on Windows

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: This issue was referenced from https://bugs.python.org/issue29240#msg285482 -- ___ Python tracker ___

[issue28188] os.putenv should support bytes arguments on Windows

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: In the meanwhile, the PEP 540 "UTF-8 Mode" has been implemented. -- nosy: +vstinner ___ Python tracker ___

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-10-11 Thread Ned Deily
Ned Deily added the comment: It looks like Christian originally requested autobackports to both 3.8 and 3.7 but both failed due to git checkout errors. He then manually restarted the 3.8 backport but it looks like the 3.7 one did not get restarted. Christian, was that intentional or just

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-11 Thread Caris Moses
Caris Moses added the comment: I tried it with mocked functions instead of methods and got the same result, so I dug into this a little deeper. It seems as though the issue it how the mocked functions are called. If I replace the do_something() line with the following then it works.

[issue38445] os.path.exists() takes bool as argument and returns True

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: Maybe os.fspath() can be used: >>> os.fspath(True) Traceback (most recent call last): File "", line 1, in TypeError: expected str, bytes or os.PathLike object, not bool -- ___ Python tracker

[issue38347] pathfix.py does not find Python scripts that have '-' in its filename

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: > Welcome Victor Stinner. Any chance to get it also backported to 3.6 as I > guess this would increase the chance to see it in RedHat 8 where I hit the > issue? Python 3.6 doesn't accept bugfixes upstream. If you are a Red Hat customer, you can contact the

[issue38450] 3.8 Release Notes: IDLE section dupe

2019-10-11 Thread Ned Deily
Ned Deily added the comment: Thanks for the report! Those whatsnew issues are being addressed in PR 16621. -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue38436] Improved performance for list addition.

2019-10-11 Thread Brandt Bucher
Brandt Bucher added the comment: I went ahead and ran an instrumented build on some random production code (mostly financial data processing), just because I was curious: BINARY_ADD ops: 3,720,776 BINARY_ADD ops with two lists: 100,452 (2.7% of total) BINARY_ADD with new fast path: 26,357

[issue38341] Add SMTPNotSupportedError in the exports of smtplib

2019-10-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +16299 pull_request: https://github.com/python/cpython/pull/16721 ___ Python tracker ___

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Oh well :( My initial guess is that the report is for methods. The other reports were for functions. So I am wondering if the check for FunctionType is successful and if I need to handle something more. I haven't tried it yet. --

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-11 Thread miss-islington
miss-islington added the comment: New changeset 193366e25c4f84a58d2f6c6c577fd9f0143dc6e1 by Miss Islington (bot) (Pablo Galindo) in branch '3.7': [3.7] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16663)

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-11 Thread Caris Moses
Caris Moses added the comment: Hello, I am still running into this issue. I have tested the following code with Python 3.7.4, 3.7.5rc1 , and 3.8.0rc1. from unittest import TestCase from unittest.mock import patch, Mock, call class MyObject: def __init__(self): self.foo = 0

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Abhilash Raj
Abhilash Raj added the comment: I am looking into the issue. -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38436] Improved performance for list addition.

2019-10-11 Thread Brandt Bucher
Brandt Bucher added the comment: Serhiy, here are the better performance measurements: $ ./python.exe -m pyperf timeit --duplicate=1000 -s z=0 z+0 # list-add . Mean +- std dev: 17.3 ns +- 0.3 ns $ ./python.exe -m pyperf timeit --duplicate=1000 -s z=0 z+0 # master

Re: sqlalchemy & #temp tables

2019-10-11 Thread Albert-Jan Roskam
On 8 Oct 2019 07:49, Frank Millman wrote: On 2019-10-07 5:30 PM, Albert-Jan Roskam wrote: > Hi, > > I am using sqlalchemy (SA) to access a MS SQL Server database (python 3.5, > Win 10). I would like to use a temporary table (preferably #local, but > ##global would also be an option) to

[issue38347] pathfix.py does not find Python scripts that have '-' in its filename

2019-10-11 Thread Rüdiger Plüm
Rüdiger Plüm added the comment: Welcome Victor Stinner. Any chance to get it also backported to 3.6 as I guess this would increase the chance to see it in RedHat 8 where I hit the issue? -- ___ Python tracker

[issue36229] Avoid unnecessary copies for list, set, and bytearray ops.

2019-10-11 Thread Armin Rigo
Change by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: question about making an App for Android

2019-10-11 Thread Eli the Bearded
In comp.lang.python, Dennis Lee Bieber wrote: > pyotr filipivich declaimed the following: >> "A simple program" to divide the amount of "today's" daylight into 12 >> even '"hours", so that Dawn begins the First hour, the third hour is >> mid-morning, noon is the middle of the day, the ninth

[issue38436] Improved performance for list addition.

2019-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I do not see any significant change in + operator timing on my machine > (again, just a rough test): Because the time includes the time of iterating, which can be significant in comparison with adding two integers. Please use the pyperf module with

[issue36229] Avoid unnecessary copies for list, set, and bytearray ops.

2019-10-11 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +16298 pull_request: https://github.com/python/cpython/pull/16705 ___ Python tracker ___

[issue38424] typing.Generator shorthand

2019-10-11 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Actually Serhiy is right, I just checked and found this sentence: ``` Alternatively, annotate your generator as having a return type of either Iterable[YieldType] or Iterator[YieldType] ``` -- resolution: -> works for me stage: -> resolved status:

[issue38424] typing.Generator shorthand

2019-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is already documented, with examples. I do not think the documentation can be made better. -- nosy: +serhiy.storchaka ___ Python tracker

[issue38424] typing.Generator shorthand

2019-10-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___ Python tracker ___

[issue38436] Improved performance for list addition.

2019-10-11 Thread Brandt Bucher
Brandt Bucher added the comment: ...and obviously the gains are more pronounced for more/longer lists. In general I'm not married to this change, though. If the consensus is "not worth it", I get it. But it seems like too easy of a win to me. --

[issue38424] typing.Generator shorthand

2019-10-11 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: If you would like to propose a doc fix, then please go ahead and make a PR. -- ___ Python tracker ___

[issue38445] os.path.exists() takes bool as argument and returns True

2019-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Eryk, I think testing for bool in _fd_converter and issuing a warning is a good idea. Do you want to create a PR? -- nosy: +serhiy.storchaka ___ Python tracker

[issue38446] Ambiguous signature for builtins.__build_class__

2019-10-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue38431] dataclasses.InitVar breaks with typing.Optional

2019-10-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38424] typing.Generator shorthand

2019-10-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38436] Improved performance for list addition.

2019-10-11 Thread Brandt Bucher
Brandt Bucher added the comment: Thanks, Pablo, for providing that. So the changes look like mostly a wash on these benchmarks. Serhiy: I do not see any significant change in + operator timing on my machine (again, just a rough test): $ ./python.exe -m timeit -s z=0 z+0 # master

3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
I upgraded my Python 3.7.3 windows install to 3.7.4 using the windows download from python.org. After the install, the keyword "python" will no longer invoke python. "python3" also fails. "py" is now the only access to python. py -version returns Python 3.7.4

RE: 3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
Follow up to previous email. I was able to get a working version of python 3.7.4 on Windows. Steps to resolve: 1. Uninstalled Python Launcher from my Windows machine 2. Uninstalled Python 3.7.3 ( many uninstalls and re-installs) 3. Deleted Python37 folder 4. Using python installer

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Tobiah
On 10/11/19 10:56 AM, Tobiah wrote: I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7 import my_module ## takes 25 seconds

Odd delays when cwd is on a network mount

2019-10-11 Thread Tobiah
I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7 import my_module ## takes 25 seconds to complete my_module.__file__

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Can you please add an example of the issue and the actual/expected behavior? -- nosy: +xtreak ___ Python tracker ___

[issue38432] ZeroDivisionError when inf is expected

2019-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See https://en.wikipedia.org/wiki/Denormal_number. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Pouria
Change by Pouria : -- components: Library (Lib) nosy: Pouria_ff priority: normal severity: normal status: open title: Datetime definition does not work in function definition as list definition type: behavior versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python

[issue38445] os.path.exists() takes bool as argument and returns True

2019-10-11 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38438] argparse "usage" overly-complex with nargs="*"

2019-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think it's any more precise. It just seems verbose and confusing to me, while conveying the same information. `[arg [arg ...]]` to me means "optionally, an arg followed by one or more optional args". While `[arg ...]` to me means "optionally, one

[issue38438] argparse "usage" overly-complex with nargs="*"

2019-10-11 Thread Brandt Bucher
Brandt Bucher added the comment: For backward compatibility with 2 metavars, the two-name form should still be possible. Just pass metavar=("FOO", "FOO"). -- ___ Python tracker

[issue38436] Improved performance for list addition.

2019-10-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have repeated the benchmark in the speed.python.org server with CPU isolation + PGO + LTO: Slower (21): - xml_etree_iterparse: 127 ms +- 2 ms -> 131 ms +- 2 ms: 1.03x slower (+3%) - xml_etree_parse: 195 ms +- 1 ms -> 200 ms +- 2 ms: 1.03x slower

[issue38444] dataclass: always generate default __init__ on __default_init__

2019-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks. I'm always looking for ways to make dataclasses easier to use, while keeping within the original goals. I'll close this for now. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___

[issue35826] Typo in example for async with statement with condition

2019-10-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +16297 pull_request: https://github.com/python/cpython/pull/16720 ___ Python tracker ___

[issue38444] dataclass: always generate default __init__ on __default_init__

2019-10-11 Thread Shmuel H.
Shmuel H. added the comment: The only other solution I could think about was to change setattr's behaviour dynamically so that it would be valid to call it from frozen instance's `__init__`, but I think it is somehow even worst. However, thanks for your help, I think we can close this one

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-11 Thread Ned Deily
Ned Deily added the comment: This change introduces a potential 3.7 regression; see Issue38449. -- nosy: +ned.deily ___ Python tracker ___

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Ned Deily
Ned Deily added the comment: Marking as regression release blocker for 3.7.5 final and 3.8.0 final. -- keywords: +3.7regression nosy: +lukasz.langa, martin.panter, ned.deily, vstinner priority: normal -> release blocker ___ Python tracker

Re: question about making an App for Android

2019-10-11 Thread Akkana Peck
> pyotr filipivich > >"A simple program" to divide the amount of "today's" daylight into 12 > >even '"hours", so that Dawn begins the First hour, the third hour is > >mid-morning, noon is the middle of the day, the ninth hour mid after > >noon, and the twelfth hour ends at sunset. Is simple, no?

[issue34632] Port importlib_metadata to Python 3.8

2019-10-11 Thread Arne Recknagel
Arne Recknagel added the comment: I just learned that metadata is stored as an email, and changing the format was rejected in PEP 426. Be that as it may, if it isn't too much of an issue it might still be something that should be hidden from users of the module. Noone wants to know that

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2019-10-11 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: > Should I update the Status and Resolution of the issue here, or wait for some > kind of confirmation? The status is changed after the patch is merged. The person that merges will usually change the status of the issue or If he/she forgets, anyone with

[issue38438] argparse "usage" overly-complex with nargs="*"

2019-10-11 Thread Nick Timkovich
Nick Timkovich added the comment: The `[arg [arg ...]]` feels a bit more formal to me, and I might prefer it in the example shown where the arg name is fairly short. That said, `man mv` shows something like: mv [OPTION]... [-T] SOURCE DEST mv [OPTION]... SOURCE... DIRECTORY mv

[issue34632] Port importlib_metadata to Python 3.8

2019-10-11 Thread Arne Recknagel
Arne Recknagel added the comment: Is there a reason the object returned by importlib.metadata.metadata is an EmailMessage and not a dict? If it quacks like a duck it should be a duck, no? -- nosy: +arne ___ Python tracker

Re: question about making an App for Android

2019-10-11 Thread pyotr filipivich
Chris Angelico on Fri, 11 Oct 2019 10:43:53 +1100 typed in comp.lang.python the following: >On Fri, Oct 11, 2019 at 10:40 AM pyotr filipivich wrote: >> Chris Angelico on Fri, 11 Oct 2019 09:49:03 +1100 >> typed in comp.lang.python the following: >> >On Fri, Oct 11, 2019 at 9:41 AM Dennis Lee

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-11 Thread Kyle Meyer
Kyle Meyer added the comment: I've performed a bisect the issue with the following script: #!/bin/sh make -j3 || exit 125 ./python <<\EOF || exit 1 import sys import mimetypes res = mimetypes.MimeTypes(strict=False).guess_type(";1.tar.gz") if res[0] is None:

[issue38450] 3.8 Release Notes: IDLE section dupe

2019-10-11 Thread Sebastian Rittau
New submission from Sebastian Rittau : In the 3.8 release notes (https://docs.python.org/3.8/whatsnew/3.8.html), the section "IDLE and idlelib" is duplicated as "idlelib and IDLE". Also, the section "gc" and "gzip" between them are not sorted alphabetically like the rest of the list.

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-10-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hummmis this really a regression? The docs say: > No other methods (except for the constructor) should be overridden in a > subclass. In other words, only override the __init__() and run() methods of > this class. So if someone is overriding

[issue38347] pathfix.py does not find Python scripts that have '-' in its filename

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Ruediger Pluem: I merged your change into master and backported to 3.8 and 3.7. For the 3.7 backport, I skipped tests. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue38347] pathfix.py does not find Python scripts that have '-' in its filename

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ed189ce49423f15ba8774ff174c15d03d12bc807 by Victor Stinner in branch '3.7': bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536) (GH-16719)

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-10-11 Thread STINNER Victor
STINNER Victor added the comment: Copy of wmanley's comment: https://github.com/python/cpython/pull/13948#issuecomment-541076882 """ This caused a regression for people overriding Thread.join to implement custom thread interruption. See

[issue1294959] Problems with /usr/lib64 builds.

2019-10-11 Thread Matej Cepl
Change by Matej Cepl : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Problems with /usr/lib64 builds.

2019-10-11 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Problems with /usr/lib64 builds.

2019-10-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Error: thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable t

2019-10-11 Thread Rhodri James
On 11/10/2019 15:13, Prabakaran Hadoop wrote: Thanks for your reply. Any work around or any other way to achieve from python to prestosql . If there is, it'll be in the GitHub issue I linked to. I just applied Google to your question. -- Rhodri James *-* Kynesim Ltd --

  1   2   >