« first day (714 days earlier)      last day (1853 days later) » 

10:28
As the updated PEP about it says, you can avoid worrying about it by using a virtual environment.
I've always been curious about that
But most novices, as well as people writing Python scripts that are installed in a directory in $PATH, will probably just want to make sure to use a suitable hashbang, and these days that hashbang should probably always make the version clear rather that relying on what python is.
@Zanna About Python virtual environments?
yes
If you haven't used them before, I suggest starting with pipenv. It's quite nice, and I believe it's the main recommended way to manage and use virtual environments in Python, going forward.
thanks :)
10:47
Anytime you're tempted to install Python modules in Ubuntu, I recommend preferring to install them either in a virtual environment or systemwide with Ubuntu packages. You can also install packages in your home directory, restricted to your user both otherwise global, or systemwide, using commands like pip and pip3 or even by downloading package archives, extracting them, and running setup.py (perhaps as root). I recommend against doing that except where it's clearly needed.
Ironically, you may need to use pip3 to install pipenv on 18.04. 19.04 and later package it IIRC.
10:57
@Zanna You could make an new Git repo for a very simple Python project in which to try out pipenv. :)
8 messages moved from Raiders of the Lost Downboat
11:57
@EliahKagan true, even i fiddled with python for a very long time without virtualenv but now im very much a fan of it as i have control over packages existent in said environment and have later on as well an easier task of telling which modules/libraries are needed for the project so i can tell people when they download from github which libs they need
Yes. And it avoids module versioning conflicts.
@EliahKagan yes but on the other hand you can do things like i did and intentionally use a conflicting library after I have tested that there are no conflicts but the library using that submodule is always comlaining about version conflict
and you can do so without tarnishing your whole system
`/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
`
:D
13:04
@Videonauth Nice.
9 messages moved from Raiders of the Lost Downboat
@EliahKagan Yes but you really need to know what you're doing, it took me a few days to sift through the whole library files including submodules/libraries until i was sure that there is no actual conflict only that requests wanted explizit older libraries to work with
14:00
@Videonauth Should that be considered a bug in requests?
@EliahKagan I did not do that as I only checked the functions i was going to use thoroughly and in depth, and then this bug/feature report would be inadequate and misleading
Makes sense.
urllib3 alone is so extensively big that its almost impossible to test all use cases against your code to be honest, unless you're willing to invest a month or two
@Zanna For pipenv, I have found Pipenv & Virtual Environments in Hitchhiker's Guide to Python useful. Though as far as installing pipenv goes, I suggest using the pipenv package if your release has it.
 
2 hours later…
15:59
I don't mean this as part of any secret plot to get you to code in Python. You'd expressed interest in virtual environments, and they're useful even for the case where you're just using the interpreter interactively (for example, if you don't want to install numpy systemwide but want to use it in an isolated case). Also, using pipenv in a Git repository is a good example case for when you might want to write a .gitignore file.
16:14
I totally do want to learn Python instead of just using the Python 3 shell to do my sums
:)
I recall you had been more interested in learning Ruby than Python.
@Zanna Do you want to backport those changes to master?
not now :S
I am not sure
16:38
@Zanna No problem!
(I assume that was responding to my backporting question.)
@Zanna I hope the stuff I was saying about green programming didn't put you off of Ruby...
...at least not without also putting you off of Python. :)
I might have been more interested in learning Ruby than Python at that time, or given the impression that I was, but I have made several very small and short-lived efforts to start learning Python and I haven't given up yet
in September there is here a day which is thought to be auspicious for starting new things hahaha
What day?
I don't know which day it will be. A lunar calendar is used. Someone will tell me when that day is close to the time I hope
Vijayadashami (IAST: Vijayadaśamī, pronounced [ʋɪʝəjəðəʃmɪ]]) also known as Dasahara, Dusshera, Dasara, Dussehra or Dashain is a major Hindu festival celebrated at the end of Navratri every year. It is observed on the tenth day in the Hindu calendar month of Ashvin, the seventh month of the Hindu Luni-Solar Calendar, which typically falls in the Gregorian months of September and October.Vijayadashami is observed for different reasons and celebrated differently in various parts of South Asia. In the southern, eastern and northeastern states of India, Vijayadashami marks the end of Durga Puj...
16:54
Would that not apply to Python for you, since you have already started to learn and use it some time ago?
I mentioned it because it would be a good excuse to resume trying to learn Python start trying to learn Python, again
Ah. :)

« first day (714 days earlier)      last day (1853 days later) »