Re: Virtual functions are virtually invisible!
On Sun, Jul 10, 2011 at 2:15 PM, rantingrick rantingr...@gmail.com wrote: On Jul 4, 3:43 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: rantingrick wrote: what concerns me is the fact that virtual methods in derived classes just blend in to the crowd. I think we really need some sort of visual cue in the form of forced syntactical notation (just like the special method underscores). If you're suggesting that it should be impossible to override a method unless it is specially marked somehow in the base class, I think that would be a bad idea. Sorry i did explain properly... No NOT marked in the BASE class but marked in the DERIVED class! My concerns are from a readability standpoint. I also like the idea of override annotations and I've created a blog post at: http://pydev.blogspot.com/2011/06/overrideimplements-templates-on-pydev.html to explain how I do use it (and in a way that I think should be standard in Python the same way it's in Java). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
PyDev 2.2.1 Released
Hi All, PyDev 2.2.1 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- Quick-outline * Parent methods may be shown with a 2nd Ctrl+O. * The initial node is selected with the current location in the file. Extract local refactoring * Option to replace duplicates. * Fixed issue where wrong grammar could be used. Others * Improved handling of Ctrl+Shift+T so that no keybinding conflict takes place (now it'll be only active on the PyDev views/editor). * PyLint markers always removed on a project clean. * If the standard library source files are not found, more options are presented. * If the completion popup is focused and shift is pressed on a context insensitive completion, a local import is done. * Fixed issue where a local import wasn't being added to the correct location. * Fixed error message in debugger when there was no caught/uncaught exception set in an empty workspace. * Performance improvements on hierarchy view. * Django commands may be deleted on dialog with backspace. What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 2.2.0 Released
Hi All, Pydev 2.2.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- **Eclipse 3.7** * Eclipse 3.7 (Indigo) is now supported. **Break on Exceptions** * It's now possible to **break on caught exceptions** in the debugger. * There's an UI to break on caught or uncaught exceptions (menu: Run Manage Python Exception Breakpoints). **Hierarchy view** * UI improved (now only uses SWT -- access through F4 with the cursor over a class). **PyPy**: * PyDev now supports PyPy (can be configured as a regular Python interpreter). **Django** * Django configuration in project properties page (improved UI for configuration of the django manage.py and django settings module). * Improved support for debugging Django with autoreload. Details at: http://pydev.org/manual_adv_remote_debugger.html#django-remote-debugging-with-auto-reload **Code analysis** * Fixed issue where a resolution of a token did not properly consider a try..except ImportError (always went for the first match). * Fixed issue with relative import with wildcards. * Fixed issue with relative import with alias. * Fixed issue where binary files would be wrongly parsed (ended up generating errors in the error log). **Code completion** * Improved sorting of proposals (__*__ come at last) **Others** * Improved ctrl+1 quick fix with local import. * Fixed issue running with py.test. * PyDev test runner working properly with unittest2. * Fixed compatibility issue with eclipse 3.2. * No longer sorting libraries when adding interpreter/added option to select all not in workspace. * Fixed deadlock in the debugger when dealing with multiple threads. * Fixed debugger issue (dictionary changing size during thread creation/removal on python 3.x). What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 2.2.0 Released
Hi All, Pydev 2.2.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- **Eclipse 3.7** * Eclipse 3.7 (Indigo) is now supported. **Break on Exceptions** * It's now possible to **break on caught exceptions** in the debugger. * There's an UI to break on caught or uncaught exceptions (menu: Run Manage Python Exception Breakpoints). **Hierarchy view** * UI improved (now only uses SWT -- access through F4 with the cursor over a class). **PyPy**: * PyDev now supports PyPy (can be configured as a regular Python interpreter). **Django** * Django configuration in project properties page (improved UI for configuration of the django manage.py and django settings module). * Improved support for debugging Django with autoreload. Details at: http://pydev.org/manual_adv_remote_debugger.html#django-remote-debugging-with-auto-reload **Code analysis** * Fixed issue where a resolution of a token did not properly consider a try..except ImportError (always went for the first match). * Fixed issue with relative import with wildcards. * Fixed issue with relative import with alias. * Fixed issue where binary files would be wrongly parsed (ended up generating errors in the error log). **Code completion** * Improved sorting of proposals (__*__ come at last) **Others** * Improved ctrl+1 quick fix with local import. * Fixed issue running with py.test. * PyDev test runner working properly with unittest2. * Fixed compatibility issue with eclipse 3.2. * No longer sorting libraries when adding interpreter/added option to select all not in workspace. * Fixed deadlock in the debugger when dealing with multiple threads. * Fixed debugger issue (dictionary changing size during thread creation/removal on python 3.x). What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 2.1.0 Released
Hi All, Pydev 2.1.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- Code Analysis By default, only the currently opened editor will be analyzed (resulting in much shorter build times). Added action to force the analysis on a given folder or file. Showing error markers for PyDev elements in the tree. New option to remove error markers when the editor is closed (default). Editor Override method completions (Ctrl+Space after a 'def ') . Completions starting with '_' now have lower priority. Fixed major issue when replacing markers which could make errors appear when they shouldn't appear anymore Auto-linking on close parens is now optional (and disabled by default). Code coverage No longer looses the selection on a refresh. Fixed issue where coverage was not working properly when running with multiple processes. Added orientation options PyUnit Added feature to relaunch the last launch when file changes (with option to relaunch only errors). setUpClass was not called when running with the pydev test runner F12 makes the editor active even if there's a tooltip active in the PyUnit view. The PyUnit tooltip is now properly restoring the focus of the previous active control. Added orientation options And a bunch of other bug-fixes. Note: Java 1.4 is no longer supported (at least Java 5 is required now). What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue11798] Test cases not garbage collected after run
Fabio Zadrozny fab...@users.sourceforge.net added the comment: Sure, will try to get a patch for next week... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Pydev 2.1.0 Released
Hi All, Pydev 2.1.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- Code Analysis By default, only the currently opened editor will be analyzed (resulting in much shorter build times). Added action to force the analysis on a given folder or file. Showing error markers for PyDev elements in the tree. New option to remove error markers when the editor is closed (default). Editor Override method completions (Ctrl+Space after a 'def ') . Completions starting with '_' now have lower priority. Fixed major issue when replacing markers which could make errors appear when they shouldn't appear anymore Auto-linking on close parens is now optional (and disabled by default). Code coverage No longer looses the selection on a refresh. Fixed issue where coverage was not working properly when running with multiple processes. Added orientation options PyUnit Added feature to relaunch the last launch when file changes (with option to relaunch only errors). setUpClass was not called when running with the pydev test runner F12 makes the editor active even if there's a tooltip active in the PyUnit view. The PyUnit tooltip is now properly restoring the focus of the previous active control. Added orientation options And a bunch of other bug-fixes. Note: Java 1.4 is no longer supported (at least Java 5 is required now). What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
[issue11798] Test cases not garbage collected after run
Fabio Zadrozny fab...@users.sourceforge.net added the comment: So Michal, it seems no objections were raised? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11798] Test cases not garbage collected after run
New submission from Fabio Zadrozny fab...@users.sourceforge.net: Right now, when doing a test case, one must clear all the variables created in the test class, and I believe this shouldn't be needed... E.g.: class Test(TestCase): def setUp(self): self.obj1 = MyObject() ... def tearDown(self): del self.obj1 Ideally (in my view), right after running the test, it should be garbage-collected and the explicit tearDown wouldn't be needed (as the test would garbage-collected, that reference would automatically die), because this is currently very error prone... (and probably a source of leaks for any sufficiently big test suite). If that's accepted, I can provide a patch. -- components: Library (Lib) messages: 133225 nosy: fabioz priority: normal severity: normal status: open title: Test cases not garbage collected after run type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11798] Test cases not garbage collected after run
Fabio Zadrozny fab...@users.sourceforge.net added the comment: I do get the idea of the backward incompatibility, although I think it's really minor in this case. Just for some data, the pydev test runner has had a fix to clear those test cases for quite a while already and no one has complained about it (it actually makes each of the tests None after run, so, if someone tries to access it after that, it would be pretty clear that it's not there anymore). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11798] Test cases not garbage collected after run
Fabio Zadrozny fab...@users.sourceforge.net added the comment: The current code I use in PyDev is below -- another option could be not adding the None to the list of tests, but removing it, but I find that a bit worse because in the current way if someone tries to access it after it's ran, it'll become clear it was removed. def run(self, result): for index, test in enumerate(self._tests): if result.shouldStop: break test(result) # Let the memory be released! self._tests[index] = None return result I think the issue with the test result storing the test is much more difficult to deal with (because currently most unit test frameworks probably rely on having it there), so, that's probably not something I'd try to fix as it'd probably break many clients... in which case it should be expected that the test is kept alive if it fails -- but as the idea is that all has to turn green anyways, I don't see this as a big issue :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Pydev 2.0 Released
Hi All, PyDev 2.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: === Major - * TDD actions on Ctrl+1 * Improved code coverage support See video at: http://pydev.org/video_pydev_20.html with these improvements Noteworthy PyUnit * It's possible to pin a test run and restore it later. * Errors that occur while importing modules are properly shown. * It's possible to override the test runner configurations for a given launch. * The Nose test runner works properly when there's an error in a fixture. Editor * When there's some text selected and ' or is entered, the content is converted to a string. * Handling literals with ui linking. * Creating ui link in the editor after entering (,[,{ when it is auto-closed. * On hover, when there's a name defined in another module, the statement containing the name is shown. * It's possible to launch an editor with a file not in the workspace (a project must be selected in this case) * If a line starts with __version__ no import is added above it. * When doing assign to attributes, if there's a pass in the line the assign will be added, it's removed. * When Ctrl+1 is used to add an import on an unresolved variable, if Ctrl is pressed on apply a local import is done. Interactive console (options) * Focus on creation * When created the selection may be directly sent to the console The DJANGO_SETTINGS_MODULE environment var is passed when making a launch. The outline page now has a filter. The input() method properly works in Python 3.2 (last \r no longer shown). **LOTS** of other adjustments and bug fixes What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 2.0 Released
Hi All, PyDev 2.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: === Major - * TDD actions on Ctrl+1 * Improved code coverage support See video at: http://pydev.org/video_pydev_20.html with these improvements Noteworthy PyUnit * It's possible to pin a test run and restore it later. * Errors that occur while importing modules are properly shown. * It's possible to override the test runner configurations for a given launch. * The Nose test runner works properly when there's an error in a fixture. Editor * When there's some text selected and ' or is entered, the content is converted to a string. * Handling literals with ui linking. * Creating ui link in the editor after entering (,[,{ when it is auto-closed. * On hover, when there's a name defined in another module, the statement containing the name is shown. * It's possible to launch an editor with a file not in the workspace (a project must be selected in this case) * If a line starts with __version__ no import is added above it. * When doing assign to attributes, if there's a pass in the line the assign will be added, it's removed. * When Ctrl+1 is used to add an import on an unresolved variable, if Ctrl is pressed on apply a local import is done. Interactive console (options) * Focus on creation * When created the selection may be directly sent to the console The DJANGO_SETTINGS_MODULE environment var is passed when making a launch. The outline page now has a filter. The input() method properly works in Python 3.2 (last \r no longer shown). **LOTS** of other adjustments and bug fixes What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.6.5 Released
Hi All, Pydev 1.6.5 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Syntax highlighting now has options to have {}, [] and () as well as operators in different colors * Code generation for classes and methods: Note that this is an initial implementation of the idea, aimed as those that use a TDD (Test Driven Development) approach, so, one can create the test first and generate the classes/methods later on from using shortcuts or quick-fixes (which is something that those using JDT -- Java Development Tools -- in Eclipse should be already familiar with). This feature should be already usable on a number of situations but it's still far from being 100% complete. * Alt+Shift+S C can be used to create a class for the currently selected token * Alt+Shift+S M can be used to create a method for the currently selected token * Ctrl+1 has as a quick fix for creating a class or method * Debugger * When discovering encoding on Python 3.x, the file is opened as binary * Remote debugger (pydevd.settrace()) properly synchronized * Fixed debugger issue on interpreter shutdown on Python 2.7 * Bug fixes: * Fixed issue when doing code-completion on a line that started with some token that started with 'import'. e.g.: import_foo = a * Fixed import when running unittest with coverage * Fixed extract local (could extract to wrong location) * Fixed NPE when requesting print of arguments in the context-information tooltips * Fixed AttributeError with pydevconsole on Python 3.x What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.6.5 Released
Hi All, Pydev 1.6.5 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Syntax highlighting now has options to have {}, [] and () as well as operators in different colors * Code generation for classes and methods: Note that this is an initial implementation of the idea, aimed as those that use a TDD (Test Driven Development) approach, so, one can create the test first and generate the classes/methods later on from using shortcuts or quick-fixes (which is something that those using JDT -- Java Development Tools -- in Eclipse should be already familiar with). This feature should be already usable on a number of situations but it's still far from being 100% complete. * Alt+Shift+S C can be used to create a class for the currently selected token * Alt+Shift+S M can be used to create a method for the currently selected token * Ctrl+1 has as a quick fix for creating a class or method * Debugger * When discovering encoding on Python 3.x, the file is opened as binary * Remote debugger (pydevd.settrace()) properly synchronized * Fixed debugger issue on interpreter shutdown on Python 2.7 * Bug fixes: * Fixed issue when doing code-completion on a line that started with some token that started with 'import'. e.g.: import_foo = a * Fixed import when running unittest with coverage * Fixed extract local (could extract to wrong location) * Fixed NPE when requesting print of arguments in the context-information tooltips * Fixed AttributeError with pydevconsole on Python 3.x What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)
New submission from Fabio Zadrozny fab...@users.sourceforge.net: It seems that tracing in the interpreter is lost after some recursion error is triggered (even if it's properly handled). This breaks any debugger working after any recursion error is triggered (which suppose shouldn't happen). The attached test case shows the problem in action. Tested the problem with Python 2.6.5 and 3.1.3 -- components: Interpreter Core files: recursion_error_disables_tracing.py messages: 126460 nosy: fabioz priority: normal severity: normal status: open title: Tracing disabled when a recursion error is triggered (even if properly handled) type: behavior versions: Python 2.6, Python 3.1 Added file: http://bugs.python.org/file20436/recursion_error_disables_tracing.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: [PyQt] Working with PyQt and Pydev
On Thu, Jan 6, 2011 at 9:32 AM, Rohit Coder passionate_program...@hotmail.com wrote: I installed the PyDev plugin into Aptana Stdui 3 Beta. Someone suggested me to use PyQt for Python GUI app, and so I downloaded and installed PyQt. But when I open Aptana Studio, I could see a new menu added with the name PyDev, but there is nothing for PyQt. In the Windows Start Meny item list, I could see a folder named PyQt and when I open it, there are few tools like Designer. When Designer is run, it opens Qt IDE for designing Forms like Visual Studio and the files have the extension .ui. I want to know how to integrate PyQt and PyDev. Do I need to use them separately by adding the .ui files to PyDev and then adding Python core code for functionality? After you design your class in the Qt Designer, you need to run pyuic to convert the .ui file to a python file (which you'd probably subclass in another module to add your own code, as you don't want to mess the automatically generated file). If you want, you can add a builder (project properties builders) to run pyuic when a .ui file is changed, so you don't have to go to the console to ask pyuic to be rerun every time you change the file. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.6.4 Released
Hi All, Pydev 1.6.4 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improved Unittest integration: o Created a PyUnit view (with a red/green bar) which can be used to see the results of tests and relaunching them o The default test runner now allows parallel execution (distributing tests by module or individually) o The nose and py.test test runners are also supported now * Major Bug Fixed: existing interpreters could be corrupted when adding a new one * Fixed AttributeError on console startup in Python 3.0 * Added theming and automatic sash orientation to the pydev code coverage view * Patch by frigo7: When creating a new remote debugger target, the terminated ones are removed * Patch by frigo7: compare editor properly showing the revision information and fixed broken shortcuts (e.g.: ctrl+z) * Read-only files no longer editable in pydev actions * Fixed issue of remaining \r on python 3.0 on input() * The pydev parser is now properly dealing with bom (utf-8) * Assign to local: if method starts with '_', the leading '_' is not added to the local What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.6.4 Released
Hi All, Pydev 1.6.4 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improved Unittest integration: o Created a PyUnit view (with a red/green bar) which can be used to see the results of tests and relaunching them o The default test runner now allows parallel execution (distributing tests by module or individually) o The nose and py.test test runners are also supported now * Major Bug Fixed: existing interpreters could be corrupted when adding a new one * Fixed AttributeError on console startup in Python 3.0 * Added theming and automatic sash orientation to the pydev code coverage view * Patch by frigo7: When creating a new remote debugger target, the terminated ones are removed * Patch by frigo7: compare editor properly showing the revision information and fixed broken shortcuts (e.g.: ctrl+z) * Read-only files no longer editable in pydev actions * Fixed issue of remaining \r on python 3.0 on input() * The pydev parser is now properly dealing with bom (utf-8) * Assign to local: if method starts with '_', the leading '_' is not added to the local What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python - NAWIT / Community
My question relates to community contribution. My concern arose when recently installing the pydev.org extensions in Eclipse. Now as far as my understanding goes the licensing on both is open source GPL. However Pydev became open source as part of aptana's acquistion, and for the moment pydev can be installed as part of the Aptana studio 2/3 releases individually as a plugin, but moving on if you vist the aptana site there is sweet little about python on their site, their site is dominated by Radrails. Just a little fix there, Pydev is open source EPL (not GPL). Also, yes, there's little content about Pydev in the Aptana homepage, but it points to the main Pydev homepage (http://pydev.org) which has the proper content related to Python (and it's currently being actively developed and also integrated in Aptana Studio 3, which is where the current efforts are targeted within Aptana now). Sorry if this causes the (wrong) perception that Pydev doesn't get as much attention. Can't help thinking they open sourced Pydev so they could bench it. So I started thinking that the only consistent env each python person has is idle as it ships in the install. Sorry, but I don't follow your thoughts here... there are many consistent environments for python development which are properly supported (Pydev being only one of them as you can see at http://stackoverflow.com/questions/81584/what-ide-to-use-for-python ). Sometimes we can contribute with money and sometimes with time, if I was to contribute money to ensure that I and all new coming python programmers could have a first class development environment to use what would I donate to? At the moment no particular group seems applicable. Is pydev actively being developed and for who? SPE is a great idea but is Stan still developing? Pyscripter is good but not 64 capable. Plus none of these projects seem community centric. I'm the current Pydev maintainer (since 2005)... and while I cannot state that I'll be in that role forever (forever is quite a long time), I do think it's well maintained and there are occasional patches from the community that uses it (although I still get to review all that goes in). Maybe its just my wish, maybe something already exists, but to my mind why is there not a central python community ide or plugin setup like pydev or using pydev(since currently it is very good - to me), which I know or at least could confidently donate time or money to further python. This could apply to many python area's does python use easy_install or pypm, well if you want camelot or zope (unless you have business edition) its easy_install, but you wont find an ide with built in egg or pypm support? I think the issue is that only recently (if you compare with the others) has easy_install became the de facto standard in python (so, it'd be more an issue of interest adding such a feature to the ide). Why every Ruby ide has gems manager, and for that fact look at netbeans, the ide is good but support for python is mentioned on a far flung community page where some developers are trying to maintain good python support. PS they seem to be doing a good job, but a review of the mailing list archives shows little activity. One could say that activestate puts in good support but then they do not provide an ide within the means of the average part time person retailing its main edition at over $300, Pycharm a good ide at $99 but then where is my money going. I think a community plugin architecture which contained components like pydev, pyscripter, eclipse and eggs/pypm packages would give a place I can contribute time as my skills grow and confidently donate money knowing I am assisting the development of community tools and packages we all can use. No need to reinvent the wheel most things already exist, for example apt-get rpm style package management time tested and could be easily used to manage python eggs for example. Anyway I have had my 2 cents, if someone is contributing more than I know, and this wasn't intended to dimnish anyone's effort, just wanting to look to growing and fostering a stronger python community. Well, I can only comment from the Pydev side here, but do you think it'd be worth reinventing all that's already done in it just for having it in Python? When I started contributing to Pydev back in 2004 I didn't go that way because Eclipse itself has a huge community that's already in place and is properly maintained, which takes a lot of effort, so, I'm not sure it'd be worth reproducing all that just to have it 100% Python code -- I say 100% because Pydev does have a number of things that are in Python, such as the debugger and Jython for the scripting engine, although the major portion is really in java. Another important aspect is that it's much better if you can get an experience that can later be replicated to other languages (which Eclipse provides). Cheers, Fabio --
Re: Eclipse/PyDev - BOM Lexical Error
On Mon, Oct 4, 2010 at 5:03 AM, TheOne daewon.y...@gmail.com wrote: Hi. I installed eclipse/pydev today. I created a pydev project and added python source files with utf-8 BOM. Eclipse/Pydev reports lexical error : Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : I want the source files to have BOM character. How could I shut off this error msg? My eclipse is Helios, pydev version is 1.6.2.2010090812 Hi Daewon, This was a bug in Pydev. It has been fixed (for 1.6.4). This is still unreleased, but you can grab the nightly build with that fix already incorporated (it should be pretty stable at this point). See http://pydev.org/download.html for details on getting the nightly. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.6.3 Released
Hi All, Pydev 1.6.3 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improved editor preferences page when using Aptana themes * Icons updated to work better with dark backgrounds * Handling code-completion for keywords (e.g.: a method definition with a parameter 'call' will have a 'call=' completion on the caller) * Showing a better tooltip for parameters * No longer marking the Django templates editor as the default editor for css nor html (it can be restored at window preferences general editors file associations) * **Globals Browser** * Improved message in globals browser to better explan its features: * Exact match with a whitespace in the end * CamelCase matching (so, entering only TC would be enough to find a class named TestCase) * Dotted names may be used to filter through the packages (so, dj.ut.TC would find a TestCase class defined in the django.utils package) * Fix: When a space is added in the end, an exact match is done * Fix: No longer restoring items that don't exist anymore * Bug Fixes * Fixed issue on dict and set comprehension code analysis * Syntax errors on hover in a debug session not shown * Block preferences page validation before save * Improved django wizard configuration a bit to cover cases where the user does not have django installed or tries to add 'django' as the project name * The example code in the pydev editor preferences is no longer editable * 2to3 only added in the context menu of projects with the pydev nature * If a debug session is terminated, no message saying that the variable can't be resolved in the hover is shown if the debug target is still selected * Fixed path issues in sqlite3 path in django project creation * Fixed issue where quotes could end up in the execfile when they should not be there * Fixed issue where shift right did not work properly because the indent prefixes were not properly set when the tab preference changed What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.6.3 Released
Hi All, Pydev 1.6.3 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improved editor preferences page when using Aptana themes * Icons updated to work better with dark backgrounds * Handling code-completion for keywords (e.g.: a method definition with a parameter 'call' will have a 'call=' completion on the caller) * Showing a better tooltip for parameters * No longer marking the Django templates editor as the default editor for css nor html (it can be restored at window preferences general editors file associations) * **Globals Browser** * Improved message in globals browser to better explan its features: * Exact match with a whitespace in the end * CamelCase matching (so, entering only TC would be enough to find a class named TestCase) * Dotted names may be used to filter through the packages (so, dj.ut.TC would find a TestCase class defined in the django.utils package) * Fix: When a space is added in the end, an exact match is done * Fix: No longer restoring items that don't exist anymore * Bug Fixes * Fixed issue on dict and set comprehension code analysis * Syntax errors on hover in a debug session not shown * Block preferences page validation before save * Improved django wizard configuration a bit to cover cases where the user does not have django installed or tries to add 'django' as the project name * The example code in the pydev editor preferences is no longer editable * 2to3 only added in the context menu of projects with the pydev nature * If a debug session is terminated, no message saying that the variable can't be resolved in the hover is shown if the debug target is still selected * Fixed path issues in sqlite3 path in django project creation * Fixed issue where quotes could end up in the execfile when they should not be there * Fixed issue where shift right did not work properly because the indent prefixes were not properly set when the tab preference changed What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.6.2 Released
Hi All, Pydev 1.6.2 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Pydev is now also distributed with Aptana Studio 3, so it can be gotten in a version that doesn't require installing it as a separate plugin. Get it at: http://aptana.com/products/studio3/download * Django templates editor (requires Aptana Studio 3) o Supports HTML files with HTML, CSS and Javascript o Supports CSS files o Outline page o Code-completion for Django templates based on templates (window preferences pydev django templates editor templates) o Code-completion for HTML, CSS and Javascript o Syntax highlighting based on the templates with the 'Django tags' context o Colors based on the Aptana themes * Python 2.7 grammar supported * Fixed indexing issue on contents getting getting stale in the cache * Fixed issue where the partitioning became wrong when entering a multiline string * Colors in the compare editor are now correct when using the Aptana themes * Extract method refactoring now works with import and from ... import inside a method * Source folders now appear before other folders * Fixed False positive on code analysis when using the property decorator What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame
Fabio Zadrozny fab...@users.sourceforge.net added the comment: I agree that it'd be cleaner making the frame locals a dict-like object with write access, but I wouldn't be able to do that because of time constraints (and I'd have to research more how to do it and it'd be much more intrusive I guess). So, if it's guaranteed that it'll be accepted I can provide a patch (changing the clear to 1) of the savelocals() version. I guess I don't agree this falls in the language moratorium, but if that's the case I can wait 1 or 2 more years before submitting the patch :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1654367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Pydev 1.6.1 Released
Hi All, Pydev 1.6.1 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * **Debugger** * **Critical Fix: issue that prevented the debugger from working with Python 3 solved** * Improving socket connection handling * **Launching** * Restart last launch and terminate all launches actions created * Restart last: **Ctrl+Shift+F9** (in pydev editor) * Terminate all: **Ctrl+Alt+F9** (in pydev editor) * Buttons were also added to pydev consoles * **Utilities** * **2to3**: Right-clicking a folder or file will show an option in the Pydev menu to convert from python 2 to python 3 (note that lib2to3 must available in the python installation). * Defining execfile in a Python 3 interactive console so that Ctrl+Alt+Enter works. * Fixed issue in the code style preferences page (switched value shown). * com.ziclix.python.sql added to the forced builtins in a Jython install by default. * Improved some icons when on a dark theme (patch from Kenneth Belitzky) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Pydev 1.6.0 Released
The supposed feature to start a console in which the contents of the current editor window are automatically execed /available still doesn't work for me. I'm talking about this: http://www.pydev.org/manual_adv_interactive_console.html Pressing Ctrl-Alt-Enter, a interactive console opens but my class defined in the editor window is not available. The first time Ctrl-Alt-Enter is used, it should open the console, if you want to make the execfile, you have to do Ctrl-Alt-Enter with a console already open. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.6.0 Released
Hi All, Pydev 1.6.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Debugger o Code-completion added to the debug console o Entries in the debug console are evaluated on a line-by-line basis (previously an empty line was needed) o Threads started with thread.start_new_thread are now properly traced in the debugger o Added method -- pydevd.set_pm_excepthook() -- which clients may use to debug uncaught exceptions o Printing exception when unable to connect in the debugger * General o Interactive console may be created using the eclipse vm (which may be used for experimenting with Eclipse) o Apply patch working (Fixed NPE when opening compare editor in a dialog) o Added compatibility to Aptana Studio 3 (Beta) -- release from July 12th What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.6.0 Released
Hi All, Pydev 1.6.0 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Debugger o Code-completion added to the debug console o Entries in the debug console are evaluated on a line-by-line basis (previously an empty line was needed) o Threads started with thread.start_new_thread are now properly traced in the debugger o Added method -- pydevd.set_pm_excepthook() -- which clients may use to debug uncaught exceptions o Printing exception when unable to connect in the debugger * General o Interactive console may be created using the eclipse vm (which may be used for experimenting with Eclipse) o Apply patch working (Fixed NPE when opening compare editor in a dialog) o Added compatibility to Aptana Studio 3 (Beta) -- release from July 12th What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Pydev 1.5.8 Released
On Tue, Jun 29, 2010 at 12:37 AM, ejosvp ejo...@gmail.com wrote: On 28 jun, 22:35, ejosvp ejo...@gmail.com wrote: I have a problem with pydev 1.5.8 An error has occurred. See error log for more details. com.aptana.editor.common.CommonEditorPlugin.getThemeManager()Lcom/ aptana/editor/common/theme/IThemeManager; I seek the file and that file does not exist Hi, Thanks for the report. I'll fix that and make a new release later today. The problem is that I stopped changes in pydev and started testing locally on June 21st and the new Aptana release from June 24th is not totally backward compatible -- and unfortunately no one saw that issue with the nightly build before the release either :( Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.8 Released
Hi All, Pydev 1.5.8 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Features only available on Aptana Studio 3 (Beta): * Theming support provided by Aptana Studio used * Find bar provided by Aptana used (instead of the default find/replace dialog) * Aptana App Explorer provides Pydev nodes * Eclipse: * Eclipse 3.6 is now supported * Pydev Jars are now signed * Django: * DoesNotExist and MultipleObjectsReturned recognized in Django * Added option to make the name of Django models,views,tests editors work as regular editors while still changing the icon * Run/Debug: * Ctrl+Shift+B properly working to toggle breakpoint * If file is not found in debugger, only warn once (and properly cache the return) * Run configuration menus: Only showing the ones that have an available interpreter configured * Outline/Pydev Package Explorer: * Fixed sorting issue in pydev package explorer when comparing elements from the python model with elements from the eclipse resource model * Fixed issue when the 'go into' was used in the pydev package explorer (refresh was not automatic) * Added decoration to class attributes * Added node identifying if __name__ == '__main__' * General: * Properly working with editor names when the path would be the same for different editors * Fixed issue where aptanavfs appeared in the title for aptana remote files * Fixed halting condition * Not always applying completion of dot in interactive console on context-insensitive completions * Home key properly handled in compare editor * Interactive console working with pickle * String substitution configuration in interpreter properly works * On import completions, full module names are not shown anymore, only the next submodule alternative What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.5.8 Released
Hi All, Pydev 1.5.8 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Features only available on Aptana Studio 3 (Beta): * Theming support provided by Aptana Studio used * Find bar provided by Aptana used (instead of the default find/replace dialog) * Aptana App Explorer provides Pydev nodes * Eclipse: * Eclipse 3.6 is now supported * Pydev Jars are now signed * Django: * DoesNotExist and MultipleObjectsReturned recognized in Django * Added option to make the name of Django models,views,tests editors work as regular editors while still changing the icon * Run/Debug: * Ctrl+Shift+B properly working to toggle breakpoint * If file is not found in debugger, only warn once (and properly cache the return) * Run configuration menus: Only showing the ones that have an available interpreter configured * Outline/Pydev Package Explorer: * Fixed sorting issue in pydev package explorer when comparing elements from the python model with elements from the eclipse resource model * Fixed issue when the 'go into' was used in the pydev package explorer (refresh was not automatic) * Added decoration to class attributes * Added node identifying if __name__ == '__main__' * General: * Properly working with editor names when the path would be the same for different editors * Fixed issue where aptanavfs appeared in the title for aptana remote files * Fixed halting condition * Not always applying completion of dot in interactive console on context-insensitive completions * Home key properly handled in compare editor * Interactive console working with pickle * String substitution configuration in interpreter properly works * On import completions, full module names are not shown anymore, only the next submodule alternative What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
How to get the date format from the users locale?
I'm trying to get the locale-aware date format but it doesn't seem to be available through nl_langinfo in python 2.5.4 (windows vista). Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] onType help, copyright, credits or license for more information. import locale;locale.nl_langinfo Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute 'nl_langinfo' Is that what I should be using? Is there any other way for getting that info? Thanks, Fabio print '\n'.join(sorted(dir(locale))) CHAR_MAX Error LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME __all__ __builtins__ __doc__ __file__ __name__ _build_localename _group _parse_localename _percent_re _print_locale _setlocale _test atof atoi currency encodings format format_string getdefaultlocale getlocale getpreferredencoding locale_alias locale_encoding_alias localeconv normalize operator re resetlocale setlocale str strcoll strxfrm sys windows_locale -- http://mail.python.org/mailman/listinfo/python-list
Re: weird pickle behavior in Python 3.1.2 + Eclipse 3.5.2
On Mon, Jun 7, 2010 at 6:30 AM, Peter Otten __pete...@web.de wrote: kirby.ur...@gmail.com wrote: On Jun 4, 9:47 am, Peter Otten __pete...@web.de wrote: I can provoke the error in naked Python 3 by changing the Example.__module__ attribute: Python 3.1.1+ (r311:74480, Nov 2 2009, 15:45:00) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. import pickle class Example: ... pass ... pickle.dumps(Example()) b'\x80\x03c__main__\nExample\nq\x00)\x81q\x01}q\x02b.' Example.__module__ = builtins pickle.dumps(Example()) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python3.1/pickle.py, line 1358, in dumps Pickler(f, protocol, fix_imports=fix_imports).dump(obj) _pickle.PicklingError: Can't pickle class 'Example': attribute lookup builtins.Example failed What's the value of __module__ when you run your code in Eclipse? Peter Thank you for replying. Here's from Eclipse console: Example.__module__ 'builtins' __name__ 'builtins' Duplicating your result in naked Python: Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. class Example: pass import pickle Example.__module__ '__main__' f = open('testpickle.pkl','wb') obj = Example() obj __main__.Example object at 0x02A26690 pickle.dump(obj, f) Example.__module__ = 'builtins' obj2 = Example() pickle.dump(obj2, f) Traceback (most recent call last): File pyshell#12, line 1, in module pickle.dump(obj2, f) File C:\Python31\lib\pickle.py, line 1354, in dump Pickler(file, protocol, fix_imports=fix_imports).dump(obj) _pickle.PicklingError: Can't pickle class 'Example': attribute lookup builtins.Example failed So what if I'm in an Eclipse pydev console and change the Example.__module__ to '__main__' import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) C:\Python31\python.exe 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] import pickle class Example: ... pass ... Example.__module__ 'builtins' Example.__module__ = '__main__' obj = Example() obj __main__.Example object at 0x029E8FD0 f = open('testpickle.pkl','wb') pickle.dump(obj, f) Traceback (most recent call last): File console, line 1, in module File C:\Python31\lib\pickle.py, line 1354, in dump Pickler(file, protocol, fix_imports=fix_imports).dump(obj) _pickle.PicklingError: Can't pickle class '__main__.Example': attribute lookup __main__.Example failed Dang. Any insights? Sorry, no. Consider a bug report to the pydev project. I've taken a look at the pydev code and the issue seems to be in python itself. See: http://bugs.python.org/issue8943 Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
[issue8943] Bug in InteractiveConsole
New submission from Fabio Zadrozny fab...@users.sourceforge.net: Unable to pickle classes used in the InteractiveConsole. The code attached works in python 2.5 and fails on python 3.1.2. -- components: Library (Lib) files: fast_test.py messages: 107328 nosy: fabioz priority: normal severity: normal status: open title: Bug in InteractiveConsole type: behavior versions: Python 3.1 Added file: http://bugs.python.org/file17589/fast_test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Do any debuggers support edit and continue?
On Wed, May 12, 2010 at 2:42 PM, Joel Koltner zapwiredashgro...@yahoo.com wrote: Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an edit and conitnue option that, when you hit a breakpoint, allows you to modify a line of code before it's actually executed. Does any Python debugger support this feature? Being an interpreted language it doesn't seem like it would necessarily be too onerous to support? It'd be quite handy in that, especially if you hit a breakpoint due to the interpreter throwing an error, you could fix just the line in question and keep going, rather than having to stop the entire program, fix the line, and then run again and potentially kill a bunch of time getting the program back into the same state. Just for the record, Pydev had that from 1.4.8 to 1.5.5, but it was removed because it could be a bit unpredictable (it relied on xreload.py). So, now what you can still do is change your variables / write any code in the console / use the jump to re-execute something (in the interface it's Run Run to line -- or Ctrl+R) which is what you usually need when experimenting (I still think the edit and continue would be a nice feature, but the current state of xreload is not really good for that -- and I'm not sure if it'll ever be -- although I do have some alternatives in mind that would improve that support greatly, some things could never be really fixed, such as changing the value of an int constant that's been already assigned to somewhere else -- anyways, I've got my hands on some other things right now, so, there's currently no plan for that being supported (again)). Cheers, Fabio p.s.: I think I'd be able to do it before reaching the whole $ 500,000 in funding :) -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.7 Released
Hi All, Pydev 1.5.7 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * **Uniquely identifying editors:** * Names are never duplicated * Special treatment for __init__ * Special treatment for django on views, models and tests * See: http://pydev.blogspot.com/2010/04/identifying-your-editors.html for details * **Debugger:** * **CRITICAL**: Fixed issue which could make the debugger skip breakpoints * Properly dealing with varibles that have '' or '' * Debugging file in python 3 with an encoding works * Double-clicking breakpoint opens file from the workspace instead of always forcing an external file * Added '* any file' option for file selection during a debug where the file is not found * **Performance improvements for dealing with really large files:** * Code folding marks won't be shown on *really large files* for performance reasons * Performance improvements in the code-analysis (much faster for *really large files*) * Outline tree is also faster * **Interpreter configuration:** * Only restoring the needed interpreter info (so, it's much faster to add a new interpreter) * Using an asynchronous progress monitor (which makes it even faster) * Interpreter location may not be duplicated (for cases where the same interpreter is used with a different config, virtualenv should be used) * Properly refreshing internal caches (which made a ctrl+2+kill or a restart of eclipse needed sometimes after configuring the interpreter) * socket added to forced builtins * **Python 3 grammar:** * Code completion and code-analysis work when dealing with keyword only parameters * Properly reporting syntax error instead of throwing a NumberFormatException on 1.0L * **Editor and forcing tabs:** * Option to toggle forcing tabs added to the editor context menu * Fixed tabs issue which could change the global setting on force tabs * **Indentation:** * Added rule so that indentation stops at the level of the next line def or @ (to indent to add a decorator) * Auto indent strategy may indent based on next line if the previous is empty * **General:** * Django configuration supporting version 1.2 (contribution by Kenneth Belitzky) * Fixed encoding problem when pasting encoded text with indentation * asthelper.completions no longer created on current directory when project is removed * __all__ semantics correct when a tuple is defined (and not only when a list is defined) * Fixed issue in extract method (was not creating tuple on caller function with multiple returns) * Improved heuristic for assist assign (ctrl+1) * On search open files (ctrl+2+s), dialog is opened if nothing is entered and there's no editor selection * Fixed issue where ctrl+2 would not work on linux What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
2to3 issues with execfile on python 3.0 on files with encoding
Right now, it seems that the default implementation of execfile in 2to3 is something as: exec(compile(open(file).read()+\n, file, 'exec'), globals, locals) But it seems it won't deal with encodings properly... and also, in CPython just making an open without a close is OK, because of the reference counting, but in Jython it shouldn't be relied on (so, an explicit close should be done). The default replacement should be really providing a new execfile that gets the encoding in the first 2 lines and opens it with the proper encoding set (and properly closes the stream). So, below is what I think would be a correct replacement... Can it be made easier? Is there any utility to get the encoding already? Maybe an execfile should be created again in Python 3? (even if not in the __builtin__, but at least somewhere, as that seems really tricky to get right) Note that some 'with' statements could be used, but I chose not to because I wanted it to be at least syntax-compatible with earlier versions of python. def execfile(file): stream = open(file) try: encoding = None #Get encoding! for i in range(2): line = stream.readline() #Should not raise an exception even if there are no more contents #Must be a comment line if line.strip().startswith('#'): #Don't import re if there's no chance that there's an encoding in the line if 'coding' in line: import re p = re.search(rcoding[:=]\s*([-\w.]+), line) if p: encoding = p.group(1) break finally: stream.close() if encoding is not None: stream = open(file, encoding=encoding) else: stream = open(file) try: contents = stream.read() finally: stream.close() exec(compile(contents+\n, file, 'exec'), globals, locals) #execute the script Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.7 Released
Hi All, Pydev 1.5.7 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * **Uniquely identifying editors:** * Names are never duplicated * Special treatment for __init__ * Special treatment for django on views, models and tests * See: http://pydev.blogspot.com/2010/04/identifying-your-editors.html for details * **Debugger:** * **CRITICAL**: Fixed issue which could make the debugger skip breakpoints * Properly dealing with varibles that have '' or '' * Debugging file in python 3 with an encoding works * Double-clicking breakpoint opens file from the workspace instead of always forcing an external file * Added '* any file' option for file selection during a debug where the file is not found * **Performance improvements for dealing with really large files:** * Code folding marks won't be shown on *really large files* for performance reasons * Performance improvements in the code-analysis (much faster for *really large files*) * Outline tree is also faster * **Interpreter configuration:** * Only restoring the needed interpreter info (so, it's much faster to add a new interpreter) * Using an asynchronous progress monitor (which makes it even faster) * Interpreter location may not be duplicated (for cases where the same interpreter is used with a different config, virtualenv should be used) * Properly refreshing internal caches (which made a ctrl+2+kill or a restart of eclipse needed sometimes after configuring the interpreter) * socket added to forced builtins * **Python 3 grammar:** * Code completion and code-analysis work when dealing with keyword only parameters * Properly reporting syntax error instead of throwing a NumberFormatException on 1.0L * **Editor and forcing tabs:** * Option to toggle forcing tabs added to the editor context menu * Fixed tabs issue which could change the global setting on force tabs * **Indentation:** * Added rule so that indentation stops at the level of the next line def or @ (to indent to add a decorator) * Auto indent strategy may indent based on next line if the previous is empty * **General:** * Django configuration supporting version 1.2 (contribution by Kenneth Belitzky) * Fixed encoding problem when pasting encoded text with indentation * asthelper.completions no longer created on current directory when project is removed * __all__ semantics correct when a tuple is defined (and not only when a list is defined) * Fixed issue in extract method (was not creating tuple on caller function with multiple returns) * Improved heuristic for assist assign (ctrl+1) * On search open files (ctrl+2+s), dialog is opened if nothing is entered and there's no editor selection * Fixed issue where ctrl+2 would not work on linux What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: How to choose a debugger
2010/4/25 sanam singh sanamsi...@hotmail.com: Hi, I want to debug my c++blocks which are dynamically loaded into python for execution. I am using wingide for debugging python. But its limitation is that when c++module is called in python script it doent take me into c++ module. What I want is that I should be able to visually see the c++ code (unlike gdb) when it is called from the python script and I should be able to debug it ( step out, step into etc).And when c++ module ends it should take me back into the python module. In other words, I want to follow my program line by line. Please guide me. Thank you. Regards, Sanam Hi Sanam, The usual way to work that way is having one of the debuggers work in remote debug mode (so, if you launch it from a python ide, the c++ remote debugger should connect to it remotely, or if you launch it from the c++ ide, the python debugger should connect to it remotely). What I usually use is the pydev remote debugger (http://pydev.org/manual_adv_remote_debugger.html) and msvc (through tools attach to process). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: PyDev : undefined variable from import
On Mon, Apr 26, 2010 at 12:08 PM, Wanderer wande...@dialup4less.com wrote: Since the last Java update, I get the error, undefined variable from import in Pydev in the Eclipse editor. I can still run the program in Eclipse. If I add a blank line and save the program, the error goes away, but that screws up the revision with SVN. Has anyone else seen this or have a fix. The common case for this is that the static code analyzer cannot find some token that's there at runtime... but to know the actual problem, I need more info (such as the import that's failing and the contents of the related modules). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Pydev 1.5.6 Released (Django Integration)
Pydev 1.5.6 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Question, Does it have a feature to evaluate the current edit buffer and continue with an interactive prompt? Yes. See: http://pydev.org/manual_adv_interactive_console.html Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.6 Released (Django Integration)
Hi All, Pydev 1.5.6 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Django integration: * New Django project can be created through wizards * Can set an existing project as a Django project (right-click project pydev set as django project) * Can remove Django project config (right-click project django remove django project config) * Custom actions can be passed to the configured manage.py through ctrl+2+dj django_action -- if no action is passed, will open dialog to choose from a list of previously used commands. * Predefined/custom actions can be used through right-clicking the project django select custom action * manage.py location and settings module configured * Django shell (with code-completion, history, etc) available * Run/Debug as Django available * See: http://pydev.org/manual_adv_django.html for more details * Find/Replace: * The search in open files is no longer added in the find/replace dialog and now works through Ctrl+2+s word_to_find (in the Pydev editor) and if no word is passed, the editor selection is used * Go to definiton: * Properly works with unsaved files (so, it will work when searching for a definition on an unsaved file) * Properly working with eclipse 3.6 (having FileStoreEditorInput as the editor input) * Editor: * Automatically closing literals. * Removing closing pair on backspace on literal * Improved heuristics for automatically closing (, [ and { * Removing closing pairs on backspace on (,[ and { * ctrl+2+sl (sl comes from 'split lines' -- can be used to add a new line after each comma in the selection * ctrl+2+is (is comes from 'import string' -- can be used to transform the selected import into a string with dots * General: * Code-completion properly working on relative import with an alias. * Fixed racing issue that could deadlock pydev (under really hard to reproduce circumstances) * Removing reloading code while debugging until (if) it becomes more mature in the python side * Fixed issue where a new project created didn't have the source folder correctly set * Text selection in double click no longer has weird behavior * Local refactoring working on files not in the PYTHONPATH * Edit properly working on string substitution variables * Using with statement on python 2.5 no longer makes lines wrong in the AST What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.5.6 Released (Django Integration)
Hi All, Pydev 1.5.6 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Django integration: * New Django project can be created through wizards * Can set an existing project as a Django project (right-click project pydev set as django project) * Can remove Django project config (right-click project django remove django project config) * Custom actions can be passed to the configured manage.py through ctrl+2+dj django_action -- if no action is passed, will open dialog to choose from a list of previously used commands. * Predefined/custom actions can be used through right-clicking the project django select custom action * manage.py location and settings module configured * Django shell (with code-completion, history, etc) available * Run/Debug as Django available * See: http://pydev.org/manual_adv_django.html for more details * Find/Replace: * The search in open files is no longer added in the find/replace dialog and now works through Ctrl+2+s word_to_find (in the Pydev editor) and if no word is passed, the editor selection is used * Go to definiton: * Properly works with unsaved files (so, it will work when searching for a definition on an unsaved file) * Properly working with eclipse 3.6 (having FileStoreEditorInput as the editor input) * Editor: * Automatically closing literals. * Removing closing pair on backspace on literal * Improved heuristics for automatically closing (, [ and { * Removing closing pairs on backspace on (,[ and { * ctrl+2+sl (sl comes from 'split lines' -- can be used to add a new line after each comma in the selection * ctrl+2+is (is comes from 'import string' -- can be used to transform the selected import into a string with dots * General: * Code-completion properly working on relative import with an alias. * Fixed racing issue that could deadlock pydev (under really hard to reproduce circumstances) * Removing reloading code while debugging until (if) it becomes more mature in the python side * Fixed issue where a new project created didn't have the source folder correctly set * Text selection in double click no longer has weird behavior * Local refactoring working on files not in the PYTHONPATH * Edit properly working on string substitution variables * Using with statement on python 2.5 no longer makes lines wrong in the AST What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Get Eclipse/PyDev to run scripts that don't end in .py
On Wed, Mar 31, 2010 at 6:37 PM, J dreadpiratej...@gmail.com wrote: Is there any way to tell PyDev in Eclipse to run a script that doesn't end in .py? Even if I have to go and manually set something for each file... I've inherited (in a manner of speaking) a dev project that is done in python2.6... I pulled the latest dev branch and have it opened as a project in Eclipse, however, none of the python files end in .py, so PyDev only sees them as text files. And because of that, I can't run them in Eclipse to try my changes, debug, etc. So, is there a way to make them show up as python code without the .py extension? Because of this, I also don't get any of the fancy indenting and highlighting that I'd normally get... You have to change it in 2 places: 1. window preferences general editors file associations: add the *.extension and bind it to the Python Editor (see how the *.py association is done). 2. window preferences Pydev editor code style file types: add your custom extension there (and you may want to change the default python extension if you'll keep creating modules with that different extension). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.5 Released
Hi All, Pydev 1.5.5 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Predefined completions available for code completion: * Predefined completions may be created for use when sources are not available * Can also be used for providing better completions for compiled modules (e.g.: PyQt, wx, etc.) * Defined in .pypredef files (which are plain Python code) * Provides a way for generating those from a QScintilla .api file (experimental) * See Predefined Completions in manual for more info * Pydev Package Explorer: * Showing the contents of the PYTHONPATH from the interpreter for each project * Shows the folder containing the python interpreter executable (to browse for docs, scripts, etc) * Allows opening files in the interpreter PYTHONPATH (even inside zip files) * Editor options: * Find/replace dialog has option to search in currently opened editors * Move line up/down can move considering Python indentation (not default) * Simple token completions can have a space or a space and colon added when applied. E.g.: print, if, etc (not default) * Refactoring: * Fixed InvalidThreadAccess on refactoring * Fixed problem doing refactoring on external files (no file was found) * Globals Browser (Ctrl+Shift+T): * No longer throwing NullPointerException when the interpreter is no longer available for a previously found token * General: * When creating a new pydev project, the user will be asked before changing to the pydev perspective * Only files under source folders are analyzed (files in the external source folders would be analyzed if they happened to be in the Eclipse workspace) * Interactive console now works properly on non-english systems * Hover working over tokens from compiled modules (e.g.: file, file.readlines) * JYTHONPATH environment variable is set on Jython (previously only the PYTHONPATH was set) * Fixed path translation issues when using remote debugger * Fixed issue finding definition for a method of a locally created token What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.4 Released
Hi All, Pydev 1.5.4 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Actions: o Go to matching bracket (Ctrl + Shift + P) o Copy the qualified name of the current context to the clipboard. o Ctrl + Shift + T keybinding is resolved to show globals in any context (note: a conflict may occur if JDT is present -- it can be fixed at the keys preferences if wanted). o Ctrl + 2 shows a dialog with the list of available options. o Wrap paragraph is available in the source menu. o Globals browser will start with the current word if no selection is available (if possible). * Templates: o Scripting engine can be used to add template variables to Pydev. o New template variables for next, previous class or method, current module, etc. o New templates for super and super_raw. o print is now aware of Python 3.x or 2.x * Code analysis and code completion: o Fixed problem when getting builtins with multiple Python interpreters configured. o If there's a hasattr(obj, 'attr), 'attr' will be considered in the code completion and code analysis. o Fixed issue where analysis was only done once when set to only analyze open editor. o Proper namespace leakage semantic in list comprehension. o Better calltips in IronPython. o Support for code-completion in Mac OS (interpreter was crashing if _CF was not imported in the main thread). * Grammar: o Fixed issues with 'with' being used as name or keyword in 2.5. o Fixed error when using nested list comprehension. o Proper 'as' and 'with' handling in 2.4 and 2.5. o 'with' statement accepts multiple items in python 3.0. * Improved hover: o Showing the actual contents of method or class when hovering. o Link to the definition of the token being hovered (if class or method). * Others: o Completions for [{( are no longer duplicated when on block mode. o String substitution can now be configured in the interpreter. o Fixed synchronization issue that could make Pydev halt. o Fixed problem when editing with collapsed code. o Import wasn't found for auto-import location if it import started with 'import' (worked with 'from') o Fixed interactive console problem with help() function in Python 3.1 o NullPointerException fix in compare editor. What is Pydev? --- Pydev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse Carriage Return Workaround
On Fri, Dec 18, 2009 at 1:38 PM, Steve Holden st...@holdenweb.com wrote: I've written a Python 3 course that uses an Eclipse-based teaching system. The school is telling me that their version of Eclipse/pydev appears to have an input() function that appends a carriage return character to the user's input. This makes several things go screwy, as it's definitely not the way the standalone interpreter works, even on Windows. Can anyone think of a simple way work around this issue by overriding __builtins__.input() with a function that calls input() and then returns an rstrip()ped version of the input string? I though of setting a PYTHONSTARTUP environment variable, but that only affects interactive interpreter instances. In my opinion that's a python bug (because it should be able to remove the \r\n and not only \n). Anyway, Pydev also had that problem and it was fixed by having a custom sitecustomize.py: See: http://github.com/aptana/Pydev/tree/master/plugins/org.python.pydev/PySrc/pydev_sitecustomize/ It just has to added to the pythonpath before the run (and it'll remove itself and call the default later on) -- the only catch is that it has to be on a folder called pydev_sitecustomize -- you can probably change the code if you don't want to follow that. It'll fix input(), raw_input() and will also fix encoding problems when writing non ASCII to the console (you may set a 'PYDEV_CONSOLE_ENCODING' in the environment or let it try to find a default on) -- should be compatible with python 2 or 3. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse Carriage Return Workaround
On Sat, Dec 19, 2009 at 8:36 AM, Fabio Zadrozny fabi...@gmail.com wrote: On Fri, Dec 18, 2009 at 1:38 PM, Steve Holden st...@holdenweb.com wrote: I've written a Python 3 course that uses an Eclipse-based teaching system. The school is telling me that their version of Eclipse/pydev appears to have an input() function that appends a carriage return character to the user's input. This makes several things go screwy, as it's definitely not the way the standalone interpreter works, even on Windows. Can anyone think of a simple way work around this issue by overriding __builtins__.input() with a function that calls input() and then returns an rstrip()ped version of the input string? I though of setting a PYTHONSTARTUP environment variable, but that only affects interactive interpreter instances. In my opinion that's a python bug (because it should be able to remove the \r\n and not only \n). Anyway, Pydev also had that problem and it was fixed by having a custom sitecustomize.py: See: http://github.com/aptana/Pydev/tree/master/plugins/org.python.pydev/PySrc/pydev_sitecustomize/ It just has to added to the pythonpath before the run (and it'll remove itself and call the default later on) -- the only catch is that it has to be on a folder called pydev_sitecustomize -- you can probably change the code if you don't want to follow that. It'll fix input(), raw_input() and will also fix encoding problems when writing non ASCII to the console (you may set a 'PYDEV_CONSOLE_ENCODING' in the environment or let it try to find a default on) -- should be compatible with python 2 or 3. I just noted that you said they are already using pydev -- maybe it's an old version? Or maybe you're doing a custom launcher that overrides the usual pythonpath and for some reason is not passing the pydev_sitecustomize folder? Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.2 Released
Hi All, Pydev 1.5.2 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Profile to have much lower memory requirements (especially on code-analysis rebuilds) * Profile for parsing to be faster * Compare Editor o Syntax highlighting integrated o Editions use the pydev editor behavior o Code completion works * Fixed issue where pydev could deadlock * No longer reporting import redefinitions and unused variables for the initial parts of imports such as import os.path * Fixed issue where pydev was removing __classpath__ from the pythonpath in jython * Using M1, M2 and M3 for keys instead of hardcoding Ctrl, Shift and Alt (which should make keybindings right on Mac OS) * Fixed some menus and popups * Properly categorizing Pydev views * Handling binary numbers in the python 2.6 and 3.0 grammar * from __future__ import print_function works on python 2.6 * Added drag support from the pydev package explorer * Properly translating slashes on client/server debug * Other minor fixes What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.5.2 Released
Hi All, Pydev 1.5.2 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Profile to have much lower memory requirements (especially on code-analysis rebuilds) * Profile for parsing to be faster * Compare Editor o Syntax highlighting integrated o Editions use the pydev editor behavior o Code completion works * Fixed issue where pydev could deadlock * No longer reporting import redefinitions and unused variables for the initial parts of imports such as import os.path * Fixed issue where pydev was removing __classpath__ from the pythonpath in jython * Using M1, M2 and M3 for keys instead of hardcoding Ctrl, Shift and Alt (which should make keybindings right on Mac OS) * Fixed some menus and popups * Properly categorizing Pydev views * Handling binary numbers in the python 2.6 and 3.0 grammar * from __future__ import print_function works on python 2.6 * Added drag support from the pydev package explorer * Properly translating slashes on client/server debug * Other minor fixes What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: editor with autocompletion
On Sat, Dec 5, 2009 at 5:19 AM, Siva B sivait...@gmail.com wrote: Hi All, Thanks for your reply. What I want is An Editor which can support Dynamic Languages with Autocomplete. I have my own language with some file extension (for ex: *.fs ) I can add few keywords to editor, it should support autocomplte. thats what my idea. plz send me pointers (good if it is open source.) I have seen Komodo edit but it looks too big any help plz. I'd recommend notepad++ (for windows): should be easy to add simple completions. See: http://notepad-plus.sourceforge.net/uk/auto-completion-HOWTO.php If you know java and would like more options for your support (i.e.: IDE features) Eclipse could be an option (basic support for a language should be easy to add -- only when you want more advanced features the learning curve to add them becomes steeper, although that road will certainly be more work than adding support in notepad++ ). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.1 Released
Hi All, Pydev 1.5.1 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improvements in the AST rewriter * Improvements on the refactoring engine: o No longer using BRM o Merged with the latest PEPTIC o Inline local available o Extract method bug-fixes o Extract local on multi-line o Generating properties using coding style defined in preferences o Add after current method option added to extract method o A bunch of other corner-case situations were fixed * Bug-fixes: o Minor editor improvements o Adding default forced builtins on all platforms (e.g.: time, math, etc) which wouldn't be on sys.builtin_module_names on some python installations o Adding 'numpy' and 'Image' to the forced builtins always o Ctrl+1: Generate docstring minor fixes o Ctrl+1: Assign to local now follows coding style preferences properly o Exponential with uppercase E working on code-formatting o When a set/get method is found in code-completion for a java class an NPE is no longer thrown o Backspace properly treated in block mode o Setting IRONPYTHONPATH when dealing with Iron Python (projects could not be referenced) o No longer giving spurious 'statement has no effect' inside of lambda and decorators o Fixed new exec in python 3k o Fixed NPE when breakpoint is related to a resource in a removed project o Fixed import problem on regexp that could lead to a recursion. o No longer giving NPE when debugging with the register view open o List access be treated as __getitem__() in the list -- patch from Tassilo Barth o Fix for invalid auto-self added when typing What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.5.1 Released
Hi All, Pydev 1.5.1 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Improvements in the AST rewriter * Improvements on the refactoring engine: o No longer using BRM o Merged with the latest PEPTIC o Inline local available o Extract method bug-fixes o Extract local on multi-line o Generating properties using coding style defined in preferences o Add after current method option added to extract method o A bunch of other corner-case situations were fixed * Bug-fixes: o Minor editor improvements o Adding default forced builtins on all platforms (e.g.: time, math, etc) which wouldn't be on sys.builtin_module_names on some python installations o Adding 'numpy' and 'Image' to the forced builtins always o Ctrl+1: Generate docstring minor fixes o Ctrl+1: Assign to local now follows coding style preferences properly o Exponential with uppercase E working on code-formatting o When a set/get method is found in code-completion for a java class an NPE is no longer thrown o Backspace properly treated in block mode o Setting IRONPYTHONPATH when dealing with Iron Python (projects could not be referenced) o No longer giving spurious 'statement has no effect' inside of lambda and decorators o Fixed new exec in python 3k o Fixed NPE when breakpoint is related to a resource in a removed project o Fixed import problem on regexp that could lead to a recursion. o No longer giving NPE when debugging with the register view open o List access be treated as __getitem__() in the list -- patch from Tassilo Barth o Fix for invalid auto-self added when typing What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aaaargh! global name 'eggz' is not defined
On Thu, Oct 29, 2009 at 6:48 PM, kj no.em...@please.post wrote: How can one check that a Python script is lexically correct? As my Python apps grow in complexity and execution, I'm finding it more often the situation in which a program dies after a lengthy (i.e. expensive) run because the execution reaches, say, a typo. Of course, this typo needs to be fixed, but I'd like to find out about it before I waste hours on a run that is bound to fail. Is there any way to do this? I imagine the answer is no, because given Python's scoping rules, the interpreter can't know about these things at compile time, but I thought I'd ask. Pydev has a code-analysis feature which works analyzing the code while you're typing. See: http://pydev.org/manual_adv_code_analysis.html Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.5.0 (Pydev Extensions open sourced)
Hi All, Today, Aptana is proud to announce that Pydev and Pydev Extensions have become a single plugin, with all the available contents open source (and freely available for anyone) in the 1.5.0 release (it's the same as 1.4.8 but with all the code open source). With that, Aptana believes in providing a better service and growth path for Pydev (which will still be actively maintained by Aptana), enabling anyone to provide contributions to the previously closed source product, while providing its Cloud customers a better service. Note for those already using Pydev or Pydev Extensions: The update site has been changed (see: http://www.pydev.org/download.html for more details) and if you had a previous install of Pydev Extensions, you need to uninstall it before installing the new version of Pydev. Note for developers: Pydev is now available under git (at github), and its previously used subversion will be disabled. Instructions on getting the source code from the new location is available at: http://www.pydev.org/developers.html Best Regards, -- Fabio Zadrozny Aptana http://aptana.com Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pydev 1.5.0 (Pydev Extensions open sourced)
Hi All, Today, Aptana is proud to announce that Pydev and Pydev Extensions have become a single plugin, with all the available contents open source (and freely available for anyone) in the 1.5.0 release (it's the same as 1.4.8 but with all the code open source). With that, Aptana believes in providing a better service and growth path for Pydev (which will still be actively maintained by Aptana), enabling anyone to provide contributions to the previously closed source product, while providing its Cloud customers a better service. Note for those already using Pydev or Pydev Extensions: The update site has been changed (see: http://www.pydev.org/download.html for more details) and if you had a previous install of Pydev Extensions, you need to uninstall it before installing the new version of Pydev. Note for developers: Pydev is now available under git (at github), and its previously used subversion will be disabled. Instructions on getting the source code from the new location is available at: http://www.pydev.org/developers.html Best Regards, -- Fabio Zadrozny Aptana http://aptana.com Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.8 Released
Hi All, Pydev and Pydev Extensions 1.4.8 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Created public API for starting/finishing debug server * Import based on unresolved variables works correctly when the document is changed * Ignore error works correctly when the document is changed * No longer showing the replace button for the search Release Highlights in Pydev: -- * Debugger can jump to line * Reloading module when code changes in the editor if inside debug session * Usability improvement on the preferences pages (editor, code-formatter, comment block and code-style showing examples) * Pythonpath reported in the main tab was not correct for ironpython launch configs * Main module tab in launch configuration was not appearing for jython * Multiline block comments considering the current indentation (and working with tabs) * Hover works correctly when the document is changed * The interactive console no longer uses the UI thread (so, it doesn't make eclipse halt anymore on slow requests to the shell) * The interactive console save history now saves the contents in the same way they're written * When creating a python run, the classpath was being set (and overridden), which should only happen in jython runs * Fixed issue where a line with only tabs and a close parenthesis would have additional tabs entered on code-formatting * A Pydev (Jython) project can coexist with a JDT project (and properly use its info -- only project references worked previously) * Many small usability improvements (editors improved) * Verbosity option added to run as unit-test * No longer using respectJavaAccessibility=False for jython * When there are too many items to show in the debugger, handle it gracefully What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Environment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Re: Strongly typed list
Hello, I am using eclips for python and i am facing a problem. I have many classes with many properties and want a list of objects from one of my declared classes. The problem is:When i am accessing any item from the list, the IDE does not know it's type because in python we do not declare the variable with it's type, so there is no auto complete and i have to go to the class to copy the attribute name. To make idea more clear: class AutomataBranch(object): def __init__(selfparams): self.Name=; self.nodes=[]; class LanguageAutomata(object): def __init__(selfparams): self.cfgAutomata=[];#This has AutomaBranch Type Now in any method in LanguageAutomata class if i wrote: cfgAutomata. Then it wont give me the Name attribute Is there any solution for that? Perhaps of there is some thing like C# ListAutomataBranch cfgAutomata such that the list wont accept items unless they are AutomataBranch will be good. Hello, Unfortunately, right now there is no way to gather that specific code completion in pydev -- because of the dynamic nature of python, that info is very hard to get. Best Regards, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse Pydev update error ?
On Fri, Jul 24, 2009 at 4:17 PM, Linuxguy123linuxguy...@gmail.com wrote: Does anyone know why this error is occurring in my Eclipse Pydev update ? An error occurred while collecting items to be installed No repository found containing: org.python.pydev/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.ast/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.core/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.debug/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.feature/org.eclipse.update.feature/1.4.7.2843 No repository found containing: org.python.pydev.help/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.jython/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.parser/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.refactoring/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.templates/osgi.bundle/1.4.7.2843 No repository found containing: org.python.pydev.customizations/osgi.bundle/1.4.7.2843 This usually happens if there was some connection error during the update. You can try other mirrors (see: http://pydev.blogspot.com/2009/07/pydev-147-released.html for the new added mirrors). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.7 Released
Hi All, Pydev and Pydev Extensions 1.4.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * The interactive console can be used on the remote debugger * Remote debugger properly redirects contents from the server on multiple runs. * Providing context-independent completions when other completions are not available (until now, it only gave those completions for method parameters) * The number of chars required to show the context-insensitive completion can now be customized. * Fixed problem with Eclipse 3.5: Invalid Thread Access when trying to rename a class Release Highlights in Pydev: -- * Iron Python support * Fixed issue when configuring interpreter on Eclipse 3.3 and 3.2 (was using API only available in 3.4) * Google App Engine o Popup menus for google app engine are now working with eclipse 3.2 o Fixed issues when google app engine project has spaces in path * Launching o Ctrl+F9 can be used to run as unit-test and select which tests will be run o F9 will now run the current editor based on the project type o Changed run icons o Run configurations can be created for the project o Run as unit-test can have --filter and --tests as a parameter set in the run configuration * Shift left can now shift even when there are less chars than the required indent string * Top-level modules on .egg files are now properly recognized * Auto-config fixed * Fixed problem when .pydevproject was not a parseable xml file (the pydev package explorer wouldn't work because of that) * When a new interpreter is created, it's properly selected in the tree * Code-completion better heuristic when analyzing function return that's called on self. * Code-completion in the interactive console now handles import sections correctly * Code formatter: Spaces after square and curly braces are no longer changed when an unary operator is found afterwards * Fixed problem when recognizing encodings (regexp was not correct) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Environment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Re: Pydev 1.4.7 Released
Yes. On Thu, Jul 9, 2009 at 3:32 AM, Morten Nygaard Aasnesmorten.aas...@gmail.com wrote: On 2009-07-08, Fabio Zadrozny fabi...@gmail.com wrote: Hi All, Pydev and Pydev Extensions 1.4.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Nice! Will this work in Eclipse 3.5 as well? -- Morten Nygaard Åsnes http://twitter.com/mortenaa http://identi.ca/mortenaa -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.7 Released
Hi All, Pydev and Pydev Extensions 1.4.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * The interactive console can be used on the remote debugger * Remote debugger properly redirects contents from the server on multiple runs. * Providing context-independent completions when other completions are not available (until now, it only gave those completions for method parameters) * The number of chars required to show the context-insensitive completion can now be customized. * Fixed problem with Eclipse 3.5: Invalid Thread Access when trying to rename a class Release Highlights in Pydev: -- * Iron Python support * Fixed issue when configuring interpreter on Eclipse 3.3 and 3.2 (was using API only available in 3.4) * Google App Engine o Popup menus for google app engine are now working with eclipse 3.2 o Fixed issues when google app engine project has spaces in path * Launching o Ctrl+F9 can be used to run as unit-test and select which tests will be run o F9 will now run the current editor based on the project type o Changed run icons o Run configurations can be created for the project o Run as unit-test can have --filter and --tests as a parameter set in the run configuration * Shift left can now shift even when there are less chars than the required indent string * Top-level modules on .egg files are now properly recognized * Auto-config fixed * Fixed problem when .pydevproject was not a parseable xml file (the pydev package explorer wouldn't work because of that) * When a new interpreter is created, it's properly selected in the tree * Code-completion better heuristic when analyzing function return that's called on self. * Code-completion in the interactive console now handles import sections correctly * Code formatter: Spaces after square and curly braces are no longer changed when an unary operator is found afterwards * Fixed problem when recognizing encodings (regexp was not correct) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Environment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python debugger
Hi, Could you suggest some python debuggers? Thanks, Srini Pydev has a debugger that supports the common debugger features (watches, multiple threads, breakpoints, conditional breakpoints, step in, out, etc -- http://fabioz.com/pydev/manual_adv_debugger.html ), and pydev extensions adds to that a remote debugger ( http://fabioz.com/pydev/manual_adv_remote_debugger.html ) and a console ( http://fabioz.com/pydev/manual_adv_debug_console.html ). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux
On Fri, Jun 19, 2009 at 12:22 AM, Wei, Xiaohaiwist...@gmail.com wrote: Thanks for your reply. where is the error log? I can not find it at /var/log Take a look at http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug (it gives the details on how to find the needed info). I have a virtual network card to bridge kvm virtual machine. will it cause problem? Not sure... What I know is that pydev creates a shell and connects to it through 127.0.0.1, so, if that fails, that could be a problem. as you said configuration of interpretor, how should I configure the interpretor? Please follow the getting started tutorial for that: http://fabioz.com/pydev/manual_101_root.html Cheers, Fabio Thanks James On Fri, Jun 19, 2009 at 9:32 AM, Fabio Zadrozny fabi...@gmail.com wrote: yes, the same problem even on an empty program. every file has the same problem. for example, if I new a file and input the following: import os os. after I input '.', it will pop up the window, and i can select the function of os module or continue input. but after that, no action can be taken for this file unless I switch to other files and then switch back. If it's in pydev, there's probably some problem in your interpreter configuration (when you do os. it'll spawn a shell to gather the completions -- but that should be pretty quick unless you have some firewall that's preventing the communication or the spawn didn't go well -- check your error log to see if you have any errors... In linux I've seen some problems when connecting to 127.0.0.1 while having ipv6 enabled or in a network card misconfiguration that could cause problems too). Cheers, Fabio On Thu, Jun 18, 2009 at 10:57 AM, Tyler Laing trinio...@gmail.com wrote: Do you experience the same problem even on an empty program file or is it limited to just one file? -Tyler On Wed, Jun 17, 2009 at 7:47 PM, Wei, James wist...@gmail.com wrote: On Jun 18, 10:45 am, Wei, James wist...@gmail.com wrote: When I am editing python program with SPE, I found that SPE will freeze when it is doing auto-completion. The behavior is very strange that I can not edit the file again. If I switch to another file and then switch back, I can edit it again. So I switch to eclipse+pydev, but I found the same thing happen. So I think it is not the problem of SPE or eclipse or pydev. If I disable auto-completion function in SPE or Eclipse+PyDev, it will not freeze any longer. Anybody can give me some hints? I am using Ubuntu 8.10 and updated to latest. All packages is installed through package manager. the only thing I googled related with it is http://www.nabble.com/-pydev---Users--jython-2.5b1-Froze-eclipse-on-autocomplete-td21394274.html but I think they are different. -- http://mail.python.org/mailman/listinfo/python-list -- Visit my blog at http://oddco.ca/zeroth/zblog -- Best wishes to you. Yours sincerely Xiaohai Wei wist...@ustc.edu -- http://mail.python.org/mailman/listinfo/python-list -- Best wishes to you. Yours sincerely Xiaohai Wei wist...@ustc.edu -- http://mail.python.org/mailman/listinfo/python-list
Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux
yes, the same problem even on an empty program. every file has the same problem. for example, if I new a file and input the following: import os os. after I input '.', it will pop up the window, and i can select the function of os module or continue input. but after that, no action can be taken for this file unless I switch to other files and then switch back. If it's in pydev, there's probably some problem in your interpreter configuration (when you do os. it'll spawn a shell to gather the completions -- but that should be pretty quick unless you have some firewall that's preventing the communication or the spawn didn't go well -- check your error log to see if you have any errors... In linux I've seen some problems when connecting to 127.0.0.1 while having ipv6 enabled or in a network card misconfiguration that could cause problems too). Cheers, Fabio On Thu, Jun 18, 2009 at 10:57 AM, Tyler Laing trinio...@gmail.com wrote: Do you experience the same problem even on an empty program file or is it limited to just one file? -Tyler On Wed, Jun 17, 2009 at 7:47 PM, Wei, James wist...@gmail.com wrote: On Jun 18, 10:45 am, Wei, James wist...@gmail.com wrote: When I am editing python program with SPE, I found that SPE will freeze when it is doing auto-completion. The behavior is very strange that I can not edit the file again. If I switch to another file and then switch back, I can edit it again. So I switch to eclipse+pydev, but I found the same thing happen. So I think it is not the problem of SPE or eclipse or pydev. If I disable auto-completion function in SPE or Eclipse+PyDev, it will not freeze any longer. Anybody can give me some hints? I am using Ubuntu 8.10 and updated to latest. All packages is installed through package manager. the only thing I googled related with it is http://www.nabble.com/-pydev---Users--jython-2.5b1-Froze-eclipse-on-autocomplete-td21394274.html but I think they are different. -- http://mail.python.org/mailman/listinfo/python-list -- Visit my blog at http://oddco.ca/zeroth/zblog -- Best wishes to you. Yours sincerely Xiaohai Wei wist...@ustc.edu -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.6 Released
Hi All, Pydev and Pydev Extensions 1.4.6 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Auto-import for from __future__ import with_statement will add a 'with' token instead of a with_statement token * Globals browser improved (only for Eclipse 3.3 onwards, older versions will have the old interface): o Can filter with working sets o Can match based on module names. E.g.: django.A would match all the django classes/methods/attributes starting with 'A' Release Highlights in Pydev 1.4.6: -- * Google App Engine: customized setup and management of Google App Engine projects * String substitution variables can be used for pythonpath and launch config. * The interpreter can be referred from a user-editable name * Submodules shown on import completion (e.g.: from x|-- request completion here will show xml, xml.dom, xml.etree, etc) * os.path added to default forced builtins * Showing better errors when code-completion fails * Fixed problem finding definition for java class when the constructor was referenced. * Fixed recursion error on Python 3.0 grammar * Jython debugger - local variables are properly updated * Multiple forced builtins can be added/removed at once * Python 2.6 grammar: kwarg after unpacking arg list * Python 3.0 grammar: star expr on for * Fixed problem on code-completion when file is not in the workspace (SystemASTManager cannot be cast to ASTManager) * Not throwing IllegalCharsetNameEx on illegal encoding declaration anymore (patch by Radim Kubacki) * __future__ imports are always added/reorganized as the 1st import in the module * Code-completion in Jython recognizes that a method get/setName should be available as a 'name' property. * Finding 'objects' for django * Pydev Package Explorer o Added filter for the python nodes o Showing configuration errors o Showing the interpreter info What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
Pydev 1.4.6 Released
Hi All, Pydev and Pydev Extensions 1.4.6 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Auto-import for from __future__ import with_statement will add a 'with' token instead of a with_statement token * Globals browser improved (only for Eclipse 3.3 onwards, older versions will have the old interface): o Can filter with working sets o Can match based on module names. E.g.: django.A would match all the django classes/methods/attributes starting with 'A' Release Highlights in Pydev 1.4.6: -- * Google App Engine: customized setup and management of Google App Engine projects * String substitution variables can be used for pythonpath and launch config. * The interpreter can be referred from a user-editable name * Submodules shown on import completion (e.g.: from x|-- request completion here will show xml, xml.dom, xml.etree, etc) * os.path added to default forced builtins * Showing better errors when code-completion fails * Fixed problem finding definition for java class when the constructor was referenced. * Fixed recursion error on Python 3.0 grammar * Jython debugger - local variables are properly updated * Multiple forced builtins can be added/removed at once * Python 2.6 grammar: kwarg after unpacking arg list * Python 3.0 grammar: star expr on for * Fixed problem on code-completion when file is not in the workspace (SystemASTManager cannot be cast to ASTManager) * Not throwing IllegalCharsetNameEx on illegal encoding declaration anymore (patch by Radim Kubacki) * __future__ imports are always added/reorganized as the 1st import in the module * Code-completion in Jython recognizes that a method get/setName should be available as a 'name' property. * Finding 'objects' for django * Pydev Package Explorer o Added filter for the python nodes o Showing configuration errors o Showing the interpreter info What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored
New submission from Fabio Zadrozny fab...@users.sourceforge.net: Setting the complete PYTHONPATH in Python 3.x does not work (reported initially for Pydev: https://sourceforge.net/tracker/index.php?func=detailaid=2767830group_id=85796atid=577329 ). Checked on 3.0.1 and 3.1a2. I'm not sure if the paths must be the same, but when I did change the path of the project, the bug was not always reproduced. I've reproduced it on Windows XP SP3. To reproduce, extract the ProjectStructure so that you have a path as c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py Then considering your python install is at d:\bin\Python301, set the pythonpath as: [C:\temp]set pythonpath=C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src;C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_a\src;D:\bin\Python301;D:\bin\Python301\DLLs;D:\bin\Python301\lib;D:\bin\Python301\lib\plat-win;D:\bin\Python301\lib\site-packages And run the command below: [C:\temp]d:\bin\Python301\python.exe c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py Running code is 'c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py' The contents of 'sys.path' is: c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src C:\WINDOWS\system32\python30.zip D:\bin\Python301\DLLs D:\bin\Python301\lib D:\bin\Python301\lib\plat-win D:\bin\Python301 D:\bin\Python301\lib\site-packages Traceback (most recent call last): File c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py, line 11, in module from testmod_a import testfunc ImportError: No module named testmod_a Note how the module was not properly imported... Now, if the PYTHONPATH is set without the system folders: [C:\temp]set pythonpath=C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src;C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_a\src Running the command line: [C:\temp]d:\bin\Python301\python.exe c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py Running code is 'c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src\testcaller_a.py' The contents of 'sys.path' is: c:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_b\src C:\Documents and Settings\Fabio\Desktop\temp_pydev\ProjectStructure\proj_a\src C:\WINDOWS\system32\python30.zip D:\bin\Python301\DLLs D:\bin\Python301\lib D:\bin\Python301\lib\plat-win D:\bin\Python301 D:\bin\Python301\lib\site-packages 'test_print()' in testmod_a.testfunc is called. Properly works. Note that on Python 2.x this works. -- components: Interpreter Core, Windows files: ProjectStructure.zip messages: 87151 nosy: fabioz severity: normal status: open title: When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored type: behavior versions: Python 3.0, Python 3.1 Added file: http://bugs.python.org/file13874/ProjectStructure.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5924 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Python interpreter speed
Further, I have an accounting software which was previously in java, but now in python and the performance gain is ausom. Yes it depends on how we write the code but comparing the 2 at least at the middle layer and front-end (pygtk) python is faster than java. Infact I am most certain that swing is not even 50% as fast as pygtk or pyqt. Actually, pygtk and pyqt are mostly wrappers for c/c++ code (wrapping c/c++ is much easier in python than in java... so, that example ends up comparing java to c/c++ and not python). Java is usually faster in general (because of the many optimizations SUN did in the Java VM through many JIT techniques), although it has a slower startup time (which is a drawback of that same JIT), so, some applications can actually be faster in python just because of the faster startup time (like command line utilities), but for applications that keep running for more time, Java is usually faster -- even more if you don't use a mix of python and c/c++. Still, as you noted, if you take into account that you can rewrite your slow parts of the application in a faster language and just make python bindings for it, that advantage is largely diminished (while still having a fast startup time), and as you profile you can see that it's usually just 1% of the application that takes up 90% of the time. So, it's not a major drawback, and if you develop faster in python then it's worth it... (but I'd hardly say that rewriting from java to python will make it faster... if it becomes faster it's because you used better algorithms). Anyways, a program is usually faster/slower because of your choice of program structure and algorithms and not because of the speed of the language anyways. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: What IDE support python 3.0.1 ?
I want to start learning python and not wanna waste my time learning python 2.x ,so i need your advise to what IDE to use for python 3.0.1 Pydev supports Python 2.x and 3.x. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.5 Released
Hi All, Pydev and Pydev Extensions 1.4.5 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Derived resources are no longer analyzed * No longer giving spurios warnings when file being analyzed is removed Release Highlights in Pydev: -- * Better error handling in the grammar * Code Formatter o Can be applied from context menu (recursively applied for folders) o Can trim whitespaces from the end of the lines o Can add new a line to the end of the file o Can automatically apply code-formatting on save o Fixed issues with unary operators and exponential o Fixed issues where parenthesis was lost if no closing parenthesis was available * Python 3.0 o Parser supporting unicode identifiers o Star expr recognized * Python 3.1 version acknowledged (and proper grammar used) * Pydev package explorer o Can show working sets as top-level elements o Folders without __init__.py are no longer shown as packages * Interactive console o When waiting for user input, the prompt is not shown o Console initial commands compatible with Python 3.0 o Timeout for starting console communication while the shell is not fully initilized o More info is available if connection fails * Alt+R working (mnemonics set for pydev contributed menus) * With Ctrl+2, matches will no longer take into acount the case * Code completion: Can get args from docstring when '*' is present * Better heuristics for automatic insertion of self and import * Fixed problem configuring external jars and zip files * Launch getting interpreter from project on default config * After a parenthesis, 'n' indentation levels may be applied (patch by Radim Kubacki) * .pyc files are now marked as derived (note that this will only happen when they're changed) * Fixed debugger issue with Jython 2.5b3 * Jython: completions working for static members access * Hover works on Eclipse 3.2 What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
Pydev 1.4.5 Released
Hi All, Pydev and Pydev Extensions 1.4.5 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Derived resources are no longer analyzed * No longer giving spurios warnings when file being analyzed is removed Release Highlights in Pydev: -- * Better error handling in the grammar * Code Formatter o Can be applied from context menu (recursively applied for folders) o Can trim whitespaces from the end of the lines o Can add new a line to the end of the file o Can automatically apply code-formatting on save o Fixed issues with unary operators and exponential o Fixed issues where parenthesis was lost if no closing parenthesis was available * Python 3.0 o Parser supporting unicode identifiers o Star expr recognized * Python 3.1 version acknowledged (and proper grammar used) * Pydev package explorer o Can show working sets as top-level elements o Folders without __init__.py are no longer shown as packages * Interactive console o When waiting for user input, the prompt is not shown o Console initial commands compatible with Python 3.0 o Timeout for starting console communication while the shell is not fully initilized o More info is available if connection fails * Alt+R working (mnemonics set for pydev contributed menus) * With Ctrl+2, matches will no longer take into acount the case * Code completion: Can get args from docstring when '*' is present * Better heuristics for automatic insertion of self and import * Fixed problem configuring external jars and zip files * Launch getting interpreter from project on default config * After a parenthesis, 'n' indentation levels may be applied (patch by Radim Kubacki) * .pyc files are now marked as derived (note that this will only happen when they're changed) * Fixed debugger issue with Jython 2.5b3 * Jython: completions working for static members access * Hover works on Eclipse 3.2 What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Syntax disagreement between IDLE and pydev?
IDLE (3.1a1) accepts a,*b = re.split(str,pattern) and does the right thing ('a' gets the first result and 'b' gets the rest). pydev configured to use the exact same Python 3.1a1 runtime doesn't like this syntax (in my source, column 23 is the asterisk): Encountered * at line 32, column 23. Was expecting one of: NEWLINE ... ; ... = ... += ... -= ... *= ... /= ... //= ... %= ... = ... |= ... ^= ... = ... = ... **= ... lambda ... not ... + ... - ... ~ ... ( ... [ ... { ... False ... True ... None ... NAME ... HEXNUMBER ... OCTNUMBER ... DECNUMBER ... FLOAT ... COMPLEX ... \' ... \ ... \'\'\' ... \\\ ... \' ... \ ... \'\'\' ... \\\ ... Can I assume pydev is wrong or am I missing something? Tthis has already been fixed for 1.4.5 (provided you set your project as python 3.0). You can get the nightly and check it (as that should be the released version: http://pydev.blogspot.com/2009/03/new-pydev-release-soon-call-for-testers.html ) Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: i have to change default tab length in pydev
Most such problems are caused by mixing tabs and spaces in the same file. Pick one style and be consistent, and you'll be in good shape. My approach is to always expand tabs. My tab key simply gets me to a convenient column, there never are any tabs in my source files. (I don't use either notepad++ or pydev, but most editors I have used or written can be configured to use spaces) Just as a note, both notepad++ and pydev do support using spaces for tabs. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Unit testing frameworks
Hi Andew, not exactly a framework, but useful while working on small projects - you can run tests from inside eclipse (using the pydev plugin for python). it's easy to run all tests or some small subset (although it is a bit buggy for 3.0). What exactly is not working with 3.0? (couldn't find any related bug report on that). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Unit testing frameworks
sorry for not reporting a bug - i assumed you'd know (and the workarounds described above meant i wasn't stalled). i also have eclipse 3.4.2 with pydev 1.4.4.2636 on a separate machine (ie new versions), and i can try there if you want (it will take a while to get the source there, but is not a problem). No need... I can probably reproduce it easily here. I've added the bug report (should be fixed for the next release: https://sourceforge.net/tracker/?func=detailaid=2713178group_id=85796atid=577329 ) Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
[issue5460] Python 3.0 grammar is ambiguous with the addition of star_expr
New submission from Fabio Zadrozny fab...@users.sourceforge.net: Note: A discussion related to this bug was raised on: http://mail.python.org/pipermail/python-dev/2009-March/086939.html The following constructs are ambiguous in the Python 3.0 grammar: arglist: (argument ',')* (argument [','] |'*' test (',' argument)* [',' '**' test] |'**' test ) argument: test [comp_for] test: or_test or_test: and_test and_test: not_test not_test: 'not' not_test | comparison comparison: star_expr star_expr: ['*'] expr So, with that construct, having call(arglist) in a format: call(*test), the grammar would find it to be consumed in the argument construction (because of the star_expr) and not in the arglist in the '*' test. Python seems to be lucky in this because it seems to be getting in the correct choice, when that's not really possible from the grammar -- maybe it tries the 2nd construct before the 1st and succeeds because of that? It seems to me that this could actually be a bug in the Python grammar generator. It doesn't seem possible to disambiguate that without semantic actions later on, but the grammar could be changed to disambiguate that. I've used the constructs below in a JavaCC grammar successfully (and I think Python could use the same constructs): expr_stmt: testlist_star_expr (augassign (yield_expr|testlist) | ('=' (yield_expr|testlist_star_expr))*) testlist_star_expr: (test|star_expr) (',' test|star_expr)* [','] star_expr: '*' expr -- components: Interpreter Core message_count: 1.0 messages: 83395 nosy: fabioz nosy_count: 1.0 severity: normal status: open title: Python 3.0 grammar is ambiguous with the addition of star_expr type: feature request versions: Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Eclipse And PyDev
Thanks. I noticed that when I was on my windows box at work and I would check it and click apply then ok and when I go back to those prefs and it isn't checked. I did that a few times. I will try it on my Linux box tomorrow at home and see if I have the same results. If it doesn't work for you, please report a bug (saying which are the specific versions of eclipse/pydev you're using. See: http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug ) Thanks, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse And PyDev
I realize this question may not belong here but I am going to ask anyway to the current users of Eclipse and PyDev. It's regarding the auto-complete feature. Say you want to type sys.path.append('yada yada yada'), using say Komodo or IDLE. When you get to sys.path.ap and type a (, it will complete the .append. Is there a setting somewhere in Eclipse where I can do that too. Currently if I type sys.path.ap, it ends up as being sys.path.ap(. Any ideas? I know I am seriously nitpicking, but I am spoiled by other editors and I really like Eclipse so far after giving it a second shot with PyDev. You have to use ctrl+space to request completions (you can also select that pydev gets the completions while you're typing without having to request it to use that mode, select Autocomplete on all letters in windows preferences pydev editor code completion) Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.4 Released
Hi All, Pydev and Pydev Extensions 1.4.4 have been released -- note that the release already happened 4 days ago... :) Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev: -- This release fixes a critical bug when configuring the interpreter (if no environment variables were specified, it was not possible to configure an interpreter) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
Pydev 1.4.4 Released
Hi All, Pydev and Pydev Extensions 1.4.4 have been released -- note that the release already happened 4 days ago... :) Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev: -- This release fixes a critical bug when configuring the interpreter (if no environment variables were specified, it was not possible to configure an interpreter) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Why deepcopy with class with __getattr__ makes the tracing go nuts?
Anyone has any idea why the code attached does not work? Basically, after doing the deepcopy of the class that has __getattr__ overridden, the python tracing facilities don't seem to work anymore. In the code-attached, if the deepcopy is removed, all works as expected (or if __deepcopy__ is overridden too). Thanks, Fabio p.s. I've discovered this while trying to debug a real-world application and the debugger stopped working after making that deepcopy. fast_tests2.py Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.3 Released
Hi All, Pydev and Pydev Extensions 1.4.3 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Fixed racing conditions in the context-insensitive indexing which could corrupt the index. * Search references working on Eclipse 3.3 and Eclipse 3.4 * Lambda properly treated as a new context for code-analysis * Analysis is now recognizing __name__ * Analysis now marks variables used when accessed with augstore (+=) * Some definitions were not properly indexed on some assign cases Release Highlights in Pydev: -- * Interactive console The interpreter to be used can be chosen * New modules can be created from templates * Interpreter configuration improved! o Environment variables can be specified for a given interpreter o Canceling operation now works correctly * Debugger o Variables correctly gotten on Jython 2.1 / 2.2 o Using globals as an union of original globals+locals so that generator expressions can be evaluated o Breakpoints only opened on double-click (no longer on select) * The project preferences are now applied even if the page to configure the project is not visible. * Jython 2.5b1 working (problem with sitecustomize) * Wrap paragraph fixed * Set comprehension working on Python 3.0 parsing * Find definition working when a module outside of the known pythonpath is found * Source folders were not properly found sometimes -- when workspace was not properly refreshed * Invalid modules could get in the memory * Getting the grammar version for a project could be wrong (and could loose its indexing at that time) * Multiple external zip files can be added at once to the pythonpath * nonlocal added to keywords * Fixed annoying problem where cursor was jumping when it shouldn't (outline) * Fixed problem where the breakpoint could be lost (now, playing safe and matching anything in the file if the context cannot be gotten) * Ctrl + 2 + --reindex can be used to reindex all the opened projects if the indexing becomes corrupt * Changing nothing on project config and pressing OK no longer reanalyzes the modules What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Why doesn't eval of generator expression work with locals?
Hi All, Anyone knows why the code below gives an error? global_vars = {} local_vars = {'ar':[foo, bar], 'y':bar} print eval('all((x == y for x in ar))', global_vars, local_vars) Error: Traceback (most recent call last): File C:\temp\work\test\src\a.py, line 3, in module print eval('all((x == y for x in ar))', global_vars, local_vars) File string, line 1, in module File string, line 1, in genexpr NameError: global name 'y' is not defined Note that if a list is used instead of a generator it works... Thanks, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Why doesn't eval of generator expression work with locals?
On Tue, Jan 27, 2009 at 9:51 PM, James Mills prolo...@shortcircuit.net.au wrote: On Wed, Jan 28, 2009 at 9:31 AM, Fabio Zadrozny fabi...@gmail.com wrote: Anyone knows why the code below gives an error? global_vars = {} local_vars = {'ar':[foo, bar], 'y':bar} print eval('all((x == y for x in ar))', global_vars, local_vars) y is undefined in your generator expression. Yes... but why? It seems to me like it should be defined (if I put the locals in the globals it finds it... seems very weird to me) Why are you using eval ? I'm using it to evaluate what the user entered on a watch expression in the Pydev debugger (bug: https://sourceforge.net/tracker2/?func=detailaid=2541355group_id=85796atid=577329 )... That's just a sample to reproduce it without any dependencies. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: Why doesn't eval of generator expression work with locals?
I think you can work around your problem by using the same dictionary for both locals and globals. The locals/globals distinction is not useful in your circumstances. For example, the Python interpreter has these the same: globals() is locals() True Interesting... In my case, what I actually do (in the Pydev debugger) is that I find the frame where the code should be evaluated and then with the selected frame I do: frame = findframe(...) ... eval(expression, frame.f_globals, frame.f_locals) So, in that case, you think that instead of using frame.f_globals I should use: updated_globals = dict() updated_globals.update(frame.f_globals) updated_globals.update(frame.f_locals) #locals later because it has precedence over the actual globals eval(expression, updated_globals, frame.f_locals) Is that it? -- I think that eval(expression, frame.f_locals, frame.f_locals) wouldn't work as expected in my actual case... (and I can't force the frame.f_globals and frame.f_locals to be the same) Thanks, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.4.2 Released
Hi All, Pydev and Pydev Extensions 1.4.2 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Context insensitive code-completion working with multiple interpreters * Fixed code analysis problem on staticmethod * Giving proper warning on version mismatch * Remote debugger fix Release Highlights in Pydev: -- * Interpreter can be configured on a per-project basis * Jython 2.5b0 properly supported * Find definition working for Jython builtins * Run: can be python/jython even if it doesn't match the interpreter configured for the project * Fixed problem on find definition if one of the interpreters was not configured * Fixed halting condition that could occur on code-completion * __file__ available in code-completion * Reorganized preferences (removed editor preferences from the root) * Preferences for showing hover info * Fixed problem when formatting binary operator that was in a new line * When converting spaces to tabs (and vice-versa), the number of spaces for each tab is asked * Debugger o When finishing the user code debugging, it doesn't step into the debugger code anymore o Fixes for working with Jython o Fix for Python 3.0 integration (could not resolve variables) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
Pydev 1.4.2 Released
Hi All, Pydev and Pydev Extensions 1.4.2 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - * Context insensitive code-completion working with multiple interpreters * Fixed code analysis problem on staticmethod * Giving proper warning on version mismatch * Remote debugger fix Release Highlights in Pydev: -- * Interpreter can be configured on a per-project basis * Jython 2.5b0 properly supported * Find definition working for Jython builtins * Run: can be python/jython even if it doesn't match the interpreter configured for the project * Fixed problem on find definition if one of the interpreters was not configured * Fixed halting condition that could occur on code-completion * __file__ available in code-completion * Reorganized preferences (removed editor preferences from the root) * Preferences for showing hover info * Fixed problem when formatting binary operator that was in a new line * When converting spaces to tabs (and vice-versa), the number of spaces for each tab is asked * Debugger o When finishing the user code debugging, it doesn't step into the debugger code anymore o Fixes for working with Jython o Fix for Python 3.0 integration (could not resolve variables) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
[issue4716] Python 3.0 halts on shutdown when settrace is set
New submission from Fabio Zadrozny fab...@users.sourceforge.net: In Python 3.0, the interpreter will not shutdown properly after setting a tracing function and something goes into stdout. The code attached shows the problem in action: just execute it and notice how the interpreter will be kept running after the code has been executed. There are some more things that need to be considered: - If the print('here') is not called, it will shutdown - If BOTH the print('here') and the sys.settrace(None) is not called, it will NOT shutdown Note: I've marked the bug as crash because it's halting, but maybe there could be a better alternative for it... -- components: Interpreter Core files: tracing_test.py messages: 78169 nosy: fabioz severity: normal status: open title: Python 3.0 halts on shutdown when settrace is set type: crash versions: Python 3.0 Added file: http://bugs.python.org/file12422/tracing_test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4717] execfile conversion is not correct
New submission from Fabio Zadrozny fab...@users.sourceforge.net: In 2to3, execfile(file, globals, locals) is translated to exec(open(file).read(), globals, locals) But that's not correct, as the actual file from the executed code gets wrong with that. The correct thing would be: exec(compile(open(file).read(), file, 'exec'), globals, locals) So that the name of the file remains correct in the module that's being run. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 78170 nosy: fabioz severity: normal status: open title: execfile conversion is not correct versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4717 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4719] sys.exc_clear() not flagged in any way
New submission from Fabio Zadrozny fab...@users.sourceforge.net: sys.exc_clear() does not seem to exist in Python 3.0 anymore, so, a way to deal with it should be provided (maybe put a #TODO comment and point to somewhere explaining what happened?). -- components: 2to3 (2.x to 3.0 conversion tool) messages: 78173 nosy: fabioz severity: normal status: open title: sys.exc_clear() not flagged in any way versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4719] sys.exc_clear() not flagged in any way
Fabio Zadrozny fab...@users.sourceforge.net added the comment: When created it was already marked as a 2to3 issue (in the components), so, for clarity, yes: it's a 2to3 issue (what should the user do with that when porting... I think that the 2to3 should do something regarding that... maybe just changing it for a 'pass'?). Also, the docs say it was removed, but they don't leave clear that it's not needed because no info is stored anymore (because that was needed just to clear the frame that was kept alive when an exception was raised -- so, note that I'm assuming that issue was fixed and it's not needed anymore, but the docs don't make that clear) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4719] sys.exc_clear() not flagged in any way
Fabio Zadrozny fab...@users.sourceforge.net added the comment: 2to3 doesn't deal with anything else that has been removed. That seems a bit odd for me... isn't it the perfect place for that? (it doesn't even need to change the code for a pass, but it could give the user some warning about it at that specific line -- maybe with a pointer to a place explaining why it was removed). I think that if 2to3 flags it, it can make the porting cycle faster than having to run the code (and expecting a huge code-coverage) to get those -- especially as sys.exc_clear is mostly used in cases where you are expecting some exception... and I believe not everyone gives as much emphasis for exception cases as they'd for the cases in the 'regular flow' ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4719 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4705] python3.0 -u: unbuffered stdout
Fabio Zadrozny fab...@users.sourceforge.net added the comment: Just as a note, Pydev needs the unbuffered output (or it cannot get it). This has been brought up in the python-dev list: http://mail.python.org/pipermail/python-dev/2008-December/084436.html As a workaround for now I'm using: sys.stdout._line_buffering = True, but that doesn't seem right as it's accessing an internal attribute. -- nosy: +fabioz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4705 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4289] Python 2.6 installer crashes when selecting 'advanced' and cancelling it
New submission from Fabio Zadrozny [EMAIL PROTECTED]: When installing python-2.6.msi it crashes when doing the following steps on a windows XP (32 bit). I'm not sure if all those steps are needed, but that's how it crashed here: - start python-2.6.msi - check 'install just for me' - change the destination directory (d:\bin\Python26) - click on 'advanced' - click on cancel - confirm cancel At this point windows presents a message: to help protect your computer, Windows has closed this program. -- components: Installation messages: 75653 nosy: fabioz severity: normal status: open title: Python 2.6 installer crashes when selecting 'advanced' and cancelling it type: crash versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: developing python extensions with CDT and Pydev in Eclipse
I have tried all of those things (on Linux), but without success. Has anyone tried this under Linux? Have you asked on CDT? (the basic idea is that python behaves as a regular program launched, so, that should be something straightforward to do). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: developing python extensions with CDT and Pydev in Eclipse
Has anyone been able to use both Pydev and CDT to debug extension modules? The question was asked about a year ago on this list, and I am hoping that someone has figured it out in meantime. Previous answers on that: https://sourceforge.net/forum/message.php?msg_id=4268986 https://sourceforge.net/mailarchive/forum.php?thread_name=47347f490810251544k2794aeeak175ac23c4c57fbf3%40mail.gmail.comforum_name=pydev-users Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Re: free IDE with removing import and refactoring
I am looking for a python IDE which can remove my unused imports, and can do basic refactoring under windows. If you have Pydev Extensions, it analyzes your source for undefined tokens and is able to make the imports for you (but it doesn't remove the unused imports... especially because this can be very tricky in Python, where tokens can be imported from one module to another -- different from java, where the only thing you import are actually the classes, so, in practice, the effectiveness in Python for that feature is not the same as in Java, still, being able to write the imports for you is really useful: http://fabioz.com/pydev/manual_adv_complnoctx.html and ctrl+shift+O for it to write the imports for the undefined tokens) Also, basic refactoring is available. Besides, an installation howto would be useful for me. Start here: http://fabioz.com/pydev/manual_101_root.html Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list
Pydev 1.3.24 Released
Hi All, Pydev and Pydev Extensions 1.3.24 have been released This is a high-priority release to fix some blocker bugs (that's why it was released in such a short time from the last release) Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: - Code-analysis: Import was not recognized on code-analysis on some specific cases Release Highlights in Pydev: -- * Code-completion: when a relative import was used from __init__ and the imported module used a token from the __init__ in a 'full' way, pydev did not recognize it * Debugger: Fixed debugger halting problem * Debugger and Jython: Debugger working with Jython (itertools and pid not available) What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html