Hello,
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
>>> import subprocess
>>> help(subprocess)
...
...
I'm hoping so as I hate scrolling and love how less works with... (0 Replies)
Hi everybody,
I've been experimenting with Python lately and for the most part it's been a smooth ride. I have one little problem that maybe one of you can help me with.
PROBLEM:
I have list with one word per line.
EXAMPLE
apples
oranges
pears
grapes
etc...
I also have a shell... (2 Replies)
Okay, so I have had this problem on openSUSE, and Debian systems now and I am hoping for a little help. I think it has something to do with Python but I couldn't find a proper Python area here.
I am trying to redirect the output of "ssh suse-server 'python -V'" to a file. It seems that no matter... (3 Replies)
Hi all...
Not sure where to put this so I put it here...
All comments welcome...
1) Is the Python language now considered a part of the *NIX transient command structure much like Perl, (and awk)?
2) If so which OSes now have it as part of a "default" install - NOT an extra to be... (5 Replies)
I am working on requirement on spreadsheet in python scripting.
I have a spreadsheet containing cell values and with background color.
I am able to read the value value but unable to get the background color of that particular cell.
Actually my requirement is to read the cell value along... (1 Reply)
I am writing a little python script that needs to grab version numbers between "<td>4.2.2</td>" within the tbody of the page:
blah blah blah blah blah
Is it possible to use a one-liner to scrap only the digits between the tags:
"<td>4.2.2</td>"
so it spits out:
4.2.2
4.2.1
etc..... (2 Replies)
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT DEBIAN
update-python-modules
UPDATE-PYTHON-MODULES(8) System Manager's Manual UPDATE-PYTHON-MODULES(8)NAME
update-python-modules - byte-compile python modules
SYNOPSIS
update-python-modules [options] [package.public [...]]
DESCRIPTION
The update-python-modules command is part of the python-support bundle.
update-python-modules is responsible for the byte-compilation of python modules. When used in byte-compilation mode, it will byte-compile
modules references in the files given on the command line. When used in installation mode, it will byte-compile them once for each
installed python version, and will make them available for all of them.
At each invocation, with or without arguments, update-python-modules will check for installed python versions, and will build or remove
modules according to new or removed versions since the last time it was run.
ARGUMENTS
Arguments must be files or directories located in the /usr/share/python-support directory. Depending on their extension, they are treated
differently.
package.public
A file listing public modules to install for each version. These modules must lie in /usr/share/pyshared or /usr/lib/pyshared.
package.private
A file listing private modules to byte-compile for one Python version.
package/
A legacy directory hierarchy of public modules. The C extensions and portions that change with the Python version are to be found in
/usr/lib/python-support/pythonX.Y/package/.
package.dirs
A legacy file listing directories where to find private modules.
OPTIONS -h, --help
Show summary of options.
-v, --verbose
Detail all actions while they are performed.
-b, --bytecompile
Only accept to work on private modules. When given this option, update-python-modules will fail if passed references to public mod-
ules.
-i, --install
Only accept to work on public modules. When given this option, update-python-modules will fail if passed references to public mod-
ules.
-c, --clean
Clean modules instead of installing them.
-a, --rebuild-all
Rebuild all private modules. This is necessary when the default python version was changed, for example.
-f, --force-rebuild-all
Clean all modules (public and private), and rebuild them.
FILES
/usr/lib/pymodules/pythonX.Y/
These directories contain the byte-compiled modules for version pythonX.Y.
SEE ALSO
/usr/share/doc/python-support/README.gz
AUTHOR
Josselin Mouette <joss@debian.org>.
18 Feb 2009 UPDATE-PYTHON-MODULES(8)