Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Chris Angelico
On Sat, Feb 20, 2016 at 6:48 PM, Ian Kelly wrote: > As another point that happens to be fresh in my mind, awaiting a > Future on which an exception gets set is supposed to propagate the > exception. I recently found that this breaks if the exception in > question happens to

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Steven D'Aprano
On Fri, 19 Feb 2016 10:53 pm, wrong.addres...@gmail.com wrote: >> See http://nedbatchelder.com/text/python-parsers.html for a list of >> parsers that can do all sorts for you. Or the stdlib re module > > I am an engineer, and do not understand most of the terminology used > there. Google, or

Re: Guido on python3 for beginners

2016-02-20 Thread Steven D'Aprano
On Thu, 18 Feb 2016 07:40 pm, Terry Reedy wrote: > 8. 2.x has two subtlely different types of classes. The 2.x docs do not > document the type of builtin and stdlib classes. I discovered that > tkinter classes are still old-style in 2.7 when I backported a patch > from 3.x to 2.7 and it

Re: asyncio - run coroutine in the background

2016-02-20 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> "Frank Millman" : >>> I would love to drive the database asynchronously, but of the three >>> databases I use, only psycopg2 seems to have asyncio support. >> Yes, asyncio is at its infancy.

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Ian Kelly
On Sat, Feb 20, 2016 at 12:57 AM, Chris Angelico wrote: > On Sat, Feb 20, 2016 at 6:48 PM, Ian Kelly wrote: >> As another point that happens to be fresh in my mind, awaiting a >> Future on which an exception gets set is supposed to propagate the >>

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
jenswaelk...@gmail.com wrote: > File "/usr/lib/python2.7/decimal.py", line 3744, in >_numbers.Number.register(Decimal) >AttributeError: 'module' object has no attribute 'Number' Your decimal module seems broken. Confirm that in the Python shell: import numbers print numbers.Number I'm

Re: asyncio - run coroutine in the background

2016-02-20 Thread Paul Rubin
Marko Rauhamaa writes: > It would appear that disk I/O is considered nonblocking at a very deep > level: > * O_NONBLOCK doesn't have an effect > * a process waiting for the disk to respond cannot receive a signal > * a process waiting for the disk to respond stays in the

Re: Guido on python3 for beginners

2016-02-20 Thread Larry Hudson via Python-list
On 02/19/2016 06:36 PM, Steven D'Aprano wrote: On Fri, 19 Feb 2016 02:39 pm, Rustom Mody wrote: [snip] But you can't do anything interesting with this language, so it is not satisfying. On the other hand, here's "Hello World" in another language, one which is Turing complete so it can do

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Mark Lawrence
On 20/02/2016 07:42, jenswaelk...@gmail.com wrote: When I use either of the following commands I get an error for which I don't have a solution, could someone here help me further? These are the commands: import matplotlib.pyplot as plt Are you certain that this is what you typed?

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Chris Angelico
On Sat, Feb 20, 2016 at 7:14 PM, Ian Kelly wrote: > On Sat, Feb 20, 2016 at 12:57 AM, Chris Angelico wrote: >> On Sat, Feb 20, 2016 at 6:48 PM, Ian Kelly wrote: >>> As another point that happens to be fresh in my mind, awaiting a

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
It occurs to me now that the trackback might misidentify the module in use, if say, you'd named a file "numbers.py" then got rid of it later leaving a "numbers.pyc" somewhere. If so, see where it is: import numbers print numbers.__file__ -- https://mail.python.org/mailman/listinfo/python-list

Re: asyncio - run coroutine in the background

2016-02-20 Thread Chris Angelico
On Sat, Feb 20, 2016 at 7:37 PM, Paul Rubin wrote: > getaddrinfo is a notorious pain but I think it's just a library issue; > an async version should be possible in principle. How does Twisted > handle it? Does it have a version? In a (non-Python) program of mine, I

Re: asyncio - run coroutine in the background

