User Controls

im back to hating python

  1. #1
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  2. #2
    Sophie Pedophile Tech Support
    Put client as a class have a method called Client in that class that you can import, or import the class as a whole. Also don't forget to put an __init__.py file in the appropriate directory.
  3. #3
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  4. #4
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  5. #5
    Sophie Pedophile Tech Support
    Originally posted by filtration Turns out having 'coinbase.py' as a file name was fucking up coinbase the pip module :P

    Yeah, that can happen, i wasn't aware there was a Py3 module for Coinbase though.
  6. #6
    Octavian motherfucker
    I hate Cobras to be fair.
  7. #7
    Lanny Bird of Courage
    Originally posted by filtration Turns out having 'coinbase.py' as a file name was fucking up coinbase the pip module :P

    Yeah, this. With new the new relative import it kind of seems like you should default to your packages since you can still reference colliding modules/files with a relative name but ehh, there was probably a lot of thought that went into it and it's probably like that for a reason.

  8. #8
    aldra JIDF Controlled Opposition
    you can beat the python!
  9. #9
    Lanny Bird of Courage
    I'll never say no to a little ball python play
  10. #10
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  11. #11
    Lanny Bird of Courage
    Originally posted by filtration I'm in the process of learning python, is there anyway to have a file and a pip module with the same name?

    The short answer is don't name your modules in a way that collides with your dependencies. You can get around by it using the import internals (which you shouldn't) and if you know exactly where on your FS the library is (you shouldn't have to worry about this). Accepted answer to this question works: https://stackoverflow.com/questions/6031584/importing-from-builtin-library-when-module-with-same-name-exists but you really probably just want to rename your file or put it into a different module and not launch it directly.
  12. #12
    Star Trek VI: The Undiscovered Country Dark Matter [my scoffingly uncritical tinning]
    dontYouPythonSwaggotsEvenCamelCase?

    import com.omg.faggot.masked.shitcode.src.java.main.losemybitshekels.loseMyBitShekels.java
Jump to Top