Comments (4)
Well... technically datetime.UTC
is also correct (it's just an alias to datetime.timezone.UTC
) (here datetime.UTC
is the UTC
member of the datetime
module, not the UTC
member of the datetime.datetime
class, which does not exist).
from cpython.
Oh my bad! then it's indeed better to use timezone.utc
in the deprecation message!
from cpython.
OK, but UTC isn't available on Python 3.8, 3.9 and 3.10 which are still supported:
if sys.version_info >= (3, 11):
UTC: timezone
I believe I had to lookup timezone.utc
because it wasn't suggested by my IDE.
from cpython.
Could someone fix the formatting of the issue? The link to the pull request isn't clickable.
from cpython.
Related Issues (20)
- pip3 install lxml failed when using Python 3.13.0b3 on Windows with MSVC HOT 5
- Improve `PyBytes_FromStringAndSize` test coverage
- RPM version error for python3-3.9.18-3.el9_4.1.x86_64.rpm HOT 1
- Build failure with "--with-address-sanitizer" flag HOT 4
- [C API] Segmentation fault in PyUnicodeWriter when writing nothing and with initial length = 0 HOT 3
- Chess game
- Conceptual Flaw in Python's Iterator Behavior During Collection Modification HOT 11
- Crash on _PyDict_CheckConsistency with an empty instance dict HOT 10
- CMultiplyNested closure crash: Python 3.13 regression HOT 8
- White space causes inconsistent frame traversal in With blocks HOT 19
- Documentation HTML varies from timestamp
- docs: inconsistent open and io.open audit-event parameters HOT 3
- TestsMSI/`build_msi.yml` GHA workflow stopped passing HOT 8
- cmath.acosh(complex('±0+nanj')) should return complex('nan±pi/2j') (imaginary part sign is unspecified)
- install python3.13-nogil in ubuntu return E: Sub-process /usr/bin/dpkg returned an error code (1) HOT 2
- "floating point" vs "floating-point"
- punycode encoding denial-of-service (32kb: +1min)
- Python-3.12.4 can not find OpenSSL in /usr/local HOT 1
- `create_connection` and `create_server` in `asyncio` didn't work with a Python build with IPv6 disabled HOT 3
- Ambiguous symbol table names HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.