Re: How to delay until a next increment of time occurs ?

2019-11-15 Thread R.Wieser
Dietmar, > I would assume that this is not an application that needs to output a 100% > correct pulse train every time. Correct. Thats in the design of the pulses themselves (25% duticycle for one state, 75% for the other. Lots of leeway, and self synchronising) > You may just repeat the

Re: nonlocal fails ?

2019-11-15 Thread Chris Angelico
On Sat, Nov 16, 2019 at 5:41 PM Gregory Ewing wrote: > > On 16/11/19 8:22 am, Chris Angelico wrote: > > That's the typical sort of description you get from someone who mostly > > understands Python's semantics, but is hung up on the idea that > > everything is either call-by-value or

[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

Re: nonlocal fails ?

2019-11-15 Thread Gregory Ewing
On 16/11/19 8:22 am, Chris Angelico wrote: That's the typical sort of description you get from someone who mostly understands Python's semantics, but is hung up on the idea that everything is either call-by-value or call-by-reference, and is trying to figure out which box Python fits into. Or

[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 --

Re: How to delay until a next increment of time occurs ?

2019-11-15 Thread Dietmar Schwertberger
On 14.11.2019 21:00, R.Wieser wrote: There is a small 433 MHz rf transmitter connected to the pin, and when I send the right pattern a wireless wall-wart will respond and switch a lamp on or off. Its just ment as an example of a real-world application of Python, nothing serious. I would

[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 ___ ___

pytest 5.2.4 released

2019-11-15 Thread Anthony Sottile
pytest 5.2.4 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: *

[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 ___ ___

Re: What do you use for slides?

2019-11-15 Thread Dan Stromberg
I mostly use Libreoffice Impress, but I've also tried Google Slides. I don't think Impress does syntax highlighting out of the box, but there's a plugin that claims to. Also, Google Slides purportedly supports highlighting just by cut-and-pasting from a GUI editor/IDE with syntax highlighting.

[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)

Wing Python IDE 7.1.3 released

2019-11-15 Thread Wingware
Wing 7.1.3 has been released. This version adds improved and expanded documentation and support for matplotlib, improves the accuracy of code warnings, fixes automatically debugging child processes on Windows with Python 3.8, fixes installing the remote agent from .rpm or .deb installations,

Speeding up a test process with a local pypi and/or web proxy?

2019-11-15 Thread Dan Stromberg
Hi folks. I'm looking at a test process that takes about 16 minutes for a full run. Naturally, I'd like to speed it up. We've already parallelized it - mostly. It seems like the next thing to look at is setting up a local pypi, and building some of the packages that're compiled from C/C++

Re: nonlocal fails ?

2019-11-15 Thread Terry Reedy
On 11/15/2019 5:48 AM, R.Wieser wrote: Closures are standard in functional languages and are less limited than you seem to think. I was talking about the "nonlocal" method of variable inheritance, not closures. You cannot really separate the two. A 'nonlocal' declaration can only be used in

[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:

ANN: Wing Python IDE 7.1.3

2019-11-15 Thread Wingware
Wing 7.1.3 has been released. This version adds improved and expanded documentation and support for matplotlib, improves the accuracy of code warnings, fixes automatically debugging child processes on Windows with Python 3.8, fixes installing the remote agent from .rpm or .deb installations,

[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

Re: nonlocal fails ?

2019-11-15 Thread Chris Angelico
On Sat, Nov 16, 2019 at 6:20 AM Luciano Ramalho wrote: > > Re: the whole pass by reference discussion. > > I've seen Python's argument passing described as "call by value, > except that all values are references". This makes sense, but is > confusing. That's the typical sort of description you

Re: nonlocal fails ?

2019-11-15 Thread Luciano Ramalho
Re: the whole pass by reference discussion. I've seen Python's argument passing described as "call by value, except that all values are references". This makes sense, but is confusing. Michael Scott, in his textbook Programming Language Pragmatics (4e) terms the Python way "call by sharing".

[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,

Re: nonlocal fails ?

2019-11-15 Thread Bev In TX
> On Nov 15, 2019, at 11:11 AM, Python wrote: > > Richard Damon wrote: > ... >> then elsewhere you could do >> foo(j) >> and after that j is 2 >> you also could do >> foo(1) >> and after that if you did >> j = 1 >> then now j might have the value 2 as the constant 1 was changed to the >> value

[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

Re: nonlocal fails ?

2019-11-15 Thread Richard Damon
On 11/15/19 12:21 PM, Random832 wrote: > On Fri, Nov 15, 2019, at 11:47, Richard Damon wrote: >> The issue with calling it a Reference, is that part of the meaning of a >> Reference is that it refers to a Object, and in Python, Names are >> conceptually something very much different than an

Re: What do you use for slides?

2019-11-15 Thread Abdur-Rahmaan Janhangeer
Woops latex seems me programming the slides. yaps thanks for sharing. See this pycon vid for example: https://youtu.be/6uAvHOKofws It's simple and flexible ( you can add images, coloured syntax and cool text ) and that's all we need. Don't know what he used. Abdur-Rahmaan Janhangeer

Re: What do you use for slides?

2019-11-15 Thread Grant Edwards
On 2019-11-15, Abdur-Rahmaan Janhangeer wrote: > For slides i use https://yhatt.github.io/marp/, but sometimes i want a more > stylish tool. > > What do you use for slides? (besides powerpoint + syntax highlighting > included) Last time I made slides it was four a 3-day course I was teaching. I

[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

What do you use for slides?

2019-11-15 Thread Abdur-Rahmaan Janhangeer
Greetings all, For slides i use https://yhatt.github.io/marp/, but sometimes i want a more stylish tool. What do you use for slides? (besides powerpoint + syntax highlighting included) Thanks! Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius

[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

Re: nonlocal fails ?

2019-11-15 Thread Random832
On Fri, Nov 15, 2019, at 11:47, Richard Damon wrote: > The issue with calling it a Reference, is that part of the meaning of a > Reference is that it refers to a Object, and in Python, Names are > conceptually something very much different than an Object. Yes, in the > implementation details, a

[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 ___

Re: nonlocal fails ?

2019-11-15 Thread Python
Richard Damon wrote: ... then elsewhere you could do foo(j) and after that j is 2 you also could do foo(1) and after that if you did j = 1 then now j might have the value 2 as the constant 1 was changed to the value 2 (this can cause great confusion) Wow! So fubar that such a feature

[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) --

Re: nonlocal fails ?

2019-11-15 Thread Richard Damon
On 11/15/19 11:26 AM, Dennis Lee Bieber wrote: > On Fri, 15 Nov 2019 12:56:02 +0100, "R.Wieser" > declaimed the following: > >> There are quite a number of languages where /every/ type of argument >> (including values) can be transfered "by reference". Though some default to >> "by value",

[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

Re: nonlocal fails ?

2019-11-15 Thread Richard Damon
On 11/15/19 11:04 AM, Random832 wrote: > On Fri, Nov 15, 2019, at 10:48, Richard Damon wrote: >> On 11/15/19 6:56 AM, R.Wieser wrote: >>> There are quite a number of languages where /every/ type of argument >>> (including values) can be transfered "by reference". Though some default >>> to >>>

[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

  1   2   >