2016-02-20 Thread Marko Rauhamaa
Chris Angelico : > In a (non-Python) program of mine, I got annoyed by synchronous name > lookups, so I hacked around it: instead of using the regular library > functions, I just do a DNS lookup directly (which can then be > event-based - send a UDP packet, get notified when a

Re: asyncio - run coroutine in the background

2016-02-20 Thread Chris Angelico
On Sat, Feb 20, 2016 at 7:59 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> In a (non-Python) program of mine, I got annoyed by synchronous name >> lookups, so I hacked around it: instead of using the regular library >> functions, I just do a DNS lookup

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Ian Kelly
On Sat, Feb 20, 2016 at 1:49 AM, Chris Angelico wrote: > Definitely seems like it should be fixed, then; the current behaviour > is that Future.result() raises RuntimeError if you raise > StopIteration, so having await do the same would make sense. Future.result() itself simply

Re: [newbie] Problem with matplotlib

2016-02-20 Thread Dave Farrance
Dave Farrance wrote: >It occurs to me now that the trackback might misidentify the module in >use, if say, you'd named a file "numbers.py" then got rid of it later >leaving a "numbers.pyc" somewhere. If so, see where it is: > >import numbers >print numbers.__file__ I

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Ian Kelly
On Sat, Feb 20, 2016 at 1:49 AM, Chris Angelico wrote: > Actually, that mightn't be a bad thing. Maybe raise that as a tracker > issue? I just tested, and slapping "from __future__ import > generator_stop" at the top of Lib/asyncio/futures.py causes your > example to raise an

Re: asyncio - run coroutine in the background

2016-02-20 Thread Marko Rauhamaa
Paul Rubin : > I've just felt depressed whenever I've looked at any Python async > stuff. I've written many Python programs with threads and not gotten > into the trouble that people keep warning about. Programming-model-wise, asyncio is virtually identical with threads.

Re: extending PATH on Windows?

2016-02-20 Thread eryk sun
On Fri, Feb 19, 2016 at 6:57 PM, Dennis Lee Bieber wrote: > > Problem -- if the OP's PATH had contained the location of the add2path > script, the OP might not have needed to search for it... (presuming their > configuration also was set up to treat .py files as

Re: asyncio - run coroutine in the background

2016-02-20 Thread Kevin Conway
> getaddrinfo is a notorious pain but I think it's just a library issue; an async version should be possible in principle. How does Twisted handle it? Does it have a version? I think we're a little outside the scope of OP's question at this point, but for the sake of answering this: There are

I can't install python on my pc

2016-02-20 Thread Giriprasadh Raghavan
I can’t install python on my pc because it encounters an error every time I try to install it. Please help as soon as possible. Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: I can't install python on my pc

2016-02-20 Thread Mark Lawrence
On 20/02/2016 07:34, Giriprasadh Raghavan wrote: I can’t install python on my pc because it encounters an error every time I try to install it. Please help as soon as possible. Sent from Mail for Windows 10 Asked and answered repeatedly over the last few months, so please search the

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread nholtz
On Wednesday, February 17, 2016 at 2:49:44 PM UTC-5, wrong.a...@gmail.com wrote: > I am mostly getting positive feedback for Python. > ... I'm surprised no one has mentioned jupyter yet, so here goes ... A browser-based notebook, see http://www.jupyter.org I think this is an unparalleled way to

Re: [newbie] Problem with matplotlib

2016-02-20 Thread jenswaelkens
Op zaterdag 20 februari 2016 09:50:05 UTC+1 schreef Dave Farrance: > It occurs to me now that the trackback might misidentify the module in > use, if say, you'd named a file "numbers.py" then got rid of it later > leaving a "numbers.pyc" somewhere. If so, see where it is: > > import numbers >

Re: [newbie] Problem with matplotlib

2016-02-20 Thread jenswaelkens
Op zaterdag 20 februari 2016 09:43:35 UTC+1 schreef Mark Lawrence: > On 20/02/2016 07:42, jenswaelk...@gmail.com wrote: > > When I use either of the following commands I get an error for which I > > don't have a solution, could someone here help me further? > > These are the commands: > > import

Re: asyncio - run coroutine in the background

2016-02-20 Thread Martin A. Brown
Hello there, I realize that this discussion of supporting asynchronous name lookup requests in DNS is merely a detour in this thread on asyncio, but I couldn't resist mentioning an existing tool. >> getaddrinfo is a notorious pain but I think it's just a library >> issue; an async version

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread wrong . address . 1
On Saturday, 20 February 2016 09:49:17 UTC+2, Larry Hudson wrote: > On 02/19/2016 10:14 AM, wrong.addres...@gmail.com wrote: > [snip] > > > > This is precisely reading one character at a time. If not exactly reading > > one character, it is effectively looking at each character to assemble the

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread wrong . address . 1
On Saturday, 20 February 2016 09:54:15 UTC+2, Steven D'Aprano wrote: > On Fri, 19 Feb 2016 10:53 pm, wrong.addres...@gmail.com wrote: > > >> See http://nedbatchelder.com/text/python-parsers.html for a list of > >> parsers that can do all sorts for you. Or the stdlib re module > > > > I am an

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread wrong . address . 1
On Saturday, 20 February 2016 18:23:26 UTC+2, nholtz wrote: > On Wednesday, February 17, 2016 at 2:49:44 PM UTC-5, wrong.a...@gmail.com > wrote: > > I am mostly getting positive feedback for Python. > > ... > > I'm surprised no one has mentioned jupyter yet, so here goes ... > > A

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread wrong . address . 1
On Saturday, 20 February 2016 06:58:39 UTC+2, Denis Akhiyarov wrote: > On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, wrong.a...@gmail.com > wrote: > > I am mostly getting positive feedback for Python. > > > > It seems Python is used more for web based applications. Is it equally fine >

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Christian Gollwitzer
Am 20.02.16 um 19:45 schrieb wrong.addres...@gmail.com: On Saturday, 20 February 2016 09:54:15 UTC+2, Steven D'Aprano wrote: To answer your question "Do I need something fancy...?", no, of course not, reading a line of numbers from a text file is easy. with open("numbers.txt", "r") as f:

Re: I can't install python on my pc

2016-02-20 Thread Oscar Benjamin
On 20 Feb 2016 14:05, "Giriprasadh Raghavan" wrote: > > > I can’t install python on my pc because it encounters an error every time I try to install it. Please help as soon as possible. You need to give more information than that to get clear help. What error do

Re: asyncio - run coroutine in the background

2016-02-20 Thread Chris Angelico
On Sun, Feb 21, 2016 at 4:45 AM, Martin A. Brown wrote: > Another (non-Python) DNS name lookup library that does practically > the same thing (along with the shortcomingsn you mentioned, Chris: > no NSS nor /etc/hosts) is the adns library. Well, it is DNS, after > all. > >

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Roel Schroeven
wrong.addres...@gmail.com schreef op 2016-02-19 11:47: Thanks. The data I will often have to read from text files could read like 2 12.657823 0.1823467E-04 114 0 3 4 5 9 11 "Lower" 278.15 Is it straightforward to read this, or does one have to read one character at a time and then figure out

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Mike S via Python-list
On 2/19/2016 8:58 PM, Denis Akhiyarov wrote: On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, wrong.a...@gmail.com wrote: I am mostly getting positive feedback for Python. It seems Python is used more for web based applications. Is it equally fine for creating stand-alone *.exe's? Can the

Re: I can't install python on my pc

2016-02-20 Thread Steven D'Aprano
On Sat, 20 Feb 2016 06:34 pm, Giriprasadh Raghavan wrote: > > I can’t install python on my pc because it encounters an error every time > I try to install it. Please help as soon as possible. Sent from Mail for > Windows 10 Shall we guess what the error says? My guess is that you are out of

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Steven D'Aprano
On Sat, 20 Feb 2016 05:44 pm, Paul Rubin wrote: > But frankly the stuff I'm seeing in this thread makes me sad for Python. > It's an impossible dream but it would be awesome to have Erlang-like > communicating microtasks in Python. "But frankly the stuff I'm seeing in this thread makes me sad

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Larry Hudson via Python-list
On 02/20/2016 10:38 AM, wrong.addres...@gmail.com wrote: [snip] How complicated could this get in Python? Reading the numbers is one thing, and then placing the values in text boxes of the GUI. If that is the only object of using these values, there is no conversions necessary. The data is

Re: How the heck does async/await work in Python 3.5

2016-02-20 Thread Paul Rubin
Steven D'Aprano writes: > "But frankly the stuff I'm seeing in this thread makes me sad for > *literally every programming language in existence except for Erlang > and maybe one or two others*, which altogether about six people use in > total..." Erlang microtasks are more

[issue13354] tcpserver should document non-threaded long-living connections

2016-02-20 Thread Bas Wijnen
Bas Wijnen added the comment: Thank you for your fast response as well. I overlooked that paragraph indeed. It doesn't mention anything about avoiding a socket shutdown however. Keeping a list of requests isn't very useful if all the sockets in the list are closed. ;-) So I would indeed

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Ian Kelly
Ian Kelly added the comment: Chris Angelico suggested on python-list that another possibly useful thing to do would be to add a "from __future__ import generator_stop" to asyncio/futures.py. This would at least have the effect of causing "await future" to raise a RuntimeError instead of

