-
When I run the program, there is an error:
for i in xrange(self.step, self.width - self.step/2, self.step):
NameError: name 'xrange' is not defined
Can someone help me? Thanks.
-
Not sure if it really matters but it might fit huge numbers : both range and xrange are used making things a bit confusing.
Is there any particular reason for this?
-
Seems like the insane installation is dependent on Python version. As `NameError: name 'xrange' is not defined` is a Python 2 vs Python3 problem. Does insane require Python 2.7?
-
UnknownError (see above for traceback): NameError: name 'xrange' is not defined
[[Node: PyFunc = PyFunc[Tin=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_STRING, DT_INT32, DT_INT32], Tout=[DT_FLOAT], token="py…
-
File "libhackrf.py", line 525, in get_serial_no
for i in xrange(0,4):
NameError: name 'xrange' is not defined
This is an easy fix - for python3 the 'range' function is identical.
Digging…
-
Hi!
I'm trying to build [a certain recipe](https://github.com/ohnx/haikuports/blob/master/games-strategy/Haiku2048/Haiku2048.recipe), but it seems like it gets stuck in an infinite loop here:
ht…
-
Hello, when generator.py is run i get the following error:
Traceback (most recent call last):
File "generator.py", line 193, in
main(sys.argv)
File "generator.py", line 188, in main
…
-
```
Some methods that accept iterables end up spending a lot of time
range-checking elements. This isn't really needed, as often the iterable is
an xrange or range object, and the whole range checking…
-
```r
if(top){
side1
-
[flake8](http://flake8.pycqa.org) testing of https://github.com/spmallick/learnopencv on Python 3.7.0
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./tra…