[issue38819] The redirect

2019-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you do the same in the standard python REPL, you get the same result. So this behavior is not specific to IDLE, although one has to be slightly more careful restoring sys.stdout in IDLE. (Restoring stdout from saved stdout should work the same without

[issue38819] The redirect

2019-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: If your goal is to temporarily redirect stdout, there are a couple ways to do it: with open('dest1.txt', 'w') as target_file: print('hello world', file=target_file) or: with open('dest1.txt', 'w') as target_file: with

[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-15 Thread Ned Deily
Ned Deily added the comment: Sorry but with a non-debug build of Python, it's not very likely someone would be able to glean much from the macOS crash stack trace here. You also seem to have a very large number of C extension modules, some apparently from Homebrew and others from other

[issue38819] The redirect

2019-11-15 Thread Alex
New submission from Alex <2423067...@qq.com>: Hi. This bug I've found is about the redirect, you know, to redirect the standard input/output stream. It's not really a bug, you can think of it as a feature. The code is like this: import sys sys.stdout = open('redirect.txt','w') print('hello

[issue34979] Python throws “SyntaxError: Non-UTF-8 code start with \xe8...” when parse source file

2019-11-15 Thread susaki
susaki added the comment: I think this issue is duplicated with #14811, I will close it. The key point of this issue is that the size of `tok->buf` is fixed and equals to `BUFSIZ`(defined in stdio.h, have different value depends on OS). one line of code will be truncated If it’s size exceeds

[issue30463] Add __slots__ to ABC convenience class

2019-11-15 Thread Chris Withers
Chris Withers added the comment: I will note that this means with: class BaseClass(ABC): pass class MyDerivedClass(BaseClass): def __init__(self, thing): self.thing = thing thing = MyDerivedClass() thing now has both __slots__ and, evidently, a dict. That's a bit weird

[issue26011] Document necesities for cmp argument of sorted

2019-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset 6f602fbd3568ed7bebadfa3c7d3de40a271216f9 by Miss Islington (bot) in branch '3.8': bpo-38453: Ensure correct short path is obtained for test (GH-17184) https://github.com/python/cpython/commit/6f602fbd3568ed7bebadfa3c7d3de40a271216f9

[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2019-11-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16694 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17187 ___ Python tracker ___

[issue38765] `ast.AST._attributes` is used by `ast.dump()` but not documented

2019-11-15 Thread Pekka Klärck
Pekka Klärck added the comment: I know attributes starting with an underscore are typically considered private, but the already mentioned `_fields` clearly isn't and, for example, `namedtuple` has several methods like `_asdict()` and `_replace()` that are documented to be part of the public

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2019-11-15 Thread Batuhan
Batuhan added the comment: IMHO there is no need/way for adding that clarification after this date (1.5 months left). -- nosy: +BTaskaya, benjamin.peterson ___ Python tracker

[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2019-11-15 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-36710 and bpo-38644: I would like to pass explicitly tstate (PyThreadState) to internal C functions. The problem is that PyInterpreterState.eval_frame function has no tstate parameter. I propose attached PR to add a tstate parameter. It's

[issue37083] Document TYPE_COMMENT in documentation reference for compound statements

2019-11-15 Thread Batuhan
Batuhan added the comment: @pablogsal, PR 13202 is merged -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Steve Dower added the comment: New changeset 7c6130c8c36c941255365e5414c956fc919b8629 by Steve Dower in branch 'master': bpo-38453: Ensure correct short path is obtained for test (GH-17184) https://github.com/python/cpython/commit/7c6130c8c36c941255365e5414c956fc919b8629 --

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16693 pull_request: https://github.com/python/cpython/pull/17186 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51edf8aaa2e17626f9690ed29d25945fc03016b9 by Victor Stinner in branch 'master': bpo-38644: Cleanup ceval.h (GH-17185) https://github.com/python/cpython/commit/51edf8aaa2e17626f9690ed29d25945fc03016b9 --

[issue38644] Pass explicitly tstate to function calls

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b5e170f127b57d5b0a4fb58f316acd6191509dce by Victor Stinner in branch 'master': bpo-38644: Add _PyEval_EvalCode() (GH-17183) https://github.com/python/cpython/commit/b5e170f127b57d5b0a4fb58f316acd6191509dce --

[issue26011] Document necesities for cmp argument of sorted

2019-11-15 Thread Batuhan
Batuhan added the comment: I agree with @josh.r, also for the key (and reverse), they are documented in py3.8. IMHO this issue can be resolved as not a bug. -- nosy: +BTaskaya ___ Python tracker

[issue38446] Ambiguous signature for builtins.__build_class__

2019-11-15 Thread Batuhan
Batuhan added the comment: This issue is fixed with PR 16735, @pablogsal can we close it? -- nosy: +BTaskaya, pablogsal ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16692 pull_request: https://github.com/python/cpython/pull/17185 ___ Python tracker ___

[issue38817] Immutable types inplace operations work incorrect in async

2019-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Inplace operation is expected to occur only at the time when > the second operand is evaluated. That expectation does not match the implementation and it likely isn't possible to get that to work. In-place operations on immutable objects necessarily

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan
Batuhan added the comment: > From what I see, there is no consensus yet. @serhiy.storchaka said this isn't an issue. I can add tests about this behavior (as you mentioned) or this issue can be directly resolved as not a bug. What are you thinking @nanjekyejoannah and @serhiy.storchaka?

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +16691 pull_request: https://github.com/python/cpython/pull/17184 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16690 pull_request: https://github.com/python/cpython/pull/17183 ___ Python tracker ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Steve Dower added the comment: Thanks, Victor! That looks different from the one I was originally fixing (even though the long/short path mismatch is there), so I'll take a look. -- ___ Python tracker

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Steve Dower added the comment: New changeset 66c0f01f98fd6db0a4b1e789b9db9c7247a24ba9 by Steve Dower in branch '3.8': bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) https://github.com/python/cpython/commit/66c0f01f98fd6db0a4b1e789b9db9c7247a24ba9 --

[issue38813] math.modf() change integer returned part as integer instead of float

2019-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, I think you've tricked yourself ;-) Yup. -- ___ Python tracker ___ ___

[issue33125] Windows 10 ARM64 platform support

2019-11-15 Thread Dan
Dan added the comment: Steve, the 2.7 build I've posted includes native tk, do you need the necessary patches? -- ___ Python tracker ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: Grumpy AMD64 Windows10 3.x: https://buildbot.python.org/all/#/builders/3/builds/3788 == FAIL: test_realpath_cwd (test.test_ntpath.TestNtpath)

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Windows8.1 Non-Debug 3.x is grumpy: https://buildbot.python.org/all/#/builders/12/builds/3459 == FAIL: test_realpath_cwd (test.test_ntpath.TestNtpath)

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2019-11-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16689 pull_request: https://github.com/python/cpython/pull/17180 ___ Python tracker ___

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-15 Thread Eric Snow
Eric Snow added the comment: Flipping the label one more time did the trick. Thanks again, Phil! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34651] Disallow fork in a subinterpreter.

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset a4be5aae6e587f5310f1fc0d66d37e032621ce39 by Miss Islington (bot) in branch '3.8': bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123) https://github.com/python/cpython/commit/a4be5aae6e587f5310f1fc0d66d37e032621ce39

[issue38816] Clarify about fork() and the CPython runtime in the C-API docs.

2019-11-15 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset a4be5aae6e587f5310f1fc0d66d37e032621ce39 by Miss Islington (bot) in branch '3.8': bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123) https://github.com/python/cpython/commit/a4be5aae6e587f5310f1fc0d66d37e032621ce39

[issue38816] Clarify about fork() and the CPython runtime in the C-API docs.

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset 7a5d4c7a8653cb6be126f87731802aa9a4bc90e2 by Miss Islington (bot) in branch '3.8': bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176) https://github.com/python/cpython/commit/7a5d4c7a8653cb6be126f87731802aa9a4bc90e2

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16687 pull_request: https://github.com/python/cpython/pull/17179 ___ Python tracker ___

