/srv/irclogs.ubuntu.com/2012/09/12/#ubuntu-nz.txt

thomilifeless: got any advice for how to responsibly deprecate parts of a python module over time? Any hints / pointers?05:37
thomiI'm sure I've seen people use a '@deprecated' decorator, not sure how effective that is though05:38
lifelessthomi: rm ? :)05:56
thomiheh05:56
thomiI guess I was looking for a nice way to phase out old functions that I don't want people using.05:57
thomiAre you suggesting that it's better to just bite the bullet and delete them and deal with the fallout?05:57
lifelessWell06:00
lifelessSo there are a few nuances06:00
lifelessdo you have an ecosystem?06:00
lifelessHow much time do folk in that ecosystem have? How much will it annoy them having to deal with deprecations?06:00
lifelessFor instance, if you have a three tier thing06:00
lifelesscore -> plugins -> users06:00
lifelessthen when core deprecates something, and then removes, plugins have a grace period, which can be good06:01
lifelessbut if you have06:01
lifelesscore -> users06:01
lifelessthen deprecation doesn't really do anything06:01
lifelessas the folk affected are the folk with the power and expectation of fixing.06:01
lifelessbzr has some decorators you could snarf06:02
mwhudsonmorning19:48
chiltsmorning19:57
ojwbmorning20:03
thomilifeless: sorry, I had to dissapear yesterday - thanks for your answer20:16
thomiI'm talking about autopilot, so I have core -> users20:16
Atamiramoring20:20
Atamiramorning20:20
ajmitchmorning20:25
fmarierhas everybody seen this already? http://no.softwarepatents.org.nz/21:04
lifelessI sure hope so !21:04
fmarierlifeless: me too, but just in case :)21:04
ajmitchs/seen/signed/21:04
lifelessthomi: so yeah, changing an API on your users is much less traumatic when they aren't producing other components in the ecosystem21:04
thomilifeless: sounds good to me. Especially since (so far), I'm a developer on all the projects that use autopilot21:05
ajmitchthat makes it a bit easier to coordinate deprecations21:06
thomiyeah21:06
lifelessfor direct use in that situation I wouldn't deprecate21:06
lifelessdeprecation in e.g. bzrlib is much more important IMNSHO.21:07
lifelessof course, if you want to grow an ecosystem - chicken and egg :)21:07
thomiyeah21:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!