[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +765 ___ Python tracker ___

[issue29928] Add f-strings to Glossary

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "f-string" is widely used, but misleading term. It is not used in the documentation. But "formatted string literal" is not better. This isn't literal, this isn't special kind of strings, this is a special formatting expression resulting to string. There

[issue29928] Add f-strings to Glossary

2017-03-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review ___ Python tracker ___ ___

Re: Escaping confusion with Python 3 + MySQL

2017-03-27 Thread Jussi Piitulainen
Gregory Ewing writes: > Νίκος Βέργος wrote: > >> Its still a mystery to em whay this fails syntactically when at the >> same time INSERT works like that. > > I don't think *anyone* understands why SQL was designed with > INSERT and UPDATE having completely different syntaxes. > But it was, and we

[issue29928] Add f-strings to Glossary

2017-03-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +764 ___ Python tracker ___ ___

[issue29928] Add f-strings to Glossary

2017-03-27 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: The Glossary section should mention f-strings, starting in Python 3.6. -- assignee: docs@python components: Documentation messages: 290682 nosy: Mariatta, docs@python priority: normal severity: normal status: open title: Add f-strings to Glossary

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: #29581 has reported a same one. :-) -- nosy: +xiang.zhang resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> __init_subclass__ causes TypeError when used with standard library metaclasses (such as ABCMeta)

RE: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Deborah Swanson
filtered wrote, on March 27, 2017 9:09 PM > > Sorry but all your answers are pointless. > > I clearly asked about compiling PyUno MYSELF with a > self-compiled Python 3.6.1 installation. Is this so hard to > understand? Why do you give unrelated comments to a clear > questions? Sometimes it

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions? Sometimes

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions? Sometimes

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread filtered
Sorry but all your answers are pointless. I clearly asked about compiling PyUno MYSELF with a self-compiled Python 3.6.1 installation. Is this so hard to understand? Why do you give unrelated comments to a clear questions? Sometimes it is better to be quiet. -aj 2017-03-28 5:49 GMT+02:00

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 09:13 PM, Jim wrote: > I don't know if this is of any help but I am running Mint 18 with Python > 3.5 and I have a package installed called python3-uno which is described > as "Python-UNO bridge". Maybe CentOS has a similarly name package. You're right. In fact it looks like

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Sanjay
Sanjay added the comment: ok I will update the doc -- ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Jan Gosmann
On 27 Mar 2017, at 20:12, Chris Angelico wrote: On Tue, Mar 28, 2017 at 11:00 AM, Chris Angelico wrote: In any case, I've installed nvidia-opencl-dev and it seems to be happy. How long should I expect this to run for? Now testing under CPython 3.7. It ran for about 14

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Jan Gosmann
On 27 Mar 2017, at 20:00, Chris Angelico wrote: By the way, since you're aiming this at recent Python versions, you could skip the 'virtualenv' external dependency and use the built-in 'venv' package: $ python3 -m venv env Yeah, I know about venv. The last time I tried it, there was still

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Jim
On 03/27/2017 09:36 PM, Michael Torrie wrote: On 03/27/2017 05:40 AM, filtered wrote: I am running CentOS 7.1 with LibreOffice 5.0.6.2. I have installed the official pyuno package from CentOS. I installed Python 3.6.1 from the sources and now I am trying to import pyuno which fails with

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 05:40 AM, filtered wrote: > I am running CentOS 7.1 with LibreOffice 5.0.6.2. > > I have installed the official pyuno package from CentOS. > > I installed Python 3.6.1 from the sources and now I am trying to import > pyuno which fails with > > aj...@dev.zopyx.com:~/src/docx>

[issue29926] time.sleep ignores _thread.interrupt_main()

2017-03-27 Thread Eryk Sun
Eryk Sun added the comment: It's simple to fix this in Python 3 on Windows. PyErr_SetInterrupt in Modules/signalmodule.c needs the following addition: #ifdef MS_WINDOWS SetEvent(sigint_event); #endif In the main thread on Windows, time.sleep() waits on this event. On Unix,

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-27 Thread Kinebuchi Tomohiko
New submission from Kinebuchi Tomohiko: 1. BufferError is PRE_INIT'ed twice, and also POST_INIT'ed twice. 2. Using macros (PRE_INIT, POST_INIT and ADD_ERRNO) with following unnecessary semicolons. These unnecessary code have no semantic effect, but is somehow confusing. -- components:

[issue29926] time.sleep ignores _thread.interrupt_main()

2017-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Scratch my confusion. I added "print('after')" immediately after _thread.interrupt_main() in idlelib.run.Executor.interrupt_the_server() and 'after' is printed in Shell right after I hit ^C but a time.sleep(10) is not immediately interrupted and

[issue29908] Inconsistent crashing with an access violation

2017-03-27 Thread Cameron Mckain
Cameron Mckain added the comment: See this here: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/18355615-ucrtbase-bug-wspawnve-is-broken -- ___ Python tracker

Windows / ctypes issue with custom build

2017-03-27 Thread Eric Frederich
I built my own Python 2.7.13 for Windows because I'm using bindings to a 3rd party application which were built with Visual Studio 2012. I started to code up some stuff using the "click" module and found an error when using click.echo with any kind of unicode input. Python 2.7.13 (default,

[issue29926] time.sleep ignores keyboard interrupt in IDLE

2017-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified on Win 10 with 3.6.1. What system are you running on? An automatic unittest test would be nice, but I cannot imagine how to write one. Even a human-verified htest (IDLE private term) would be good. Maybe I should write a live-interaction test

RE: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Deborah Swanson
filtered wrote, on Monday, March 27, 2017 4:41 AM > > I am running CentOS 7.1 with LibreOffice 5.0.6.2. > > I have installed the official pyuno package from CentOS. > > I installed Python 3.6.1 from the sources and now I am trying > to import pyuno which fails with > >

[issue29302] add contextlib.AsyncExitStack

2017-03-27 Thread Alexander Mohr
Alexander Mohr added the comment: ok I've updated the gist with a base class and sync + async sub-classes. The way it worked out I think is nice because we can have the same method names across both sync+async. Let me know what you guys think! btw, it seems the

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2017-03-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As this issue has been open for a long time, and I don't think it's worth changing the implementation, I am changing this to a documentation bug and will fix it along with the rewrites for bpo-19824 and bpo-20314 -- assignee: -> barry components:

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: GH-357 is: https://github.com/python/cpython/pull/357/files :) -- ___ Python tracker ___

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Cheryl, thank you for your interest in working on this issue. The original issue has been addressed in Gerrit Holl's PR. But it seems like the docs can be further improved. Here is Victor's comment about it: (copied from GH-357) ``` while we are modifying

Re: Escaping confusion with Python 3 + MySQL

2017-03-27 Thread Gregory Ewing
Νίκος Βέργος wrote: Its still a mystery to em whay this fails syntactically when at the same time INSERT works like that. I don't think *anyone* understands why SQL was designed with INSERT and UPDATE having completely different syntaxes. But it was, and we have to live with it. -- Greg --

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Chris Angelico
On Tue, Mar 28, 2017 at 11:00 AM, Chris Angelico wrote: > In any case, I've installed nvidia-opencl-dev and it seems to be > happy. How long should I expect this to run for? > > Now testing under CPython 3.7. > It ran for about 14 minutes, then memory usage spiked and went into

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8994f36287b068e8ea9a9230fc90eda72bf5fff0 by Mariatta in branch '3.5': bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-863) https://github.com/python/cpython/commit/8994f36287b068e8ea9a9230fc90eda72bf5fff0 --

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Chris Angelico
On Tue, Mar 28, 2017 at 10:01 AM, Jan Gosmann wrote: > Yes, it is on GitHub (use the fixes branch): > https://github.com/ctn-archive/gosmann-frontiers2017/tree/fixes > Installation instructions are in the readme. > The command I'm running is python scripts/log_reduction.py

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 596506216104613591218c2896cdb49fa0b7e5bb by Mariatta in branch '3.6': bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-862) https://github.com/python/cpython/commit/596506216104613591218c2896cdb49fa0b7e5bb -- nosy:

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +763 ___ Python tracker ___ ___

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +762 ___ Python tracker ___ ___

[issue29251] Class __dict__ is only a mapping proxy

2017-03-27 Thread Martin Panter
Martin Panter added the comment: I don’t know if it is an implementation detail or not. Maybe it is the documentation itself which defines that. Anyway, I think your wording would have been fine for my original problem. I wonder if we should clarify that only reading the mapping is supported,

[issue29908] Inconsistent crashing with an access violation

2017-03-27 Thread Steve Dower
Steve Dower added the comment: I was thinking of a Django issue. It'd be nice to know what they fixed that prevents the problem occurring. -- ___ Python tracker

[issue23890] assertRaises increases reference counter

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 2.7 is not affected. -- ___ Python tracker ___ ___

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Jan Gosmann
On 27 Mar 2017, at 18:42, Chris Angelico wrote: Are you able to share the program? I could try it on my system and see if the same thing happens. Yes, it is on GitHub (use the fixes branch): https://github.com/ctn-archive/gosmann-frontiers2017/tree/fixes Installation instructions are in the

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Martin Panter
Martin Panter added the comment: See also Issue 27425, about making the deletion step more flexible after the file has been created, which might help here. I’m not sure about security problems, but IMO failure to remove a temporary file (because it is already gone, or some other reason) is

[issue23890] assertRaises increases reference counter

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +761 ___ Python tracker ___ ___

[issue23890] assertRaises increases reference counter

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5 by Victor Stinner in branch 'master': Fix ref cycles in TestCase.assertRaises() (#193) https://github.com/python/cpython/commit/bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5 --

[issue29926] time.sleep ignores keyboard interrupt in IDLE

2017-03-27 Thread Mark
New submission from Mark: Consider the following code, typed interactively: >>> import time >>> time.sleep(1e6) This will sleep for a bit over one and a half weeks. If this was typed in error, you may want to interrupt it. If using the command line, this is easy: just use Ctrl-C. If using

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Chris Angelico
On Tue, Mar 28, 2017 at 8:57 AM, Jan Gosmann wrote: > I have a program which uses twice as much memory when I run it in Python 3.6 > than when I run it in Python 3.5 (about 60GB instead of 30GB). I tried to > find the reason for that, but the cumulated size (measured with >

[issue4928] tempfile.NamedTemporaryFile: automatic cleanup by OS

2017-03-27 Thread Martin Panter
Changes by Martin Panter : -- title: Problem with tempfile.NamedTemporaryFile -> tempfile.NamedTemporaryFile: automatic cleanup by OS ___ Python tracker

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Jan Gosmann
On 27 Mar 2017, at 18:30, Peter Otten wrote: Are you perchance comparing 32-bit Python 3.5 with 64-bit Python 3.6? I don't think so. [sys.maxsize](https://docs.python.org/3/library/platform.html#cross-platform) indicates both to be 64-bit. --

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +760 ___ Python tracker ___ ___

[issue20314] Potentially confusing formulation in 6.1.4. Template strings

2017-03-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +759 ___ Python tracker ___ ___

[issue19824] string.Template: Rewrite docs to emphasize i18n use case

2017-03-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +758 ___ Python tracker ___ ___

Re: Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Peter Otten
Jan Gosmann wrote: > Hi, > > I have a program which uses twice as much memory when I run it in Python > 3.6 than when I run it in Python 3.5 (about 60GB instead of 30GB). I > tried to find the reason for that, but the cumulated size (measured with > sys.getsizeof) of all objects returned by

Program uses twice as much memory in Python 3.6 than in Python 3.5

2017-03-27 Thread Jan Gosmann
Hi, I have a program which uses twice as much memory when I run it in Python 3.6 than when I run it in Python 3.5 (about 60GB instead of 30GB). I tried to find the reason for that, but the cumulated size (measured with sys.getsizeof) of all objects returned by gc.get_objects accumulates only

[issue20314] Potentially confusing formulation in 6.1.4. Template strings

2017-03-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: docs@python -> barry ___ Python tracker ___ ___

Logging from different python scripts to different output files

2017-03-27 Thread James McMahon
I'm struggling with Python logging. Have tried to apply several examples I have found in the open source literature, but can't get it to work. What I need to do is this: I have two python scripts, a.py and b.py. Each is called by NiFi ExecuteScript processor repeatedly against many incoming

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6003db7db5fec545c01923c198a5fdfca5a91538 by Victor Stinner (Gerrit Holl) in branch 'master': bpo-29677: DOC: clarify documentation for `round` (#357) https://github.com/python/cpython/commit/6003db7db5fec545c01923c198a5fdfca5a91538 --

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +757 ___ Python tracker ___ ___

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: -15 ___ Python tracker ___ ___

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Christian Heimes
Christian Heimes added the comment: Ah! I missed the fact that the subprocess removes the file. It's easily fixable, wrap the unlink and catch FileNotFoundError / ENOENT. -- ___ Python tracker

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Richard Xia
Richard Xia added the comment: Thanks for the discussion. I ended up doing something similar to the code snippet Christian posted, except I also had a second try/except FileNotFoundError within the original finally block to catch the case that David pointed out. In retrospect, I probably

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Thank you SylvainDe, I merged your fix! About the GCC __attribute__ idea: I'm not sure, since Python uses some extra formatters (I don't recall which one). If you succeed to write something working, please open a new issue! Since the initial bug is fixed, I

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d67a103702cf57de90a62c90f7ae969c23d96218 by Victor Stinner (Sylvain) in branch 'master': bpo-29924: Remove useless argument (#854) https://github.com/python/cpython/commit/d67a103702cf57de90a62c90f7ae969c23d96218 -- nosy: +haypo

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: Seems to be introduced via 250e4b0063fab35770719b64d1e36209c4aa2596 in January this year. -- ___ Python tracker ___

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread R. David Murray
R. David Murray added the comment: His problem is that the file has already been deleted by the time the subprocess returns, so the unlink is going to raise an exception. -- ___ Python tracker

[issue29251] Class __dict__ is only a mapping proxy

2017-03-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Isn't the fact that it's read-only a CPython implementation detail? That is, shouldn't that just read: "gives a :term:`mapping` object representing the class's namespace" so as to not enforce anything on any other implementations? -- nosy:

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Larry Hastings
Larry Hastings added the comment: This is not an Argument Clinic issue. -- components: +Interpreter Core -Argument Clinic ___ Python tracker ___

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: Raymond Hettinger: "Is there any downside to keeping this code?" I don't think that we have much code specific to Tiger, except maybe some skips in unit tests. Maybe we can just remove the buildbot but don't touch the code. My issue is more that I would like

[issue29925] test_uuid fails on OS X Tiger

2017-03-27 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/363/steps/test/logs/stdio == FAIL: test_uuid1_safe (test.test_uuid.TestUUID)

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Christian Heimes
Christian Heimes added the comment: RDM, I don't see how my example is going to fail. It uses delete=False with an explicit unlink. Please educate me. :) -- ___ Python tracker

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +755 ___ Python tracker ___

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread R. David Murray
R. David Murray added the comment: He's still going to get an error using your code, Christian. But if he knows that the file being gone is OK, he can catch and ignore the error. Having exit do the unlink wouldn't help him; in that case he'd have to wrap the whole 'with' clause in a

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: http://julio.meroh.net/2011/06/validating-format-strings-in-custom-c.html -- ___ Python tracker ___

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
SylvainDe added the comment: I forgot to copy the link but here is a description of what I had in mind for the first idea. -- ___ Python tracker ___

[issue29921] datetime validation is stricter in 3.6.1 than previous versions

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: The range of valid timestamp is the same since the module was added to Python 2.3: >>> datetime.datetime.min datetime.datetime(1, 1, 1, 0, 0) >>> datetime.datetime.max datetime.datetime(, 12, 31, 23, 59, 59, 99)

[issue29921] datetime validation is stricter in 3.6.1 than previous versions

2017-03-27 Thread STINNER Victor
STINNER Victor added the comment: > The change in issue #29100 - intended AFAICS simply to fix a regression in > 3.6 - seems to have made datetime validation via certain code paths stricter > than it was in 2.7 or 3.5. What do you mean by "stricter than 2.7 & 3.5"? The year 30828 was never

[issue29924] Useless argument in call to PyErr_Format

2017-03-27 Thread SylvainDe
New submission from SylvainDe: Very uninteresting issue I've found while looking at the code. In Objects/call.c, in _PyMethodDef_RawFastCallDict(PyMethodDef *method, PyObject *self, PyObject **arg...), we have no_keyword_error: PyErr_Format(PyExc_TypeError,

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm new to contributing. Can I work on this one? -- nosy: +csabella ___ Python tracker ___

[issue29908] Inconsistent crashing with an access violation

2017-03-27 Thread Cameron Mckain
Cameron Mckain added the comment: No, my PyCharm issue has not been responded to by any of their people. Here is the link: https://youtrack.jetbrains.com/issue/PY-23297 Also, I have uploaded a screenshot of VS's debugging of the crash if it will be helpful. -- Added file:

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-27 Thread Christian Heimes
Christian Heimes added the comment: Raymond, I think Richard's approach is problematic at best. Richard, you cannot use a NamedTempFile with an external process like that. At least you have to flush the file to disk. Even flushing is not safely portable. The safest and most portable approach

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Brian Petersen
Changes by Brian Petersen : -- components: -Library (Lib) type: -> behavior ___ Python tracker ___

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Brian Petersen
New submission from Brian Petersen: First time issue reporter here. I really love PEP 487, but I'm finding the new __init_subclass__ functionality is not playing nicely with existing abstract class functionality. For example, taking the Quest example given in PEP 487 but simply adding

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Would it maybe make sense to implement this as adding an argument to > GET_AWAITABLE to indicate whether it was called from await, __anext__, > __aenter__ or __aexit__? Yes, but it will make it a tad slower (which will also affect await performance). I'll

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: duplicate -> stage: resolved -> needs patch status: closed -> open ___ Python tracker

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Tadhg McDonald-Jensen
Tadhg McDonald-Jensen added the comment: > This is a specific example of the general problem reported in issue 25538. Definitely related, although the part of giving an error "... can't be used in 'await' expression" when no await expression is used isn't covered by that thread so I'm not

[issue1234] semaphore errors on AIX 5.2

2017-03-27 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue11913] sdist refuses README.rst

2017-03-27 Thread Ryan Gonzalez
Changes by Ryan Gonzalez : -- pull_requests: +754 ___ Python tracker ___ ___

[issue1234] semaphore errors on AIX 5.2

2017-03-27 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +753 ___ Python tracker ___ ___

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-27 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-27 Thread Brett Cannon
Brett Cannon added the comment: New changeset d702c50049207d825c1d5925fbc7306514fa9a0a by Brett Cannon (Jim Fasarakis-Hilliard) in branch 'master': bpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847)

[issue29867] Add asserts in PyXXX_GET_SIZE macros

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be enough to compile them. New macros produce compiler error when used as lvalue. But I afraid it will take too much time on my netbook. -- ___ Python tracker

[issue29878] Add global instances of int 0 and 1

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +752 ___ Python tracker ___ ___

[issue29887] test_normalization doesn't work

2017-03-27 Thread Brett Cannon
Brett Cannon added the comment: Benjamin did the update to 9.0.0. We should probably update Tools/unicode/makeunicodedata.py to print out in the end that the appropriate file needs to be added to pythontest.net **before** merging an update to unicodedata. --

[issue29144] Implicit namespace packages in Python 3.6

2017-03-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Bumped upon a similar issue today where a package I was working on couldn't import a module from one of its dependencies (which was not the case in python 3.5). One of the lines that fail is this [0] with: ModuleNotFoundError: No module named

[issue29917] Wrong link target in PyMethodDef documentation

2017-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree. I noticed this when making a review of PR 831, but forgot to open an issue. -- nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue11913] sdist refuses README.rst

2017-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: wont fix -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: > This is a specific example of the general problem reported in issue 25538. It's a bit different code path/problem. But I agree, we should work on making both `with` and `async with` a bit more usable. > Would it be possible to change this so it indicates

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread R. David Murray
R. David Murray added the comment: This is a specific example of the general problem reported in issue 25538. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Traceback from __exit__ method is misleading

[issue25538] Traceback from __exit__ method is misleading

2017-03-27 Thread R. David Murray
R. David Murray added the comment: See also issue 29922. -- nosy: +Tadhg McDonald-Jensen, yselivanov ___ Python tracker ___

[issue29922] error message when __aexit__ is not async

2017-03-27 Thread Tadhg McDonald-Jensen
New submission from Tadhg McDonald-Jensen: When creating a asynchronous context manager if the __aexit__ method is not labeled as async (so it returns None instead of a coroutine) the error has a generic error message: TypeError: object NoneType can't be used in 'await' expression Would it

  1   2   >