[issue34651] Disallow fork in a subinterpreter.

2019-11-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16688 pull_request: https://github.com/python/cpython/pull/17179 ___ Python tracker ___

[issue38816] Clarify about fork() and the CPython runtime in the C-API docs.

2019-11-15 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +16686 pull_request: https://github.com/python/cpython/pull/17178 ___ Python tracker ___

[issue38816] Clarify about fork() and the CPython runtime in the C-API docs.

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset 73cdb0c6b2c3861e034004cdc57be5e726876078 by Miss Islington (bot) (Eric Snow) in branch 'master': bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176)

[issue38782] Convert importlib.abc to use typing.Protocol

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

[issue38805] locale.getlocale() returns a non RFC1766 language code

2019-11-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38788] Inconsistent documentation of tell/seek on textiobase/textiowrapper

2019-11-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38783] the window size is bigger than the specific size when create a window with a fix size in Windows platform

2019-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I add "master.update(); print(master.geometry())" I get "100x100+104+104". I have the same Windows and 3.7+, but with tcl/tk *8.6*, not the ancient 8.4. If you really are using the latter, I strongly suggest updating. Even if not, your result is

[issue38755] Long unicode string causes SyntaxError: Non-UTF-8 code starting with '\xe2' in file ..., but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

2019-11-15 Thread Andrew Ushakov
Andrew Ushakov added the comment: > On Windows, with 3.7, 3.8.0, and master, neither the posted comment, the one > in the file, not the initial statement in #34979 give the SyntaxError. Just tried again on my corporate laptop with the downloaded file from this site: Microsoft Windows

