Re: [Tutor] setup.py "script" vs "console_scripts" Was: if __name__=='main' vs entry points: What to teach new comers?

2017-08-04 Thread eryk sun
On Fri, Aug 4, 2017 at 10:15 AM, Thomas Güttler wrote: > Am 04.08.2017 um 02:50 schrieb Ben Finney: > >> Because Distutils implements only ‘scripts’, and that's not capable >> enough for what people need so Setuptools implements entry points. >> >> In other words:

Re: [Tutor] setup.py "script" vs "console_scripts" Was: if __name__=='main' vs entry points: What to teach new comers?

2017-08-04 Thread Chris Warrick
On 4 August 2017 at 12:15, Thomas Güttler wrote: > Chris wrote "Simple: `scripts` are legacy." > > You say it is the standard, and console_scripts is from a third party. > > For me "legacy" sound like "don't go this old way". > > For me "third party" sounds like

Re: [Tutor] Unorderable types

2017-08-04 Thread Cameron Simpson
[ Back onto the tutor list. - Cameron ] On 04Aug2017 09:12, Howard Lawrence <1019sh...@gmail.com> wrote: This is the code from tutorial Thank you. import random guessesTaken =0 print ('hello what is your name') myName =input () number = random.randint(1,20) print ('well, ' + myName + ', I

Re: [Tutor] Unorderable types

2017-08-04 Thread boB Stepp
On Fri, Aug 4, 2017 at 8:44 PM, Cameron Simpson wrote: > [ Back onto the tutor list. - Cameron ] > > On 04Aug2017 09:12, Howard Lawrence <1019sh...@gmail.com> wrote: >> >> This is the code from tutorial > > > Thank you. > >> import random >> guessesTaken =0 >> >> print ('hello

Re: [Tutor] setup.py "script" vs "console_scripts" Was: if __name__=='main' vs entry points: What to teach new comers?

2017-08-04 Thread Ben Finney
Thomas Güttler writes: > The underlaying question is: Imangine you are a newcomer. A newcomer is in a tough position when it comes to packaging and distributing Python code, especially the command-line programs. There has been significant progress on this in

Re: [Tutor] setup.py "script" vs "console_scripts" Was: if __name__=='main' vs entry points: What to teach new comers?

2017-08-04 Thread Thomas Güttler
Am 04.08.2017 um 02:50 schrieb Ben Finney: Thomas Güttler writes: Why are there two ways: "script" vs "console_scripts entry-point"? Because Distutils implements only ‘scripts’, and that's not capable enough for what people need so Setuptools implements entry

Re: [Tutor] (regarding unorderable types

2017-08-04 Thread Howard Lawrence
Thank you for the clarification. as a newbie at mailing list and coding I try to be more specific,their is more to come On Aug 3, 2017 10:09 PM, "Cameron Simpson" wrote: Hi, and welcome to the tutor list. Please try to provide a useful subject line in future posts (not "help",