Bugzilla – Attachment 1174 Details for
Bug 8271
pyobfuscate does not handle comprehensions correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Non-obfuscated code for the example.
scenario.py (text/x-python), 505 bytes, created by
Alexander Zeijlon
on 2023-12-13 10:47:10 CET
(
hide
)
Description:
Non-obfuscated code for the example.
Filename:
MIME Type:
Creator:
Alexander Zeijlon
Created:
2023-12-13 10:47:10 CET
Size:
505 bytes
patch
obsolete
>input_lst = ['This', 'sentence', 'is', 'false'] > >def capitalize_str(string): > return string.capitalize() > >def do_stuff(lst): > _lst = [capitalize_str(elem) for elem in lst] > _set = {capitalize_str(elem) for elem in lst} > _dict = {elem: capitalize_str(elem) for elem in lst} > return _lst, _set, _dict > >res = do_stuff(input_lst) > >_lst = [capitalize_str(elem) for elem in input_lst] >_set = {capitalize_str(elem) for elem in input_lst} >_dict = {elem: capitalize_str(elem) for elem in input_lst}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8271
: 1174