Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18825

Re: open office in another language?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'api.': 0.05; 'wrapper': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'runtime': 0.09; 'subject:language': 0.09; 'sure,': 0.09; 'api': 0.09; 'c++': 0.12; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'pythonic': 0.16; 'received:188.174': 0.16; 'received:m-online.net': 0.16; 'rewrite': 0.18; '(which': 0.19; 'seems': 0.20; 'header:In-Reply- To:1': 0.22; 'stefan': 0.24; 'writes:': 0.25; "i'm": 0.26; 'paul': 0.27; "wasn't": 0.28; 'mapping': 0.29; 'effectively.': 0.30; 'usable': 0.30; 'subject:?': 0.31; "didn't": 0.31; 'pretty': 0.32; 'header:User-Agent:1': 0.33; 'actually': 0.33; 'rather': 0.33; 'header:X-Complaints-To:1': 0.33; 'object': 0.33; 'match': 0.34; 'to:addr:python-list': 0.34; 'mostly': 0.34; 'anything': 0.34; 'uno': 0.34; 'issue': 0.35; 'something': 0.35; '(to': 0.37; 'but': 0.37; 'using': 0.38; 'received:org': 0.38; 'some': 0.38; 'easier': 0.38; "it's": 0.40; 'to:addr:python.org': 0.40; 'quick': 0.61; 'your': 0.61; 'free': 0.64; 'past.': 0.67; 'received:188': 0.68; 'designed': 0.69
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Stefan Behnel <stefan_ml@behnel.de>
Subject Re: open office in another language?
Date Wed, 11 Jan 2012 14:06:24 +0100
References <CAOFf2a0RZo=o9r=We=iGUutfNn9SCeJUMn7ZM+hq=o7RoCN1bg@mail.gmail.com> <mailman.4635.1326272939.27778.python-list@python.org> <87hb02y259.fsf@no-fixed-abode.cable.virginmedia.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-188-174-201-183.customer.m-online.net
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0
In-Reply-To <87hb02y259.fsf@no-fixed-abode.cable.virginmedia.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4643.1326287200.27778.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1326287200 news.xs4all.nl 6912 [2001:888:2000:d::a6]:38109
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:18825

Show key headers only | View raw


Paul Rudin, 11.01.2012 11:17:
> Stefan Behnel writes:
>> OOo has been fully scriptable in Python for ages. It even comes with an
>> embedded Python runtime for that purpose [...]
> 
> I have dabbled with PyUNO in the past. One issue is that the api seems
> rather unpythonic (to me, at least).

Sure, UNO wasn't designed for Python. It's mostly a 1:1 mapping of the C++
API. I didn't find anything in a quick web search, but I'm pretty sure the
wrapper is auto-generated in some way.

But still: it's there, it's usable and it's even object oriented. And I
estimate that it's much easier to use from Python than from C++ (which I
never tried). If you want something better, feel free to write a pythonic
Cython wrapper of the C++ UNO API. May take a while, though, and you'll
also have to rewrite the entire UNO documentation to match your new
wrapper, so that people can actually start using it effectively.

Stefan

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: open office in another language? Stefan Behnel <stefan_ml@behnel.de> - 2012-01-11 10:08 +0100
  Re: open office in another language? Paul Rudin <paul.nospam@rudin.co.uk> - 2012-01-11 10:17 +0000
    Re: open office in another language? Stefan Behnel <stefan_ml@behnel.de> - 2012-01-11 14:06 +0100

csiph-web