[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Eric Hopper

Eric Hopper added the comment:

Here's an update to types.coroutine that fixes the problem for me.

--
Added file: http://bugs.python.org/file46756/types.coroutine.py

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29909>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Eric Hopper

New submission from Eric Hopper:

The types.coroutine decorator for Python 3.6 (and I suspect for Python 3.6.1 as 
well) simply monkey patches the function it's passed and then returns it. This 
results in behavior that I found somewhat surprising.

def bar():
   yield 5

foo = types.coroutine(bar)

foo is bar

And, so now both foo and bar are now awaitable. I wasn't really expecting this, 
and while it's minor, it also doesn't really seem like the right thing to do.

--
components: asyncio
messages: 290518
nosy: Omnifarious, yselivanov
priority: normal
severity: normal
status: open
title: types.coroutine monkey patches original function
type: behavior
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29909>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7753] newgil backport

2010-02-02 Thread Eric Hopper

Changes by Eric Hopper eric-b...@omnifarious.org:


--
nosy: +Omnifarious

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7753
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1361] hashlib uses OpenSSL which is much slower than Aaron Gifford

2007-10-29 Thread Eric Hopper

Eric Hopper added the comment:

My testing methodology was faulty, this is not actually true.  Oops.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1361
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com