[issue38817] Immutable types inplace operations work incorrect in async

2019-11-15 Thread Anton Bryzgalov
Anton Bryzgalov added the comment: Example code (also is attached to the issue): import asyncio async def count_smth(seconds: int) -> int: await asyncio.sleep(seconds) return seconds * 3 async def small_job(d: dict, key: str, seconds: int) -> None: d[key] += await

[issue38765] `ast.AST._attributes` is used by `ast.dump()` but not documented

2019-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: A leading underscore usually means that the name is private and should not be relied on. We of course use private names to implement public objects, else they should not exist. '_fields' is an exception, and I leave it to the ast experts to decide if

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Alex
Change by Alex : -- pull_requests: +16685 pull_request: https://github.com/python/cpython/pull/17177 ___ Python tracker ___ ___

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Alex
Alex added the comment: I've decided to raise a pull request for the patch, considering it's only been a few hours. -- ___ Python tracker ___

[issue34979] Python throws “SyntaxError: Non-UTF-8 code start with \xe8...” when parse source file

2019-11-15 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34979] Python throws “SyntaxError: Non-UTF-8 code start with \xe8...” when parse source file

2019-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, with 3.7, 3.8.0, and master, none of the demo.py statement here and the examples in #38755 raise an error. I tried 'python -m module', running from IDLE editor, and interactive IDLE and REPL. Even the following worked. >>> s =

[issue38817] Immutable types inplace operations work incorrect in async

2019-11-15 Thread Антон Брызгалов
New submission from Антон Брызгалов : Example code (also is attached to the issue): import asyncio async def count_smth(seconds: int) -> int: await asyncio.sleep(seconds) return seconds * 3 async def small_job(d: dict, key: str, seconds: int) -> None: d[key] += await

[issue38755] Long unicode string causes SyntaxError: Non-UTF-8 code starting with '\xe2' in file ..., but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

