ave the latest (1.32.0-6) Debian boost libraries, and
> bjam version (3.1.10-1) correctly installed.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Roman Yakovenko
--
http://mail.python.org/mailman/listinfo/python-list
t site.
After this use bcp(http://boost.org/tools/bcp/bcp.html) utility to extract
boost.python and its dependencies.
After this you can read tutorials and to start working.
Anyway, it is better to ask Boost.Python related questions on it's mailing list:
http://boost.org/more/mailing_lists.htm
that if you ask you questions on
boost.python mailing list
you will get the answers.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ig.org/
Boost.Python also has code generators: Pyste and pyplusplus(
http://language-binding.net/pyplusplus/pyplusplus.html )
The last one even has GUI, so for small project you don't have to learn
any API, just few mouse clicks and you have almost working code.
--
Roman Yakove
n
will be associated with certain thing (like Ruby with Rails, Java with
Beans, C with two pluses, Fortran with 77 ;-)
Its healthy for a Pythons to live in many different ecosystems.
Regards,
Roman
--
http://mail.python.org/mailman/listinfo/python-list
he behaviour makes sense, of course... I tend to leave commas when I
expect a list to be added to (i.e. almost always ;-)))
Regards,
Roman
--
http://mail.python.org/mailman/listinfo/python-list
Nick Vatamaniuc wrote:
>True, that is why it behaves the way it does, but which way is the
>correct way? i.e. does the code need updating or the documentation?
>
>
>
Perhaps, someone can make a bug report... IMHO, docs are wrong.
-Roman
>-Nick V.
>
>[EMAIL PROTEC
y you need.
> Btw, if you can point me to any source code of non-trivial projects
> utilizing SWIG/Boost.Python, that would be very helpful. I found the
> examples on the tutorials are far too simple.
Those are tutorials, they should be simple, right :-) ?
--
Roman Yakovenko
-s VC80_ROOT=vc-8_0
> not totally sure if that is right so I have tried a few others like,
> bjam -sTOOLS=vc-8_0
>
> Any help would be appreciated.
Try to run vcvars32.bat ( if exists or something similar ) before you invoke
bjam from the same cmd. I am not sure, but this could he
'd', 'f']
3 ['g']
This code does not need the operator module, and its also faster (tested
using timeit). Why was the, imho, more complicated version used as
example in the documentation?
Regards, Roman
--
http://mail.python.org/mailman/listinfo/python-list
# [EMAIL PROTECTED] / 2006-10-08 11:44:18 +0100:
> That's because assignment isn't an operator - that's why (for example)
>
> print x = 33
>
> would be a syntax error. This is a deliberate design decision about
> which, history shows, there is little use complaining.
Just to clarify: n
a look on Py++( http://language-binding.net/pyplusplus/pyplusplus.html )
You are not going to regret.
You don't have to believe: take a look on Python-Ogre project(
http://python-ogre.python-hosting.com/ ) and amount of code that is
needed
to export Ogre engine to Python: http://tinyurl.com/mjuea
--
On 10/10/06, Frank Martinez <[EMAIL PROTECTED]> wrote:
> Hi, Roman.
> Thanks. I seem a bit confused. Does Py++ actually convert the C++ code to
> Python or does it just provide a wrapper to C++ code?
A second one. Now when I read your mail one more time, I think I was
wrong, b
ies rather than programming
> theory/constructs
Be sure to check Boost.Python to create Python bindings for your project(s):
http://boost.org/libs/python/doc/tutorial/doc/html/index.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
the library
* documentation, new chapters were written, all source code in documentation is
highlighted using pykleur package.
Dependencies: Py++-0.8.2 depends on pygccxml-0.8.2.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
Hi folks.
I've just faced with very nasty memory consumption problem.
I have a multythreaded app with 150 threads which use the only and the
same function - through urllib2 it just gets the web page's html code
and assigns it to local variable. On the next turn the variable is
overritten with an
Dennis Lee Bieber wrote:
> On Mon, 23 Oct 2006 03:31:28 +0400, Roman Petrichev <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> Hi folks.
>> I've just faced with very nasty memory consumption problem.
>> I have a multythreaded app with
Thank you guys for your replies.
I've just realized that there was no memory leak and it was just my
mistake to think so. I've almost disappointed with my favorite
programming language before addressing the problem. Actually the app
consume as much memory as it should and I've just miscalculated
ing.net/pyplusplus/links.html
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
directory, program loader can find.
How can I do this?
Any help is appreciated.
Thanks
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
.net/ using it and Docutils.
Never regret about this.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
s implementation and performance were improved.
You can find the full list of changes here:
http://language-binding.net/pygccxml/history/history.html#version-0-8-1
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
. A lot of bugs were fixed.
8. Documentation was written.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ra_shortest_paths(graph, a)
You'd better ask the question on boost.python or boost-users mailing lists:
http://boost.org/more/mailing_lists.htm
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
nguage-binding.net/pyplusplus/pyplusplus.html )
Boost.Pythoncode generator
It has nice GUI ( no need to learn any API ):
http://language-binding.net/pyplusplus/documentation/tutorials/pyplusplus_gui.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e complete list, please see the news:
http://language-binding.net/pygccxml/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
bug
was introduced.
For a more complete list, please see the news:
http://language-binding.net/pyplusplus/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ython as new strings (I don't want to hold a pointer to them).
I am not sure, you'd better ask this question o Boost.Python mailing list:
http://mail.python.org/mailman/listinfo/c++-sig/
Py++, Boost.Python code generator, does it for you: http://tinyurl.com/ygwdkz
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
http://tinyurl.com/ycwvwo ) will help you
to start\learn Boost.Python.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ect is an open source, consider to contribute your
experience, knowledge
and time to make it better.
You can download pre-built binaries for Windows platform from here:
http://www.boost-consulting.com/download.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
opinion: Boost.Python is the way to go:
http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html
There is also an other project:
http://cxx.sourceforge.net/PyCXX.html
> --
> Best Regards
> John
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Rene Pijlman wrote:
> Paul Rubin <http://[EMAIL PROTECTED]>:
>
>>We have to get Knuth using Python.
>
>
> Perhaps a MIX emulator and running TeXDoctest on his books will convince
> him..
Or maybe Python written for MIX...
-Roman
--
http://mail.python.org/mailman/listinfo/python-list
# [EMAIL PROTECTED] / 2005-05-01 05:07:27 -0700:
> I actually tried mapping the PID to an integer value and it still
> didn't work. At any rate, I found another way to do it. Thanks anyways.
What the kind people have been trying to get through is that the
win32api.TerminateProcess() does *
se tools
> translate c++ code to XML. Then, you can parse xml with your favorite tools
> and find the namespaces for example...
Small correction: pygccxml does not translate C++ to xml. The purpose
of pygccxml is to read file generated by GCC-XML and provide simple
framework to navigate C++
orial/doc/html/python/techniques.html#python.extending_wrapped_objects_in_python
Regards,
Stou
--
http://mail.python.org/mailman/listinfo/python-list
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
r class.
Then you can register it as usual function.
For example:
http://language-binding.net/pyplusplus/documentation/functions/transformation/built_in/input_c_buffer.html
take a look on generated source code( at the bottom of the page )
Thanks again,
Stou
On 4/19/07, Roman Yakovenko <[EMAIL PR
e base one.
Bug fixes
-
* C++ does not define implicit conversion between an integral type and
``void*``.
"declarations.is_convertible" type traits was fixed.
* Small bug was fixed in functionality that corrects GCC-XML reported function
default arguments. Reference to &quo
unctionality to Boost.Python Indexing Suite V2 ``std::map``
and ``std::multimap`` containers.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e(w,h)]);
> }
> }
> }
>
>
> Some help is very welcome here ... thanks.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ificant
> lines in the
> source code for reference. My DocBook processing software xmlint,
> xsltproc, and fop,
> don't support numbering lines, when including source files via
> http://boost-consulting.com/boost/tools/quickbook/doc/html/index.html
)
It is not exactly what you w
one uses Py++.
The link I gave earlier contains links to the projects CVS's. It worse to
take a
look on them and compare.
P.S. Take all what I say with caution, because I am the author of Py++.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.py
ut try
some other way: Boost.Python. Take a look on tutorials:
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/exposing.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
dings to
Ogre engine was
created using Boost.Python( http://www.ogre3d.org/wiki/index.php/PyOgre )
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
I create the BOOST_PYTHON_MODULE in an
> embedded python c++ program how to I then import that module into my
> embedded python?
http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html
Embedding example:
http://svn.boost.org/trac/boost/browser/trunk/libs/python/test/import_.cpp
HTH
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
quiet some
> time in functions like _swig_setattr_nondinamic, _swig_setattr,
> _swig_getattr.
Before you decide to go "low level" consider to use Boost.Python.
According to this( http://tinyurl.com/322d3p ) post it gives pretty
good performance.
P.S. The post does not contain numbe
it's not visible to
> the wrapper author.
Boost.Python hides it pretty well :-)
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ning
> access to C/C++ functionality from Jython? Please keep in mind that I
> have very little Jython experience.
>
May be you should consider JPype( http://jpype.sourceforge.net/ )
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
> best toolkits.Now I got a doubt can I interface GWT
> with python.
http://pyjamas.pyworks.org/ is the way to go.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
s well for writing a simulation
> game.
> The Python Bindings I have found to date are:
>
> For OpenSG:
> https://realityforge.vrsource.org/trac/pyopensg
>
> For OSG (there seems to be several variations of these):
> http://code.astraw.com/projects/pyosg
>
> I suppose you could also
the code
of locale.py, revision 55038, lines 157-161, the inserted spaces are later
deleted again:
while seps:
sp = formatted.find(' ')
if sp == -1: break
formatted = formatted[:sp] + formatted[sp+1:]
seps -= 1
This code is only c
--
http://mail.python.org/mailman/listinfo/python-list
/Recipe/465508,
very small but powerful templating engines. I use YAPTU myself for
invoice templating.
Regards, Roman
--
http://mail.python.org/mailman/listinfo/python-list
On 14 mar, 14:25, [EMAIL PROTECTED] wrote:
>> Hi friends !!
>>
>> I'm neophite about python, my target is to create a programa that
>> find a specific string in text file.
>> How can do it?
>>
>> Thanks
>> fel
>>
>
>
>
One more way to do this
f = codecs.open("log.txt", 'r', "utf_16_le")
WaterWalk пишет:
> Hello. I wonder what's the effective way of figuring out how a piece
> of python code works. With C I often find it very useful to be able to
> run the code in step mode and set breakpoints in a debugger so I can
> watch how the it executes, how the data change and how the code
ed.
For a more complete list, please see the news:
http://language-binding.net/pygccxml/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
language-binding.net/pyplusplus/history/history.html
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e and didn't work reliably.
I suggest you to follow GCCXML install instructions (
http://gccxml.org/HTML/Install.html ) and you will have it in less
than 20 minutes.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
ml installer, it is just a Python script, I wrote, that
contains bug - it deletes directories. So you need to be very very
careful with it.
The bottom line - don't use it. It takes only 20 minutes to install
it, once you have its source code and cmake.
--
Roman Yakovenko
C++ Python language
age :-)! It has built-in support for type analisys,
cache and
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
c/html/variant.html
http://boost.org/libs/any/index.html
I hope this will help
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
hether you named you module as hello?
BOOST_PYTHON_MODULE(hello)
> Thanks,
> -Justin
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
can use your mail or gmail you can send/recieve mails from it.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
e is try to use boost.python library.
http://www.boost.org/libs/python/doc/tutorial/doc/html/index.html
There are also few code generators available for it: pyplusplus and Pyste.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Roman Yakovenko
C++ Python language binding
http://www.langu
people which prefer to talk UML.)
(Have not found anything relevant with google)
Thanks!
Regards,
Roman Suzi
--
http://mail.python.org/mailman/listinfo/python-list
formality to maintain.
Also, my argument that Python is quite good at communicating design
ideas is supported by the fact that Python developers do not use UML (or
other modelling tools/languages) as often as say Java programmers, nor
feel the need to. And probably Python is too dynamic for UML. That is
another reason rountrip tools aren't there.
--
Roman
--
http://mail.python.org/mailman/listinfo/python-list
Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Roman Susi
> wrote:
>
>
>>Out of curiosity, how do I draw functions outside classes with UML? How
>>module could be drawn in this case?
>
>
> I just create a (UML) class for modules. A
ns to Python.
>
> Does anyone know of any tutorials or example code that show how to do
> this?
You have few choices:
boost.python
http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html
PyCXX ( embedding only )
http://cxx.sourceforge.net/
> Thanks,
>
> Andrew
amic linking of the .so files (ie
> mylibDBAccess.so).
>
> Any ideas on how to resolve this?
I think you can not. I can not find the article, but I read that changes of
LD_LIBRARY_PATH after program start, does not have any effects, because this
variable is read only once - at progr
fixes
Full list of changes you can find here:
http://www.language-binding.net/pyplusplus/history/history.html
Many thanks to Matthias Baas and Allen Bierbaum. They fixed bugs, wrote
documentation, designed new user friendly API.
Enjoy
--
Roman Yakovenko
C++ Python language binding
http
bugs and wrote documentation.
Enjoy
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I need to implement such behavior:
obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
It looks like I have to override obj's class __getattribute__ and also
use python descriptors somehow.
Any help will be much appreciated.
http://stackoverflow.com/questions/4247036/python-recursively-geta
On Nov 22, 6:04 pm, Andreas Waldenburger
wrote:
> On Mon, 22 Nov 2010 07:46:47 -0800 (PST) Roman Dolgiy
> wrote:
>
> > Hello,
>
> > I need to implement such behavior:
>
> > obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
> > It looks like I have to
On Nov 22, 7:57 pm, Terry Reedy wrote:
> On 11/22/2010 10:46 AM, Roman Dolgiy wrote:
>
> > Hello,
>
> > I need to implement such behavior:
>
> > obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
>
> obj.attr1.attr2.attr3 is parsed as ((obj.attr1).attr2).
Thanks to Andreas Waldenburger, THC4k (http://stackoverflow.com/
questions/4247036/python-recursively-getattribute) and others for
their tips. I was able to find solution:
class Null(object):
def __repr__(self):
return ""
def __str__(self):
return ''
def __nonzero__(s
Why does not this snipplet work?
-
from job import JobQueue
import Queue
import threading
import gobject
q=JobQueue()
def worker():
print "Worker waiting"
q.get()
print "Got job!"
if __name__ == "__main__":
t = threadi
Hi all,
I am trying to install pysqlite (Python interface to the SQLite). I
downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I
did the following:
gunzip pysqlite-2.5.5.tar.gz
tar xvf pysqlite-2.5.5.tar
cd pysqlite-2.5.5
python setup.py install
At the last step I have a problem.
Hi,
I am new to Python and I wanted to understand something...
The EVE Online Client is build using Stackless Python
So when I install the client on my machine, how doe sit get run if I do not
have Python installed?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
ibed in:
https://www.reddit.com/r/joinmarket/comments/4atqrm/is_this_exception_normal_exception_happened/
On https://bugs.python.org/issue14574 is stated that this error should already
be fixed but apparently not.
Best regards,
Roman
--
https://mail.python.org/mailman/listinfo/python-list
dall(view[write_offset:write_offset+buffer_size])
> error: [Errno 32] Broken pipe
>
> Exception happened during processing of request from ('127.0.0.1', 38224)
>
> It is also described in:
> https://www.reddit.com/r/joinmarket/commen
The data key in your js http function is set to the attributes variable
> which, as far as I can tell, does not exist.
>
> There's a lot going on here, but I think you can probably narrow it down to
> something in your backbone code or the way
> backbone handles http requests as the error you are getting is caused by
> the client prematurely closing the socket.
> It's possible backbone will stop reading the response since it isn't the
> same content-type as the request.
Thanks a lot Justin,
The problem was solved when I employed standard Framework methods for creation
of new database object:
in JS:
var trendModel = new App.TrendModel();
trendModel.set("phrase", search_phrase);
trendModel.set("from_time", time_from);
trendModel.set(...
trendModel.save(...
in PY:
def create(self, request):
...
I've also created extra template and additional View. PageView for some unclear
reason didn't support creation of new object - this event just disappeared.
Regards,
Roman
--
https://mail.python.org/mailman/listinfo/python-list
The problem is that when I launch it, python proggy is automatically
suspended. The output I got is:
ro...@rslabs:~/pruebas$ ./shell.py
ro...@rslabs:~/pruebas$ uid=1000(roman) gid=1000(roman) groups=1000(roman)
ro...@rslabs:~/pruebas$
[2]+ Stopped ./shell.py
ro...@rslabs:~/pruebas
Karthik Gurusamy escribió:
> On Mar 13, 6:39 pm, Roman Medina-Heigl Hernandez
> wrote:
>> Hi,
>>
>> I'm experimenting with Python and I need a little help with this. What I'd
>> like is to launch an interactive shell, having the chance to send first
>&
101 - 182 of 182 matches
Mail list logo