Re: python -m pip install and pip install

2019-10-10 Thread Chris Angelico
‪On Fri, Oct 11, 2019 at 3:37 PM ‫אורי‬‎ wrote:‬ > > When you upgrade pip, you have to write: > > python -m pip install --upgrade pip > > When you install or upgrade anything else, you can write "pip install". > > You can't upgrade pip using "pip install --upgrade pip". > Only a consideration on

Re: python -m pip install and pip install

2019-10-10 Thread אורי
When you upgrade pip, you have to write: python -m pip install --upgrade pip When you install or upgrade anything else, you can write "pip install". You can't upgrade pip using "pip install --upgrade pip". אורי u...@speedy.net On Mon, Oct 7, 2019 at 2:21 PM Hongyi Zhao wrote: > Hi, > > What

Re: python -m pip install and pip install

2019-10-10 Thread Pankaj Jangid
Michael Torrie writes: > On 10/10/19 1:21 AM, Pankaj Jangid wrote: >> So the scripts will just work fine if you simply use ~import pip~ >> and work with it. >> >> Suppose you were writing bash scripts around python programs. Then >> what will be the behaviour of, >> >> pip2 install mod >> >> u

Re: question about making an App for Android

2019-10-10 Thread Chris Angelico
On Fri, Oct 11, 2019 at 10:40 AM pyotr filipivich wrote: > > Chris Angelico on Fri, 11 Oct 2019 09:49:03 +1100 > typed in comp.lang.python the following: > >On Fri, Oct 11, 2019 at 9:41 AM Dennis Lee Bieber > >wrote: > >> > >> On Thu, 10 Oct 2019 08:47:07 -0700, pyotr filipivich > >> declaime

Re: question about making an App for Android

2019-10-10 Thread pyotr filipivich
Chris Angelico on Fri, 11 Oct 2019 09:49:03 +1100 typed in comp.lang.python the following: >On Fri, Oct 11, 2019 at 9:41 AM Dennis Lee Bieber >wrote: >> >> On Thu, 10 Oct 2019 08:47:07 -0700, pyotr filipivich >> declaimed the following: >> >"A simple program" to divide the amount of "today's"

Re: question about making an App for Android

2019-10-10 Thread pyotr filipivich
Dennis Lee Bieber on Thu, 10 Oct 2019 18:39:55 -0400 typed in comp.lang.python the following: >On Thu, 10 Oct 2019 08:47:07 -0700, pyotr filipivich >declaimed the following: > > >>"A simple program" to divide the amount of "today's" daylight into 12 >>even '"hours", so that Dawn begins the First

Re: question about making an App for Android

2019-10-10 Thread Chris Angelico
On Fri, Oct 11, 2019 at 9:41 AM Dennis Lee Bieber wrote: > > On Thu, 10 Oct 2019 08:47:07 -0700, pyotr filipivich > declaimed the following: > > > >"A simple program" to divide the amount of "today's" daylight into 12 > >even '"hours", so that Dawn begins the First hour, the third hour is > >mid-

Re: python -m pip install and pip install

2019-10-10 Thread Michael Torrie
On 10/10/19 1:21 AM, Pankaj Jangid wrote: > So the scripts will just work fine if you simply use ~import pip~ > and work with it. > > Suppose you were writing bash scripts around python programs. Then > what will be the behaviour of, > > pip2 install mod > > under a python3 environment. If Pyth

Re: question about making an App for Android

2019-10-10 Thread Michael Torrie
On 10/10/19 9:47 AM, pyotr filipivich wrote: > What I want is a "simple" program to calculate and display the > "natural time", and do so on my phone. > > "A simple program" to divide the amount of "today's" daylight into 12 > even '"hours", so that Dawn begins the First hour, the third hour is >

Re: question about making an App for Android

2019-10-10 Thread Terry Reedy
On 10/10/2019 11:47 AM, pyotr filipivich wrote: What I want is a "simple" program to calculate and display the "natural time", and do so on my phone. "A simple program" to divide the amount of "today's" daylight into 12 even '"hours", so that Dawn begins the First hour, the third hour is mid-mor

question about making an App for Android

2019-10-10 Thread pyotr filipivich
What I want is a "simple" program to calculate and display the "natural time", and do so on my phone. "A simple program" to divide the amount of "today's" daylight into 12 even '"hours", so that Dawn begins the First hour, the third hour is mid-morning, noon is the middle of the day, the ninth hou

Re: python -m pip install and pip install

2019-10-10 Thread Pankaj Jangid
Hongyi Zhao writes: > Hongyi Zhao 于2019年10月8日周二 下午4:53写道: >> >> Cameron Simpson 于2019年10月8日周二 下午12:25写道: >> > >> > On 08Oct2019 02:49, Hongyi Zhao wrote: >> > >On Tue, 08 Oct 2019 06:28:05 +0530, Pankaj Jangid wrote: >> > >> A very good use-case is when you have both, python2 and python3 >> >

Re: Curious about library inclusion

2019-10-10 Thread Antoon Pardon
About including piped iterators: http://code.activestate.com/recipes/580625-collection-pipeline-in-python/ On 10/10/19 13:00, Paul Moore wrote: > As another measure, look at various other libraries on PyPI and ask > yourself why *this* library needs to be in the stdlib more than those > others

Re: Curious about library inclusion

2019-10-10 Thread Paul Moore
Probably low. There would need to be a clear justification as to why having the library in the stdlib (and hence tied to Python's release schedule for updates/bug fixes etc - which is typically a really severe limitation for a newish library) would be better than having it available as a 3rd party

Re: Curious about library inclusion

2019-10-10 Thread Antoon Pardon
That seems to have been thoruoghly garbled so I start again. I was wondering how likely it would be that piped iterators like shown in http://code.activestate.com/recipes/580625-collection-pipeline-in-python/ would make it into a future python version/ Once I started using them (and included some

Curious about library inclusion

2019-10-10 Thread Antoon Pardon
I was wondering how likely it would be that piped-iterators like shown in http://code.activestate.com/recipes/580625-collection-pipeline-in-python/ would make it into a future python version. Once I started using them (and included some more) I found I really liked working with them. For instance I

Re: decorator needs access to variables where it is used.

2019-10-10 Thread Antoon Pardon
On 9/10/19 13:02, Chris Angelico wrote: > On Wed, Oct 9, 2019 at 9:53 PM Antoon Pardon wrote: >> I have some logging utilities so that when I write library code, I just use >> the following. >> >> from logutil import Logger >> >> log = Logger(__name__) > Are you always absolutely consistent with