Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-27-2018, 12:55 PM   #1
LQ Newbie
Registered: Feb 2018
Location: Toronto, Canada
Distribution: Debian 9.3
Posts: 4

Rep: Reputation: 0
Veritying non-breakage in a Python 3 library installed as a distro repo package (Debian Testing)

All I've done so far after installing a Python 3 library through the Debian Testing package manager, is fire up the command interpreter and use an import statement on it. So far, no signs of breakage. Are there more rigorous tests I can use to verify the library's integrity, at least in terms of any bugs that were purely passed on from the library's maintainers and not introduced by the package maintainers?
Old 02-27-2018, 02:36 PM   #2
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,957

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
Use the latest version of python
python --version
Python 3.6.4
You don't say what your plans are. If all you want is basic python functionality
>>> a = 1
>>> b = 2
>>> print ((a) + (b))
>>> import time
>>> for i in range(1, 6):
...     time.sleep(1)
...     print (i)
If you are going to use python then you will probably want to install some modules like urllib for example.
>>> import os, time, urllib.request
>>> user_agent = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:57.0) '
...                 'Gecko/20100101 Firefox/57.0'}
>>> url = [
... '', 
... '', 
... ''
... ]
>>> a = int(1)
>>> for i in url:
...     req = urllib.request.Request((i), data=None, headers=user_agent)
...     print (req)
...     time.sleep(1)
...     a = int(a+1)
<urllib.request.Request object at 0x7feee622b4a8>
<urllib.request.Request object at 0x7feee6b50e80>
<urllib.request.Request object at 0x7feee622b4a8>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to pin a package to be installed from specific repo? tripialos Linux - Newbie 5 07-03-2015 05:45 AM
Adding an extra python repo for 'yum' & finding 'pip' package NikosGr Linux - Newbie 4 06-04-2013 04:25 AM
Debian Wheezy - No Idea Which Repo I'm On / Am I Testing? gauntface Debian 8 01-24-2013 11:09 AM
How can I uninstall a python package installed with python install? milomak Linux - Software 1 11-16-2009 09:22 PM
Which yum repo was a package installed from? arizonagroovejet Linux - General 1 08-25-2008 08:58 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration