[PATCH] Rename posix to hgposix to prevent name clash (issue1575)

Martin Geisler mg at lazybytes.net
Fri Apr 10 16:13:32 CDT 2009


Éric Araujo <merwok at netwok.org> writes:

Hi!

> PEP 328 [1] solves this shadowing import problem durably and without
> adhockery (i.e. forcing each and every package to rename modules
> conflicting with one in the stdlib). However, I’m afraid explicit
> relative imports are only in Python 2.5+, so I give the link merely
> for future reference.

This was solved by importing posix using an absolute import:

  http://markmail.org/message/bluckpcvglpoq7yl

> By the way, where can we find a policy about supported Python
> versions?

The current versions of Mercurial support Python 2.3, the next version
will require Python 2.4.

It is not that easy to find on the wiki, but it is mentioned here that
Python 2.3 is currently required:

  http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall

> This is my first posting. I’ll take the occasion to thank you all for
> the awesome tool that is Mercurial.

Thanks a lot, and thank you for posting!

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090410/baed8b39/attachment.pgp 


More information about the Mercurial-devel mailing list