Title: tkinter._flatten and others not (easily) accessible · Issue #233 · PythonCharmers/python-future · GitHub
Open Graph Title: tkinter._flatten and others not (easily) accessible · Issue #233 · PythonCharmers/python-future
X Title: tkinter._flatten and others not (easily) accessible · Issue #233 · PythonCharmers/python-future
Description: Hello, The tkinter package included here does a from Tkinter import *, which misses at least _flatten, and _cnfmerge which might be used by tk extensions. Therefore the typical method of handling Python 2/3 causes it to stop working when...
Open Graph Description: Hello, The tkinter package included here does a from Tkinter import *, which misses at least _flatten, and _cnfmerge which might be used by tk extensions. Therefore the typical method of handling P...
X Description: Hello, The tkinter package included here does a from Tkinter import *, which misses at least _flatten, and _cnfmerge which might be used by tk extensions. Therefore the typical method of handling P...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/233
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tkinter._flatten and others not (easily) accessible","articleBody":"Hello,\n\nThe tkinter package included here does a `from Tkinter import *`, which misses at least `_flatten`, and `_cnfmerge` which might be used by tk extensions. Therefore the typical method of handling Python 2/3 causes it to stop working when combined with python-future. Example:\n\n```\ntry:\n import tkinter\nexcept ImportError:\n import Tkinter as tkinter\n```\n\nafter running the above on stock Python 2 or Python 3 `tkinter._flatten` is available, but not when using python-future. Packages that make use of that need to be patched with something like:\n\n```\nif not hasattr(tkinter, '_flatten'):\n from Tkinter import _flatten, _cnfmerge\n tkinter._flatten = _flatten\n tkinter._cnfmerge = _cnfmerge\n```\n","author":{"url":"https://github.com/gpip","@type":"Person","name":"gpip"},"datePublished":"2016-09-01T15:17:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/233/python-future/issues/233"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b8bafc4-6bc7-ad58-7b37-3b8912f1a44d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3AC:3A9D93:E2F9A2:1402555:696A66FF |
| html-safe-nonce | 0457bfc6794225ea358fcf5dac772976e4fdfba102016170c94934ace10df78b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0FDOjNBOUQ5MzpFMkY5QTI6MTQwMjU1NTo2OTZBNjZGRiIsInZpc2l0b3JfaWQiOiI3ODc2NjkzNzg3NTE1OTcxMzI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db3542310aa8df4b37d57ed9671a3b330ac0f9e2e947ced6c7667b6e0557a63c |
| hovercard-subject-tag | issue:174551324 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PythonCharmers/python-future/233/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78468cf94ba7704ecc2008f1b39ee0ea8b32d5deb2cca7ce401ae0177a3b6cb6/PythonCharmers/python-future/issues/233 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78468cf94ba7704ecc2008f1b39ee0ea8b32d5deb2cca7ce401ae0177a3b6cb6/PythonCharmers/python-future/issues/233 |
| og:image:alt | Hello, The tkinter package included here does a from Tkinter import *, which misses at least _flatten, and _cnfmerge which might be used by tk extensions. Therefore the typical method of handling P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gpip |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| turbo-cache-control | no-preview |
| go-import | github.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git |
| octolytics-dimension-user_id | 3365815 |
| octolytics-dimension-user_login | PythonCharmers |
| octolytics-dimension-repository_id | 11403699 |
| octolytics-dimension-repository_nwo | PythonCharmers/python-future |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11403699 |
| octolytics-dimension-repository_network_root_nwo | PythonCharmers/python-future |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width