Questions tagged as 'python'

2
answers

How to capture the string of the processes that the python interpreter is executing in cmd?

I do not know if I am very clear with the question, basically I would like to know if it is possible to capture the string of the processes that python is executing inside the cmd, something like the following: Example: Let's say that with...
asked by 29.08.2018 / 04:57
2
answers

DNSPython: NoAnswer in MX and NS

I am reading the book "Python for Pentesters" by Daniel Echeverri Montoya. Being on page 17 I tried to test the code, however when trying to execute the function dns.resolver.query with the parameter MX and NS I get an error of NoAnswe...
asked by 15.03.2018 / 10:50
1
answer

Does anyone know what is the cause of the syntax error?

class Punto2D(): """Representacion de punto en 2 dimenciones""" def __init__(self, x, y): self.x = x self.y = y def get_x(self): return x def get_y(self): return y def radio_polar(self):...
asked by 05.02.2018 / 01:05
2
answers

Error when trying to compare dates of two time series: Can not compare type 'Timestamp' with type 'str' "

I'm doing a data transformation and I need to run a while between date periods, but I have the error:    "TypeError: Can not compare type 'Timestamp' with type 'str'" I have seen with type() what type of data they are and bo...
asked by 14.12.2017 / 20:38
2
answers

Divide list in list of lists

I have a list and I want to divide it into a list of lists every 3 values. lista = ['131997','https://www.google.com.ar/','google.com.ar','134930','https://www.a-a.com/','a-a.com'] What I'm looking for is exactly this: lista = [['131997',...
asked by 30.01.2018 / 19:26
2
answers

Read dictionary key with Selenium Python

I have the following code. The program is complete, only I need a small adjustment. As you can see, I read a dictionary and I'm entering the keys in different places on the selenium website. Now, here the problem appears, I need you to just call...
asked by 19.10.2017 / 16:59
1
answer

App for android in python

I'm doing my "Hello world" in python, I tell them that I'm taking Kivy to do this but when I run the program I get an error. import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.boxlayout import BoxLayout class Contenedor...
asked by 17.07.2017 / 22:27
2
answers

How do I keep my app updated with data from my mysql database?

I have read a lot, researched in several pages but I have not been able to find an answer to my question. I have an application made with PyQt, this same app uploads data to a mysql database and downloads them when you indicate it. But the appl...
asked by 23.05.2017 / 01:30
2
answers

Python - avoid changing value in a variable

Good afternoon The problem is that the first function changes the value of my list, and the second function takes the modified list as a parameter, and I want the second function to also take the original list as a parameter. import math im...
asked by 21.06.2017 / 21:52
1
answer

Read several lines with Stdin.readlines

I have a question with Stdin.readlines, I'm not sure how it's used; for example I have this paragraph    Adventures in Disneyland Two blondes were going to Disneyland when   They came to a fork in the road. The sign read: "Disneyland Left." S...
asked by 28.03.2018 / 22:01