Closed GoogleCodeExporter closed 9 years ago
Here's a hotfix which seems to work in my project. It is still wrong, as it
sets y to
None instead of an empty dictionary, but I can deal with that temporarily by
checking
for None. Hopefully a real fix can be added soon. I guess it would be a matter
of
filling in code to create a new empty dictionary instead of a None value - but
I was
not able to figure out how to do that.
Original comment by allef...@gmail.com
on 19 May 2008 at 1:12
Attachments:
I think this patch would be better if:
- you had it set the destination register to a DICT so that it fixes both issues
- you create a few test cases for tests.py that demonstrate what is not
working, so
that we have tests that prove this patch does something valuable, and so someone
doesn't revert this fix in the future.
Thanks!
Original comment by philhas...@gmail.com
on 19 May 2008 at 2:37
On May 19, 4:41 pm, codesite-nore...@google.com wrote:
> Issue 11: empty ** arguments lead to an incorrect error
messagehttp://code.google.com/p/tinypy/issues/detail?id=11
>
> Comment #2 by philhassey:
> I think this patch would be better if:
>
> - you had it set the destination register to a DICT so that it fixes
> both issues
Yeah, but I'm unable to do that, as I can't quite follow encoder.py -
especially what
to take care off to not leak registers, so I better not touch this. I'm also not
really sure what replacing the GET with IGET did, only copied it from the
default-value-parameter case a few lines above.
> - you create a few test cases for tests.py that demonstrate what is not
> working, so
> that we have tests that prove this patch does something valuable, and
> so someone
> doesn't revert this fix in the future.
Sure, patch which adds a testcase is attached.
Original comment by allef...@gmail.com
on 19 May 2008 at 8:05
Attachments:
Original comment by philhas...@gmail.com
on 20 May 2008 at 2:34
Original issue reported on code.google.com by
allef...@gmail.com
on 19 May 2008 at 12:09