Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 19:18:46 Avi Gross wrote: > Oops. They autocorrected the word piethon below so it makes no sense. > I meant a pie-eating-marathon or whatever. > I did wonder about that, damn the spiel chucker's anyway. > -Original Message- > From: Python-list > On Behalf Of Avi

RE: the python name

2019-01-04 Thread Avi Gross
I don't go back to the beginning of FORTRAN. My comment was not that FORTRAN was badly named when it was among the first to do such things. I am saying that in retrospect, almost any language can do a basic subset of arithmetic operations. And there is nothing in principle that necessarily stops an

Re: the python name

2019-01-04 Thread Michael Torrie
On 01/03/2019 06:35 PM, Gene Heskett wrote: > On Thursday 03 January 2019 15:28:49 Grant Edwards wrote: >> About 20 years ago, the RedHat Linux (way before RHEL) installer >> (which was written in Python) was called Anaconda. > Thanks for rescuing my old wet ram Grant, thats exactly what I was >

RE: the python name

2019-01-04 Thread Avi Gross
Oops. They autocorrected the word piethon below so it makes no sense. I meant a pie-eating-marathon or whatever. -Original Message- From: Python-list On Behalf Of Avi Gross Sent: Friday, January 4, 2019 6:55 PM To: python-list@python.org Subject: RE: the python name Gene, It is simple

RE: the python name

2019-01-04 Thread Avi Gross
Gene, It is simple in Python: if "IV" in "FIVE": print("Roman 4 is 5!") prints: Roman 4 is 5! Just a stupid coincidence that the spelling in current English for the numeral Five happens to have the silly one-less than 5 notation of the Roman numerals IV. Maybe someone with my perverted s

Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 16:37:49 Chris Angelico wrote: > On Sat, Jan 5, 2019 at 8:31 AM Gene Heskett wrote: > > On Friday 04 January 2019 13:22:03 Ian Kelly wrote: > > > And then there was WATFIV, which stands for WATerloo Fortran IV. > > > Because 5 == IV. > > > > Not what I was taught 75 yea

Re: the python name

2019-01-04 Thread songbird
Rick Johnson wrote: ... > You're singing a sad tune songbird, but i feel your pain... like all things, this too shall pass... :) songbird -- https://mail.python.org/mailman/listinfo/python-list

RE: Type hinting of Python is just a toy ?

2019-01-04 Thread Avi Gross
You can play mathematical reduction games and declare the only type of variable needed is a memory location but who cares? The reality is that well designed data structure can allow you to think about a problem in a way that leads to easy solutions. True, you can store something like an employee r

Re: the python name

2019-01-04 Thread Chris Angelico
On Sat, Jan 5, 2019 at 8:31 AM Gene Heskett wrote: > > On Friday 04 January 2019 13:22:03 Ian Kelly wrote: > > And then there was WATFIV, which stands for WATerloo Fortran IV. > > Because 5 == IV. > > Not what I was taught 75 years ago. Thats a brand new definition of fuzzy > logic. :( Maybe it's

Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 13:22:03 Ian Kelly wrote: > On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber wrote: > > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross" > > > > > > declaimed the following: > > >language, Formula Translator? (I recall using the What For > > > version). > > > >

Re: conda/anaconda and pip3 (pip)

2019-01-04 Thread Paulo da Silva
Às 19:39 de 02/01/19, Hartmut Goebel escreveu: > Am 03.12.18 um 18:39 schrieb Paulo da Silva: >> This also has a bad side effect! It reinstalls there some depedencies >> already installed in the conda created environment! >> >> Is there a way to avoid this situation? > > Try whether  `pyvenv --sys

Re: the python name

2019-01-04 Thread songbird
Peter J. Holzer wrote: > songbird wrote: hi, thank you for your reply. ... > Almost all of these points don't seem to be related to the language, but > to your environment. an application isn't useful unless it actually can be deployed and used in an environment. the easier it is for me

Re: conda/anaconda and pip3 (pip)

2019-01-04 Thread Paulo da Silva
Às 19:54 de 09/12/18, Tim Williams escreveu: > On Saturday, December 8, 2018 at 10:13:14 PM UTC-5, Monte Milanuk wrote: >> Did you find any solution(s)? > > I usually just lurk and read on this list. I don't reply since there's > usually more competent people that regularly post helpful answers.

Re: the python name

2019-01-04 Thread William Ray Wing via Python-list
> On Jan 4, 2019, at 11:34 AM, Avi Gross wrote: > > [BYTE] > As I joked in an earlier message, I remember using a version of FORTRAN > called WATFOR. Yes, there was a WATFIV. > > Yah - WATFOR was Waterloo FORTRAN, an interpreted FORTRAN that was used a lot in intro classes. No matter w

Re: the python name

2019-01-04 Thread Ian Kelly
On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber wrote: > > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross" > declaimed the following: > > > >language, Formula Translator? (I recall using the What For version). > > WATFOR => WATerloo FORtran And then there was WATFIV, which stands for WA

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Ian Kelly
On Fri, Jan 4, 2019 at 10:44 AM iamybj--- via Python-list wrote: > > { id: 1, name:’abc’, age:99, address:{province:’CA’, city:’SA’}} Those are nested dicts, not tuples, which leaves your argument really unclear. A dict is essentially a hash map. Java and C# (it's unclear what language you're co

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Chris Angelico
On Sat, Jan 5, 2019 at 4:43 AM iamybj--- via Python-list wrote: > > { id: 1, name:’abc’, age:99, address:{province:’CA’, city:’SA’}} > > Can be represent by: > > Class Address { > public string province; > public string city; > } > > Class Person { > public int id; >

Re: the python name

2019-01-04 Thread Peter J. Holzer
On 2019-01-04 11:34:24 -0500, Avi Gross wrote: > Although I used FORTRAN ages ago and it still seems to be in active > use, I am not clear on why the name FORMULA TRANSLATOR was chosen. Keep in mind that FORTRAN was one of the very first languages which didn't have a 1:1 mapping to machine code. A

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
{ id: 1, name:’abc’, age:99, address:{province:’CA’, city:’SA’}} Can be represent by: Class Address { public string province; public string city; } Class Person { public int id; public string name; public int age; public Address address; } -- http

Re: What can python replace?

2019-01-04 Thread songbird
Avi Gross wrote: ... this is really a computation theory question and for the most part you'll find that all languages of suitable power can replace each other. arguably some languages seem more expressive or easier to read than others. but the most popular languages will often have trans

Re: the python name

2019-01-04 Thread Gene Heskett
On Thursday 03 January 2019 15:28:49 Grant Edwards wrote: > On 2019-01-03, Gene Heskett wrote: > > Do I miss-remember that there was an anaconda language at sometime > > in the past? Not long after python made its debute? I've not see it > > mentioned in a decade so maybe its died? > > About 20 y

How to get rid of 3.7.2 (32-bit) in favour of 3.7.2 (64-bit)

2019-01-04 Thread Mathias Feiler
Hello, I'm as new to this mailinglist as I'm to Win10 (actually les than 24 hour). Just installed both on my new Thinkpad. Well, accidently I also just installed Python 3.7.2 (32-bit). Now I have trouble to get rid of it (in favour of the 64-bit version). I tried to "uninstall the App" more

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread lorenzo . gatti
On Friday, January 4, 2019 at 9:05:11 AM UTC+1, iam...@icloud.com wrote: > I read that pep 484 type hinting of python has no effect of performance, then > what’s the purpose of it? Just a toy ? Having no effect on performance is a good thing; Python is already slowish, additional runtime type che

RE: the python name

2019-01-04 Thread Avi Gross
William, Although I used FORTRAN ages ago and it still seems to be in active use, I am not clear on why the name FORMULA TRANSLATOR was chosen. I do agree it does sound more like a computer language based on both the sound and feel of FORTRAN as well as the expanded version. It seems to have b

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Terry Reedy
On 1/4/2019 4:04 AM, iamybj--- via Python-list wrote: In fact, there is only 3 types in all prigramming languages. 'Category' would be a better term. Better said might be: "One can usefully group types/classes of values/objects into 3 categories." Primitive type: int, string, bool, char...

Re: the python name

2019-01-04 Thread William Ray Wing via Python-list
On 3/01/19 2:03 PM, Avi Gross wrote: > Challenge: Can we name any computer language whose name really would suggest > it was a computer language? > I think the name is the least important aspect of a computer language. I’d like to propose that classic FORTRAN (FORmulaTRANslator) came/comes close.

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Abdur-Rahmaan Janhangeer
it will have it's uses ... for people who want to make some hacks like ... source-to-source compilers Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: subprocess : AttributeError: 'Popen' object has no attribute 'read'

2019-01-04 Thread Peter Otten
Mohan Mohta wrote: > Hello, > I am trying to grep the keyword (which I got from report_file ) from > report_file > > I tried multiple ways but am unable to get it to work. > > Below are the methods I tried. > > > fp=open(txt_file,'r') > for line in fp : > line=line.strip() >

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Joel Goldstick
On Fri, Jan 4, 2019 at 7:50 AM Chris Angelico wrote: > > On Fri, Jan 4, 2019 at 8:06 PM iamybj--- via Python-list > wrote: > > > > In fact, there is only 3 types in all prigramming languages. > > Primitive type: int, string, bool, char > > Complex type: struct or class > > Array Type: int[10]

Re: subprocess : AttributeError: 'Popen' object has no attribute 'read'

2019-01-04 Thread Chris Angelico
On Fri, Jan 4, 2019 at 10:16 PM wrote: > > On Thursday, January 3, 2019 at 9:40:43 PM UTC+1, Chris Angelico wrote: > > On Fri, Jan 4, 2019 at 7:37 AM Mohan Mohta wrote: > > > I am no expert in python but I found grep is lot faster in than the > > > methods of reading files from python point

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Chris Angelico
On Fri, Jan 4, 2019 at 8:06 PM iamybj--- via Python-list wrote: > > In fact, there is only 3 types in all prigramming languages. > Primitive type: int, string, bool, char > Complex type: struct or class > Array Type: int[10], string[100], struct[1000] > > These 3 type can represent all thins i

Re: subprocess : AttributeError: 'Popen' object has no attribute 'read'

2019-01-04 Thread marco . nawijn
On Thursday, January 3, 2019 at 9:40:43 PM UTC+1, Chris Angelico wrote: > On Fri, Jan 4, 2019 at 7:37 AM Mohan Mohta wrote: > > I am no expert in python but I found grep is lot faster in than the methods > > of reading files from python point me to direction if you know of > > anything faste

Re: the python name

2019-01-04 Thread Peter J. Holzer
On 2019-01-04 02:04:14 -0500, songbird wrote: > Rick Johnson wrote: > > songbird wrote: > > > ... > >> if you want to know the perspective of a new person > >> to the language and to help out make it better i have > >> a few suggestions for where to spend your time in a > >> way that will help out

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
In fact, there is only 3 types in all prigramming languages. Primitive type: int, string, bool, char Complex type: struct or class Array Type: int[10], string[100], struct[1000] These 3 type can represent all thins in the world. -- https://mail.python.org/mailman/listinfo/python-list

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Chris Angelico
On Fri, Jan 4, 2019 at 7:54 PM Ian Kelly wrote: > > On Fri, Jan 4, 2019 at 1:20 AM Chris Angelico wrote: > > > Pep484 is too complex. Typle should not a seperate type, in fact it > > > should be just a class. Like this in other programming language > > > Python: Tuple(id: int, name: string, age:

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Ian Kelly
On Fri, Jan 4, 2019 at 1:20 AM Chris Angelico wrote: > > Pep484 is too complex. Typle should not a seperate type, in fact it should > > be just a class. Like this in other programming language > > Python: Tuple(id: int, name: string, age: int) > > Other: class someClass { > > public int i

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread Chris Angelico
On Fri, Jan 4, 2019 at 7:06 PM iamybj--- via Python-list wrote: > > I read that pep 484 type hinting of python has no effect of performance, then > what’s the purpose of it? Just a toy ? Yep, it's just a toy. There's absolutely no reference anywhere in the PEP to "rationale and goals", or any me

Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
I read that pep 484 type hinting of python has no effect of performance, then what’s the purpose of it? Just a toy ? Python is an old programming language, but not better than other programming languages, then what are you all dong for so many times ? Pep484 is too complex. Typle should not a