Re: The state of asyncio in 2019

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 11:56 AM Becaree wrote: > > So i started to use asyncio some times ago. I see a lots of threads/forums > which date back from 2015 or older. My question is what the state of asyncio > in 2019? I guess, the major constrain of having async/await is quiet a > drawback. I do

The state of asyncio in 2019

2019-05-19 Thread Becaree
So i started to use asyncio some times ago. I see a lots of threads/forums which date back from 2015 or older. My question is what the state of asyncio in 2019? I guess, the major constrain of having async/await is quiet a drawback. I do love asyncio but reinventing the wheel using it is somehow

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy
On 5/19/2019 5:34 PM, Christian Heimes wrote: By the way, I'm working on removing some dead battieres since last year, see proto PEP https://github.com/tiran/peps/blob/oldbatteries/pep-.rst and LWN article https://lwn.net/Articles/755229/ Hooray! I believe that there are other modules, oth

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
The pg python lib requires https://www.postgresql.org/docs/current/libpq.html pip pulls it as a part of the lib install, whereas in oracle case you install the driver yourself first.(suize matters) //for some reason i thought the driver libs come as part of cx . But it was a year ago and my memory

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy
On 5/19/2019 4:48 PM, Chris Angelico wrote: On Mon, May 20, 2019 at 5:41 AM John Ladasky wrote: On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html This was a controversial talk at the Python language su

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
Marco, You clearly know more about python/java universe than i do. But im infinitely thankful to cx team for putting out the package. Feature and performance wise , even with non supported oracle timesten, it was fantastic. Id always go after "native" vs jdbc. But i understand that most of apps

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:38 AM Christian Heimes wrote: > > On 19/05/2019 22.48, Chris Angelico wrote: > >> the sslmodule requires a monkeypatch to connect to non-ASCII domain names, > > It's not correct. There were some bugs in IDNA support in the SSL > module. Nathaniel and I worked on the topic

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list wrote: > > I programmed in Python 2 and 3 for many years, and I find it a fantastic > language. > > Now I'm programming in Java by m ore than 2 years, and even if I found its > code much more boilerplate, I admit that JDBC is fantastic. >

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Christian Heimes
On 19/05/2019 22.48, Chris Angelico wrote: >> the sslmodule requires a monkeypatch to connect to non-ASCII domain names, It's not correct. There were some bugs in IDNA support in the SSL module. Nathaniel and I worked on the topic and fixed it in 3.7, see https://bugs.python.org/issue28414 Python

Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Marco Sulla via Python-list
I programmed in Python 2 and 3 for many years, and I find it a fantastic language. Now I'm programming in Java by m ore than 2 years, and even if I found its code much more boilerplate, I admit that JDBC is fantastic. One example over all: Oracle. If you want to access an Oracle DB from Python, y

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 5:41 AM John Ladasky wrote: > > On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: > > http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html > > > > This was a controversial talk at the Python language summit, giving > > various criticism

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread John Ladasky
On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: > http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html > > This was a controversial talk at the Python language summit, giving > various criticisms of Python's standard library, I will try to find some time to

Re: Tkinter optionMenu Resize

2019-05-19 Thread Terry Reedy
On 5/18/2019 10:40 AM, Cummins, Hayden wrote: Hi! I've been having a lot of trouble resizing the Tkinter optionMenu feature due to my inexperience in Python. Is there a way to resize the option menu? If so, how? I've tried using the config function and it makes it so the program no longer exec

Re: Import module from a different subdirectory

2019-05-19 Thread Peter J. Holzer
On 2019-05-18 16:15:34 -0700, Rich Shepard wrote: > My apologies to all who patiently tried to get me to see what I kept > missing. I've certainly made similar mistakes in the past (and probably will in the future). And I didn't see it when I read your mail the first time. But then I read Piet's

Re: Checking network input processing by Python for a multi-threaded server

2019-05-19 Thread Markus Elfring
>> I get an other impression from the statements “self._threads.append(t)” >> (process_request) >> and “thread.join()” (server_close). > > Okay -- v3.7 has added more logic that didn't exist in the v3.5 code > I was examining... (block_on_close is new). Thanks for such a version comparison.

Re: PyCharm installation

2019-05-19 Thread Jorge Gimeno
On Sun, May 19, 2019, 3:27 AM Syed Rizvi wrote: > Hi, > > I tried to install PyCharm. First time when I installed it, it worked > well. It developed some problem and when I reinstalled PyCharm, it gives me > error. I have installed it several times but could not install it > > I am unable to inst

Re: Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Piet van Oostrum
Eugene Alterman writes: > a = 1, 2, 3 > > b = *a, # assignment - OK > b += *a, # augmented assignment - syntax error > > Need to enclose in parenthesis: > > b += (*a,) > > Why isn't it allowed with an augmented assignment, while it is OK with a > regular assignment? > Syntacti

Re: The if is not working properly

2019-05-19 Thread MRAB
On 2019-05-19 11:29, Cameron Simpson wrote: On 18May2019 13:22, nobelio wrote: When you print the variable “a” it appears as True, but the program is it is not getting in the if a==True: It may be that "a" is not the Boolean value True but something else. But that is just a guess. Please repl

Re: The if is not working properly

2019-05-19 Thread Alister via Python-list
On Sun, 19 May 2019 20:29:35 +1000, Cameron Simpson wrote: > On 18May2019 13:22, nobelio wrote: >>When you print the variable “a” it appears as True, but the program is >>it is not getting in the if a==True: > > It may be that "a" is not the Boolean value True but something else. But > that is j

Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Eugene Alterman
a = 1, 2, 3 b = *a, # assignment - OK b += *a, # augmented assignment - syntax error Need to enclose in parenthesis: b += (*a,) Why isn't it allowed with an augmented assignment, while it is OK with a regular assignment? -- https://mail.python.org/mailman/listinfo/python-

Re: The if is not working properly

2019-05-19 Thread Cameron Simpson
On 18May2019 13:22, nobelio wrote: When you print the variable “a” it appears as True, but the program is it is not getting in the if a==True: It may be that "a" is not the Boolean value True but something else. But that is just a guess. Please reply and paste in a small example programme sh

PyCharm installation

2019-05-19 Thread Syed Rizvi
Hi, I tried to install PyCharm. First time when I installed it, it worked well. It developed some problem and when I reinstalled PyCharm, it gives me error. I have installed it several times but could not install it I am unable to install PyCharm. -- https://mail.python.org/mailman/listinfo/pyth

The if is not working properly

2019-05-19 Thread nobelio
When you print the variable “a” it appears as True, but the program is it is not getting in the if a==True: Enviado do Email para Windows 10 --- Este e-mail foi verificado quanto a vírus pelo AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Tkinter optionMenu Resize

2019-05-19 Thread Cummins, Hayden
Hi! I've been having a lot of trouble resizing the Tkinter optionMenu feature due to my inexperience in Python. Is there a way to resize the option menu? If so, how? I've tried using the config function and it makes it so the program no longer executes. I also can't find any articles about this