[00:10:40] Can a steward/global admin semi [[abstract:Template:Main page]] too? I can edit it (and therefore what appears on the main page) from a tempaccount [01:40:40] Done [13:32:53] Hi! I've been checking out wikifunctions, and I love it!. I have a problem. I'm implementing some functions on python. But for some reason the converter for NaturalNumber is not working. For example, the echo function (https://www.wikifunctions.org/view/en/Z15788) which just returns the argument unchanged, doesn't work saying "couldn't serialize python object". The [13:32:53] current type c [13:32:53] onverter may be wrong. Perhaps it should be changed? [13:34:46] https://www.wikifunctions.org/view/en/Z13532 [13:34:47] Maybe something like this?: [13:34:48] def Z13532(Z13532K1): [13:34:50] return ZObject("Z13518", [13:34:51] Z13518K1=str(Z13532K1)) [13:35:17] P.D: Sorry to bother, I'm just curious [13:42:48] It’s not that (or not just that). The function you mention has a Z1 return type, and implementations in code cannot simply return an int in such a case, because custom converters are not applied when the intended type of the object being returned is unknown. (re @c2f1bhyk: Hi! I've been checking out wikifunctions, and I love it!. I have a problem. I'm implementing some [13:42:48] function [13:42:50] s on python. But for s...) [13:58:18] I see, so there is no way to implement echo in python? Since both Integer (Z16683) and NaturalNumber (Z13518) are converted to int we lose the info of what the return type must be. [13:58:50] Again, sorry to bother, I'm just learning about wikifunction cause I think is a great idea and i'd like to help :) I'm just a bit lost [13:59:12] you're not bothering :) Here's a good place to ask your questions [14:04:45] That's roughly right. The python implementation of echo, Z15788 can't cover those test cases. But that's okay, because we have a built-in implementation which does cover all. So, this function is not really one we need to improve. What kinds of function would you like to work on? (re @c2f1bhyk: I see, so there is no way to implement echo in python? Since both Integer [14:04:45] (Z16683) a [14:04:45] nd NaturalNumber (Z13518) are converted to i...) [14:06:30] Also, which languages do you speak? Most new contributors can make the greatest contribution by putting together natural language functions for the language they know best. [14:07:30] Yeah that's right. My problem is with this: https://www.wikifunctions.org/view/en/Z33865. 2 test fail because the arguments are lists to NaturalNumber, but fail to serialize them back from python [14:07:36] I speak spanish [14:08:14] I'll check out the natural language functions :) [14:08:51] Strictly speaking, that is correct. You can have type- specific echos, like Z13637, or you can avoid converting the object in the first place (which is not straightforward). (re @c2f1bhyk: I see, so there is no way to implement echo in python? Since both Integer (Z16683) and NaturalNumber (Z13518) are converted to i...) [14:13:30] An even simpler start would be to put Spanish labels on commonly used functions. That way when they are used in compositions they will be understandable to those who speak only Spanish. (re @c2f1bhyk: I'll check out the natural language functions :)) [14:21:54] Here's an important one that doesn't have a Spanish version: Z28016 (re @c2f1bhyk: I'll check out the natural language functions :)) [14:22:47] You can see the other languages implementations linked from Z28020 to get the idea of how they work. (re @u99of9: Here's an important one that doesn't have a Spanish version: Z28016)