Skip to content

Commit 418fe12

Browse files
committed
Revert to old function name after a list comprehension, fix #5
1 parent f2cad12 commit 418fe12

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A restricted Python to idiomatic JavaScript / Ruby / Go / C# translator
77

88
[Pseudo](https://github.com/alehander42/pseudo) is a framework for high level code generation: it is used by this compiler to translate a subset of Python to all Pseudo-supported languages
99

10-
**If you are using Python3.5 and you experience problems with an already installed version of pseudo-python, please upgrade it to `0.2.14` (`pip3 install pseudo-python --upgrade`)**
10+
**If you are using Python3.5 and you experience problems with an already installed version of pseudo-python, please upgrade it to `0.2.16` (`pip3 install pseudo-python --upgrade`)**
1111

1212

1313

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.14
1+
0.2.16

pseudo_python/ast_translator.py

+1
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ def _translate_listcomp(self, generators, elt, location):
14191419
if not generators[0].ifs:
14201420
if 'index' not in sketchup and self._general_type(sketchup['sequences']['type']) == 'for_sequence':
14211421
elt = self._translate_node(elt)
1422+
self.function_name = old_function_name
14221423
return {
14231424
'type': 'standard_method_call',
14241425
'receiver': sketchup['sequences']['sequence'],

pseudo_python/builtin_typed_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def xor_(l, r):
292292
'repeat': '*',
293293
'push_many': 'extend(other)',
294294
'remove': 'remove',
295-
'length': 'len'
295+
'length': 'len',
296+
'map': 'list comprehension / map'
296297
},
297298

298299
'Dictionary': {

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='pseudo-python',
5-
version='0.2.14',
5+
version='0.2.16',
66
description='a python3 to pseudo compiler',
77
author='Alexander Ivanov',
88
author_email='alehander42@gmail.com',

0 commit comments

Comments
 (0)