Closed andersontigerzhang closed 4 years ago
On a separate note, another enhancement is to allow pyq to run the compiled code. We can use cython --embed to convert to c file. after that I don't know how I can compile that to be used by pyq.
As a workaround, you can write out what the decorator is doing manually. It's far from ideal, but I haven't found any better solution.
Example:
def decorator(func):
''' Example decorator; does nothing '''
return func
def f(x):
return x
f = decorator(f) # manually apply decorator
Stale issue message
@abalkin I see you self assigned this issue, has there been any progress on this? There have been a number of users on internal channels asking about this
Questions
CentOS Linux release 7.4.1708 64bit
pyq --versions
, if PyQ isn't operational, please provide Python interpreter version and PyQ versionpython -V; python3 -V; pip list | grep pyq
:'4.1.4'
3.5 2017.03.28 64bit
yes
no. I don't know why I should install virtual env.
QHOME
? Please provide outputenv | grep QHOME
on linux/macOS, orset|grep QHOME
on Windows.QHOME=/dat/bcprod_constans/bin/kx/3.5
conda 4.6.9
Steps to reproduce the issue
Just use any script with decorators I don't know why this is not supported.
Expected result
Actual result
Workaround
If you know workaround, please provide it here.