Re: the python name

2019-01-03 Thread Jack Dangler
Odd that COBOL (Common Business Oriented Language)  and DIBOL (Digital 
Business Oriented Language) follow the paradigm, but SNOBOL went with 
"symBOlic"...


On 1/2/19 7:22 PM, Rich Shepard wrote:

On Wed, 2 Jan 2019, Dennis Lee Bieber wrote:


Which was a derivative of BCPL (so one could claim a successor of C
should be named P), ?, mathematician, beginners all-purpose symbolic
instruction code. R? maybe a subtle implication to be better/in-front-of
S. SNOBOL is the ugly one, since the SN come from "string", and the BO
from the middle of "symbolic".


  R is the open source implemention of the S statistical/data analysis
language developed by Chambers at the AT&T Labs. S-Plus is the 
proprietary,

windows-requiring implementation of S.

Rich


--
https://mail.python.org/mailman/listinfo/python-list


Re: How to display video files (mkv, wav, mp4 etc) within a TKinter widget?

2019-01-03 Thread Arie van Wingerden
Hi, 
in the meantime I am trying out what I found (after my question) here: 
https://solarianprogrammer.com/2018/04/21/python-opencv-show-video-tkinter-window/

If that doesn't play well, I'll try your suggestion.

Many thanks!

Op woensdag 2 januari 2019 19:06:05 UTC+1 schreef Vincent Vande Vyvre:
> Le 2/01/19 à 15:17, Arie van Wingerden a écrit :
> > I found (mostly fairly old stuff) some questions and a lot of (apparently 
> > often not working) Python code.
> >
> > 1. does TKinter offer such thing out of the box?
> > 2. or is there another way using TKinter?
> > 3. or do I need another GUI tool (e.g. QT) for this?
> >
> > TIA
> 
> With Qt it's very easy to implement a video player.
> 
> See this example:
> 
> https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui/videoplayer.py
> 
> It is implemented into this window:
> 
> https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui/uiconcerts.py
> 
> 
> Vincent

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: the python name

2019-01-03 Thread Avi Gross
[NOTE: Not a serious post, just a response to a complaint about python as a 
name and computer language names in general.]

On further thought, it seems that a name that reminds some people that it is a 
computer language would be in hexadecimal and start with 0X. But that restricts 
the remainder of the name to numerals plus {A,B,C,D,E,F} so something like 
0XFACE or 0XDEAF or 0XFADE so how about:

0XFACADE

Clearly the language is just a façade behind whose face are other 
representations we are normally deaf to heading down towards binary.

You can, of course, use the usual password tricks where zero can stand for oh, 
one for el and so on. That extends the words you can make. And of course some 
digits can expand with 2 becoming two or even to/too and 4 becoming fore.

PYTHON by this weird measure is horrible as every single letter is above F.  
AnAC0nDA is much better.

ADA works!

And the cure for JAVA might be DECAF in a CAFÉ.

Better suggestions about what a computer language name should look like are 
welcome. I am thinking a bit outside the box that a solution might be in a box. 
I am thinking of a binary matrix containing 0/1 in a 2d-pattern that spells out 
something  or perhaps has two sections side by side where the background 
letters on each side are all of the same digit while the foreground using the 
other digit spells out itself, or perhaps the opposite. This is an ASCII 
message environment so I won't show a sample. Not THAT would be a name, albeit 
a long one.

Back to seriousness. I do not understand any suggestions that the python 
language will go away any time soon. It will continue to evolve and sometimes 
that evolution may introduce incompatibilities so earlier versions may have to 
stop being supported. In many recent polls I keep seeing Python getting an 
increasing share of programs written for all kinds of purposes. Of course, 
there will be competition from other languages and new ones will arise.  I also 
see no reason any one person needs to steer the evolution indefinitely. 
Unrestricted growth is bad but as the world advances, some growth is a good 
idea. Bad analogy, but snakes do tend to shed their skin periodically as they 
grow.






-Original Message-
From: Larry Martell  
Sent: Wednesday, January 2, 2019 8:08 PM
To: Avi Gross 
Cc: Python 
Subject: Re: the python name

On Wed, Jan 2, 2019 at 8:04 PM Avi Gross  wrote:
>
> Challenge: Can we name any computer language whose name really would suggest 
> it was a computer language?

COBOL (Common Business-Oriented Language) FORTRAN (Formula Translation)
PL/1 (Programming Language 1)
ALGOL (Algorithmic Language)

-- 
https://mail.python.org/mailman/listinfo/python-list


