hughperkins / pytorch

Python wrappers for torch and lua
BSD 2-Clause "Simplified" License
431 stars 70 forks source link

None -> nil? #23

Open lebedov opened 8 years ago

lebedov commented 8 years ago

Would it make sense to convert None passed as a Python method param into nil? Is there some unobvious caveat that makes this nontrivial?

hughperkins commented 8 years ago

Its not a deliberate design decision; I just never encountered the requirement. It sounds like there should be no reason why it shouldnt be possible.