2019-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this should be closed as a duplicate of #34979 and this example posted there, with the OS and python version included. On Windows, with 3.7, 3.8.0, and master, neither the posted comment, the one in the file, not the initial statement in #34979

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Alex
Alex added the comment: dorosch, please note section 3.9 from the developers guide: "When a patch exists in the issue tracker that should be converted into a GitHub pull request, please first ask the original patch author to prepare their own pull request. If the author does not respond

[issue38813] math.modf() change integer returned part as integer instead of float

2019-11-15 Thread Tim Peters
Tim Peters added the comment: Raymond, I think you've tricked yourself ;-) The prototype for C's duoble modf is double modf(double x, double *intptr); Yes, after the call *intptr is an exact integer, but in the double format. >>> math.modf(1e300) (0.0, 1e+300) I don't think it would be

[issue38750] Solve IPv4 categorisation issues with the ipaddress module

2019-11-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-15 Thread Jason Killen
Jason Killen added the comment: This appears to be a bug in pytz which as far as I can tell is not part of the "standard" lib, at least it's not in Lib. Running this example which does not use pytz: from datetime import timedelta, datetime, tzinfo, timezone, time # stole this from the docs,

[issue38816] Clarify about fork() and the CPython runtime in the C-API docs.

2019-11-15 Thread Eric Snow
New submission from Eric Snow : The C-API docs are a bit sparse on the interplay between C fork() and the CPython runtime. -- assignee: eric.snow components: Documentation messages: 356705 nosy: eric.snow, gregory.p.smith, pconnell priority: normal pull_requests: 16684 severity:

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- pull_requests: +16683 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17175 ___ Python tracker ___

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-15 Thread Eric Snow
Eric Snow added the comment: Nice work, Phil. We need a backport to 3.8, but the miss-islington bot is having trouble with it. [1] Either we can try flipping the "needs backport to 3.8" label again or you could create a backport PR yourself (like miss-islington suggested). If you do that

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +16682 pull_request: https://github.com/python/cpython/pull/17174 ___ Python tracker ___

[issue38811] Pathlib crashes when os module is missing 'link' method

2019-11-15 Thread Toke Høiland-Jørgensen
Toke Høiland-Jørgensen added the comment: Right, sure, that makes sense; thanks for clarifying :) -- ___ Python tracker ___ ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Steve Dower added the comment: New changeset abde52cd8e31830bfc06c5803221faae6172104a by Steve Dower in branch 'master': bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) https://github.com/python/cpython/commit/abde52cd8e31830bfc06c5803221faae6172104a

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-11-15 Thread Steve Dower
Steve Dower added the comment: I think the PR as it stands is a net improvement over where we currently are, so I'll merge it. We can make more tweaks as necessary. -- ___ Python tracker

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-11-15 Thread Eddie Elizondo
Eddie Elizondo added the comment: Woops! I'll get to it before the end of the weekend! -- ___ Python tracker ___ ___

[issue38803] test_wait3 and test_wait4 leaked references on x86 Gentoo Refleaks 3.x

2019-11-15 Thread Eddie Elizondo
Eddie Elizondo added the comment: Woops! I'll get to it before the end of the weekend! -- nosy: +eelizondo ___ Python tracker ___

[issue38742] ElementTree won't parse comments before root element

2019-11-15 Thread Stefan Behnel
Stefan Behnel added the comment: Duplicate of issue 9521 (and issue 24287). -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> xml.etree.ElementTree skips processing instructions when parsing ___ Python tracker

[issue34572] C unpickling bypasses import thread safety

2019-11-15 Thread Brett Cannon
Brett Cannon added the comment: 3.6 and 3.5 are in security mode, so unless there's a security risk due to this bug the fix will not be backported to those older versions (https://devguide.python.org/#status-of-python-branches). -- ___ Python

[issue38811] Pathlib crashes when os module is missing 'link' method

2019-11-15 Thread Brett Cannon
Brett Cannon added the comment: Just an FYI a raised exception isn't considered a crash. For us a crash is a C-level crash like a segfault. -- nosy: +brett.cannon type: crash -> behavior ___ Python tracker

