Nп/п : 73 из 100
 От   : Thomas Passin                       2:5075/128        28 сен 23 11:43:25
 К    : All                                                   28 сен 23 19:22:02
 Тема : Re: upgrade of pip on my python 2.7 version
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<mailman.369.1695918043.23016.python-list@python.org> 03669b8f
@REPLY:
<fe35d25c-799e-6cee-4c61-6f177a71edea@tompassin.net> 5041ca1b
@REPLYADDR Thomas Passin <list1@tompassin.net>
@REPLYTO 2:5075/128 Thomas Passin
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<mailman.369.1695918043.23016.python-list@python.org>
@RFC-References:
<595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us> <34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org> <ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
O6MtuDMX00RZWs-T3J1SccoRi4N8QQeyQ@mail.gmail.com> <d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
<mailman.363.1695850360.23016.python-list@python.org> <7777d6c8-08a0-4342-8297-bba95c316a8fn@googlegroups.com>
<fe35d25c-799e-6cee-4c61-6f177a71edea@tompassin.net>
@TZUTC: -0400
@PID: Mozilla/5.0 (Windows NT 10.0; Win64; x64;
rv:102.0) Gecko/20100101 Thunderbird/102.15.1
@TID: FIDOGATE-5.12-ge4e8b94
On 9/28/2023 9:23 AM, Zuri Shaddai Kuchipudi via Python-list wrote:
> On Wednesday, 27 September 2023 at 23:33:02 UTC+2, Chris Angelico wrote:
>> On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list
>> <pytho...@python.org> wrote:
>>>
>>> Upgrading to Python 3 is the best answer... except when it isn`t. If
>>> you want to convert a small project it`s usually not too hard; and using
>>> a conversion tool can work well.
>> Just remember that Python 2.7.18, the very last version of Python 2,
>> was released in 2020 and has not changed since. There are not even
>> security patches being released (at least, not from python.org - but
>> if you`re using a different distribution of Python, you are also quite
>> possibly using their package manager rather than pip). Staying on a
>> version of Python that hasn`t had new features since 2010 and hasn`t
>> had bug fixes since 2020 is going to become increasingly problematic.
>>
>> Convert your code. Pay the price in development time now and then reap
>> the benefits, rather than paying the price when you run into a massive
>> issue somewhere down the track and there`s no options left to you.
>>
>> Convert while you still have the luxury of running the old code.
>>
>> ChrisA
 > but how do i convert it chris just downloading the python
version 3 will solve my issue? and what about the changes

You have to modify your existing Python code.  It`s often easy to do. 
There is the tool that tries to convert from Python 2 to Python 3; you 
may need to do some extra work after that.  Depending on the code you 
may even be able to make it work with both Python 2.7 and 3.x.  Often 
the biggest change is to print statements:

Python 2:
print a, b, c

Python3:
print(a, b, c)

If you are very unlucky, your code will depend on some package that has 
never been ported to Python 3.  But that would be unusual.

 --- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 50/109 301/1 467/888 4500/1 5000/111
5001/100 5005/49 5020/715 830
SEEN-BY: 5020/848 1042 4441 12000 5030/49 1081
5054/8 5061/133 5075/128
SEEN-BY: 5080/102 5083/1 444
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх