zoukankan      html  css  js  c++  java
  • Flask 2.0.1 changes

    Version 2.0.1

    Released 2021-05-21

    • Re-add the filename parameter in send_from_directory. The filename parameter has been renamed to path, the old name is deprecated. #4019

    • Mark top-level names as exported so type checking understands imports in user projects. #4024

    • Fix type annotation for g and inform mypy that it is a namespace object that has arbitrary attributes. #4020

    • Fix some types that weren’t available in Python 3.6.0. #4040

    • Improve typing for send_filesend_from_directory, and get_send_file_max_age#4044#4026

    • Show an error when a blueprint name contains a dot. The . has special meaning, it is used to separate (nested) blueprint names and the endpoint name. #4041

    • Combine URL prefixes when nesting blueprints that were created with a url_prefix value. #4037

    • Roll back a change to the order that URL matching was done. The URL is again matched after the session is loaded, so the session is available in custom URL converters. #4053

    • Re-add deprecated Config.from_json, which was accidentally removed early. #4078

    • Improve typing for some functions using Callable in their type signatures, focusing on decorator factories. #4060

    • Nested blueprints are registered with their dotted name. This allows different blueprints with the same name to be nested at different locations. #4069

    • register_blueprint takes a name option to change the (pre-dotted) name the blueprint is registered with. This allows the same blueprint to be registered multiple times with unique names for url_for. Registering the same blueprint with the same name multiple times is deprecated. #1091

    • Improve typing for stream_with_context#4052

  • 相关阅读:
    java selenium (十) 操作浏览器
    java selenium (九) 常见web UI 元素操作 及API使用
    java selenium (六) XPath 定位
    正则表达式
    日志模板
    软件开发规范
    TCP协议的粘包现象和解决方法
    验证用户的合法性
    PythonDay16
    PythonDay15
  • 原文地址:https://www.cnblogs.com/zyl007/p/14825506.html
Copyright © 2011-2022 走看看