Re: Problem Running Python

2019-12-17 Thread 황병희
Hello Patrick^^^ > kindly assist me through the proper download and installation procedure as I > really need to start learning coding with the Python programming language. In next year 2020, Ubuntu 20.04 LTS will be released with a New Hope, i guess. At there base Python will be 3.x version. If

Re: strptime for different languages

2019-12-17 Thread Chris Angelico
On Wed, Dec 18, 2019 at 5:57 AM Barry Scott wrote: > > > > > On 17 Dec 2019, at 10:37, Ulrich Goebel wrote: > > > > Hi, > > > > I need to interpret a date string to get a datetime object. That should be > > done with strptime from the module datetime. > > > > But I don't know enough about the lo

Re: strptime for different languages

2019-12-17 Thread Barry Scott
> On 17 Dec 2019, at 10:37, Ulrich Goebel wrote: > > Hi, > > I need to interpret a date string to get a datetime object. That should be > done with strptime from the module datetime. > > But I don't know enough about the locale settings from where the date sting > comes. Actually the date_s

Re: Transfer a file to httpserver via POST command from curl

2019-12-17 Thread Chris Angelico
On Wed, Dec 18, 2019 at 4:45 AM wrote: > > On Fri, 13 Dec 2019 03:54:53 +1100 > Chris Angelico wrote: > > > On Fri, Dec 13, 2019 at 3:44 AM Karthik Sharma > > wrote: > > > > > > Is it really possible to transfer a large binary file from my > > > machine to the above httpserver via POST command a

Re: More efficient/elegant branching

2019-12-17 Thread musbur
On Fri, 13 Dec 2019 11:34:24 +0100 Antoon Pardon wrote: > Well if you really want to go this route, you may consider the > following: > > def branch4(a, b, z): > decision = [ > ((lambda: a > 4 and b == 0), "first"), > ((lambda: len(z) < 2), "second"), > ((lambda: b +

Re: Transfer a file to httpserver via POST command from curl

2019-12-17 Thread musbur
On Fri, 13 Dec 2019 03:54:53 +1100 Chris Angelico wrote: > On Fri, Dec 13, 2019 at 3:44 AM Karthik Sharma > wrote: > > > > Is it really possible to transfer a large binary file from my > > machine to the above httpserver via POST command and download it > > again? If yes, is the above Flask app

Re: strptime for different languages

2019-12-17 Thread Ulrich Goebel
I think I have to live with this problem and the resulting date-errors. It seems to be possible to bring dateparse to better results if one knows a bit more about the source of a date string. Am 17.12.19 um 12:56 schrieb niktnobodyn...@gmail.com: W dniu wtorek, 17 grudnia 2019 11:47:23 UTC+1 u

Re: strptime for different languages

2019-12-17 Thread Ulrich Goebel
That's absolutely great, thank You! Am 17.12.19 um 11:53 schrieb Jon Ribbens via Python-list: On 2019-12-17, Ulrich Goebel wrote: I need to interpret a date string to get a datetime object. That should be done with strptime from the module datetime. But I don't know enough about the locale se

Re: strptime for different languages

2019-12-17 Thread niktnobodynikt
W dniu wtorek, 17 grudnia 2019 11:47:23 UTC+1 użytkownik Ulrich Goebel napisał: >13. Januar 1965 >13. January 1965 >13.01.1965 >1965-01-13 02.03.2000 Is it Mar, 2nd 2000 or Feb, 3rd 2000? -- https://mail.python.org/mailman/listinfo/python-list

Re: strptime for different languages

2019-12-17 Thread Jon Ribbens via Python-list
On 2019-12-17, Ulrich Goebel wrote: > I need to interpret a date string to get a datetime object. That should > be done with strptime from the module datetime. > > But I don't know enough about the locale settings from where the date > sting comes. Actually the date_string cames from different c

strptime for different languages

2019-12-17 Thread Ulrich Goebel
Hi, I need to interpret a date string to get a datetime object. That should be done with strptime from the module datetime. But I don't know enough about the locale settings from where the date sting comes. Actually the date_string cames from different contact forms inside websites made by d