372 views|7 replies

149

Posts

2

Resources
The OP
 

Let’s talk about the differences between Python 2 and Python 3, and their impact on microPython. [Copy link]

Python's architecture gives people the feeling of being open, inclusive and wild, but what is relatively rare is that in its development path, it has actually abandoned the development rules of backward compatibility. This is the watershed between 2 and 3. As Python's ecological projection in embedded systems, who will microPython choose?

This post is from Programming Basics

Latest reply

The inertia of history is also huge. Some of our tools can only run with 2.7. However, they have not been maintained for more than 10 years.   Details Published on 2024-10-31 11:36
 

149

Posts

2

Resources
2
 

In Python 2's indentation mechanism, 1 tab and 8 spaces are equivalent, and both tabs and spaces are allowed to coexist in the code; Python 3 uses stricter indentation.

This post is from Programming Basics
 
 
 

7462

Posts

2

Resources
3
 

mpy is based on py3. Except for historical reasons, don't consider 2

This post is from Programming Basics

Comments

Python 2 vs Python 3, which one is the performance king? Some time ago, a writer named Anthony Shaw on Hackermoon did some tests and concluded that although Python 2 is faster than Python 3 in encryption and startup time tests, overall, Python 2 is faster than Python 3.  Details Published on 2024-10-31 10:12
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

149

Posts

2

Resources
4
 
freebsder posted on 2024-10-31 09:47 mpy is based on py3. Except for historical reasons, don't consider 2

Python 2 vs Python 3, which one is the performance king? Some time ago, an author named Anthony Shaw on Hackermoon did some tests and concluded that although Python 2 is faster than Python 3 in encryption and startup time tests, Python 3 is faster overall. Understanding the real reason for deprecating Python 2.0 can help us have a clearer understanding of the development of Python.

This post is from Programming Basics

Comments

Let the dust of history be left to history, just learn about it, and discard it if you are going to use it.  Details Published on 2024-10-31 10:28
 
 
 

7462

Posts

2

Resources
5
 
ljg2np posted on 2024-10-31 10:12 Python 2 vs Python 3, which one is the performance king? Some time ago, an author named Anthony Shaw on Hackermoon did some...

Let the dust of history be left to history, just learn about it, and discard it if you are going to use it.

This post is from Programming Basics

Comments

I completely agree with your point of view, but beginners still face the problem of choosing between py2 and py3. According to an online survey article in 2017, the number of third-party tool packages for Python 2.7 and Python 3.5 in pypi, the official download source of pip, is 28,523.  Details Published on 2024-10-31 11:16
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

149

Posts

2

Resources
6
 
freebsder posted on 2024-10-31 10:28 Let the dust of history be left to history. Just learn about it. If you want to use it, just discard it.

I completely agree with your point of view, but beginners are still faced with the problem of choosing between py2 and py3. According to an online survey article in 2017, a comparison of the number of third-party tool packages for Python 2.7 and Python 3.5 in pypi, the official download source of pip, shows that the number of third-party tool categories corresponding to the Python 2.7 version is 28523, and the number for the Python 3.5 version is 12457. The gap between the two versions in the number of third-party tool packages supported is quite large.

This post is from Programming Basics

Comments

The inertia of history is also huge. Some of our tools can only run with 2.7. However, they have not been maintained for more than 10 years.  Details Published on 2024-10-31 11:36
 
 
 

7462

Posts

2

Resources
7
 
ljg2np posted on 2024-10-31 11:16 I completely agree with your point of view, but beginners still face the choice between py2 and py3. According to an online survey article in 2017, in the official pip download...

The inertia of history is also huge. Some of our tools can only run with 2.7. However, they have not been maintained for more than 10 years.

This post is from Programming Basics

Comments

Yes, if you maintain the previous tools without clarifying py3 and py2, you may go astray; in addition, how to distinguish whether it is py2 or py3 in the source code of py may also cause some trouble.  Details Published on 2024-10-31 13:59
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

149

Posts

2

Resources
8
 
freebsder posted on 2024-10-31 11:36 The inertia of history is also huge. Some of our tools can only run with 2.7. But it has not been maintained for more than 10 years...

Yes, if you maintain the previous tools without clarifying py3 and py2, you may go astray; in addition, how to distinguish whether it is py2 or py3 in the source code of py may also cause some trouble.

This post is from Programming Basics
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
CERTIFICATION TEST OF MOTOROLA GSM BTS ICI

Exam Outline 1. Exam Purpose To certify the HORIZEN MACRO1800 and 900 base station installation and commissioning qualif ...

A boy confessed his love to a girl at KFC [Repost]

 Yesterday I went to KFC. The couple behind me ordered a lot of food and then sat next to me.   After sitting down, t ...

Chip Packaging Overview

Chip packaging 1. DIP dual in-line package   DIP (Dual In-line Package) refers to an integrated circuit chip packa ...

MATLAB APP Designer serial port debugging tool writing

This post was last edited by lb8820265 on 2019-5-9 23:11 Previously, we introduced two ways to use VC6 to make serial ...

How to choose a DSP?

The selection of DSP can be determined based on the following aspects: 1) Speed: DSP speed is generally expressed in MI ...

Motor Control Basics - Principle of Timer Capturing Single Input Pulse

This post was last edited by DDZZ669 on 2021-2-28 14:58 The previous article (https://bbs.eeworld.com.cn/thread-11570 ...

[Discussion] I'm looking at a product recently, a 400x400 camera for car use

I don't know where the 400x400 camera with a 70mm object distance is used in cars. There are quite a few of them shipped ...

What are the functions of the three pins VDD, VEE and VSS in HEF4051?

687088

[ACM32G103RCT6 development board review] + GPIO port usage

This post was last edited by jinglixixi on 2023-12-22 20:48 As a starting point for mastering a development board, the ...

Python combined with LabVIEW programming (1)

Python combined with LabVIEW programming (1) Hi, uu, good evening! Where did you go for National Day? How do you feel ab ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list