Skip to content

Commit

Permalink
Add __dict__ to instances of class $io
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Jun 29, 2024
1 parent a9999a8 commit c1e60af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions www/src/brython.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ $B.unicode_bidi_whitespace=[9,10,11,12,13,28,29,30,31,32,133,5760,8192,8193,8194
;
__BRYTHON__.implementation=[3,12,3,'dev',0]
__BRYTHON__.version_info=[3,12,0,'final',0]
__BRYTHON__.compiled_date="2024-06-29 08:12:09.703917"
__BRYTHON__.timestamp=1719641529703
__BRYTHON__.compiled_date="2024-06-29 08:30:09.916699"
__BRYTHON__.timestamp=1719642609916
__BRYTHON__.builtin_module_names=["_ajax","_ast","_base64","_binascii","_io_classes","_json","_jsre","_locale","_multiprocessing","_posixsubprocess","_profile","_random","_sre","_sre_utils","_string","_strptime","_svg","_symtable","_tokenize","_webcomponent","_webworker","_zlib_utils","_zlib_utils1","_zlib_utils_kozh","array","builtins","dis","encoding_cp932","encoding_cp932_v2","hashlib","html_parser","marshal","math","modulefinder","posix","pyexpat","python_re","python_re_new","unicodedata","xml_helpers","xml_parser","xml_parser_backup"]
;

Expand Down Expand Up @@ -11012,7 +11012,7 @@ return '<Javascript null>'}
$B.set_func_names(modules.javascript.NullType,'javascript')
modules.javascript.UndefinedType.__module__='javascript'
var $io=$B.$io=$B.make_class("io",function(out){return{
__class__:$io,out,encoding:'utf-8'}}
__class__:$io,__dict__:$B.empty_dict(),out,encoding:'utf-8'}}
)
$io.flush=function(self){if(self.buf){
var s=self.buf.join(''),chr0=String.fromCodePoint(0)
Expand Down
1 change: 1 addition & 0 deletions www/src/builtin_modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@
function(out){
return {
__class__: $io,
__dict__: $B.empty_dict(),
out,
encoding: 'utf-8'
}
Expand Down
4 changes: 2 additions & 2 deletions www/src/version_info.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__BRYTHON__.implementation = [3, 12, 3, 'dev', 0]
__BRYTHON__.version_info = [3, 12, 0, 'final', 0]
__BRYTHON__.compiled_date = "2024-06-29 08:12:09.703917"
__BRYTHON__.timestamp = 1719641529703
__BRYTHON__.compiled_date = "2024-06-29 08:30:09.916699"
__BRYTHON__.timestamp = 1719642609916
__BRYTHON__.builtin_module_names = ["_ajax",
"_ast",
"_base64",
Expand Down

0 comments on commit c1e60af

Please sign in to comment.