[issue11354] argparse: nargs could accept range of options count

2019-11-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38794] Setup: support linking openssl statically

2019-11-15 Thread Lukas Vacek
Lukas Vacek added the comment: Christian, I don't want to argue. Feel free to close both this bug and the PR as "enhancement rejected". Adding one ./configure option is not really worth arguing over, I can always compile python as I need. I just tried to solve the same problem for others

[issue34651] Disallow fork in a subinterpreter.

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset b22030073b9327a3aeccb69507694bce078192aa by Miss Islington (bot) (Phil Connell) in branch 'master': bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)

[issue38815] test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: Same failure on AMD64 FreeBSD Shared 3.8: https://buildbot.python.org/all/#/builders/374/builds/32 FAIL: test_min_max_version (test.test_ssl.ContextTests) FAIL: test_min_max_version_mismatch (test.test_ssl.ThreadedTests) --

[issue38778] Document that os.fork is not allowed in subinterpreters

2019-11-15 Thread miss-islington
miss-islington added the comment: New changeset b22030073b9327a3aeccb69507694bce078192aa by Miss Islington (bot) (Phil Connell) in branch 'master': bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)

[issue38815] test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x

2019-11-15 Thread STINNER Victor
New submission from STINNER Victor : Fail with OpenSSL 1.1.1d 10 Sep 2019 on AMD64 FreeBSD Shared 3.x: https://buildbot.python.org/all/#/builders/371/builds/78 == FAIL: test_min_max_version (test.test_ssl.ContextTests)

[issue38276] test_asyncio: test_cancel_make_subprocess_transport_exec() failed on RHEL7 LTO + PGO 3.x

2019-11-15 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Fedora Stable Refleaks 3.8: https://buildbot.python.org/all/#/builders/260/builds/50 ... test_devnull_input (test.test_asyncio.test_subprocess.SubprocessFastWatcherTests) ... ok test_devnull_output

[issue38814] Python3.7.5 crashes on OSX with my django project

2019-11-15 Thread László Károlyi
New submission from László Károlyi : Hey, I have a huge Django project that starts up fine with the dev server on Linux and in production that is also Linux. Whenever I try to start it on my OSX, the python process crashes with a SIGABRT and I get a crash window from OSX. I use homebrew with

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you please turn this into a regular PR? -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue11354] argparse: nargs could accept range of options count

2019-11-15 Thread Alex
Alex added the comment: Weighing up how little demand there seems to be for this, and how easy it is to achieve the same effect with post-processing within a hypothetical script that happens to need it - I agree with closing it. -- ___ Python

[issue38813] math.modf() change integer returned part as integer instead of float

2019-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is odd. The underlying C library modf() returns an integer for the second part. Likewise the Python math.frexp() function returns an integer for the second part. So, I'm not sure why Python's math.modf() returns a float for the second field.

[issue38794] Setup: support linking openssl statically

2019-11-15 Thread Christian Heimes
Christian Heimes added the comment: > In ideal world OpenSSL would provide stable ABI just like the other libraries > Python depends on. That would be, unarguably, the best way to achieve that > goal. Agreed. OpenSSL provides a stable API and stable ABI already. The fact is well documented

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @BTaskaya From what I see, there is no consensus yet.If you are interested in exploring, go on. -- ___ Python tracker ___

[issue38794] Setup: support linking openssl statically

2019-11-15 Thread Lukas Vacek
Lukas Vacek added the comment: In ideal world OpenSSL would provide stable ABI just like the other libraries Python depends on. That would be, unarguably, the best way to achieve that goal. Agreed. Aferall frequent OpenSSL ABI breakages are the reason why apple switched to their own

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan
Batuhan added the comment: @nanjekyejoannah, are you still interested in adding tests or can i add tests? -- nosy: +BTaskaya ___ Python tracker ___

