Re: Python for System Verilog testbench

2018-09-13 Thread George Fischhof
Bobby ezt írta (időpont: 2018. szept. 14., P 0:16): > > I have a very simple System Verilog (SV) adder as my DUT (device under > test). I would like to generate a test bench for this DUT based on the > 'requirements'. I wrote its (DUT) functions in simple text as > 'requirements' while followin

Re: Looking for a Scrapy cheatsheet

2018-09-13 Thread Danyelle Davis
The one that sans provides seems pretty decent. Did you not like it? On Thu, Sep 13, 2018 at 4:05 PM Jim wrote: > I'm in the process of learning Scrapy. I've read through the docs and a > couple of tutorials, but I am getting bogged down because I can't find a > page/table/chart that gives a nic

[no subject]

2018-09-13 Thread V&R Dota2
>From vigan Hi i wold like to join in this list because i want to start programing with python pls acept this -- https://mail.python.org/mailman/listinfo/python-list

Python for System Verilog testbench

2018-09-13 Thread Bobby
I have a very simple System Verilog (SV) adder as my DUT (device under test). I would like to generate a test bench for this DUT based on the 'requirements'. I wrote its (DUT) functions in simple text as 'requirements' while following a particular syntax. Now through the help of grammar, I

Re: Help on PyList 3.7.0

2018-09-13 Thread MRAB
On 2018-09-13 21:50, Jason Qian via Python-list wrote: Hey, Need some help on PyList. #get path PyObject *path = PyObject_GetAttrString(sys, "path"); #new user path PyObject* newPath = PyUnicode_DecodeUTF8(userPath, strlen( userPath ), errors); #append newPath to path PyList_Append(path, ne

Help on PyList 3.7.0

2018-09-13 Thread Jason Qian via Python-list
Hey, Need some help on PyList. #get path PyObject *path = PyObject_GetAttrString(sys, "path"); #new user path PyObject* newPath = PyUnicode_DecodeUTF8(userPath, strlen( userPath ), errors); #append newPath to path PyList_Append(path, newPath); How to check if the newPath is already in the pa

Looking for a Scrapy cheatsheet

2018-09-13 Thread Jim
I'm in the process of learning Scrapy. I've read through the docs and a couple of tutorials, but I am getting bogged down because I can't find a page/table/chart that gives a nice concise overview of the available commands and methods. Googling hasn't found anything usable. So does anyone know

Re: Fumbling with emacs + elpy + flake8

2018-09-13 Thread Brian Oney via Python-list
Hi Martin, I have messed around alot with the myriad emacs configurations out there. I found spacemacs and threw out my crappy but beloved .emacs config. I have looked back, but will stay put. http://spacemacs.org/ Fumbling is a nice word. Spacemacs caters to lots of programmers. I can honestl

Fumbling with emacs + elpy + flake8

2018-09-13 Thread Martin Schöön
I am trying to set up emacs for Python coding on my secondary computer. I follow these instructions but fail to make flake8 play with elpy: https://realpython.com/emacs-the-best-python-editor/#elpy-python-development I have done this some time in the past on my main computer and there it works ju

Re: Trying to use threading.local()

2018-09-13 Thread Chris Angelico
On Fri, Sep 14, 2018 at 1:07 AM, Peter Otten <__pete...@web.de> wrote: > However, the trouble begins with > > a/b # magically determine context > > which has no way to smuggle in a third argument. The workaround while not > pretty is at least straightforward: > > context.divide(a, b) Exactly. You

Re: Trying to use threading.local()

2018-09-13 Thread Peter Otten
Chris Angelico wrote: > On Thu, Sep 13, 2018 at 10:22 PM, Peter Otten <__pete...@web.de> wrote: >> Antoon Pardon wrote: >> >>> On 12-09-18 22:14, Peter Otten wrote: As I understand it you need one local() instance that is shared by all workers. Every thead will then see thread-specific v

Re: Trying to use threading.local()

2018-09-13 Thread Chris Angelico
On Thu, Sep 13, 2018 at 10:22 PM, Peter Otten <__pete...@web.de> wrote: > Antoon Pardon wrote: > >> On 12-09-18 22:14, Peter Otten wrote: >>> As I understand it you need one local() instance that is shared by all >>> workers. Every thead will then see thread-specific values. >> >> It has always puz

Re: Trying to use threading.local()

2018-09-13 Thread Peter Otten
Antoon Pardon wrote: > On 12-09-18 22:14, Peter Otten wrote: >> As I understand it you need one local() instance that is shared by all >> workers. Every thead will then see thread-specific values. > > It has always puzzled me how this is useful. The times I work with > threads, I just put thread

Re: Trying to use threading.local()

2018-09-13 Thread Cameron Simpson
On 13Sep2018 12:21, Antoon Pardon wrote: On 12-09-18 22:14, Peter Otten wrote: As I understand it you need one local() instance that is shared by all workers. Every thead will then see thread-specific values. It has always puzzled me how this is useful. The times I work with threads, I just p

Re: Trying to use threading.local()

2018-09-13 Thread Antoon Pardon
On 12-09-18 22:14, Peter Otten wrote: > As I understand it you need one local() instance that is shared by all > workers. Every thead will then see thread-specific values. It has always puzzled me how this is useful. The times I work with threads, I just put thread specific values in the local va

Re: trying to connect the setarrange and blendshape input target weight while running the script am getting error in the 8th line. (for each in lip_val_list: )

2018-09-13 Thread Gary Herron
Your indentation of that line is incorrect. You also have indentation errors on lines 14 and 21.  (Possibly more, that's all the further I checked.)  Do you understand Python's indentation rules? In the future, you can do a lot better to help us help you. First, tell us the error you got in

trying to connect the setarrange and blendshape input target weight while running the script am getting error in the 8th line. (for each in lip_val_list: )

2018-09-13 Thread christysonia
lf_main_attr = "head_icon.Lf_Sticky_Lips" rt_main_attr = "head_icon.Rt_Sticky_Lips" lip_val_list = [18, 14] lip_name_list = ['upperLip', 'lowerLip'] name_counter = 0 for each in lip_val_list: half_val = (each / 2) + 1 total_val = each + 1 div_val = 10.0 / half_val counter = 0 while(c