Re: Difference between os.path.isdir and Path.is_dir

2019-07-26 Thread Kirill Balunov
чт, 25 июл. 2019 г. в 20:28, eryk sun : > On 7/25/19, Kirill Balunov wrote: > > > import os > from pathlib import Path > dummy = " " # or "" or " " > os.path.isdir(dummy) > > False > Path(dummy).is_dir() > > True > > I can't reproduce the above result in either Linu

Python Certification training for Data Science

2019-07-26 Thread angel . thomas1717
This is a comprehensive course to learn Python Programming for Data Science, Data Analysis and Data Visualization In this course we will learn: 1) Complete understanding of Python from Scratch 2) Python for Data Science and Business Analysis List of some Topics that we will cover, 1) NumPy : N

Re: Python 3.7 - Reading text from Terminal window

2019-07-26 Thread Thomas Jollans
On 26/07/2019 06.33, nir.za...@gmail.com wrote: > Hi, > > I want it to wait for a specific text on the terminal window that it opens > (putty.exe), how can i do it? > > from pywinauto.application import Application > from pynput.keyboard import Key, Controller > > print('Configuring') > > app

ANN: Wing Python IDE 7.1 released

2019-07-26 Thread Wingware
Wing 7.1 is a new release of Wingware's Python IDE product line. This release adds support for Python 3.8, warns about unused symbols, improves code warnings configuration, adds new icons for the auto-completer, project, and source browser, supports Dark Mode on OS X, and makes other improveme

Multiple Interpreters?

2019-07-26 Thread Andrew Bell
Hi, I'm trying to understand what might be going on with loading one Python interpreter on top of a second. I'm running on OSX with a conda python installation. I understand that python is now statically linked on conda. I'm running python, which invokes an extension module. This extension mod

bool(Enum) should raise ValueError

2019-07-26 Thread Erik Aronesty
I just spend a while tracking down and killing all "if Enum" and "if not Enum" bugs in my code. I was frankly shocked that this didn't raise a ValueError to begin with. Apparently all enums are true/false depending on whether the underlying value is truthy or falsy. Which breaks the abstraction

Re: bool(Enum) should raise ValueError

2019-07-26 Thread Ethan Furman
On 07/26/2019 11:56 AM, Erik Aronesty wrote: I just spend a while tracking down and killing all "if Enum" and "if not Enum" bugs in my code. I was frankly shocked that this didn't raise a ValueError to begin with. Very few items, if any, raise a ValueError when asked for its True/False equi

Re: bool(Enum) should raise ValueError

2019-07-26 Thread Chris Angelico
On Sat, Jul 27, 2019 at 5:16 AM Erik Aronesty wrote: > > I just spend a while tracking down and killing all "if Enum" and "if not > Enum" bugs in my code. I was frankly shocked that this didn't raise a > ValueError to begin with. > > Apparently all enums are true/false depending on whether the u

Re: Why am I getting duplicate values in my output?

2019-07-26 Thread DT
On Thursday, July 25, 2019 at 9:57:38 PM UTC-5, Chris Angelico wrote: > On Fri, Jul 26, 2019 at 12:46 PM DT wrote: > > def main(): > > ap_list = [] > > ap_dict = {} > > > > for row in csv_reader: > > ap_dict['ap_name'] = ap.name > > ap_dict['ap_ipv4'] = ap.i

Re: Why am I getting duplicate values in my output?

2019-07-26 Thread Richard Damon
On 7/26/19 5:19 PM, DT wrote: > On Thursday, July 25, 2019 at 9:57:38 PM UTC-5, Chris Angelico wrote: >> On Fri, Jul 26, 2019 at 12:46 PM DT wrote: >>> def main(): >>> ap_list = [] >>> ap_dict = {} >>> >>> for row in csv_reader: >>> ap_dict['ap_name'] = ap.name >>>

TypeError: 'top_block_22' object is not callable

2019-07-26 Thread nice guy4
Hi, This is AJAX to flask server project. For more info about this project I have a couple postings about it here, please see link-1 link-2