[issue4184] Remove use of private attributes in smtpd

2010-07-24 Thread Richard Jones
Richard Jones 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 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 will raise PendingDeprecation

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 those items d

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou 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 classes, and so

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' 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? I think that a

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' 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? I think that a

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Richard Jones
Richard Jones 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 re-working it to use properties while

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 be suitable for the

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___

[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]> ___ ___ Python-bugs-list mai

[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]> ___ ___ Python-bugs-

[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 "___" hack. Summary of the patch's changes: 1. removes the unused __con