On 03Aug2017 00:57, Steven D'Aprano wrote:
Can you explain the use-case for when somebody might want to use
console_scripts entry points?
I have a module with a main() function and an "if __name__ == ..."
guard. Under what circumstances is that not sufficient, and I would
On Wed, Aug 2, 2017 at 4:06 PM, Wolfgang Maier
wrote:
> On 08/02/2017 04:57 PM, Steven D'Aprano wrote:
>
>> I have a module with a main() function and an "if __name__ == ..."
>> guard. Under what circumstances is that not sufficient, and I would want
>>
On 08/02/2017 04:57 PM, Steven D'Aprano wrote:
On Wed, Aug 02, 2017 at 10:48:39PM +1000, Ben Finney wrote:
Thomas Güttler writes:
Maybe I am doing something wrong. I was proud because I did use
“console_scripts” entry points.
Did someone lead you to believe
On Wed, Aug 02, 2017 at 10:48:39PM +1000, Ben Finney wrote:
> Thomas Güttler writes:
>
> > Maybe I am doing something wrong. I was proud because I did use
> > “console_scripts” entry points.
>
> Did someone lead you to believe it was wrong? Setuptools
Thomas Güttler writes:
> Maybe I am doing something wrong. I was proud because I did use
> “console_scripts” entry points.
Did someone lead you to believe it was wrong? Setuptools console_scripts
entry points are a good tool.
My point was that it is an *advanced*
Am 02.08.2017 um 05:51 schrieb Steven D'Aprano:
On Wed, Aug 02, 2017 at 11:22:00AM +1000, Ben Finney wrote:
Steven D'Aprano writes:
On Tue, Aug 01, 2017 at 04:54:40PM +0200, Thomas Güttler wrote:
[...]
I use Python since several years and I use console_script in
Am 02.08.2017 um 05:35 schrieb Abdur-Rahmaan Janhangeer:
what difference do you make between python scripts and python code files?
are codes relating to file manipulation called scripts?
Do you ask this question all people on this list, or only one particular person?
I don't know the
On 02/08/17 04:35, Abdur-Rahmaan Janhangeer wrote:
> what difference do you make between python scripts and python code files?
>
Not much. Scripts are a concept more than a defined term,
they often refer to executable programs written in a
"scripting language" - which is usually an interpreted
what difference do you make between python scripts and python code files?
are codes relating to file manipulation called scripts?
Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com
On 1 Aug 2017 22:48, "Alan Gauld via Tutor" wrote:
> On 01/08/17 15:54,
On Wed, Aug 02, 2017 at 11:22:00AM +1000, Ben Finney wrote:
> Steven D'Aprano writes:
>
> > On Tue, Aug 01, 2017 at 04:54:40PM +0200, Thomas Güttler wrote:
> >
> > [...]
> > > I use Python since several years and I use console_script in
> > > entry_points of setup.py.
> >
>
Steven D'Aprano writes:
> On Tue, Aug 01, 2017 at 04:54:40PM +0200, Thomas Güttler wrote:
>
> [...]
> > I use Python since several years and I use console_script in
> > entry_points of setup.py.
>
> What's console_script in entry_points of setup.py?
It is an advanced
On Tue, Aug 01, 2017 at 04:54:40PM +0200, Thomas Güttler wrote:
[...]
> I use Python since several years and I use console_script in entry_points
> of setup.py.
What's console_script in entry_points of setup.py?
In particular, what does that have to do with writing an executable
script?
On 01/08/17 15:54, Thomas Güttler wrote:
> He asked me if "if __name__=='main':" is state of the art if you want
> to translate a shell script to python.
It all depends what you plan to do with the script.
If you literally just want to translate a shell script such
that it will always be
On 1 August 2017 at 16:54, Thomas Güttler wrote:
> I have a friend who is a talented shell script writer. He is a linux guru
> since
> several years.
>
> He asked me if "if __name__=='main':" is state of the art if you want
> to translate a shell script to python.
>
On Tue, Aug 1, 2017 at 9:54 AM, Thomas Güttler
wrote:
> I have a friend who is a talented shell script writer. He is a linux guru
> since
> several years.
>
> He asked me if "if __name__=='main':" is state of the art if you want
> to translate a shell script to
I have a friend who is a talented shell script writer. He is a linux guru since
several years.
He asked me if "if __name__=='main':" is state of the art if you want
to translate a shell script to python.
I started to stutter and did not know how to reply.
I use Python since several years and I
16 matches
Mail list logo