Categorie: mistni-nezadani MobilnГ­ strГЎnka

Learn the differences between Python 2 3A¶Learn the differences between Python 2 3A¶

Learn the differences between Python 2 3A¶

In your file you need to have the proper trove classifier specifying just what variations of Python you support. As the venture cannot supporting Python 3 yet you ought to no less than posses program writing language :: Python :: 2 :: just given. If at all possible it’s also wise to indicate each major/minor type of Python that you do service, e.g. Programming Language :: Python :: 2.7 .

Have actually good examination coverageA¶

Once you’ve your own rule supporting the oldest version of Python 2 you desire they to, you will want to be sure that test suite keeps good protection. A rule of thumb is when you wish to be confident adequate in your examination room that any downfalls that appear after creating hardware rewrite the rule become genuine pests when you look at the methods https://datingmentor.org/cs/mistni-nezadani/ and not inside rule. If you’d like a variety to shoot for, make an effort to conquer 80percent insurance coverage (and do not feel worst if you discover it tough in order to get a lot better than 90% insurance). If you don’t already have a tool to measure test plans then is preferred.

Once you’ve your own rule well-tested you are ready to start porting your own code to Python 3! But to completely recognize how your code will transform and what you would like to look out for while you rule, you’ll want to read just what alters Python 3 helps make in terms of Python 2. usually the two most useful means of undertaking that’s reading the a€?What’s Newa€? (mai mult…)