News for hackers. Stuff that matters.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by maxerickson on Sunday November 19, 2023 @11:00AM (#38333831)
They aren't being removed, they will just toss up a warning.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by tumult on Sunday November 19, 2023 @11:12AM (#38333972)
They will be removed:

    datetime.datetime’s utcnow() and utcfromtimestamp() are deprecated and will be removed in a future version.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by jagged-chisel on Sunday November 19, 2023 @11:22AM (#38334090)
Aren’t now, “will be” in a future version. So the can will be kicked down the road as many generations of devs as needed until no one cares any longer.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by tumult on Sunday November 19, 2023 @12:59PM (#38335529)
So, they remove it in 12 months and your code wasn't ready for the change, and people mock you for having not been prepared by updating your code. The Python people have told you to remove it, so nobody will have any sympathy for you if you don't do it. As you demonstrated, people are sticklers for quoting exact wording when it comes to criticizing others.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by jagged-chisel on Sunday November 19, 2023 @01:50PM (#38336251)
I’m not criticizing. This wording is chosen for this exact reason. Otherwise they would say precisely when they intend to remove it.
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by Hamuko on Monday November 20, 2023 @12:51AM (#38342989)
Has anything in Python been removed in 12 months? TestCase.assertEquals was deprecated in Python 3.2 (February 2011) and was finally removed in Python 3.12 (October 2023). And that was 12 years for just a simple rename from "assertEquals" to "assertEqual".
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by iso8859-1 on Saturday November 25, 2023 @06:09PM (#38417606)
Seems like it doesn't happen that fast. audioop was deprecated in 2019, will be removed soon in 3.13: https://www.python.org/downloads/release/python-3130a2/
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by thaumasiotes on Sunday November 19, 2023 @11:31AM (#38334200)
Stupid decisions don't always get put into practice after they're announced.

I seem to remember reading that remove-if-not is deprecated in Common Lisp, and that this is almost universally viewed as a mistake, but it remains deprecated (and the deprecation is ignored by everyone) just because the standard doesn't change anymore.

Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by maxerickson on Sunday November 19, 2023 @04:33PM (#38338347)
Sure, but nothing is going to break from the deprecation.

(It's going to break from the eventual removal)

Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated by tripflag on Sunday November 19, 2023 @11:11AM (#38333954)
The warning is also opt-in; you'll have to run python with PYTHONWARNINGS=always or similar to see it.

Which is scary, because you will be taking the performance hit from generating the warning regardless, which can easily amount to 30% of your total CPU time if you use utcnow/utcfromtimestamp a lot.