Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(152)

Issue 3977044: Reduce domain before applying active rule for issue1796 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by ced
Modified:
15 years ago
Reviewers:
bch, nicoe
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Remove copy of domain #

Patch Set 3 : Replace while loop by for loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -3 lines) Patch
M trytond/model/modelstorage.py View 1 2 chunks +3 lines, -2 lines 0 comments Download
M trytond/tests/test_tools.py View 2 chunks +30 lines, -1 line 0 comments Download
M trytond/tools/misc.py View 1 2 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 10
ced
15 years ago (2011-01-21 19:59:24 UTC) #1
ced
15 years ago (2011-01-21 20:06:34 UTC) #2
nicoe
Mixing recursion and iteration seems to me like a bad practice (just a feeling I ...
15 years ago (2011-01-21 22:52:03 UTC) #3
ced
15 years ago (2011-01-21 22:59:34 UTC) #4
ced
On 2011/01/21 22:52:03, nicoe wrote: > Mixing recursion and iteration seems to me like a ...
15 years ago (2011-01-21 23:04:37 UTC) #5
nicoe
On 2011/01/21 23:04:37, ced wrote: > On 2011/01/21 22:52:03, nicoe wrote: > > Mixing recursion ...
15 years ago (2011-01-21 23:25:08 UTC) #6
ced
On 2011/01/21 23:25:08, nicoe wrote: > On 2011/01/21 23:04:37, ced wrote: > > On 2011/01/21 ...
15 years ago (2011-01-21 23:29:17 UTC) #7
nicoe
> I don't see how using only recursion will make the code simpler. In this ...
15 years ago (2011-01-21 23:42:18 UTC) #8
ced
On 2011/01/21 23:42:18, nicoe wrote: > > I don't see how using only recursion will ...
15 years ago (2011-01-21 23:46:08 UTC) #9
nicoe
15 years ago (2011-01-21 23:55:32 UTC) #10
On 2011/01/21 23:46:08, ced wrote:
> On 2011/01/21 23:42:18, nicoe wrote:
> > > I don't see how using only recursion will make the code simpler.
> > 
> > In this case, it is not that simple but if you look at the domain inversion
> > patch the code doing this is simpler.
> 
> But you also have iteration in it.

list comprehension is not a real iteration (that's what is so cool about it).
But as I said : in simple case it is not important but I would not use this kind
of stuff for more complex algorithms.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b