¸ÞŸ ¸Þ¿ò

Metaenum Library.
Áö±Ý ´Ù¿î·Îµå

¸ÞŸ ¸Þ¿ò ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Mateusz Pawlik
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://matee.net

¸ÞŸ ¸Þ¿ò ű×


¸ÞŸ ¸Þ¿ò ¼³¸í

Metaenum ¶óÀ̺귯¸® MetaenumÀº Python libaryÀÔ´Ï´Ù. »ç¿ëÀÇ example : Ŭ·¡½º foo (metaenum) : baz = (0, 'bazik') bar = 1 >>> foo.baz0 >>> foo.bar1 >>> foo.baz_name'baz '> >> Foo.Baz_verbose'Bazik '>>> foo.get_verbose (foo.baz)'bazik '>>> foo.get_verbose (foo.bar) ¾øÀ½ >>> foo.as_choices () >>> foo.by_name ( 'baz') 0 >>> foo.by_verbose ( 'bazik') 1 ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


¸ÞŸ ¸Þ¿ò °ü·Ã ¼ÒÇÁÆ®¿þ¾î