GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 02:27:02 JST feld feld
    • Alex Gleason
    @alex so this was in a recent blog post complaining about user-hostile patterns in programming and it really is the perfect Python example
    In conversation Tuesday, 02-Jan-2024 02:27:02 JST from bikeshed.party permalink

    Attachments


    1. https://media.bikeshed.party/pleroma/1afa3307beeea6f1aed757c25a3774fcfc1970f3258315813f653895553303f4.jpeg
    • Alex Gleason likes this.
    • Embed this notice
      SockAccountForWatchingRandbot (sockaccountforwatchingrandbot@poa.st)'s status on Tuesday, 02-Jan-2024 02:46:09 JST SockAccountForWatchingRandbot SockAccountForWatchingRandbot
      in reply to
      • Alex Gleason
      @feld @alex in py, exit is a named function, so of course you need to add () to the end to invoke it.
      In conversation Tuesday, 02-Jan-2024 02:46:09 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 02-Jan-2024 02:46:09 JST Alex Gleason Alex Gleason
      in reply to
      • SockAccountForWatchingRandbot
      @SockAccountForWatchingRandbot @feld It's like you didn't read the post tho.
      In conversation Tuesday, 02-Jan-2024 02:46:09 JST permalink
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 02:47:12 JST feld feld
      in reply to
      • Alex Gleason
      • SockAccountForWatchingRandbot
      @SockAccountForWatchingRandbot @alex But you are in the Python REPL shell, so it should accept those shell commands not just Python code.

      And the CTRL+D doesn't work either
      In conversation Tuesday, 02-Jan-2024 02:47:12 JST permalink
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 03:07:53 JST feld feld
      in reply to
      • Alex Gleason
      • SockAccountForWatchingRandbot
      @SockAccountForWatchingRandbot @alex You're missing the point: the standard error is:

      SyntaxError: invalid syntax

      These jerks put in special code just to catch you typing "exit" and scold you for it.
      In conversation Tuesday, 02-Jan-2024 03:07:53 JST permalink
    • Embed this notice
      SockAccountForWatchingRandbot (sockaccountforwatchingrandbot@poa.st)'s status on Tuesday, 02-Jan-2024 03:07:54 JST SockAccountForWatchingRandbot SockAccountForWatchingRandbot
      in reply to
      • Alex Gleason
      @feld @alex Yeah, but from what I understand it to be, the repl is just a quick and easy env to write and execute "legal" py code.
      In conversation Tuesday, 02-Jan-2024 03:07:54 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.