This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Ramchandra Apte, amak, eric.araujo, ezio.melotti, georg.brandl, giampaolo.rodola, hynek, ncoghlan, pmoody, python-dev, sandro.tosi, terry.reedy, tshepang
Date 2012-06-18.06:17:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340000231.24.0.582142232915.issue14814@psf.upfronthosting.co.za>
In-reply-to
Content
> the interfaces of the v4 and v6 variants are deliberately very similar

I am hoping that means 'identical, once the obvious translations are made': v4 to v6, xxx.xxx.xxx.xxx to <whatever the v6 notation is>, and anything else?

> documenting everything twice seems like a rather user hostile thing to do.

Agreed. Please factor out common stuff. I see two choices.

1. Document in parallel after an intro explaining the translations

xxxx4yyyy(args)
xxxx6yyyy(args)
Return ... (either in 4 terms which user translate for 6 or generic terms).

# This might be better if you expect people to be doing one type of thing with both v4 and v6.


2. Document serially, first v4 stuff then v6 stuff (at present, though order might be reversed in the future ;-).

v4 stuff
-------
xxxx4yyyy(args)
Return ...

v6 stuff
-------
The following v6 functions are the same as the v4 functions above, except that ipv4address'es become ipv6address'es etc.
xxxx6uuuu(args)

# This might be better if you expect people to be doing multiple things with either v4 or v6, but not both.
History
Date User Action Args
2012-06-18 06:17:12terry.reedysetrecipients: + terry.reedy, georg.brandl, ncoghlan, giampaolo.rodola, amak, ezio.melotti, eric.araujo, pmoody, sandro.tosi, tshepang, python-dev, Ramchandra Apte, hynek
2012-06-18 06:17:11terry.reedysetmessageid: <1340000231.24.0.582142232915.issue14814@psf.upfronthosting.co.za>
2012-06-18 06:17:10terry.reedylinkissue14814 messages
2012-06-18 06:17:09terry.reedycreate