« first day (4 days earlier)      last day (3362 days later) » 

12:00 PM
1 message moved from Python
 
 
2 hours later…
2:03 PM
0
A: datetime.timedelta returns unexpected results?

Antti HaapalaThe timedelta implementation there is broken: timedelta(hours=24) => datetime.timedelta(0, 52039, 213056) Should be 86400 seconds

upvotes pls
 
i think asking for upvotes in chat is not the right thing.. :-)
 
4 messages moved from Python
 
 
5 hours later…
7:08 PM
def getTemp():
            period = str(self.PeriodOption.currentText())
            if period == 'Year':
                temp = date[0][:4]
                temp2 = date[1][:4]
            elif period == 'Month':
                temp = date[0][5:7]
                temp2 = date[1][5:7]
            else:
                temp = date[0]
                temp2 = date[1]

        with sqlite3.connect('PostOffice.db') as db:
            cursor = db.cursor()
            cursor.execute('select Date, TotalPrice from OrderTime')
 
 
4 hours later…
11:32 PM
Hi can anyone help me out with a python requests question ?
0
Q: request object created from session loses cookie information

linuxfanI have a simple python script that uses the requests module to send POST/PUT/GET requests to a server. The script can connect to the server, perform authentication and also send a POST request. Later, it calls another method to send a different post request. However, the cookie information in the...

 

« first day (4 days earlier)      last day (3362 days later) »