Re: PyReloc - BinReloc for python

"Isak Savo" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2007/8/17, Jan Niklas Hasse <[email protected]>:
> > 1) Is the __file__ variable always a full path? For all python
> > versions/implementations?
> >    - If not, it should be documented which versions are supported.
> I'm sorry, i don't know and i couldn't find anything about it in the docs.

Let's assume that it is then. If you could write a small test program,
we could then test it on various machines. I have Python 2.4.4 and
2.5.1 on my system.

> > 2) Is this how a python API is typically done? With variables instead
> > of functions?
> I also don't know. I thought as there isn't much to do, a variable is
> easier to use.

Fair enough. I'm a c/c++/c# guy and thus my eyes and brain are
instantly alerting when I see global variables. :-)

If possible, I think they should at least be namespaced, so you do
BinReloc.SelfPath, BinReloc.BinDir or similar when accessing them. Is
that doable?

If anyone else on this list knows python coding standards, please feel
free to speak up now.

> > 3) I see the source mentions a web address with more documentation
> > about how to use it. Are you planning on writing this?
> I just edited the header of binreloc. I could write a short doc, but
> my english isn't good.

That would be great. A few paragraphs with an example is enough. Me,
(or taj or curtis who's both native English speaking) can correct it
for spelling and grammar if needed. You don't need to do any special
formatting to make it fit the web or something, I'll do that for you.

-Isak

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.