zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Python virtual environment

October 12, 2019 by Igor Drobot 1 Comment

python logo

Python virtualenv or venv are the short forms of virtual environment.
Virtualenv is useful for different projects with unique requirements for each of them, like versions of python or at least different versions of Python libraries.

So they run parallel on a same system in separated from each other environments without any conflicts between them.
[Read more…]

Filed Under: Linux Tagged With: .py, Python, venv, virtualenv

Parallel python versions

March 11, 2019 by Igor Drobot Leave a Comment

Some project have strict dependencies, and requires additional python 3.x versions to manage the dependencies.
This describes a walkthrough of a build of python 3.5.6 from a source tarball.

Just go to python.org Download section and copy the download link to a python version of your need:

[Read more…]

Filed Under: Linux Tagged With: pyenv, Python, python3

Quickshare methods

November 26, 2018 by Igor Drobot Leave a Comment

Sharing is caring. For this situations there are following command line methods to provide some data to be downloaded from everywhere.
On the most common linux systems is python preinstalled or is a part of the core system,
so the next two python-examples should work like a charm.
[Read more…]

Filed Under: Linux Tagged With: Linux, PHP, Python, python3

Web frameworks

March 6, 2011 by Igor Drobot Leave a Comment

For most tiny web-projects is django or Ruby on Rails the overkill and that is mostly the problem which is between the framework and the quick solution.
There are a lot Micro Frameworks available without nasty and unnecessary stuff. Here is a short overview of them:

[Read more…]

Filed Under: Programming, Python, Ruby Tagged With: frameworks, Python, ruby

Python Comparison Operators

August 28, 2010 by Igor Drobot Leave a Comment

All following comparison operators have the standard mathematical interpretation and return a boolean value of True for true, False for false:

Comparison operations are supported by all objects!

This table summarizes the comparison operations:

Operation Meaning
< strictly less than
<= less than or equal
> strictly greater than
>= greater than or equal
== equal
!= not equal*
is object identity
is not negated object identity

* != can also be written <>, but this is an obsolete usage kept for backwards compatibility only. New code should always use !=.

Filed Under: Linux Tagged With: Programming, Python

  • « Previous Page
  • 1
  • 2