GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — gh-121035: Update logging flow chart to include lastResort by bessman · Pull Request #121036 · python/cpython Conversation
|
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ae0d1dd to
ec93c98
Compare
|
Thanks for this, but what process have you used? I've been thinking about replacing (or perhaps augmenting) this PNG file with something that's more easily modifiable, such as an SVG. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I edited it in GIMP. Not the most convenient workflow, indeed. If you prefer, I could look into recreating the flowchart as SVG in Inkscape or Dia. It won't look exactly the same, of course, but I'm sure I can get it reasonably close. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That would be great. I think it needs to be a bit "nicer", style-wise, than the current iteration, which looks pretty old-fashioned and out of step with the overall documentation that surrounds it. If you think that's too much work, I'll understand! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I'm not much of a graphic designer, so I can't really execute on this without further guidance. Do you have an example of an image in the style you would like? For now, I have replaced the PNG with an SVG in the same style. I'll experiment a bit with font size and background to make sure it's readable. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm working on embedding the SVG in the page HTML properly, so that the font is the same as the surrounding page text. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Quick work, it's coming along nicely. Things that occurred to me:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
efa0237 to
fa836c7
Compare
How about "lastResort handler"? My thinking is that for someone unfamiliar with the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
One problem: The sphinx An alternative is to load the SVG with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Maybe leave that for a later refinement? Accessibility is probably more important than a light/dark mismatch. To react to the theme selector would probably need a bit of javaScript. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
81841f9 to
b1ce092
Compare
|
Then I think this is ready. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you very much for this! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…handler. (pythonGH-121036) (cherry picked from commit 237baf4) Co-authored-by: Alexander Bessman <[email protected]>
…handler. (pythonGH-121036) (cherry picked from commit 237baf4) Co-authored-by: Alexander Bessman <[email protected]>
|
GH-121105 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-121106 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bessman I made some changes to the SVG to tweak elements positions and styles. I want to export the changed version to PNG, but the PNG I export from Inkscape has a transparent background. What tool did you end up using to create the SVG and PNG (including precise versions, and on which OS)? I modified the SVG by hand as I couldn't find a suitable tool that would make minimal changes to the SVG you created. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There's still a pending issue of syncing with the theme selector, but I think that will require changes in the pydoc theme to e.g. add a class to the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I made it in Dia (v0.97+git from Ubuntu 20.04). Perhaps the .dia file should also be added to the repo? To create the PNG, I used Dia's export feature. However, after some experimentation I've found a way to do the conversion with imagemagick (6.9.10-23 Q16 x86_64 20190101) which achieves better compression:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the info.
I've not used Dia, is the BTW I think I've now addressed the theme selector issue in #121254. Feel free to try it out. It's merged in the main branch, but not yet backported to 3.12/3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It's gzip'd XML. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sadly, I've noticed that following my changes (mostly to remove inline styles from the elements in favour of CSS), Dia won't import the SVG correctly any more. See this screenshot: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Well, in case it's helpful, here is the .dia file: logging_flow.xml.gz I had to change the suffix to .xml.gz for github to accept it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks very much. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.