Circular dependency mess
Neil Santos <[email protected]> Tue, 5 Apr 2011 21:37:20 +0800
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Organization | Disgruntled Paradigms, Inc. |
| Message-ID | <20110405133720.GA17645@aislinn> |
Been looking at liberally sprinkling logging support to a bunch of modules. Now, wanting to start out nice and easy, I decided to start with plugin_utils.py. Except tools.py import plugin_utils.py, and trying to use the logging facilities in the latter causes Python to call me names and question my lineage. And I don't like it when programming languages do that to me. :P I've this notion of further breaking down various modules, to try and get pyblosxom to the point that it's at least possible to include logging in the various modules without circular dependencies causing me to tear my hair out in sizable chunks. I'm not sure how attached anyone is to the current structure, so I'm announcing my intention of doing so beforehand (to give way to objections and such). This is, of course, a non-trivial change, hence this message. I feel that this ought to be done before 1.5 is pushed out (with proper deprecation messages and such where appropriate, of course), though I wouldn't be suprised if this stretches far into 1.6, as I haven't really taken a very close look at how big a job it is. I can probably post an update here if anyone's curious. If there are no objections, I'll proceed to chopping up pyblosxom modules. To start with, I want to move logging-related functions into its own module, as well as other, more minor, attendant changes: i.e., deprecated_function() will need to relocated, or at least, I'd have to figure out how not to invoke Python's wrath at yet another breach of circular dependency conduct. Let me know what you guys think. -- Neil Santos Disgruntled Paradigms :: Code Monkey // Doing software The Right Way(TM) [HTTP] neil.diosa.ph :: [XMPP] [email protected] :: [Y!M] neil_santos18 "Throwing a book of rules at a terrible programmer just creates a terrible programmer with a bruise on their head where the book bounced off." -- Jeff Atwood v4sw7LMYRhw5ln7pr5Fck4ma3u7OSLw2Gm3l7OArchi6e0t5Tb8/en7g6aI!sr9p-2/-4 hackerkey.com ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Pyblosxom-devel mailing list Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk2bGxAACgkQ3xH5jAED7ZP99gCfX2jn42iqZykQU/xVZH/pnBj7 f9wAn0W3uVo7eVwdOIscgE2kp+XJLphE =iKim -----END PGP SIGNATURE-----