I have no idea what you are trying to do but your function is not called.
I guess you are trying to put that function in the interpreter namespace for other uses.
The function has a useless line and looks as though you want Python version 2.x.x and the print STATEMENT.
If you require version 3.x.x then you need the print FUNCTION and the end=" " _flag_.
OSX 10.13.4, default bash terminal calling python2.7.
Last edited by wisecracker; 05-27-2018 at 06:57 AM..
This User Gave Thanks to wisecracker For This Post:
Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles?
Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
I have the following problem, which I need done in Perl/ or Python using Unix/linux filters...
1. You have a very large file, named 'ColCheckMe', tab-delmited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values in the... (1 Reply)
I have the following problem, which I need done in Perl/ or Python using Unix/linux filters...
1. You have a very large file, named 'ColCheckMe', tab-delmited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values... (1 Reply)
Hi,
i have the below script:
###############################SimpleEncryption################################
#Simple encryption implemented in python
#Author:pandeeswaran
###############################################################################
def Encrypt(input):
res=''
... (13 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
This site is the first to get this snippet.
It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility...
A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh.
Thoroughly read ALL the comments in... (0 Replies)
Discussion started by: wisecracker
0 Replies
LEARN ABOUT DEBIAN
pyste
PYSTE(1) User Commands PYSTE(1)NAME
Pyste - Boost.Python code generator
SYNOPSIS
pyste [options] interface-files
DESCRIPTION
Pyste is a Boost.Python code generator. The user specifies the classes and functions to be exported using a simple interface file which,
following the Boost.Python's philosophy, is simple Python code. Pyste then uses GCCXML to parse all the headers and extract the necessary
information to automatically generate C++ code.
--module=<name>
The name of the module that will be generated; defaults to the first interface filename, without the extension.
-I <path>
Add an include path
-D <symbol>
Define symbol
--multiple
Create various cpps, instead of only one (useful during development)
--out=<name>
Specify output filename (default: <module>.cpp) in --multiple mode, this will be a directory
--no-using
Do not declare "using namespace boost"; use explicit declarations instead
--pyste-ns=<name>
Set the namespace where new types will be declared; default is the empty namespace
--debug
Writes the xml for each file parsed in the current directory
--cache-dir=<dir>
Directory for cache files (speeds up future runs)
--only-create-cache
Recreates all caches (doesn't generate code).
--generate-main
Generates the _main.cpp file (in multiple mode)
--file-list
A file with one pyste file per line. Use as a substitute for passing the files in the command line.
--gccxml-path=<path>
Path to gccxml executable (default: gccxml)
--no-default-include
Do not use INCLUDE environment variable for include files to pass along gccxml.
-h, --help
Print this help and exit
-v, --version
Print version information
SEE ALSO
The full documentation for Pyste is maintained in HTML format. If you have the libboost-doc package installed, the manual starts at
/usr/share/doc/libboost-doc/HTML/libs/python/pyste/index.html
Pyste version 0.9.30 March 2008 PYSTE(1)