TsXor
TsXor
hound says: line break before binary operator me: alright move it hound says: line break after binary operator me: ????????????????? I know if i make put all that string in...
附下面这个问题的解决方案: ``` "pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'" Run flake8 with greater verbosity to see more details ``` 如果用了赋值表达式,改成如下形式: ```python try: x = eval('带赋值表达式的版本')...
flake8 3.6.0会直接报错(不认识CONSTANT),但是3.7.0不会
> @TsXor Thank you for your contribution > > You can use the following command line to format codes. > > setting up the dev environment > > ``` >...
I thought I should patch app.executeAction() and app.executeActionGet(), but it just works fine! Maybe that's the magic of duck typing.
@loonghao Is there an api to find out which version of photoshop is running?
> * We need to add some examples for the current new functions > like these: > https://github.com/loonghao/photoshop-python-api/tree/main/examples > > * this commit tag should be `feat` because you added...
@loonghao I think you should know about the implementation of unify well, because _core.py uses the same thing: ```python def __getattribute__(self, item): try: return super().__getattribute__(item) except AttributeError: return getattr(self.app, item)...
So I also found that lots of the code in this repo is to fix the drawback of `_core`, exactly the same as unify. We can't exactly find which attribute...
也就是说其实在Session里用了AM代码的例子全是扯淡🤣 Session的ActionDescriptor, ActionList, ActionReference全是一个对象,这就是为什么用了Session的例子里这仨类都不实例化。 那为啥能正常工作呢?因为正如我一个issue中所描述,AM对象有个特性,子对象的更改都不会同步给父对象,一个AM对象嵌到其他AM对象里就像是copy了再存一样,这也就意味着你一直在Session里用一个对象还真有可能正常工作。好家伙,连上了,全连上了!🤣负负得正了属于是 但是也有几率翻车:你所有AM对象都用的一个,就像用同一个烧瓶装完试剂A,然后直接往里倒试剂B,迟早会有那么几次发生化学反应。况且这样导致了在Session模式和非Session模式中行为不一致,因此我强烈建议改了它。 本来这段我也想用英语说的,但是我是真的没绷住🤣🤣🤣 突然想起来在python里有这样一个特性: ```python class MyClass: def __init__(self, mylist=[]): self.mylist = mylist ``` 这样写的话,每个没给mylist参数的实例的mylist都会是**同一个列表** 好家伙,搁这学的🤣🤣🤣(这是开玩笑)