-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate tz_localize, let cast_timezone work on naive #6561
Comments
Right, having spent some more time on this, I think it could go further:
@ritchie46 @alexander-beedie @stinodego sorry for the ping, just wanted to check if you'd be on board with this TLDR
|
uh I think @braaannigan in #6338 wanted to deprecate cast_time_zone, in favour of tz_localize ;-) |
true, but I think the spirit of the suggestion was that one method is redundant given the other two :) I think it would be simpler for users if there were only two methods, and simpler for developers if |
Update: I've opened a PR to let Letting Regarding making |
what would be the result? does it revert to the internal representation / naive "UTC-like" ? |
that's right - it would keep doing what it currently does, there would be no change to |
@MarcoGorelli I really like the new function names as in 0.16.3 ! I'm still in favour of deprecating |
the two behaviours I'm suggesting to deprecate are:calling with_time_zone on tz-naive;calling with_time_zone(None)EDIT: this issue was originally about making
with_time_zone
stricter The scope then evolved intocast_time_zone
andtz_localize
. To keep the scope down, I've changed the scope of this suggestion to be only aboutcast_time_zone
andtz_localize
. I'll make a separate issue aboutwith_time_zone
EDIT 2 I've broken the
with_time_zone
part of the suggestion off into #6658The text was updated successfully, but these errors were encountered: