Questions tagged as 'python'

0
answers

Web Python without Framework [closed]

If there are two languages that I really like, they are python, which I have always used for desktop and php, which I have always used for the web. I would like to use python for the web too, but I am currently studying the django framework,...
asked by 04.10.2017 / 17:12
1
answer

How the push method works

In the code: import heapq class PriorityQueue: def __init__(self): self._queue = [] self._index = 0 def push(self, item, priority): heapq.heappush(self._queue, (-priority, self._index, item)) self._inde...
asked by 20.10.2017 / 01:50
1
answer

Python, ldap3 and Apache Directory Studio

I have a local LDAP server created in Apache Directory Studio, running on port 10389. When I connect using php, I can do searches normally, but when I try to connect using the ldap3 module in Python, I can not do Bind on the server. The answe...
asked by 14.08.2017 / 13:38
0
answers

Method of Newton-Raphson along with Horner

I'm having trouble implementing Horner's method to decrease the computational cost of polynomial calculations, and doing so use Newton's method to find the root of the polynomial In the code, b would store the value of the polynomial and c th...
asked by 30.09.2017 / 16:06
1
answer

Deploy in Heroku application PYTHON / DJANGO giving error

I made a change in the default auth of django and my project is working correctly however when I give git push heroku master and then I use the command heroku run python manage.py migrate to create my database and it gives the error:    djang...
asked by 11.06.2017 / 20:32
0
answers

"No module named mayavi.mlab"

I'm trying to install PyLayer on Ubuntu Xenial, but when I try to export coverage through from pylayers.antprop.coverage import * The following error appears: no module named mayavi.mlab But I have installed mayavi and I do not have ac...
asked by 23.08.2017 / 19:12
1
answer

Row Logic - Python

I have a question in a question, and I hope you guys can help me, the question itself is not how to develop the issue, this is not the problem, the problem lies in the logic of the issue that I am not getting understand, the question is this:...
asked by 26.03.2017 / 01:15
0
answers

Label with Dynamic Text in Tkinter

I researched a lot here in the stack and google, I stayed all night looking for a simple solution but I did not find it, I saw some form of solving but none worked for me so far. Situation: I am creating a Python app using Tkinter to manage a...
asked by 15.08.2017 / 16:32
1
answer

Error: "selenium.common.exceptions.WebDriverException: Message: Unknown error: Element is not clickable at point"

I'm setting a series of " checkboxes " in a lista variable. Then I run the variable in a loop so that only a few of them are clicked. However when the checkbox is not visible on the screen, Selenium does not click and displays the e...
asked by 05.10.2017 / 00:54
1
answer

What is the difference between "string" and "character" in Python?

What is the difference between string and character ? For example: print 'Olá, mundo!' print "Olá, mundo!" Being both in theory are the same, right? PS: I opened the XML to do my color editing, and in the Python XML comes a color...
asked by 24.08.2017 / 23:41