Questions tagged as 'python'

2
answers

Delay when generating a PDF with Python and Reportlab

My doubt is in the time that my application is delayed at the moment I want to generate a PDF report, with python and reportlab. while they are up to 20 pages the application does not take long, in just seconds it generates the report in PDF, bu...
asked by 01.11.2017 / 13:47
1
answer

search date in list of dates

I have a list of dates that is in datetime.date format (year, month, day). I want to know the position that has a datex (which also has the format datetime.date (year, month, day) in the list with the following code: posicion = lista.inde...
asked by 24.11.2017 / 14:59
2
answers

Validate with regular expression python

I'm working with python and I'm doing a chat, I need to validate that if the user sends a code as follows: Code 1: ZH150000001 Code 2: ZHS150000001 Validate if it starts with ZH or ZHS and what follows is a number. I think that it co...
asked by 09.03.2018 / 15:54
3
answers

Problem csrf_token generated models admin

As I can put {% csrf_token %} to the forms that I generate in the Django admin, I have this problem about these forms and I do not know how to edit them because I have consulted and the solution is to put {% csrf_token %} in the fo...
asked by 15.12.2015 / 19:27
1
answer

Warning: Linker: (..) Unused DT entry

I was creating a python script using keras in termux with theano as a backend, because I can not install tensorflow in android, when I'm going to execute it it appears : Using Theano backend WARNING: linker: /data/data/com.termux/files/home/...
asked by 21.12.2018 / 05:19
1
answer

Create Postgres 9.3 connection with Python 3.6

I am starting to program in Python . My first problem is this: I can not connect to the bd of postgres . The library psycopg2 is not detected by the program pycharm I downloaded this program, which has been installed...
asked by 24.12.2018 / 19:30
1
answer

Replace letters when writing Python 2.7 [closed]

It is possible to make that when the user types in a "raw_input" instead of showing what he writes (ej: "hola") only shows a sign (ej: "****") , as if it were a key. Is it possible to do it with Py2.7? If 3.7 is required and...
asked by 25.08.2018 / 04:48
1
answer

What does this mean in JAVA and how to pass it to PYTHON

I have to pass this Java code to Python but I really do not know what it does: String row = (String) sprite[i]; We have that sprite is a vector and this is in a cycle for , so my variable i is the one that will be increasing....
asked by 05.07.2016 / 17:29
2
answers

Help to install _version in python (Windows)

I am using a script in Python and after solving problems with the tabs I now have one in the modules: from mainLib import File "C:\Python35-37\mainLib.py", lin import mechanize * File "C:\Python35-37\lib\site-package ImportError: No...
asked by 16.07.2016 / 21:52
1
answer

Class claendar Python

I need to make a python program that by a date, specifically on February 19, 2020. get what day of the week will fall, it is important that it is through the use of the class calendar, thanks to antemeno.     
asked by 22.11.2018 / 07:52