public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2
@ 2022-12-23 14:36 redi at gcc dot gnu.org
2022-12-23 14:36 ` [Bug libstdc++/108212] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-12-23 14:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212
Bug ID: 108212
Summary: <chrono> pretty printers don't work with Python 2
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
ImportError: cannot import name timezone
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/108212] <chrono> pretty printers don't work with Python 2
2022-12-23 14:36 [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2 redi at gcc dot gnu.org
@ 2022-12-23 14:36 ` redi at gcc dot gnu.org
2022-12-23 23:48 ` [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono redi at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-12-23 14:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
Target Milestone|--- |13.0
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2022-12-23
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono
2022-12-23 14:36 [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2 redi at gcc dot gnu.org
2022-12-23 14:36 ` [Bug libstdc++/108212] " redi at gcc dot gnu.org
@ 2022-12-23 23:48 ` redi at gcc dot gnu.org
2023-01-05 16:28 ` cvs-commit at gcc dot gnu.org
2023-01-05 16:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-12-23 23:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|<chrono> pretty printers |[13 Regression] pretty
|don't work with Python 2 |printers don't work with
| |Python 2 due to imports for
| |chrono
Priority|P3 |P1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono
2022-12-23 14:36 [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2 redi at gcc dot gnu.org
2022-12-23 14:36 ` [Bug libstdc++/108212] " redi at gcc dot gnu.org
2022-12-23 23:48 ` [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono redi at gcc dot gnu.org
@ 2023-01-05 16:28 ` cvs-commit at gcc dot gnu.org
2023-01-05 16:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-05 16:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:80ff207da6d8784e227eb93f75c4ac5a300c8420
commit r13-5034-g80ff207da6d8784e227eb93f75c4ac5a300c8420
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Jan 5 13:41:21 2023 +0000
libstdc++: Fix <chrono> printers for Python 2 [PR108212]
The datetime.timezone.utc singleton doesn't exist in Python 2, but we
can create it ourselves by deriving from datetime.tzinfo.
libstdc++-v3/ChangeLog:
PR libstdc++/108212
* python/libstdcxx/v6/printers.py (_utc_timezone): New global
variable.
(StdChronoTimePointPrinter::to_string): Use it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono
2022-12-23 14:36 [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2 redi at gcc dot gnu.org
` (2 preceding siblings ...)
2023-01-05 16:28 ` cvs-commit at gcc dot gnu.org
@ 2023-01-05 16:31 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-05 16:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108212
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-05 16:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 14:36 [Bug libstdc++/108212] New: <chrono> pretty printers don't work with Python 2 redi at gcc dot gnu.org
2022-12-23 14:36 ` [Bug libstdc++/108212] " redi at gcc dot gnu.org
2022-12-23 23:48 ` [Bug libstdc++/108212] [13 Regression] pretty printers don't work with Python 2 due to imports for chrono redi at gcc dot gnu.org
2023-01-05 16:28 ` cvs-commit at gcc dot gnu.org
2023-01-05 16:31 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).