LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-27-2018, 12:55 PM   #1
MickeyLater
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
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,957

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
Use the latest version of python
Code:
python --version
Python 3.6.4
You don't say what your plans are. If all you want is basic python functionality
Code:
>>> a = 1
>>> b = 2
>>> print ((a) + (b))
3
>>> import time
>>> for i in range(1, 6):
...     time.sleep(1)
...     print (i)
... 
1
2
3
4
5
If you are going to use python then you will probably want to install some modules like urllib for example.
Code:
>>> 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 = [
... 'http://www.one.com', 
... 'http://www.two.com', 
... 'http://www.three.com'
... ]
>>> 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>
 
  


Reply


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 setup.py 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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