Python Developer - Boulder,CO

2019-01-03 Thread Swaroop Mohapatra
Hi All,
Please go through with the below JD and let me know your interest.

Role: Python Developer
Location: Boulder, CO
Duration: Long Term

Job Description:
5+ years of experience in
Python programming
Test automation skills – exposure to automation framework, writing automation 
scripts and execution
Protocols (NFS/CIFS)
Linux
Debugging skills
SW Test cycle understanding
Client - HCL

Thanks,
Swaroop Mohapatra
Technical Recruiter,
Panacea Direct Inc.
Office - 201-589-5723
swaroop.mohapa...@panaceadirect.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Chris Angelico
On Fri, Jan 4, 2019 at 3:55 AM Avi Gross  wrote:
> Back to seriousness. I do not understand any suggestions that the python 
> language will go away any time soon. It will continue to evolve and sometimes 
> that evolution may introduce incompatibilities so earlier versions may have 
> to stop being supported. In many recent polls I keep seeing Python getting an 
> increasing share of programs written for all kinds of purposes. Of course, 
> there will be competition from other languages and new ones will arise.  I 
> also see no reason any one person needs to steer the evolution indefinitely. 
> Unrestricted growth is bad but as the world advances, some growth is a good 
> idea. Bad analogy, but snakes do tend to shed their skin periodically as they 
> grow.
>

Python tried to shed its skin, but I don't think the project really
got anywhere, and I think it's been shelved (last commit was in March
2017).

https://en.wikipedia.org/wiki/Shed_Skin
https://github.com/shedskin/shedskin

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Abdur-Rahmaan Janhangeer
i think leaving py2 is in the shed-skin process

Abdur-Rahmaan Janhangeer
http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ
Mauritius
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2019-01-03 Thread Mohan Mohta
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()
var1=line.lower()
g_info=subprocess.Popen('cat report_file| grep -i '+var1, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error:
AttributeError: 'Popen' object has no attribute 'read'


fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=subprocess.Popen(cmd, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error:
AttributeError: 'Popen' object has no attribute 'read'
+++

fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=os.command(cmd)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Result :
The Code executes but the output is in screen and does not get stored in a 
variable.
I am interested if I can achieve the same result with subprocess calls
+


fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=subprocess.Popen(cmd, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True).
g_info=g_info.stdout.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error
AttributeError: 'Popen' object has no attribute 'read'



fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd=['cat','report_file','|','grep','-i',serv_name]
g_info=subprocess.Popen(cmd)
g_info.wait()
try :
  g_info=g_info.stdout.readlines()
  print g_info
except AttributeError :
  pass
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Result :
Nothing gets printed out




-- 
https://mail.python.org/mailman/listinfo/python-list


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

2019-01-03 Thread Chris Angelico
On Fri, Jan 4, 2019 at 6:46 AM 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.

How about, instead, you simply open the file and iterate through it,
looking for the keyword? 'grep' is irrelevant, and definitely 'cat' is
a waste of effort. Python code doesn't have to be written as a less
terse form of bash.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Gene Heskett
On Thursday 03 January 2019 11:53:34 Avi Gross wrote:

> [NOTE: Not a serious post, just a response to a complaint about python
> as a name and computer language names in general.]
>
> On further thought, it seems that a name that reminds some people that
> it is a computer language would be in hexadecimal and start with 0X.
> But that restricts the remainder of the name to numerals plus
> {A,B,C,D,E,F} so something like 0XFACE or 0XDEAF or 0XFADE so how
> about:
>
> 0XFACADE
>
> Clearly the language is just a façade behind whose face are other
> representations we are normally deaf to heading down towards binary.
>
> You can, of course, use the usual password tricks where zero can stand
> for oh, one for el and so on. That extends the words you can make. And
> of course some digits can expand with 2 becoming two or even to/too
> and 4 becoming fore.
>
> PYTHON by this weird measure is horrible as every single letter is
> above F.  AnAC0nDA is much better.
>
> ADA works!
>
> And the cure for JAVA might be DECAF in a CAFÉ.
>
> Better suggestions about what a computer language name should look
> like are welcome. I am thinking a bit outside the box that a solution
> might be in a box. I am thinking of a binary matrix containing 0/1 in
> a 2d-pattern that spells out something  or perhaps has two sections
> side by side where the background letters on each side are all of the
> same digit while the foreground using the other digit spells out
> itself, or perhaps the opposite. This is an ASCII message environment
> so I won't show a sample. Not THAT would be a name, albeit a long one.
>
> Back to seriousness. I do not understand any suggestions that the
> python language will go away any time soon. It will continue to evolve
> and sometimes that evolution may introduce incompatibilities so
> earlier versions may have to stop being supported. In many recent
> polls I keep seeing Python getting an increasing share of programs
> written for all kinds of purposes. Of course, there will be
> competition from other languages and new ones will arise.  I also see
> no reason any one person needs to steer the evolution indefinitely.
> Unrestricted growth is bad but as the world advances, some growth is a
> good idea. Bad analogy, but snakes do tend to shed their skin
> periodically as they grow.
>
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?
>
>
>
>
>
> -Original Message-
> From: Larry Martell 
> Sent: Wednesday, January 2, 2019 8:08 PM
> To: Avi Gross 
> Cc: Python 
> Subject: Re: the python name
>
> On Wed, Jan 2, 2019 at 8:04 PM Avi Gross  wrote:
> > Challenge: Can we name any computer language whose name really would
> > suggest it was a computer language?
>
> COBOL (Common Business-Oriented Language) FORTRAN (Formula
> Translation) PL/1 (Programming Language 1)
> ALGOL (Algorithmic Language)


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Chris Angelico
On Fri, Jan 4, 2019 at 7:01 AM 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?

Hmm, I don't know about a *language* per se. There is a *distribution*
called Anaconda, aimed at data science users. It has its own package
manager and a ton of easily installable packages. Personally, I don't
think Anaconda is particularly important to typical users, but perhaps
it's easier to say "hey, I need to use Anaconda" than "hey, I need to
use Python, and numpy, and pandas, and X, and Y, and Z...", so that
might give it a significant edge in certain contexts.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Grant Edwards
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 years ago, the RedHat Linux (way before RHEL) installer
(which was written in Python) was called Anaconda.

-- 
Grant Edwards   grant.b.edwardsYow! What UNIVERSE is this,
  at   please??
  gmail.com

-- 
https://mail.python.org/mailman/listinfo/python-list


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

2019-01-03 Thread David Raymond
Agreeing with the other poster that it's probably not the best way to handle it.

But for the sake of helping with subprocess:
https://docs.python.org/3.7/library/subprocess.html#popen-objects

Popen Objects don't have read() as the error says. That's on their .stdout and 
.stderr streams. So you'd want g_info.stdout.read() Or .stderr maybe, depending 
on what you're running and how it does its output. If you want them both to go 
to the same thing you can use stderr = subprocess.STDOUT instead of 
subprocess.PIPE, then both will end up in your .stdout stream.

And while it is indeed gonna be a quick thing that you're running, you have 
nothing in there that makes sure your subprocess actually runs and finishes 
before you're trying to read the results, which will bite you on anything more 
complicated.



-Original Message-
From: Python-list 
[mailto:python-list-bounces+david.raymond=tomtom@python.org] On Behalf Of 
Mohan Mohta
Sent: Thursday, January 03, 2019 2:44 PM
To: python-list@python.org
Subject: subprocess : AttributeError: 'Popen' object has no attribute 'read'

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()
var1=line.lower()
g_info=subprocess.Popen('cat report_file| grep -i '+var1, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error:
AttributeError: 'Popen' object has no attribute 'read'


fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=subprocess.Popen(cmd, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error:
AttributeError: 'Popen' object has no attribute 'read'
+++

fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=os.command(cmd)
g_info=g_info.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Result :
The Code executes but the output is in screen and does not get stored in a 
variable.
I am interested if I can achieve the same result with subprocess calls
+


fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd='cat report_file| grep -i '+var1
g_info=subprocess.Popen(cmd, 
stdout=subprocess.PIPE,stderr=subprocess.PIPE,shell=True).
g_info=g_info.stdout.read()
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Error
AttributeError: 'Popen' object has no attribute 'read'



fp=open(txt_file,'r')
 for line in fp :
line=line.strip()
var1=line.lower()
cmd=['cat','report_file','|','grep','-i',serv_name]
g_info=subprocess.Popen(cmd)
g_info.wait()
try :
  g_info=g_info.stdout.readlines()
  print g_info
except AttributeError :
  pass
g_info=g_info.strip()
info=g_info.strip('||')
print g_info
print info
fp.close()

Result :
Nothing gets printed out




-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2019-01-03 Thread Mohan Mohta
On Thursday, January 3, 2019 at 1:49:31 PM UTC-6, Chris Angelico wrote:
> On Fri, Jan 4, 2019 at 6:46 AM 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.
> 
> How about, instead, you simply open the file and iterate through it,
> looking for the keyword? 'grep' is irrelevant, and definitely 'cat' is
> a waste of effort. Python code doesn't have to be written as a less
> terse form of bash.
> 
> ChrisA

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 
faster I would appreciate it.

-- 
https://mail.python.org/mailman/listinfo/python-list


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

2019-01-03 Thread Chris Angelico
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 faster I would appreciate it.
>

Try doing things the simple and easy way in Python, then figure out if
it's too slow. Only THEN should you worry about "faster".

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Grant Edwards
On 2019-01-03, 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 years ago, the RedHat Linux (way before RHEL) installer
> (which was written in Python) was called Anaconda.

Apparently it's still called that...

   https://en.wikipedia.org/wiki/Anaconda_(installer)

-- 
Grant Edwards   grant.b.edwardsYow! I'm also pre-POURED
  at   pre-MEDITATED and
  gmail.compre-RAPHAELITE!!

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: the python name

2019-01-03 Thread Avi Gross
Ok, this gives me a chance to say something actually python related.

Why did I mention Anaconda? Because python is also the name of a snake and
some people considered it appropriate to name their pet project that
includes python, as the name of another snake:

https://www.anaconda.com/

For people with my interests, this distribution of python is bundled with
other optional components with some focus, as I see Chris mentioned, on Data
Science users. I like having lots of tools available and included are many
modules I would otherwise download as much of my interest is in science and
statistical tools and especially on machine learning. Also thrown in is the
R environment which I have been using for years as these seem to be the two
major languages used by many, often both together. 

I am not here to evangelize but there are some other nifty tools and in
particular, the Jupiter notebook allows my style of interactive programming
that I was used to doing in ways through functionality in R Studio. Every
language generally needs a purpose and python was designed to do many things
well but initially was not equipped with data structures and methods that
were designed early into R. Over the years, I have seen much convergence as
python added the modules like numpy and pandas and sklearn and so on that
allow much simpler manipulation than creating lists of lists of lists to
hold data. R has added much, including way too many different ways to do
object-oriented. I want to be able to do some of both using their strengths
including both at the same time. Python has modules like rpy2 that allow a
slaved R interpreter to work with programs back and forth. R has a package
called reticulate that allows a different way to intersperse code using
anaconda python. And, there are other ways where a third party such as a
markdown processor allows both in chunks. No need to say more as it is of
little interest to many.

So back to the silly topic about names, just briefly. I am sure there are
many other puns of sorts used in naming conventions among python users.
There are seemingly endless uses of phrases from the Month Python comedies
such as "shrubbery" and clearly also snake analogies. Chris one-upped me
with an excellent riposte on some others making a bit of a joke about snakes
shedding skin. Not clear on what python would shed when being replaced by
C++ but I can live with that. As I see it, python is a very sophisticated
backbone with lots of flexibility that you may need to graft arms and legs
to if you want to rise above the ground level.

[[Please forget I said that, whatever it means.]]

-Original Message-
From: Python-list  On
Behalf Of Grant Edwards
Sent: Thursday, January 3, 2019 3:29 PM
To: python-list@python.org
Subject: Re: the python name

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 years ago, the RedHat Linux (way before RHEL) installer (which was
written in Python) was called Anaconda.

-- 
Grant Edwards   grant.b.edwardsYow! What UNIVERSE is
this,
  at   please??
  gmail.com

--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread DL Neil

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.



Perhaps not.

If you subscribe to the wider StackOverflow Driven Design philosophy 
(SODD), then it would be a kindness to choose the language's name so as 
to be (close to) unique when entered as a search key.


Thus the OP's original assumption/confusion between a programming 
language and a serpent; Java and a large island; right down to C, R, etc 
which are too short to be usable search terms in most engines.


--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


RE: the python name

2019-01-03 Thread Avi Gross
Neil,

You convinced me.

I meant the content and usefulness of a programming language need not be
correlated strongly with the name given and especially not the shortened
name it commonly goes by.

But if you mean how hard is it to use a web search engine to find things,
indeed. The perfect name would be something so unique nobody else would use
it.

By that standard, searching for R or C is a tad excruciating. The choice of
other keywords can help as well as tricks like searching for [R] instead of
plain R. 

So, yes, python also finds snakes. Guess what pandas finds? [Before anyone
asks, it is not a programming language but is a part of extended python.]
You start wondering if you are searching in a zoo.

But I suspect a name like X69Y-22C might be a great name to search for but
not very interesting.

When I look at names of computer languages I see a few patterns.

Some pick a name to honor Blaise PASCAL, Haskell  Curry, Alan Turing or Ada
Lovelace. Many are a condensation of a phrase with some computational
meaning like List Processing, Algorithmic Language, Common Business Oriented
language, Formula Translator? (I recall using the What For version).
Programming Language 1, A Programming Language, Program Logic and so on.

Some have the creator(s) names embedded, such as AWK with one letter per
author.

Quite a few seem to be terse enough for a single letter. Besides C, R and S,
and their variants such as C++ and C# and S+, there was a D, an E and a T
and a J and an M and another musical note in F# and of course the Q from its
own dimension. 

I used to think I had studied and even used quite a few programming
languages over the years but staring at these lists makes me realize I never
even heard of so many of them.


-Original Message-
From: Python-list  On
Behalf Of DL Neil
Sent: Thursday, January 3, 2019 11:54 PM
To: 'Python' 
Subject: Re: the python name

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.


Perhaps not.

If you subscribe to the wider StackOverflow Driven Design philosophy (SODD),
then it would be a kindness to choose the language's name so as to be (close
to) unique when entered as a search key.

Thus the OP's original assumption/confusion between a programming language
and a serpent; Java and a large island; right down to C, R, etc which are
too short to be usable search terms in most engines.

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


What can python replace?

2019-01-03 Thread Avi Gross
All this talk about language names makes me ask what can evolved languages like 
python replace?

 

I mean clearly a language like ancient BASIC which had GOTO and GOSUB verbs may 
not be anything worth considering.

 

But if there was a language that broke though as a functional programming 
language, could it easily be replaced by a multi-purpose language like python 
that arguably does that well too? What about one that focused on an 
object-oriented approach? Note that these are just buzz words and the 
implementation choices are often far from the same. But I suspect there are 
languages with a fairly simple and narrow toolset, that could be easily 
translated into fairly equivalent python if you also supplied some 
modules/libraries that could be linked in to supply functionality and translate 
some protocols that differ such as wrapping a function call with arguments that 
are in a different order so they call properly. 

 

The above is far from easy in some ways, of course. I won’t supply my endless 
examples, but will say that some features are different enough like whether you 
short-circuit “A or B and C” where A,B,C are arbitrary expressions with 
potential side effects, so a translation from another language that does not 
might require:

 

resultA = A

resultB = B

resultC = C

 

And now that you have forced all three to be evaluated, you can do “resultA or 
result and result” where not re-evaluating some does not matter.

 

I know there is no way to vote any languages off the team. I suspect in real 
life many companies, projects, etc., have already migrated to new development 
environments over the years. Do we know of examples that have literally 
migrated to python including not just new code but existing code?

 

One interesting side to this might be part of a consideration of how a language 
like python can decide on changes and new features. If told that users of some 
language just need a few more tweaks and python would then meet their needs, is 
that a good reason?

 

I really would not want to see features like GOTO restored 😊

 

 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread songbird
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 people a great deal.
>
> I'm listening...

  i only get so many units of time to work on something.
the more rabbit holes i need to go down to figure out
a basic issue the less likely progress actually happens.

  detecting which type of system you are on and setting
up your package to install to the right location(s).
after [x] years this shouldn't be too hard and fairly
easy to find.  ugh.  add to that yet another layer for
which linux distribution...  double ugh.  the recommended
solutions are not really complete and they end up leading 
you down even more rabbit holes.

  platform, os, sys, pathlib, distro (looks like they need
help).

  a test of any change to the setup involves an upload
which may take a half hour or more to show up, by then
i can be interrupted and not get back to it for days.

  there must be a more local way to do the same thing but 
as of yet the develop option doesn't seem to work how i
would expect.  i'm not sure what my error is.  i'll have
to go back and look at documents.

  finding out all the caches and how to verify they are 
either in sync or if you should clear them and how.

  i do have testers for Mac and Windows that can give me 
feedback, but only the Mac person is a techie where i 
don't feel like i'd have to be there in person (and also
i see some indication that Mac and Linux are both Posix
so perhaps nothing else needs to be done there anyways 
once i figure out to get the manual page installed in the
right spot).  since i don't have a Windows machine it will 
take me longer to figure that out and the few people i
have for that testing are not techies so i'd want to be
there when they did the install just to see how it went.


  songbird
-- 
https://mail.python.org/mailman/listinfo/python-list