[issue26392] socketserver.BaseServer.close_server should stop serve_forever

2016-02-20 Thread Aviv Palivoda
Aviv Palivoda added the comment: I see your point about the server_close purpose and I changed the patch to simulate the behavior of closed file (raising ValueError when operating on closed file). I don't think that this should be an enhancement as what i try to do is return the behavior as

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-20 Thread Eryk Sun
Eryk Sun added the comment: > By your explanation, it sounds like it would be better > to call unlink() before close(). Sorry, I was responding in general, because I thought you meant unlink would fail like it would for most open files on Windows, because the CRT normally doesn't open files

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-20 Thread SilentGhost
SilentGhost added the comment: Here is the updated patch including fixes for except and order of deletion. -- Added file: http://bugs.python.org/file41979/issue26385_3.diff ___ Python tracker

[issue4928] Problem with tempfile.NamedTemporaryFile

2016-02-20 Thread Eryk Sun
Eryk Sun added the comment: Maybe a note could be added to suggest using a SIGTERM signal handler (e.g. the handler could raise a SIGTERM exception): POSIX: The file will not be deleted if the process is terminated abruptly by a signal. A process may register a SIGTERM handler to ensure that

[issue26394] argparse: Add set_values() function to complement set_defaults()

2016-02-20 Thread Michael Herold
New submission from Michael Herold: argparse has at least three features to set defaults (default=, set_defaults(), argument_default=). However, there is no feature to set the values of arguments. The difference is, that a required argument has to be specified, also if a default value

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-02-20 Thread Jonathan Goble
Jonathan Goble added the comment: Noting for the record that, as I had brought up on python-ideas [1], in addition to simply exposing the raw code, it would be nice to have a public constructor for the compiled pattern type and a 'dis'-like module for support. The former would enable

