KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@cm0002@lemmy.world to Programmer Humor@programming.dev • 3 months ago

Specifying file paths

lemmy.ml

message-square
130
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.46K

Specifying file paths

lemmy.ml

@cm0002@lemmy.world to Programmer Humor@programming.dev • 3 months ago
message-square
130
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • Pennomi
    link
    fedilink
    English
    29•3 months ago

    Python raw strings to the rescue!

    • Diplomjodler
      link
      fedilink
      41•3 months ago

      Pathlib is the answer.

    • unalivejoy
      link
      fedilink
      English
      18•3 months ago

      Nobody is stopping you from using forward slashes. Python will translate the path for the current platform.

      • @Lichtblitz@discuss.tchncs.de
        link
        fedilink
        5•3 months ago

        Python doesn’t have to. Windows supports both out of the box. Has been for many, many years

      • @three@lemm.ee
        link
        fedilink
        English
        2•3 months ago

        Good to know!

Programmer Humor@programming.dev

!programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 1.14K users / day
  • 4.96K users / week
  • 9.09K users / month
  • 17.8K users / 6 months
  • 23.2K subscribers
  • 1.39K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org