Re: boost.python on Debian

2006-01-16 Thread Roman Yakovenko
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

Re: Python and Boost.

2006-07-25 Thread Roman Yakovenko
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

Re: Python and C++

2006-07-25 Thread Roman Yakovenko
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

Re: Python and C++

2006-07-25 Thread Roman Yakovenko
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

Re: Need a compelling argument to use Django instead of Rails

2006-07-27 Thread Roman Susi
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

Comma is not always OK in the argument list?!

2006-07-28 Thread Roman Susi
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

Re: Comma is not always OK in the argument list?!

2006-07-29 Thread Roman Susi
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

Re: beginner questions on embedding/extending python with C++

2006-08-08 Thread Roman Yakovenko
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

Re: Boost Build Warning

2006-08-14 Thread 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

groupby and itemgetter

2006-10-06 Thread Roman Bertle
'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

Re: operator overloading + - / * = etc...

2006-10-10 Thread Roman Neuhauser
# [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

Re: C++ to Python?

2006-10-10 Thread Roman Yakovenko
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 --

Re: C++ to Python?

2006-10-10 Thread Roman Yakovenko
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

Re: Python wrapper for C++ core

2006-10-19 Thread Roman Yakovenko
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

[ANN]Py++-0.8.2

2006-10-20 Thread Roman Yakovenko
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

multythreading app memory consumption

2006-10-22 Thread Roman Petrichev
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

Re: multythreading app memory consumption

2006-10-23 Thread Roman Petrichev
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

Re: multythreading app memory consumption

2006-10-24 Thread Roman Petrichev
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

Re: boost::python embedding example running error

2006-11-12 Thread Roman Yakovenko
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

Distutils: setup script for binary files

2006-06-06 Thread Roman Yakovenko
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

Re: templating languages for webdev

2006-06-23 Thread Roman Yakovenko
.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

[ANN]pygccxml 0.8.1

2006-08-24 Thread Roman Yakovenko
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

[ANN]Py++ 0.8.1

2006-08-24 Thread Roman Yakovenko
. 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

Re: libboost, python, and dijkstra shortest path

2006-11-29 Thread Roman Yakovenko
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

Re: Wrapping classes with pure virtual functions

2006-12-17 Thread Roman Yakovenko
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

[ANN] pygccxml - 0.8.5

2006-12-21 Thread Roman Yakovenko
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

[ANN] Py++ - 0.8.5

2006-12-21 Thread Roman Yakovenko
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

[email protected]

2006-12-21 Thread Roman Yakovenko
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

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Roman Yakovenko
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

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Roman Yakovenko
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

Re: Embedding Python into C/C++ applications

2006-02-04 Thread Roman Yakovenko
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 >

Re: How to except the unexpected?

2006-03-04 Thread Roman Susi
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

Re: Killing process

2005-05-18 Thread Roman Neuhauser
# [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 *

Re: Is there a better way of doing this?

2005-05-29 Thread Roman Yakovenko
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++

Re: Boost.Python create extra functions not in wrapped object

2007-04-19 Thread Roman Yakovenko
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

Re: Boost.Python create extra functions not in wrapped object

2007-04-19 Thread Roman Yakovenko
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

[ANN]pygccxml-0.9.0

2007-05-07 Thread Roman Yakovenko
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

[ANN]Py++ 0.9.0

2007-05-07 Thread Roman Yakovenko
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

Re: Boost python : get the shape of a numpy ndarray in C++ code.

2007-05-09 Thread Roman Yakovenko
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

Re: Any python Module for generating DocBook?

2007-08-25 Thread Roman Yakovenko
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

Re: C++ and Python

2007-03-09 Thread Roman Yakovenko
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

Re: python/C++ wrapper

2007-03-13 Thread Roman Yakovenko
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

Re: python/C++ wrapper

2007-03-14 Thread Roman Yakovenko
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

Re: Embedded Boost.Python Enum

2007-10-18 Thread Roman Yakovenko
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

Re: SWIG overhead

2007-02-01 Thread Roman Yakovenko
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

Re: SWIG overhead

2007-02-01 Thread Roman Yakovenko
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

Re: Jython / Java / C / C++ interoperability

2007-02-12 Thread Roman Yakovenko
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

Re: Reg Google Web Toolkit and Python

2007-02-16 Thread Roman Yakovenko
> 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

Re: opensg or openscenegraph

2008-01-11 Thread Roman Yakovenko
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

grouping in module 'locale'

2008-01-25 Thread Roman Bertle
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

Python 2.5.1 - sqlite3.dll issue

2008-02-17 Thread Roman Dargacz
-- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for very light weight template library (not framework)

2008-03-07 Thread Roman Bertle
/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

Re: find string in file

2008-03-14 Thread Roman Dodin
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")

Re: About reading Python code

2008-03-17 Thread Roman Dodin
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

[ANN]pygccxml - 1.0

2008-10-20 Thread Roman Yakovenko
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

[ANN] Py++ - 1.0

2008-10-20 Thread Roman Yakovenko
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

Re: [ANN]pygccxml - 1.0

2008-10-23 Thread Roman Yakovenko
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

Re: [ANN]pygccxml - 1.0

2008-10-23 Thread Roman Yakovenko
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

Re: Is there a python library to parse C++ code file?

2006-03-17 Thread Roman Yakovenko
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

Re: From Python to c++

2006-03-21 Thread Roman Yakovenko
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

Re: boost python tutorial

2006-03-23 Thread Roman Yakovenko
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

Re: boost python tutorial

2006-03-23 Thread Roman Yakovenko
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

Re: C++ and Python

2006-03-31 Thread Roman Yakovenko
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

Standalone Python functions in UML?

2006-04-04 Thread Roman Susi
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

Re: Standalone Python functions in UML?

2006-04-04 Thread Roman Susi
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

Re: Standalone Python functions in UML?

2006-04-05 Thread Roman Susi
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

Re: Giving your C/C++ Application a Python Command Line...

2006-04-10 Thread Roman Yakovenko
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

Re: Problem Dynamic Loading Linux C++ .so module using python2.4

2006-04-10 Thread Roman Yakovenko
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

ANN: pyplusplus - v0.7.2

2006-04-17 Thread Roman Yakovenko
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

ANN: pygccxml - 0.7.2

2006-04-17 Thread Roman Yakovenko
bugs and wrote documentation. Enjoy -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ -- http://mail.python.org/mailman/listinfo/python-list

Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
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

Re: Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
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

Re: Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
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).

Re: Python recursively __getattribute__

2010-11-23 Thread Roman Dolgiy
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

Problem with queues and gobject event loop

2009-09-11 Thread Roman Kapl
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

How to install pysqlite?

2009-09-19 Thread Roman Gorbunov
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.

Stackless Python and EVE Online

2010-08-31 Thread Roman Sokolyuk
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

Django broken pipe error

2016-12-06 Thread dr . roman . graf
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

Re: Django broken pipe error

2016-12-07 Thread dr . roman . graf
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

Re: Django broken pipe error

2017-01-02 Thread dr . roman . graf
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

Subprocess module: running an interactive shell

2009-03-13 Thread Roman Medina-Heigl Hernandez
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

Re: Subprocess module: running an interactive shell

2009-03-14 Thread Roman Medina-Heigl Hernandez
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 >&

<    1   2