Level 9 : What is the purpose of the __future__ module in Python?

Author: IndraD | Tags: __future__ | 1859+ Python FAQs | Share
file | literal-characters-and-special-characters | list,-set,-and-dictionary-comprehensions | min-max-function | syntax-error | recursion | round-function | touples | return-statement | strings | string-slicing | string-iteration | string | sum-function | string-concatenation | regular-expressions | string-slicing | expand-tab | generators | rollback | sets | swapping | sys | using-lists-as-stacks | filter | thread-synchronization | comparison | reading:-read(),-readline(),-readlines() | tuple-methods | implementation | tuples | typeerror | virtual-environment | error | threading | variable | counter-function | round | type-conversion-and-casting | gil | asyncio | sorting | logical-operator | functions | basic | data-structure | method | odd-number | floats | min-function | zfill-function | docstring | formatting-with-strftime | list-operation | iterable | factorial-function | data_structure | logical-operators | string-formatting | mutable | iterator | iterators | descriptors | expression | module | exception | heap-memory | conditional-statement | function-and-scope | int | functional-programming | math | using-assertions-(assertequal,-assertraises) | sys-module | loop-control | exception-handling | sum() | numpy | dicts | conditional-statements | objects | dictionary | id-function | precedence | math-copysign | exception-handling | syntax-error | random-function | logical-operation | turtle | command-line-parsing | inherit | installation | boolean-masking | format | filtering-and-indexing | booleans | multiple-except-blocks | difference-between-threads-and-processes | lists | using-join()-and-is_alive()-methods | enumerate() | print-statement | thread | working-with-file-paths | namedtuple | string-method | while-loops | error-handling | thread-safe-data-structures-(queue.queue) | decorator | invalid-list | set-operation | encoding | lambdas | datetime | conditional-statement | string-manipulation | condition | functional-programming | default-arguments | walking-through-directories-using-os.walk() | name-mangling | dictionaries | virtual-environment | map-function | package-management | compute | control-flow | data-structures-in-python | time-series-with-pandas | tuple-unpacking | list-comprehensions | identity-operator | pickling--unpickling | comprehension | control-flow | recurssion | decimal | data-type-conversions | magic-method | oops | default-mutable-argument | dictionary-comprehensions | data-type | pandas | stack | global-variable | defining-functions | numeric | indexing:-loc-vs-iloc | __all__-attribute | built-in-function | fabs-function | __future__ | raise-statement | unit-testing | attribute | regex | complex-number | while-else-loop | slicing | membership-operators-(in,-not-in) | copy | memory-management | immutability | counter | mathematical-function | operator-or | keyword | else-statement | pseudocode | logical-operator | creating-and-starting-threads | datatype | why-use-multiprocessing-over-threading?-(gil) | constructor | syntax | data-types | scientific-notation | identity-operators-(is,-is-not) | python-operators | with-statement | global | debugging | match | memory | exponentiation | filter-function | python_version | def | input | test-discovery | type_conversion | introduction-to-multiprocessing | raise | inheritance | file-handling | data-structures | goto-function | operator-and | global-keyword | list-comprehension | sorting-and-ranking | indexing | generator | floating-point-precision | overflow | bitwise | assert | creating-custom-modules | class-and-object | loop | slice | frozenset | max-min | head-and-tail | data-type | using-the-threading-module | type-conversion | class-and-instance-variable | function-argument | class-and-inheritance | escape-operator | application | syntaxerror | zip-function | integer | generators-in-python | __init_subclass__ | interpreter | split | formal-and-actual-parameter | file_handling | loop-control-statements | operations | dataframe-and-series-objects | lambda | conversion | list-mutation | string-methods | list-comprehension | managing-directories-with-os-and-shutil | context-manager | range | statement | for | list-slicing | destructor | built-in | update | lambda-function | file-handling | tuple | error-handling | control-statement | while-and-for-loop | matrix | matplotlib | string-formatting | pep | parsing-with-strptime | multiple-inheritance | software-design | deep-copy | datetime.date,-datetime.time,-datetime.datetime | identifier | type-conversion | python-django | input-function | complex | python-module | join | using-yield-in-functions | global-variable | oop | polymorphism | function | multiple-inheritance | single-inheritance | input-function | nested-loop | operand | mysql | directory-operations | encapsulation | mathematics | joining-and-merging-dataframes | random | feature | pass | dictionary-methods | append | list-method | operator-overloading | data-structure | higher-order-function | collections | integers | benefit | version | yield | python | list-vs-tuple | loops | method-overloading | multiprocessing | anchors-(^,-$) | design-principle | python-history | bitwise-operator | indentation | list-indexing | handling-missing-values-(fillna,-dropna) | static-method | mapping-function | identity-operator | working-with-temporary-files-using-tempfile | list-methods-and-slicing | list-join | parameter | choice | collection | zip | working-with-dates-and-times | init | library | object-attribute | matrix-list-comprehension | key-value-pairs | postfix | working-with-binary-files-(rb,-wb) | multithreading | center | aggregating-data-with-functools.reduce() | operators | binary | immutable-data-type | import-method | introduction-to-threads | asyncio-module | call | advanced-file-operations | arithmetic-operation | methods | python-repl | set | lambda-functions | introduction-to-python | class-decorators | precedence-and-associativity | async | writing:-write(),-writelines() | shallow-copy | operator | namespace | print | overriding-methods | class | sorted | quantifiers-(*,-+,-?,-{}) | staticmethod | regular-expression | array | bitwise-operator | else | comment | binary-operation | arithmetic-expression | assignment-operator | version-check | list | intering | boolean | classes | opening-files-(open()) | reading-and-writing-files | built-in-function | using-map()-for-transformations | arbitrary-arguments-(*args,-**kwargs) | string-method | python-syntax-and-structure | reading-and-writing-large-files-efficiently | assignment-operators | access-modifier | using-else-and-finally | built-in-modules | while-loop | boolean-and-non-boolean | using-os-and-pathlib-modules ...