[issue3530] ast.NodeTransformer doc bug

2019-11-15 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16681 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17172 ___ Python tracker

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-15 Thread Dong-hee Na
Dong-hee Na added the comment: Dear Core developers Although I updated the unit test for this issue if the reverting is a better way. Please let me know. I am happy to follow the decision. :) Thanks always -- ___ Python tracker

[issue38813] math.modf() change integer returned part as integer instead of float

2019-11-15 Thread aikimark1955
New submission from aikimark1955 : The description for this function reads: "Return the fractional and integer parts of x. Both results carry the sign of x and are floats." Since the second returned value is "integer parts", I submit that the value should be integer. -- components:

[issue7687] Bluetooth support untested

2019-11-15 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue38794] Setup: support linking openssl statically

2019-11-15 Thread Christian Heimes
Christian Heimes added the comment: I'm drawing a different conclusion from these posts. It sounds to me like people want a simple way to install a new version of Python on old distros and have a working ssl module. Static linking is one possible way to archive the goal. I argue that it is

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-15 Thread Dong-hee Na
Dong-hee Na added the comment: @Michael.Felt Thanks for the suggestion. I 've updated the PR to skip the test on AIX. cc @vstinner -- ___ Python tracker ___

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2019-11-15 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16680 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17171 ___ Python tracker

[issue23407] os.walk always follows Windows junctions

2019-11-15 Thread Jim Carroll
Jim Carroll added the comment: I can confirm the os.walk() behavior still exists on 3.8. Just curious on the status of the patch? -- nosy: +jamercee ___ Python tracker ___

[issue38794] Setup: support linking openssl statically

2019-11-15 Thread Lukas Vacek
Lukas Vacek added the comment: However, I'm still convinced many would appreciate adding this ./configure option: https://github.com/pyenv/pyenv/issues/1184#issuecomment-403149437 https://joshspicer.com/python37-ssl-issue

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-15 Thread Michael Felt
Michael Felt added the comment: @corona10 The AIX bot's are also in the red zone with PR17010. This was examined earlier See: https://bugs.python.org/issue35633#msg333662 In short, the recommendation by Victor was to skip the test: quote: > On AIX the test for flock() passes, but the test

[issue38808] weird bug while using a for loop and array

2019-11-15 Thread Zach kuunka
Zach kuunka added the comment: I will check that out, Thank you -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-15 Thread Mike
New submission from Mike : import pytz import datetime tzaware_time1 = datetime.time(7,30,tzinfo=pytz.timezone("America/Denver")) tzaware_time2 = datetime.time(7,30,tzinfo=pytz.utc) tzunaware_time = datetime.time(7, 30) # This fails with exception: TypeError: can't compare offset-naive and

[issue38591] Deprecate Process Child Watchers

2019-11-15 Thread Kyle Stanley
Kyle Stanley added the comment: > I think so. It will take a long before we remove it though. In that case, it could be a long term deprecation notice, where we start the deprecation process without having a definitive removal version. This will at least encourage users to look towards

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2019-11-15 Thread Arthit Suriyawongkul
Arthit Suriyawongkul added the comment: Confirmed this behavior on - Python 3.6.8 64-bit on Windows Server 2016 (AppVeyor "Visual Studio 2017" build environment) - Python 3.6.7 64-bit on Linux -- nosy: +Arthit Suriyawongkul ___ Python tracker

[issue38811] Pathlib crashes when os module is missing 'link' method

2019-11-15 Thread Toke Høiland-Jørgensen
Change by Toke Høiland-Jørgensen : -- keywords: +patch pull_requests: +16678 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17170 ___ Python tracker

[issue26978] Implement pathlib.Path.link (Using os.link)

2019-11-15 Thread Toke Høiland-Jørgensen
Change by Toke Høiland-Jørgensen : -- pull_requests: +16679 pull_request: https://github.com/python/cpython/pull/17170 ___ Python tracker ___

  1   2   >