-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris White wrote:
> Hi,
> 
> While doing some documenting on what functions needed to be documented
> for the API documentation project, I found that portage.py seems to be
> quite a "dumping ground" for functions:
> 
> http://www.gen2net.net/portage-doc/portage.py
> 
> I think it would be nice to split some of the classes out ( yah yah,
> I'll make patches ;( ).  If someone has already mentioned this, feel
> free to beat me solid with the cluebat ;).

One thing to consider is that much of the code in portage.py used to be reliant 
on the portage.settings and portage.db global variables.  I've migrated most of 
the code (maybe all) to work without these globals.  For example, emerge and 
repoman can now run with portage.init_legacy_globals() disabled.  In order to 
maintain backward compatibility for users of the portage module, things that 
previously relied on the global variables will probably need to remain in 
portage.py.

You may be able to find some things that don't rely on those globals and those 
would be the easier to split out while maintaining compatibility.

Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFEv74+/ejvha5XGaMRAuu3AJ9MhxfjLdQ/s4/jxPQmjjYhajk87QCfWQSv
dPjZ4O5yjo0+jk93mmYEpwo=
=zGcH
-----END PGP SIGNATURE-----
-- 
gentoo-portage-dev@gentoo.org mailing list

Reply via email to