sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

relative from <module> import <stuff> #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from .mymodule import myfunc
2.
3.

What is the expected output? What do you see instead?
should import mymodule which is located relative to parent module
syntax error  "bad token ."

What version of the product are you using? On what operating system?
current

Please provide any additional information below.
Below are the modifications needed to py_import.js and py2js.js to fix this 
issue.

Original issue reported on code.google.com by billy.earney@gmail.com on 23 Feb 2013 at 11:26

Attachments:

GoogleCodeExporter commented 9 years ago
Billy,
Thanks, I have included the changes in the latest revision, but I never use 
this feature in Python : could you give a few examples on how to use and test 
it ?
- Pierre

Original comment by pierre.q...@gmail.com on 28 Feb 2013 at 7:59

GoogleCodeExporter commented 9 years ago
Sure..   I'll create a few test cases and add those to the test directory.

Original comment by billy.earney@gmail.com on 28 Feb 2013 at 12:05

GoogleCodeExporter commented 9 years ago
Pierre,

I've committed a file to test from import functionality, but I'm running
into some issues.  I've put some comments in to help explain the situation.
I'm currently at work, so I can't work on it now, but if you have time and
want to take a look, that would be great, or I can spend some time on it
this evening.

Billy

Original comment by billy.earney@gmail.com on 28 Feb 2013 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by billy.earney@gmail.com on 3 Mar 2013 at 11:27