Title: redefining stdout in imported module breaks cmdprompt on windows · Issue #17 · ipython/ipython · GitHub
Open Graph Title: redefining stdout in imported module breaks cmdprompt on windows · Issue #17 · ipython/ipython
X Title: redefining stdout in imported module breaks cmdprompt on windows · Issue #17 · ipython/ipython
Description: Original Launchpad bug 383554: https://bugs.launchpad.net/ipython/+bug/383554 Reported by: techtonik (anatoly techtonik). When import the module that redefines stdout, the colorful IPython prompt breaks (pyreadline is at 1.5), although o...
Open Graph Description: Original Launchpad bug 383554: https://bugs.launchpad.net/ipython/+bug/383554 Reported by: techtonik (anatoly techtonik). When import the module that redefines stdout, the colorful IPython prompt b...
X Description: Original Launchpad bug 383554: https://bugs.launchpad.net/ipython/+bug/383554 Reported by: techtonik (anatoly techtonik). When import the module that redefines stdout, the colorful IPython prompt b...
Opengraph URL: https://github.com/ipython/ipython/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"redefining stdout in imported module breaks cmdprompt on windows","articleBody":"Original Launchpad bug 383554: https://bugs.launchpad.net/ipython/+bug/383554\nReported by: techtonik (anatoly techtonik).\n\nWhen import the module that redefines stdout, the colorful IPython prompt breaks (pyreadline is at 1.5), although other colors work in error messages.\n\n```\nPython 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]\nType \"copyright\", \"credits\" or \"license\" for more information.\n\nIPython 0.9.1 -- An enhanced Interactive Python.\n? -\u003e Introduction and overview of IPython's features.\n%quickref -\u003e Quick reference.\nhelp -\u003e Python's own help system.\nobject? -\u003e Details about 'object'. ?object also works, ?? prints more.\n\nIn [1]: from yyy import xxx\n\n☺←[0;32m☻In [☺←[1;32m☻2☺←[0;32m☻]: ☺←[0m☻\n\n☺←[0;32m☻In [☺←[1;32m☻3☺←[0;32m☻]: ☺←[0m☻some strange command\n------------------------------------------------------------\n File \"\u003cipython console\u003e\", line 1\n some strange command\n ^\nSyntaxError: invalid syntax\n\n\n☺←[0;32m☻In [☺←[1;32m☻4☺←[0;32m☻]: ☺←[0m☻\n```\n\n-- cut xxx.py ---\n\n``` python\nimport sys\n\nclass restdout:\n def __init__(self, fp):\n self.fp = fp\n\n def write(self, s):\n self.fp.write(s)\n\nsys.stdout = restdout(sys.stdout)\n```\n","author":{"url":"https://github.com/ipython","@type":"Person","name":"ipython"},"datePublished":"2010-05-10T09:27:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/17/ipython/issues/17"}
| 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:95591a04-76be-f0eb-1845-17a4b7b5b050 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BECE:3007FC:F86042:15A02E7:6A4E8F5C |
| html-safe-nonce | 3989b27b711158d947cd154dbc887caf0e3c0620a61a6d356c6a6825f8eec782 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUNFOjMwMDdGQzpGODYwNDI6MTVBMDJFNzo2QTRFOEY1QyIsInZpc2l0b3JfaWQiOiI1MjQyOTIxODI2MTc1MDYxODUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 043bc5aac522383c63d70f4d58490520394b4bcefd72ddaaabbbc0a0795e510f |
| hovercard-subject-tag | issue:191426 |
| 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/ipython/ipython/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c04d81a141d7940d35addf2ca09755ef1915d6649ef2f7329654d71111e35bd/ipython/ipython/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c04d81a141d7940d35addf2ca09755ef1915d6649ef2f7329654d71111e35bd/ipython/ipython/issues/17 |
| og:image:alt | Original Launchpad bug 383554: https://bugs.launchpad.net/ipython/+bug/383554 Reported by: techtonik (anatoly techtonik). When import the module that redefines stdout, the colorful IPython prompt b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ipython |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width