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

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

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: [newbie] A question about lists and strings

2012-08-10 Thread Roman Vashkevich
10.08.2012, в 14:12, Mok-Kong Shen написал(а): > Am 10.08.2012 11:48, schrieb Roman Vashkevich: >> [snip] > >The function It takes list by reference and creates a new local > > str. When it's called with listb and strb arguments, listb is passed > > by refe

Re: [newbie] A question about lists and strings

2012-08-10 Thread Roman Vashkevich
10.08.2012, в 14:12, Mok-Kong Shen написал(а): > Am 10.08.2012 11:48, schrieb Roman Vashkevich: >> [snip] > >The function It takes list by reference and creates a new local > > str. When it's called with listb and strb arguments, listb is passed > > by refe

Re: [newbie] A question about lists and strings

2012-08-10 Thread Roman Vashkevich
10.08.2012, в 13:28, Roman Vashkevich написал(а): > 10.08.2012, в 13:19, Mok-Kong Shen написал(а): > >> >> In an earlier question about lists, I was told about the issue of >> creation of local names in a function. However, I still can't >> understand why the

Re: [newbie] A question about lists and strings

2012-08-10 Thread Roman Vashkevich
): > list+=[999] > str+="sss" > > lista=[] > stra="" > lista+=[999] > stra+="sss" > print(lista,stra) > > listb=[] > strb="" > xx(listb,strb) > print(listb,strb) > -- > http://mail.python.org/mailman/listinfo/pyt

Re: save dictionary to a file without brackets.

2012-08-09 Thread Roman Vashkevich
10.08.2012, в 1:47, Dave Angel написал(а): > On 08/09/2012 05:34 PM, Roman Vashkevich wrote: >> Actually, they are different. >> Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred >> thousand entries, and you will feel the difference. >> Dict uses

Re: save dictionary to a file without brackets.

2012-08-09 Thread Roman Vashkevich
Actually, they are different. Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred thousand entries, and you will feel the difference. Dict uses hashing to get a value from the dict and this is why it's O(1). 10.08.2012, в 1:21, Tim Chase написал(а): > On 08/09/12 15:4

Re: save dictionary to a file without brackets.

2012-08-09 Thread Roman Vashkevich
dict.items() is a list - linear access time whereas with 'for key in dict:' access time is constant: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#use-in-where-possible-1 10.08.2012, в 0:35, Tim Chase написал(а): > On 08/09/12 15:22, Roman Vashkevich wrot

Re: save dictionary to a file without brackets.

2012-08-09 Thread Roman Vashkevich
for key in dict: print key[0], key[1], dict[key] 10.08.2012, в 0:11, giuseppe.amatu...@gmail.com написал(а): > Hi, > I have a dict() unique > like this > {(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2} > and i want to print to a file without the brackets comas and semicolon in > ord

Re: How can I disable module of tkinter when compiling Python 2.5 on redhat9 ?

2012-07-09 Thread Putilov Roman
09.07.12 13:21, cheetah ?: I don't need it. thanks In python's setup.py replace: self.detect_tkinter(inc_dirs, lib_dirs) of def detect_modules(self): This will ignore the compilation of _tkinter.c and tkappinit.c of the python distribution. -- http://mail.python.org/mailman/list

Re: Help: PYMALLOC_DBUG and PIL

2012-07-05 Thread Roman Putilov
2012/7/5 tom z > Hi~ all, > I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the > PIL module can't work fine, it always make core-dump like this > > [Switching to Thread 182897301792 (LWP 16102)] > 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804 >

Re: Grok vs. Django for RESTful API?

2012-06-24 Thread Roman Putilov
You could implement REST protocol for Grok using http://pypi.python.org/pypi/restkit/ 2012/6/25 TG > Just hoping to get some opinions: Grok vs Django for REST? I've started > evaluating TastyPie with Django. Is there something similar for Grok? > > I'm working on a project that will mostly be mo

Re: use Python to post image to Facebook

2012-06-22 Thread Putilov Roman
Try to use http://pycurl.sourceforge.net/ I don't test it, but there is no problem interact with google services. 22.06.12 17:27, davecotef...@gmail.com пишет: On Monday, 9 April 2012 20:24:54 UTC-7, CM wrote: Shot in the dark here: has any who reads this group been successful with getting Py

Re: Jython callable. How?

2012-03-04 Thread Sirotin Roman
> Perhaps if you show us what you actually do, and what happens, we might > be able to tell you what is happening. Please COPY AND PASTE the full > traceback. Here is my code: # Trying to make callable staticmethod class sm(staticmethod): def __call__(self, *args, **kwargs): """ I know

Jython callable. How?

2012-03-04 Thread Sirotin Roman
Hi. How exactly jython decides is object callable or not? I defined __call__ method but interpreter says it's still not callable. BTW, my code works in cpython -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Question about PyXML and python's stdlib xml

2012-02-29 Thread Roman Rakus
: Mon, 27 Feb 2012 16:51:00 +0100 From: Roman Rakus To: xml-...@python.org Hi, I have concerns about PyXML and stdlib xml included directly in python. Currently (in Fedora) python is trying to import PyXML, which means other results when you have and haven't PyXML installed. Furth

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

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-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

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

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

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.

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

Re: Help with regex

2009-08-06 Thread Roman
On 06/08/09 08:35, Robert Dailey wrote: > Hey guys, > > I'm creating a python script that is going to try to search a text > file for any text that matches my regular expression. The thing it is > looking for is: > > FILEVERSION #,#,#,# > > The # symbol represents any number that can be any leng

Re: Is it possible to have the python color in the terminal ?

2009-08-04 Thread Roman
On 04/08/09 12:20, aurelien wrote: > Hello, > > I am under gNewSense, i am a newbbie on Python, i look for how change > the color terminal when python run. > at the step >>> all is in black and white. > Is it possible to have the python color in the terminal ? > > Thanks for your help > > aureli

Re: Trying to get ABC to work

2009-08-04 Thread Roman
Following code works, although I'm not sure that it's exactly what you want: import abc class MetaExample(abc.ABCMeta): def __new__(mcs, name, bases, ns): ns['cls_meth'] = mcs.cls_meth if not 'cls_abc' in ns: ns['cls_abc'] = mcs.cls_abc

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 >&

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: pygccxml xml output file

2009-01-29 Thread Roman
On Jan 24, 3:25 pm, whatazor wrote: > Hi all, > I start to use this module in order to produce xml( and the make other > things), but differently from gccxml I don't find the variable that > set the name of the xml output file after the parsing (in gccxml is - > fxml), so it creates temporary file

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: [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

[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

[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

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

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: 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

Python 2.5.1 - sqlite3.dll issue

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

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

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

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: 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

XML Processing

2007-08-02 Thread Roman
Is there a package that converts a string that contains special characters in xml to to literal value. For instance, converts string http://myhome/¶m to http://myhome/¶m. Thanks in advance -- 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

[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

[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

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: regular expression

2006-12-21 Thread Roman
? > It has very much to do with computer programming. There is program flow, conditions, loops, variables. Roman -- http://mail.python.org/mailman/listinfo/python-list

python-list@python.org

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

[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

[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

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

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: 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

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: 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

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

[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

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

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: 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: 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

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: RE Module

2006-08-29 Thread Roman
It turns out false alarm. It work. I had other logic in the expression involving punctuation marks and got all confused with the escape characters. It becomes a mess trying to keep track of all the reserved character as you are going from module to module. tobiah wrote: > Roman wrote: &g

Re: RE Module

2006-08-26 Thread Roman
I looked at a book called beginning python and it claims that <.*?> is a non-greedy match. tobiah wrote: > > In python's RE module, they're like Perl: > > > > Greedy: "<.*>" > > Nongreedy: "<.*?>" > > > > Oh, I have never seen that. In that case, why > did Roman's first example not work well fo

Re: RE Module

2006-08-25 Thread Roman
This is excellent. Thanks a lot. Also, what made the expression greedy? tobiah wrote: > Roman wrote: > > I am trying to filter a column in a list of all html tags. > > > > To do that, I have setup the following statement. > > > > row[0] = re.sub(r'<

Re: RE Module

2006-08-25 Thread Roman
ement. Hence, the line separators are going to be gone. You mentioned the size of the string could be a factor. If so what is the max size before I see problems? Thanks again Anthra Norell wrote: > Roman, > > Your re works for me. I suspect you have tags spanning lines, a thing you ge

RE Module

2006-08-24 Thread Roman
I am trying to filter a column in a list of all html tags. To do that, I have setup the following statement. row[0] = re.sub(r'<.*?>', '', row[0]) The results I get are sporatic. Sometimes two tags are removed. Sometimes 1 tag is removed. Sometimes no tags are removed. Could somebody tell me

[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

[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

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

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: 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

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: 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

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: 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 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: List Manipulation

2006-07-04 Thread Roman
"026508050354" "5201" 01/04/1996 "000260""MO5201P" "MO 5201P TRAD BIDET FCT LVR/H*DBM*B""204938""Moen" 0 $0.00 7.00"026508050378" "5201P" 01/04/1996 "000264&

Re: List Manipulation

2006-07-04 Thread Roman
matrix I don't get mistakes anymore. However, still nothing gets printed Bruno Desthuilliers wrote: > Roman wrote: > (please dont top-post - corrected) > > > > Iain King wrote: > > > >>Roman wrote: > >> > >>>I would appreciate it if some

Re: List Manipulation

2006-07-04 Thread Roman
I am getting TypeError: unsubscriptable object when specifying for line in reader[:7]: Steven D'Aprano wrote: > On Tue, 04 Jul 2006 07:01:55 -0700, Roman wrote: > > > I would appreciate it if somebody could tell me where I went wrong in > > the following snipet: >

Re: List Manipulation

2006-07-04 Thread Roman
Nothing got printed. Could you tell me what would be pythonic version of what I am trying to do? Diez B. Roggisch wrote: > > p[j] does not give you a reference to an element inside p. It gives > > you a new sublist containing one element from p. You then append a > > column to that sublist. T

Re: List Manipulation

2006-07-04 Thread Roman
le("f:\webserver\inp.txt"), dialect="excel", quotechar="'", delimiter='\t') for line in reader: if cnt > 6: break j = 0 for col in line: p[j].append(col) j=j+1 cnt = cnt + 1 print p Iain Ki

List Manipulation

2006-07-04 Thread Roman
I would appreciate it if somebody could tell me where I went wrong in the following snipet: When I run I get no result cnt = 0 p=[] reader = csv.reader(file("f:\webserver\inp.txt"), dialect="excel", quotechar="'", delimiter='\t') for line in reader: if cnt > 6:

Building Web Site Using Python

2006-06-28 Thread Roman
I am new to python. I am looking to read in a 12mb csv file, parse it, generate web pages, summarize on a column and make drop down bottons. Where would I be able to find sample code that does something similar to this? Also, I know that microsoft has put out .net beta version of it. If I am us

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

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: How to guess the language of a given textstring?

2006-05-15 Thread Roman
Hi This is what I'm looking for. Thank you. Roman gene tani schrieb: > Roman wrote: > > Does anybody know an easy way (or tool) to guess the language of a > > given text string? > > > > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355807

How to guess the language of a given textstring?

2006-05-15 Thread Roman
ing in "Esto es un ejemplo." --> should return "spanish" or ISO code I would prefer something more lightweight than using nltk/corpus/... And it's ok if the success ratio is just about 90% or so. Roman -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >