• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: August 25th, 2023

help-circle



  • The add function in the example above probably traverses the call stack to see what line of the script is currently being executed by the interpreter, then reads in that line in the original script, parses the comment, and subs in the values in the function call.

    This functionality exists so when you get a traceback you can see what line of code triggered it in the error message






  • Actually, I‘m just excluding companies like yours because they are making way too much revenue on the basis of FOSS without giving back

    You don’t know anything about my company? You don’t know what proportion of FOSS vs proprietary software we use, nor how much we give back lol.

    It would completely break the locked down proprietary software model and break walled gardens wide open.

    This is very pie in the sky. Your license idea only penalizes small to medium sized businesses. Alphabet’s 1% would just go to Chromium/AOSP, and Meta’s 1% would just go to React/Torch









  • But running those pip commands you mentioned is only going to affect what version gets installed initially.

    I don’t follow. If my package-lock.json specifies package X v1.1 nothing stops me from manually telling npm to install package X v1.2, it will just update my package.json and package-lock.json afterwards

    If a requirements.txt specifies X==1.1, pip will install v1.1, not 1.2 or a newer version. If I THEN install package Y that depends on X>1.1, the pip install output will say 1.1 is not compatible and that it is being upgraded to 1.2 to satisfy package Y’s requirements. If package Y works fine on v1.1 and does not require the upgrade, it will leave package X at the version you had previously installed.


  • Would that just create a list of the current packages/versions

    Yes, and all downstream dependencies

    without actually locking anything?

    What do you mean? Nothing stops someone from manually installing an npm package that differs from package-lock.json - this behaves the same. If you pip install -r requirements.txt it installs the exact versions specified by the package maintainer, just like npm install the only difference is python requires you to specify the “lock file” instead of implicitly reading one from the CWD