[issue4184] Remove use of private attributes in smtpd

2010-07-24 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Committed in revision 83125. -- assignee: - richard resolution: - fixed stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker

[issue4184] Remove use of private attributes in smtpd

2010-07-23 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: After discussing with core devs at the EuroPython sprint I will implement a different approach: new attributes with the old, private attributes implemented as properties over the new attributes. The properties responsible for this

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would this patch be acceptable, yes or no? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: The patch as-is can't be accepted if not for Python 4.x maybe, obviously because it's just too breaking. A proper patch would provide aliases for the removed attributes and raise a DeprecationWarning in case they are accessed. It would

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4184 ___ ___

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Giampaolo, I think I can see where you're coming from: assuming that someone else must have also had to resort to the name-mangling hack to extend the class? In that case yes, my patch would break their code. I'll look at

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Would that be acceptable? I guess it would. Deciding to use that naming convention was a bad design choice in the first place, hence your proposal is perfectly reasonable, in my opinion. What additional tests would you deem necessary?

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4184 ___ ___ Python-bugs-list mailing list

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Would that be acceptable? I guess it would. Deciding to use that naming convention was a bad design choice in the first place, hence your proposal is perfectly reasonable, in my opinion. What additional tests would you deem necessary?

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch as-is can't be accepted if not for Python 4.x maybe, obviously because it's just too breaking. With all due respect, this sounds a bit silly. If the attributes were of the __private kind, they weren't meant to be used by other

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: If the attributes were of the __private kind, they weren't meant to be used by other classes, and so there's no problem in making them public. Generally I would agree with you but this case is different, imho. The problem here is that

[issue4184] Remove use of private attributes in smtpd

2008-10-24 Thread Doug Hellmann
Changes by Doug Hellmann [EMAIL PROTECTED]: -- nosy: +doughellmann ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4184 ___ ___ Python-bugs-list mailing

[issue4184] Remove use of private attributes in smtpd

2008-10-23 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4184 ___ ___ Python-bugs-list

[issue4184] Remove use of private attributes in smtpd

2008-10-22 Thread Richard Jones
New submission from Richard Jones [EMAIL PROTECTED]: Executive summary of the patch: The attached patch removes the use of __private attributes in the smtpd module allowing it to be extensible without needing to use the _classname__attributename hack. Summary of the patch's changes: 1.