[issue5621] Add description of special case to "Assignment statements" section

2009-09-16 Thread Georg Brandl
Georg Brandl added the comment: The patch submission was correct. I edited the patch a bit, moved the example from augmented assignment to the regular assignment and added a link from there to the new section. Committed in r74822. -- resolution: works for me -> accepted status: open -

[issue5621] Add description of special case to "Assignment statements" section

2009-09-08 Thread John Posner
John Posner added the comment: George, here is a patch file for this bug. It modifies file doc/reference/simple_stmts.rst Please let me know if this was the wrong way to submit the patch file. -- keywords: +patch status: pending -> open Added file: http://bugs.python.org/file14861/assi

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Yes, it says that getattr() is used in the section about augassign; but there the note you refer to is already present. -- resolution: -> works for me status: open -> pending ___ Python tracker

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread John Posner
John Posner added the comment: The "Assignment statements" section *does* talk about the RHS -- but in a subtle way: For targets which are attribute references, the initial value is retrieved with a getattr() The retrieving of the initial value (maybe "current value" would be better) occur

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure it belongs there, since normal assignments do not say *anything* about the RHS. -- ___ Python tracker ___ __

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread John Posner
New submission from John Posner : The subsection "Augmented assignment statements" includes a note on this special case: a.x += 1 But the parent section "Assignment statements" does not include such a note, even though it's essentially the same situation. I suggest replacing the bulleted para