"24" response objects and some changes in Python3

Source: Internet
Author: User

Request. Cookies are used to obtain cookies

Response.Write () writes a method that is the response object's

Turn from: Blog Park python3 changes

  1. Print is changed from one statement (statement) to a function
  2. The str type in Python3 is now the original Unicode type, and the original str type is now bytes
  3. By 2nd, the Uincode () function is removed and the function is replaced by STR (), while the original STR () is replaced by bytes ()
  4. Long Integer and integer (int) uniform for shaping (int)
  5. No longer supports <> comparison operations symbols, only! = is supported
  6. The Has_key () method of the dictionary (dict) object is removed and only in operations are supported
  7. Many dictionary (Dict) class method Return values are list changes to Dynamic view (view) does not support index operations
  8. Several related HTTP modules are combined into a single package, the HTTP
  9. Relative imports within a package
  10. Define the new global function next (), which uses an iterator as a parameter
  11. The filter () function returns an iterator (iterator) instead of a list
  12. The map () function returns an iterator (iterator) instead of a list
  13. Reduce () is no longer a global function, it is now placed in the Functools module
  14. The Apply () function has been removed
  15. Intern () is no longer a global function, it is now placed in the SYS module
  16. EXEC changes from one statement to a function

Not to be continued ...

"24" response objects and some changes in Python3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.