[issue26389] Expand traceback module API to accept just an exception as an argument

2016-02-20 Thread Brett Cannon
Brett Cannon added the comment: So Terry's right that in my haste to write down the idea I contradicted myself. I do want to tweak the APIs in the traceback module to accept only an exception. The question is whether we need entirely new functions or if the pre-existing ones can be updated to

[issue26394] argparse: Add set_values() function to complement set_defaults()

2016-02-20 Thread Brett Cannon
Brett Cannon added the comment: To paraphrase Michael, he wants a way to tell argparse that an argument has to be supplied either from the command-line or some other mechanism (e.g., envvar, config file, etc.), but that if the value cannot be found in either situation, argparse fails saying

[issue26394] Have argparse provide ability to require a fallback value be present

2016-02-20 Thread Brett Cannon
Changes by Brett Cannon : -- title: argparse: Add set_values() function to complement set_defaults() -> Have argparse provide ability to require a fallback value be present ___ Python tracker

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-02-20 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> needs patch ___ Python tracker ___ ___

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2016-02-20 Thread Brett Cannon
Brett Cannon added the comment: Please add the fix to the issue that reported the problem so that the fix can be tracked with the bug report. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Guido van Rossum
Guido van Rossum added the comment: Chris, can you help out here? I still don't understand the issue here. Since "from __future__ import generator_stop" only works in 3.5+ it would not work in Python 3.3/3.4 (supported by upstream asyncio with literally the same source code currently). If

[issue26367] importlib.__import__ does not fail for invalid relative import

2016-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset e523efd47418 by Brett Cannon in branch '3.5': Issue #26367: Have importlib.__init__() raise RuntimeError when https://hg.python.org/cpython/rev/e523efd47418 New changeset 8f72bf88f471 by Brett Cannon in branch 'default': Merge for issue #26367

[issue26367] importlib.__import__ does not fail for invalid relative import

2016-02-20 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Manuel! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Chris Angelico
Chris Angelico added the comment: Ultimately, it's the exact same thing that PEP 479 is meant to deal with - raising StopIteration is functionally identical to returning. I don't use asyncio enough to be certain, but I'm not aware of any good reason to inject a StopIteration into it; maybe an

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-20 Thread Martin Panter
Martin Panter added the comment: I think patch 3 is good for Python 3, thankyou. For Python 2, the test will have to be adjusted. From memory, mode='wr' is accepted without an exception, and mode=2 triggers an early error (so we never trigger the bug). --

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-20 Thread Tamás Bence Gedai
Tamás Bence Gedai added the comment: What do you think about this regex? '(lib%s\.[^\s]+\s\(%s(?:\)|,\s.*\))\s=>\s.*)' % (re.escape(name), abi_type)) It works on 64 bit, just like before, but I could not test it on 32 bit. I'll add tests soon. I looked for documentation on ldconfig, but

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
New submission from Simon Bernier St-Pierre: I want to receive data on a UDP socket that was bound, without blocking the event loop. I've looked through the asyncio docs, and I haven't found a way of doing that using the coroutine API (yield from/await). There is a sock_recv method on

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2016-02-20 Thread Mark Mikofski
Mark Mikofski added the comment: still have the `link.exe` 1561 error without `extra_args=['/DLL']` issue. is there a patch? It goes in `distutils._msvccompiler` right? -- nosy: +bwanamarko ___ Python tracker

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Guido van Rossum
Guido van Rossum added the comment: You should be able to do this by calling create_datagram_endpoint(), passing it a custom DatagramProtocol subclass whose datagram_received() stores the data in the result of a Future. You can then wait for the Future to wait for the data (assuming it ever

[issue26000] Crash in Tokenizer - Heap-use-after-free

2016-02-20 Thread Sean Gillespie
Sean Gillespie added the comment: Is anyone currently working on this? If not, I'd like to try and fix this. I've debugged this a little and think I have an idea of what's going on. -- nosy: +swgillespie ___ Python tracker

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Guido van Rossum
Guido van Rossum added the comment: OK, since eventually there won't be a way to inject StopIteration into a Future anyway (it'll always raise RuntimeError once PEP 479 is the default behavior) we should just reject this in set_exception(). -- ___

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
Simon Bernier St-Pierre added the comment: That could work. I came up with this class MyProtocol(aio.DatagramProtocol): def __init__(self, fut): self._fut = fut def datagram_received(self, data, addr): self.fut.set_result((data, addr)) fut = aio.Future()

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Guido van Rossum
Guido van Rossum added the comment: I won't make you go through the PEP process, but I do think it's a bad idea to add this. After all datagrams aren't guaranteed to arrive, so, whil I don't know what protocol you're trying to implement, I think you're probably better off writing the whole thing

[issue26396] Create json.JSONType

2016-02-20 Thread Brett Cannon
New submission from Brett Cannon: See https://github.com/python/typing/issues/182 for the full details, but it should be: JSONType = t.Union[str, int, float, bool, None, t.Dict[str, t.Any], t.List[Any]] -- assignee: brett.cannon components: Library (Lib) messages: 260587 nosy:

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
Simon Bernier St-Pierre added the comment: I want to have a loop that receives data like this: socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) socket.bind(('0.0.0.0', port)) socket.setblocking(False) while True: data, addr = await loop.sock_recvfrom(sock, 4096) # process

[issue26397] Tweak importlib Example of importlib.import_module() to use importlib.util.module_from_spec()

2016-02-20 Thread Brett Cannon
New submission from Brett Cannon: The example uses `spec.loader.create_module()` where it should be using `util.module_from_spec(spec)`. -- assignee: brett.cannon components: Documentation messages: 260589 nosy: brett.cannon priority: normal severity: normal stage: needs patch status:

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Chris Angelico
Chris Angelico added the comment: POC patch, no tests. Is TypeError right? Should it be ValueError, since the notional type is "Exception"? -- keywords: +patch Added file: http://bugs.python.org/file41980/no_stop_iter.patch ___ Python tracker

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Guido van Rossum
Guido van Rossum added the comment: I think TypeError is fine. I would make the message a bit longer to explain carefully what's the matter. -- ___ Python tracker

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-20 Thread Mike Kaplinskiy
Changes by Mike Kaplinskiy : -- keywords: +patch Added file: http://bugs.python.org/file41981/patch.diff ___ Python tracker

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f1e680896ef by Brett Cannon in branch '3.5': Issue #26186: Remove an invalid type check in https://hg.python.org/cpython/rev/9f1e680896ef New changeset 86fc6cdd65de by Brett Cannon in branch 'default': Merge for issue #26186

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-02-20 Thread Brett Cannon
Brett Cannon added the comment: This has been resolved by removing the check (the docs have always said the method was ignored, so that will just continue). I also did separate commit to list that BuiltinImporter and ExtensionFileLoader won't work (they would need to be updated to return a

[issue26397] Tweak importlib Example of importlib.import_module() to use importlib.util.module_from_spec()

2016-02-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2a089d68297 by Brett Cannon in branch 'default': Issue #26397: Update an importlib example to use util.module_from_spec() instead of create_module() https://hg.python.org/cpython/rev/f2a089d68297 -- nosy: +python-dev

[issue26397] Tweak importlib Example of importlib.import_module() to use importlib.util.module_from_spec()

2016-02-20 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-20 Thread Martin Panter
Martin Panter added the comment: Tamás, it might be a good idea for you to sign a contributor agreement . I compiled Python in 32-bit mode and tried your v2 patch out, which found the wrong library as I predicted. Then I tried your new regex

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Martin Panter
Martin Panter added the comment: If your event loop supports it, maybe you could use add_reader() etc as a workaround (roughly based off a different function of my own; this version completely untested): async def sock_recvfrom(nonblocking_sock, *pos, loop, **kw): while True: try: