Sponsored Content
Full Discussion: Python p.ravel question
Top Forums Programming Python p.ravel question Post 303002891 by 1Brajesh on Monday 4th of September 2017 11:10:18 AM
Old 09-04-2017
hmm...could be
 

9 More Discussions You Might Find Interesting

1. Programming

NEWBIE QUESTION: python 3 or 2.6.x

I'm a newbie and want to learn a programming language, willy-nilly I picked python... Should I go with 2.6.x which at first glance seems extremely well documented, or should I go with 3.0, which is new and shiny?! I want...no...I'm going to NEED fantastic documentation or I'm going to fail... (2 Replies)
Discussion started by: guptaxpn
2 Replies

2. Shell Programming and Scripting

Python Newbie Question Regex

I starting teaching myself python and am stuck on trying to understand why I am not getting the output that I want. Long story short, I am using PDB for debugging and here my function in which I am having my issue: import re ... ... ... def find_all_flvs(url): soup =... (1 Reply)
Discussion started by: metallica1973
1 Replies

3. Programming

General question about learning Python

I am planning on taking a class in Python. My choices are 2.5 or 3.0. Which version should I choose? I am getting the impression they are two separate paths. thanks. (5 Replies)
Discussion started by: djehresmann
5 Replies

4. UNIX for Dummies Questions & Answers

Capslock and Python Question

Hello All, I was looking for a solution for enabling/disabling the Capslock from the command line and came across some Python code for doing just that... Well, in this case the code was written to ONLY turn-off Capslock but I assume there has to be a way to turn it on too. Site where I... (0 Replies)
Discussion started by: mrm5102
0 Replies

5. Shell Programming and Scripting

Python question

#!/usr/bin/python def genCommanString(s): print s abc = { "sftp":genCommanString('f5sftp'), "/usr/local/ssh/bin/sftp": genCommanString('f5sftp') } value="sftp" xyz = abc.get(value) Why the above coding produce 2 row output? (i.e. f5sftp f5sftp) Is it... (1 Reply)
Discussion started by: cstsang
1 Replies

6. Shell Programming and Scripting

Python/GTK Text Wrap Question . . .

Greetings! After some cut-and-try, I've cobbled together the following bit of basic code:#!/usr/bin/python import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_size_request(250, 250) ... (0 Replies)
Discussion started by: LinQ
0 Replies

7. Shell Programming and Scripting

Question about Strings in Python

Hi, I get he values for nmval=MS1 & csval=Cluster from the properties file like below. nmval=configProps.get("SVR_NAME") csval=configProps.get("CLS_NAME")What should i do in the commands below so as to use the variables nmval and csval instead of manually typing MS1 and Cluster I want to... (1 Reply)
Discussion started by: mohtashims
1 Replies

8. Programming

A straightforward Python question.

Hi all... Simple yes or no answer question for the big guns with a qualifier if YES. I can possibly do FFT for my needs in AudioScope using python. Q: Is python now considered part of the /usr/bin or other command paths for ALL current *NIX style OSes? IF YES which version(s) should I... (4 Replies)
Discussion started by: wisecracker
4 Replies

9. Shell Programming and Scripting

Simple Python Code Question

I have the following code: #!/usr/bin/env python mylist = def printWithoutNewlines(): for objects in mylist: #print(objects) objects = objects.replace('hello', "hi") print objects When executed, it gives the following output: ## ./loop.py hi... (3 Replies)
Discussion started by: SkySmart
3 Replies
DH_PYSUPPORT(1) 						  python-support						   DH_PYSUPPORT(1)

NAME
dh_pysupport - use the python-support framework to handle Python modules SYNOPSIS
dh_pysupport [debhelper options] [-V X.Y] [-X item [...]] [-n] [module dirs ...] DESCRIPTION
dh_pysupport is a debhelper program that will scan your package, detect public modules in /usr/lib/pythonX.Y/site-packages, and move them to the shared Python modules location. It will generate appropriate postinst/prerm scripts to byte-compile modules installed there for all available python versions. It will also look for private Python modules and will byte-compile them with the current Python version. You may have to list the directories containing private Python modules. If a file named debian/pyversions exists, it is used to determine the python versions with which the package can work. Appropriate dependencies on python-support, python and pythonX.Y are put in ${python:Depends}. The ${python:Versions} and ${python:Provides} optional substitution variables are made available as well. OPTIONS
module dirs If your package installs private python modules in non-standard directories, you can make dh_pysupport check those directories by passing their names on the command line. By default, it will check /usr/lib/$PACKAGE, /usr/share/$PACKAGE, /usr/lib/games/$PACKAGE and /usr/share/games/$PACKAGE -n, --noscripts Do not modify postinst/postrm scripts. -d This option is deprecated. -V X.Y Force private modules to be bytecompiled with the specific X.Y python version, regardless of the default python version on the system. -X item, --exclude=item Exclude files that contain "item" anywhere in their filename from being taken into account to generate the python dependency. It also excludes them from byte-compilation. You may use this option multiple times to build up a list of things to exclude. CONFORMS TO
Python policy as of 2006-08-10 SEE ALSO
debhelper(7) This program is a part of python-support but is made to work with debhelper. AUTHORS
Josselin Mouette <joss@debian.org>, Raphael Hertzog <hertzog@debian.org> 1.0.15 2012-06-30 DH_PYSUPPORT(1)
All times are GMT -4. The time now is 12:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy