Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e · GitHub
Open Graph Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e
X Title: Chapter 21 - fix tcp_mojifinder.py crashes on empty search result by timheiko · Pull Request #62 · fluentpython/example-code-2e
Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no results and some results, e.g. missing and hat % nc localhost 2323 ?> missing ────────────────────────────────────────────────────────────────── 0 found ?> hat U+2CD4 Ⳕ COPTIC CAPITAL LETTER OLD COPTIC HAT U+2CD5 ⳕ COPTIC SMALL LETTER OLD COPTIC HAT U+A271 ꉱ YI SYLLABLE HAT U+D571 핱 HANGUL SYLLABLE HAT U+1F3A9 🎩 TOP HAT U+1F452 👒 WOMANS HAT U+1F920 🤠 FACE WITH COWBOY HAT U+1F973 🥳 FACE WITH PARTY HORN AND PARTY HAT ────────────────────────────────────────────────────────────────── 8 found ?> The TCP server log contains no errors and doesn't crash the TCP connection: % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. From ('127.0.0.1', 63756): 'missing' To ('127.0.0.1', 63756): 0 results. From ('127.0.0.1', 63756): 'hat' To ('127.0.0.1', 63756): 8 results.
Open Graph Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no re...
X Description: Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which retu...
Opengraph URL: https://github.com/fluentpython/example-code-2e/pull/62
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ffb2b133-65f0-265f-63a8-c62aef42a600 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A59C:28493E:6E0B95:9A9C84:6970AE68 |
| html-safe-nonce | 1c64d4d665ffb4e142db98f091a54ba64e4f0da165267ee642b795cdb713a75b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTlDOjI4NDkzRTo2RTBCOTU6OUE5Qzg0OjY5NzBBRTY4IiwidmlzaXRvcl9pZCI6IjczMTE4NDIzOTE5NDM1ODk0ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a4b01ad9d843d9865de1f89804ba02330d038425f305622b81bd1c230b7a58a |
| hovercard-subject-tag | pull_request:2731206481 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/fluentpython/example-code-2e/pull/62/files |
| twitter:image | https://avatars.githubusercontent.com/u/175552092?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/175552092?s=400&v=4 |
| og:image:alt | Fixes #61 Start the TCP server % ./tcp_mojifinder.py Building index. Serving on ('127.0.0.1', 2323). Hit CTRL-C to stop. Connect to the TCP server and send a search query which return no re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/fluentpython/example-code-2e git https://github.com/fluentpython/example-code-2e.git |
| octolytics-dimension-user_id | 9216311 |
| octolytics-dimension-user_login | fluentpython |
| octolytics-dimension-repository_id | 176997413 |
| octolytics-dimension-repository_nwo | fluentpython/example-code-2e |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 176997413 |
| octolytics-dimension-repository_network_root_nwo | fluentpython/example-code-2e |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d29ab0ba8deb7bbecf06b664759d4e847623783 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width