Questions tagged as 'python-3.x'

3
answers

Standalone with django + pyinstaller

Dear, I have developed an app with django, but now I have a problem when I want to compile binary (.exe). I'm using Django + PyInstaller, although I can get to get the binary, but when executing it there is an error that obstructs the execution...
asked by 19.05.2017 / 14:22
2
answers

Concatenate byte with string in Python 3.5.2

I am making an application where I detect data from a sensor from Arduino and I want to print them together with the date and time. The data I read from the Arduino serial port is byte type, while the date and time are str. I want to concaten...
asked by 28.09.2016 / 08:30
1
answer

Does the method (Copy ()) of the lists in python make sense? (Python)

The method copy() makes a superficial copy of the list, but I do not see any sense to use it, if I want to make a copy of the list I simply do: lista2 = lista1 Instead of: lista2 = lista1.copy() What is the copy() metho...
asked by 17.03.2017 / 23:29
2
answers

string to list in python

Hello How can I convert string '[1,2,3,4]' to list in python having the following p> valor_inicial = str([1,2,3]) Now I want that initial_value to convert it into a list. How can I do it?     
asked by 05.10.2018 / 23:56
1
answer

Empty graphic in Jupyter

I am replicating this code to plot a line and a point but when I try to visualize the graphic it is empty. %matplotlib inline from matplotlib import pyplot from shapely.geometry import LineString, Point, LinearRing # Datos de entrada Line =...
asked by 20.03.2018 / 15:38
1
answer

Problem with tuple

Good, we have done this method of genetic algorithms in Python 3 but we have a problem of assignment to the tuple. We have read that a solution could be to convert the tuple to list but we do not know how to do it. def selection_and_reproducti...
asked by 14.07.2017 / 17:22
2
answers

Can you graph in real time in python?

I've been trying to get a graph in real time with matplotlib but it's almost impossible, is there any way I can do this? The issue is that I am receiving data through the usb port and I am storing them in a list, which is increasing as there...
asked by 22.04.2016 / 21:55
1
answer

Problem with Django multitenant rendering

I have a project called ripso_v2 in python3 and django 1.9 that by now has a couple of apps (created with the startapp and to which I added the file urls.py and forms.py) called "general" and "phva", the main folder of the project and a folder f...
asked by 03.02.2016 / 16:07
1
answer

Migrate from Python2 to Python3.x?

I request support by migrating the version that is currently installed in "Azure" when creating an application in Django in " Kudu Engine ". The following image shows the installed version " Python 2.7.15 ". A thousand thanks     
asked by 28.11.2018 / 22:11
1
answer

Some way to return a list using Python classes

I'm doing a small example with classes in Python but I want you to print a list of elements so use __str__ but I mark the error that it was not a type string here is my code: class intSet(object): def __init__(self):...
asked by 12.07.2017 / 18:40