Commit Graph

12 Commits

Author SHA1 Message Date
Benjamin Peterson 86da34b874 add a helper to get a function's dictionary
--HG--
branch : trunk
2009-09-03 16:45:28 -05:00
Benjamin Peterson 499a982860 give code objects a filename in the replacement execfile
--HG--
branch : trunk
2009-09-03 16:38:15 -05:00
holger krekel c1fcf9c4d8 * use py.builtin._getimself instead of getattr(..., '*self*') everywhere
* fix logging to work with 3k, implement buffering manually
* fix unicode capturing issue - re-introduce EncodedFile for <3K file writes

--HG--
branch : trunk
2009-09-01 16:10:21 +02:00
holger krekel c791610998 * simplify and refactor path tests to use funcargs instead of the layered xunit-setup mess
* port py/path to pass 3.11
* added py.builtin._totext, _tobytes, _isbytes, _istext helpers

--HG--
branch : trunk
2009-08-31 19:51:25 +02:00
Benjamin Peterson e63abd631f add py.builtin.callable
--HG--
branch : trunk
2009-08-29 15:46:50 -05:00
Benjamin Peterson 39eac1be28 add a py.builtin.execfile helper
--HG--
branch : trunk
2009-08-29 15:34:24 -05:00
Benjamin Peterson fb365e47dc make print write each argument individually
--HG--
branch : trunk
2009-08-29 14:39:37 -05:00
holger krekel b930565d56 * fix some syntax and 3k issues for py/path and py/process, tests only partially working
* have py.process.cmdexec return unicode/text (for now)
* rename py.builtin.basestring to _basestring

--HG--
branch : trunk
2009-08-29 16:40:03 +02:00
holger krekel 1dafcc6b37 fix py/io classes and tests to pass 3.1
introduce py.builtin._totext helper to make a 2k=unicode / 3k=str object, allow a string as data

--HG--
branch : trunk
2009-08-29 15:51:49 +02:00
holger krekel fc3178a394 fixing builtin tests and print_ builtin
--HG--
branch : trunk
2009-08-29 13:47:10 +02:00
holger krekel 783e6aeb4d temporary checking towards 3.1 compatibility
introduced some helpers to py.builtin namespace which need some review
after things begin to work more nicely

--HG--
branch : trunk
2009-08-28 19:16:15 +02:00
holger krekel 5e95feaf90 * add print_, exec_ and _reraise helpers for 2-3 compatible code
* consolidate builtins implementation to be compatible with >=2.3

--HG--
branch : trunk
2009-08-28 16:25:29 +02:00