PyDev 12.0.0 Released

2024-02-04 Thread Fabio Zadrozny via Python-list
 PyDev 12.0.0 Release Highlights

   -

   *Debugger*
   - *sys.monitoring* is now used in Python 3.12 (and it's *much* faster
  than any previous version).
  - A new setting was added in the *Preferences > PyDev > Debug* to
  debug *just my code* (meaning that when stepping it will just step
  into files under PyDev source folders).
  - Improved the step into function (activated with *Ctrl+Alt* then *Click
  function* to step into).
  - Support for Python 3.6 and 3.7 was dropped (only Python 3.8 onwards
  is now supported).
   -

   *Ruff*
   - Ruff can now be used as a code formatter.
  - The latest ruff (*0.1.x*) is now supported (as it broke backward
  compatibility in its *0.1.0* version).
   -

   *Code Analysis*
   - Fixes in semantic analysis to better determine if strings in
  annotations should be checked for symbols or not.

Note: *Only Python 3.8 onwards is now supported*
* *Python 3.6* and *3.7* support is now *dropped* (please use *PyDev 11.0.3*
if you still use it).
About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python (also
available for Python on Visual Studio Code).

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 11.0.2 Released

2023-10-29 Thread Fabio Zadrozny via Python-list
 PyDev 11.0.2 Release Highlights

Continuing with the updates to Python 3.12, the new release integrates
the latest version of typeshed (so, *from typing import override* is
now properly recognized).

Also, it's now possible to specify vmargs in the python interpreter
(and not just in the launch configuration).

For Python 3.11 onwards, *-Xfrozen_modules=off* is now
set in the vm arguments by default.
About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python (also
available for Python on Visual Studio Code).

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-06 Thread Fabio Zadrozny
You could try other debuggers (possibly doing a remote debug session or
attach to pid).

Eclipse-PyDev: https://www.pydev.org/manual_adv_remote_debugger.html
VsCode-python: https://code.visualstudio.com/docs/python/debugging
PyCharm:
https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html



Em dom., 30 de mai. de 2021 às 14:43,  escreveu:

> I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3
> at that time), but could not figure out how to use it to debug a python
> script that uses the curses module.
>
> Does anyone here know if winpdb-reborn or any other debugger can support
> 2-window debugging for a python script that uses the curses module?  It
> seems to me that a 2-window debugging session is necessary for a python
> script that uses the curses module because using curses takes over the
> screen from which the script is started, so debugging output and script
> output need to be in separate windows.
>
> I've been forced to use a logger to trace critical values and program flow
> for errors in such a script.  It works, but it is annoyingly slow to debug
> that way.
>
> TIA for any advice or RTFM you can provide.
>
> Peter
> --
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Neither pdb or print() displays the bug

2021-06-06 Thread Fabio Zadrozny
Em qua., 2 de jun. de 2021 às 09:34, Rich Shepard 
escreveu:

> On Wed, 2 Jun 2021, Peter Otten wrote:
>
> > Do you have unit tests? Those are an excellent tool to ensure that the
> > components of an application work as expected and that those components
> > have well-defined interfaces. Debugging a failing unittest is usually
> > easier than to debug a complex application. While I don't know if there
> is
> > a convenient way to test the GUI everything else should run reliably
> > *before* connecting it with the GUI.
>
> Peter,
>
> I believe there is a way to apply unit tests to PyQt and I'll certainly
> learn to take this testing-while-developing approach.
>

Hint: you should be able to use https://pypi.org/project/pytest-qt/ to
unit-test a PyQt application...
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 8.3.0 Released

2021-04-10 Thread Fabio Zadrozny
PyDev 8.3.0 Release Highlights

   -

   *Java 11* is now required to run PyDev.
   -

   *External linters*
   - Configurations of the linters can be saved to the project or user
  settings.
  - Flake8 has a more flexible UI for configuration.
   -

   *Others*
   - Option to add comments all at a single indent (note: this is now the
  default).
  - LRU for context-insensitive completion/quick fix.
  - Fixed some code-completion cases where *self* was wrongly added.
  - Environment variables are now supported in *.pydevproject*
  (expected format: *${env_var:VAR_NAME}*).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 8.1.0 Released

2020-12-08 Thread Fabio Zadrozny
 PyDev 8.1.0 Release Highlights

   -

   *Interactive Console*
   - The selection for which console to open may be saved. (*#PyDev-1112*)
  - When the *current editor* option is selected, the related
  interpreter is no longer asked. (*#PyDev-1112*)
   -

   *Debugger* (updated to pydevd 2.2.0)
   - Better support for Python flags when auto-attaching to subprocesses.
  - Fixes to path translation (when debugging in a different machine).
  - Catch warnings related to *imp* import from *pkg_resources*.
  - No longer crashing when running with *Pyjion* (patch by Anthony
  Shaw).
   -

   *Others*
   - Code analysis now supports *from __future__ import anotations*. (
  *#PyDev-1040*)
  - AST pretty-printing supports printing slices. (*#PyDev-1106*)
  - Code-completion with auto imports for the builtin module is no
  longer shown. (*#PyDev-1117*)
  - MyPy messages from a different file are no longer shown in the
  current editor. (*#PyDev-1114*)

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 8.0 Released

2020-09-06 Thread Fabio Zadrozny
 PyDev 8.0 Release Highlights

   -

   *MyPy*
   - Make sure that only one MyPy is running at a given time (to prevent
  cache corruptions).
  - Properly report MyPy messages that only have a line number. (
  *#PyDev-1091*)
  - MyPy integration now also shows notes for a message. (*#PyDev-1088*)
   -

   *Debugger* (updated to pydevd 2.0.0)
   - The frame evaluation mode (which adds programmatic breakpoints by
  rewriting bytecode) was redone (it had a critical issue which
could make it
  skip breakpoints).
  - Fixed issue collecting try..except information.
  - Fixed issue evaluating numpy array with unexpected dimension.
   -

   *Type Inference*
   - Option to create a method at a given class properly considers
  type-hinting. (*#PyDev-1092*)
  - Support code-completion for Optional[]. (*#PyDev-1089*)
  - Properly handle type information when given as a string. (
  *#PyDev-1082*, *#PyDev-1087*)
  - Fixed issue where line/col was not forwarded properly in go to
  definition. (*#PyDev-1075*)
  - Typing info should have priority when available. (*#PyDev-1079*)
  - Properly get completions considering function annotation. (
  *#PyDev-1078*)
   -

   *Test running*
   - Fixed issue running tests which override *address* with nose. (
  *#PYDev-1095*)
  - Fixed issue where test import/export didn't deal well with binary
  chars that were collected from the test. (*#PyDev-1067*)
   -

   *Others*
   - When finding a file in a project on Windows consider paths as case
  insensitive.
  - .mypy_cache and .pytest_cache contents are now marked as derived
  (so they can be filtered out in searches).
  - Fixed case where auto-import could be added to wrong location. (
  *#PyDev-1085*)
  - Occurrence was not found in type hint return. (*#PyDev-1076*)
  - Find references not working for constant depending how it's used. (
  *#PyDev-1083*)
  - Backported fix to properly parse raw f-string in Python 3.6. (
  *#PyDev-991*)
  - Code completion inside f-strings. (*#PyDev-1081*)

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 7.6.0 Released

2020-06-11 Thread Fabio Zadrozny
PyDev 7.6.0 Release Highlights

   -

   *Debugger improvements* (updated to pydevd 1.9.1).
   - *Variables are now grouped* (special/class/function/protected) --
  note: it's possible to hide groups in the variables view menu dropdown.
  - When a launching a subprocess does not target a python executable,
  the original args are kept (so, quotes are no longer trimmed).
  - A step in which would skip code won't be reported in the return if
  it'd reach the same location.
  - The disassembled version of a frame may be shown if the sources are
  not available.
  - PySide2 is supported to recognize QThreads/event loop in
  interactive console.
   -

   *Python 3.8 parsing fixes*
   - Properly parsing f-strings with named unicode character. i.e.:
  *f"\N{BULLET}"*.
  - Properly parsing f-strings formats using colon. i.e.:
*f"{datetime.datetime.now():%Y-%m-%d
  %H:%M:%S}"*.
  - Properly parsing f-strings with vars ending in equals. i.e.:
  *f'{y=}'*.
  - Properly parsing raw f-strings such as *rf"str"*.
  - Properly parsing iterable unpacking syntax. i.e.: *return
  lastname.upper(), *members*.
   -

   Support for the latest version of PyTest (which may resolve symlinks and
   changed the TerminalWriter import location).
   - PyDev package explorer is a bit faster (cache source project paths for
   a project).
   - Recognizing type comments for *self* attributes. i.e.: *#: :type
   self.var: MyClass*.
   - Trailing commas properly recognized in automatic import.

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 7.5.0 Released

2020-01-10 Thread Fabio Zadrozny
PyDev 7.5.0 Release Highlights

   - Fixed support for Python 3.8 (which wasn't properly added to 7.4.0).
   -

   Improved Cython support:
   - Cython itself is used to generate the AST for Cython files.
  - Cython needs to be available in the default interpreter.
  - Cython does not currently support generating the AST for files with
  errors, so, syntax errors must be fixed for the code-completion to work
  properly.
   -

   Debugger improvements (updated to pydevd 1.9.0).
   - Improved stepping into coroutines
  - Attach to process no longer needs to match the bitness of the
  target program with the interpreter.
  - File with a relative path is searched in sys.path folders (i.e.:
  so, cython builds can find the source).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,
Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: "How to protect the python code"

2019-09-06 Thread Fabio Zadrozny
On Thu, Sep 5, 2019 at 5:49 AM Saba Kauser 
wrote:

> Hello Experts,
>
> I am looking for ways available to protect the python source code from
> being available to users for write/modify.
> Is it a good idea to think that python source code can be protected?
>
> I am aware that there are ways available to generate extensions like in
> C(.pyd files) and module the sensitive code likewise, but are there any
> better options available for protecting the native python source code
> itself. My requirement is to have the application/source in native python
> and not intermediate to other languages.
>
> Please share your thoughts.
>

As far as I know, the best way to protect your code is to actually use
something as Nuitka or Cython to compile your pure-python code to native
extensions.

Now, if you don't want that, you can try to obfuscate your code (just
google "python obfuscate code" -- I haven't actually used any of those, but
I guess they may be what you want)...

--
Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 7.2.0 Released

2019-03-27 Thread Fabio Zadrozny
PyDev 7.2.0 Release Highlights
---

* Debugger improvements (updated to pydevd 1.6.0).

* Fixed issue quoting/unquoting parameters for subprocess.
* Fixed exception breakpoints for Django and Jinja2.
* Console hook import compatibility with matplotlib and pylab fixed.

* Fixed issue where pipenv executable search was being executed over and
over when it was not found.

About PyDev
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


​PyDev 7.0.3 Released

2018-11-09 Thread Fabio Zadrozny
PyDev 7.0.3 Release Highlights
---

* **Mypy**

* PyDev can now use Mypy when doing code analysis.

* **Black Formatter**

* PyDev can now use black as the code formatting engine.

* **Virtual environments**

* It's now possible to use pipenv for managing virtual environments.
* It's possible to manage virtual environments from the editor.

* Ctrl+2, pip 
* Ctrl+2, pipenv 
* Ctrl+2, conda 

* **Debugger**

* Should be **much** faster for those on Python 3.6 onwards with cython
extensions (using frame evaluation).

* The Python 3.7 grammar is now available as an option (even though it's
the same as 3.6).

* Removed support for using the Python 2.4 grammar.

* The 2to3 integration shows a better dialog.

* It's possible to autogenerate docstring parameters using the Google Code
format (patch by ghbcode).

About PyDev
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.5.0 released

2018-09-05 Thread Fabio Zadrozny
 PyDev 6.5.0 Release Highlights

   -

   *Debugger*
   - Debugger is *much* more responsive (fixed bug in reader/writer on the
  PyDev side).
  - *breakpoint()* builtin is now supported to add a programmatic
  breakpoint (on any Python version).
  - Watch expression no longer giving error if evaluation is empty
  (patch by glhez).
   -

   *Editor*
   - Code folding of *#region/#endregion* regions (patch by ghbcode).
  - There's a new action which allows creating local imports from a
  global import (use *Ctrl+1* on top of global import name).
   -

   It's now possible to change the default interpreter through an action
   (default binding: *Ctrl+Shift+Alt+I*).
   - The interactive console now has scroll lock (patch by bongibong).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as Django
Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny

-- 
https://mail.python.org/mailman/listinfo/python-list


How to drop six support and go to Python 3 only?

2018-09-05 Thread Fabio Zadrozny
My scenario is having an app which was on Py 2, ported to Python 2 and 3
(using six) and will become Python 3 only in a few months.

So, my question is: when Python 2 is no longer needed, is there some tool
which helps removing the six compatibility layer (as well as the if
six.PY2/six.PY3 checks) so that the codebase becomes pythonic again?

Thanks,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.5.0 released

2018-09-03 Thread Fabio Zadrozny
 PyDev 6.5.0 Release Highlights

   -

   *Debugger*
   - Debugger is *much* more responsive (fixed bug in reader/writer on the
  PyDev side).
  - *breakpoint()* builtin is now supported to add a programmatic
  breakpoint (on any Python version).
  - Watch expression no longer giving error if evaluation is empty
  (patch by glhez).
   -

   *Editor*
   - Code folding of *#region/#endregion* regions (patch by ghbcode).
  - There's a new action which allows creating local imports from a
  global import (use *Ctrl+1* on top of global import name).
   -

   It's now possible to change the default interpreter through an action
   (default binding: *Ctrl+Shift+Alt+I*).
   - The interactive console now has scroll lock (patch by bongibong).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.4.3 Released

2018-07-06 Thread Fabio Zadrozny
*PyDev 6.4.3 Release Highlights*

PyDev changes:

   -

   *Debugger*
   - Notification of threads is done as they're created instead of
  synchronized afterwards.
  - Support for using frame evaluation disabled by default as it made
  the debugger much slower on some cases.
  - Fixed case where breakpoint was missed if an exception was raised
  in a given line.
  - Properly break on unhandled exceptions on threads.
  - Add missing import which affected repl with IPython.
  - Fix for case where breakpoints could be missed.
  - Fixed issue tracing lamda functions.
  - pydevd.settrace() could end up not stopping the debugger properly.
  - Fixed critical error on debugger (could deadlock when creating a
  new thread).
   -

   *Code Formatter*
   -

  It's now possible to use the PyDev code formatter using the command
  line.
  - Install with: *pip install pydevf*
 - Fixes many common formatter errors.
 - Tries to keep code close to the original formatting.
 - see: https://github.com/fabioz/PyDev.Formatter for more details.
  -

  Fixed issue where blank line was being put in the wrong place in the
  PyDev code formatter.
  -

   Grammar: fixed issue parsing f-strings.
   - Fixed issue sending current line to interactive console (F2).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
​
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.3.2 released

2018-03-21 Thread Fabio Zadrozny
 PyDev 6.3.2 Release Highlights

PyDev changes:

   -

   Type inference
   - PyDev can now uses information on .pyi files (when along the typed .py
  file) for type inference.
   -

   Fixed issue opening code completion preferences page.

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.3.1 Released

2018-02-28 Thread Fabio Zadrozny
 PyDev 6.3.1 Release Highlights

   - PyDev is now also available for Python coding on Visual Studio Code --
   see: http://www.pydev.org/vscode/ for more details.

PyDev changes:

   -

   Type inference
   - Folders no longer require *__init__* to be considered a package.
  - Properly recognize *cx_Oracle.cp36-win_amd64.pyd* as *cx_Oracle* (
  *#PyDev-885*).
   -

   Empty numpy arrays properly handled in debugger.
   -

   Fix to get path to activate conda env on Linux.
   -

   Fix debug console freeze when evaluation raises exception with Python
   3.5 onwards (*#PyDev-877*).
   -

   Interactive console accepting new args passed by IPython in
   showtraceback (*#PyDev-882*).
   -

   Improve terminating running processes (and children).
   -

   Properly parsing f-strings which contain double *{{* or *}}* (
   *#PyDev-884*).

About PyDev

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development, now also available for Python on Visual Studio Code.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

It is also available as a standalone through LiClipse with goodies such as
Multiple cursors, theming and support for many other languages, such as
Django Templates, Jinja2, Html, JavaScript, etc.

Links:

PyDev: http://pydev.org
PyDev Blog: http://pydev.blogspot.com
PyDev on VSCode: http://pydev.org/vscode
LiClipse: http://www.liclipse.com
PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/

Cheers,

Fabio Zadrozny
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Sorry, it was a glitch on the template when moved to another folder (just
fixed).

On Mon, Feb 19, 2018 at 10:08 AM, ElChino  wrote:

> Fabio Zadrozny wrote:
>
> See: http://www.pydev.org/vscode/ for more information!
>>
>
> That page includes so many dead links that it looks
> like a joke.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Hi All,

I'm happy to announce that PyDev (http://www.pydev.org) can now be used for
Python development on Visual Studio Code!

The first release already provides features such as code analysis, code
completion, go to definition, symbols for the workspace and editor, code
formatting, find references, quick fixes and more (see
http://www.pydev.org/vscode/ for details).

All features have a strong focus on speed and have been shaped by the usage
on PyDev over the last 14 years, so, I believe it's already pretty nice to
use... there are still some big things to integrate (such as the PyDev
debugger), but those should come on shortly.

The requisites are having java 8 (or higher) installed on the system (if it
doesn't find it automatically the java home location may need to be
specified in the settings -- http://www.pydev.org/vscode/ has more details)
and Python 2.6 or newer.

By default it should pick the python executable available on the PATH, but
it's possible to specify a different python executable through the settings
on VSCode (see http://www.pydev.org/vscode/settings.html for details).

Below, I want to share some of the things that are unique in PyDev and are
now available for VSCode users:

- Niceties from PyDev when typing such as auto-adding self where needed
(note that having the editor.formatOnType setting turned on is a requisite
for that to work).
- Really fast code-completion, code-analysis and code-formatting
engines.
- Code completion provides options to import modules, top level
classes, methods and variables (python.pydev.preferredImportLocation can be
used to determine the location of the import).
- Quick fix which automatically allows adding an import for unresolved
symbols.
- In-file navigation to previous or next class or method through
Ctrl+Shift+Up and Ctrl+Shift+Down.

See: http://www.pydev.org/vscode/ for more information!

Cheers,

--
Fabio Zadrozny
--

Software Developer

PyDev on VSCode
http://pydev.org/vscode

PyVmMonitor - Profile Python on VSCode
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.2.0 released

2017-11-29 Thread Fabio Zadrozny
PyDev 6.2.0 Release Highlights

   -

   *Interactive Console*
   - It's possible to use word-wrapping in the PyDev interactive console (
  *#PyDev-862*).
   -

   *Code Completion*
   - Checking list unpacking with user specified types.
  - Code completion aware of variable typing from Python 3.6 (
  *#PyDev-866*).
   -

   *Others*
   - Properly terminating child processes of launched python processes on
  Linux with Java 9 (*#PyDev-871*).
  - Comments with 3 dashes properly appear in outline in all cases (
  *#PyDev-868*).
  - Properly hyperlinking pytest output.
  - Accepting *noqa* as a way to skip errors (*#PyDev-814*).
  - If there's a *flake8: noqa* in the first 3 lines of the file, don't
  analyze it (*#PyDev-814*).
  - Fixed issue where a closing peer character was skiped when it was
  actually not a matching closing peer (*#PyDev-869*).
  - Fixed issue where line indentation was not correct on a new line
  with multiple open parenthesis.

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler

http://www.pyvmmonitor.com/​
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.1.0 Released

2017-11-07 Thread Fabio Zadrozny
PyDev 6.1.0 Release Highlights

   -

   *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.
   - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).
   -

   *Code Formatter*
   - The PyDev code formatter can now add/remove blank lines to comply with
  pep-8.
  - Added preference to skip blank lines formatting.
   -

   *Editor*
   - Editor now tolerant against errors in the definitions of style ranges.
  - When in link mode (after a code completion with params for
  instance), properly skip closing parenthesis if already well balanced.
  - Fix logic error in editor preferences for disabling subword
  navigation (patch by *Stuart Berg*).
   -

   *Others*
   - Using *python -m 'pip'* when unable to find pip executable in
  interpreter preferences (*#PyDev-853*).
  - PyDev set next statement action set no longer disables Debug action
  set (*#PyDev-859*).
  - It's possible to silence question about saving resources before a
  refactoring operation.
  - Add problem markers for python files that declare invalid encodings
  (patch by *Mat Booth*).
  - Other minor bugfixes.

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.0.0 Released

2017-09-21 Thread Fabio Zadrozny
PyDev 6.0.0 Release Highlights

   -

   *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.
   - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).
   -

   *Interpreter configuration*
   - The *list of packages* installed in the interpreter is shown in the
  IDE (supports either *pip* or *conda*).
  - It's now possible to *install/uninstall* packages using either *pip*
   or *conda* directly from the IDE.
  - Provides a way to *load variables* if interpreter is from a *conda
  environment* (Load conda env vars before run configuration).
  - A default string substitution variable named *PY* is now created
  with the major and minor version of the created interpreter.
  - It's now possible to configure a project to always use a grammar
  compatible with the interpreter version (default for new projects --
  *#PyDev-846*).
   -

   *Editor*
   - *Subword* navigation is now available (and enabled by default -- can
  be customized at *PyDev > Editor*).
  - Changed default config for minimap (smaller and not showing
  elements -- can be customized at *PyDev > Editor > Overview Ruler
  Minimap*).
  - Code completion no longer active in comments in last line of editor
  (*#PyDev-762*).
   -

   *Debugger*
   - Fix find_module signature (patch by James Blackburn).
  - Fix qt_loader to support *PEP 302* correctly.
  - Fix in matplotlib_options from ipython (*#PyDev-779*).
  - When show all uppercase references is used as a filter, only digits
  shouldn't be filtered out in variables view (#PyDev-794).
   -

   *PyLint*
   - Added setting to search *PyLint* installed in interpreter (*#PyDev-811*
  ).
   -

   *Unittest*
   - It's possible to edit a run configuration from dialog to select tests
  to run (Ctrl+F9) (patch by *Robert Gomulka*).
  - Test(s) name is shown in the run configuration (patch by *Robert
  Gomulka* -- *#PyDev-840*).
   -

   *isort integration*
   - The modules that are known to be third party or system modules in the
  PyDev configuration are passed to *isort*.
  - Proper support for *isort:skip* and *isort:skip_file*.
  - Internal isort caches properly being cleared between invocations
  (fix for case where changes to config were not reflected in isort).
   -

   *Others*
   - Fix to properly interrupt infinite loop in the Interactive Console (
  *#PyDev-816*).
  - Fix issue where user could do a drag n drop in system libs which
  could put an entry below another entry, which actually removed
it from the
  config (*#PyDev-821*).
  - Fix where *runfile* was not available on *interactive debugger* when
  python-future is installed (*#PyDev-845*).
  - Fix NullPointerException on code-completion.
  - mutagen added to forced builtins by default (*#PyDev-819*).

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.9.2 released

2017-08-15 Thread Fabio Zadrozny
PyDev 5.9.2 Release Highlights

   -

   *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.
   - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).
   -

   *Debugger*
   - Integrated speedups for Python 3.6 which use the new Python hook which
  allows the debugger to add breakpoints through bytecode manipulation.
  - Some critical fixes related to issues in the latest debugger
  (#PyDev-837, #PyDev-838, #PyDev-817).
   -

   Added support for having isort as the engine for import sorting.
   - Fixed issue on text search with *Lucene* when the user had another
   plugin which also used lucene (*#PyDev-826*).
   - From this version onwards, PyDev is built with a proper certificate
   (previous versions used a self-signed certificate).
   - Google App Engine templates now working out of the box (patch by *Mat
   Booth*).
   - Optimization in editor highlighting when dealing with huge files.
   - Some bugfixes in pytest integration.
   - *cv2* added to forced builtins by default for working with OpenCV.
   - Fixed issue when parsing empty f-string.

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.8.0: Code Coverage fixes, IronPython debugging

2017-06-08 Thread Fabio Zadrozny
PyDev 5.8.0 Release Highlights

   -

   *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.
   - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).
   -

   *Code Analysis*
   - Fixed issue getting existing PyLint markers.
  - There's now an Info and an Ignore level.
   -

   *Debugger*
   - The debugger now provides hooks for clients and provides ways to
  extend the handling of custom types. See:
  
https://github.com/fabioz/PyDev.Debugger/tree/master/pydevd_plugins/extensions
(patch
  by *Yuli Fiterman*).
  - Fixed issue where the debugger could end up removing quotes on
  args. *#PyDev-797*
  - The debugger now works with IronPython again -- although note that
  *IronPython* *2.7.6* and *2.7.7* have a critical bug which prevents
  IronPython from working in PyDev:
  https://github.com/IronLanguages/main/issues/1663
   -

   *Code Coverage*
   - Fixed issue getting code-coverage version. *#PyDev-791*
  - Properly works when running with pytest (provided that pytest-cov
  is installed).
   -

   *Others*
   - Update .yaml file for google app engine project templates (patch by
  *JunjieW*).
  - Upgraded Lucene to 6.1.0 (patch by *Sopot Cela*).
  - Update docstring from parameters (Ctrl+1 on *def*) properly
  considers sphinx with types. *#PyDev-787*
  - Code Completion: Properly finding *__init__* from superclass in
  inherited classes. *#PyDev-802*
  - No longer showing icon to start interactive console in toolbar
  because Eclipse could end up creating multiple entries which were shown
  forever. *#PyDev-708*
  - Other minor bugfixes.

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.7.0 Released

2017-04-12 Thread Fabio Zadrozny
PyDev 5.7.0 Release Highlights
---

* **Important** PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.

* PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).

* **PyLint**

* The PyLint integration is much improved.
* Working along with the PyDev code-analysis.
* If there's an equivalent code analysis error in PyLint and PyDev, the
PyLint one is hidden.
* **Ctrl+1** on PyLint error line shows option to silent error in that line.
* See: http://pydev.org/manual_adv_pylint.html for details.

* **Debugger**

* Fixed issue when sorting which could lead to error comparing a value with
None.
* Fixed issue which prevented debugger from working with Jython due to the
lack of sys._current_frames.
* Testing Jython on CI.

* **Code Completion**

* Properly unpacking assigns from a parameter to an instance with type
documented in docstring. **#PyDev-778**

* **Others**

* When assigning parameters to attributes (**Ctrl+1** on function **def**),
skip adding duplicate assignments.
* When adding parameters to docstrings  (**Ctrl+1** on function **def**),
it will now properly update an existing docstring, not only create one from
scratch.
* In Windows, when searching executables, priority is given to a python
executable found in the PATH (as in Mac/Linux).
* Fixed issue were space was wrongly removed in code formatter.
**#PyDev-784**


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.6.0 Released

2017-03-23 Thread Fabio Zadrozny
PyDev 5.6.0 Release Highlights

   -

   *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.
   - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).
   -

   *Debugger*
   -

  *Performance* enhancements on the *debugger* (which should be
  *60%-100%* faster now).
  -

  The *debugger* now only supports *Python 2.6 onwards* (keep on PyDev
   5.5.0 for Python 2.5 or below).
  -

  Properly displaying variables when the *interactive console* is
  connected to a *debug session*. *#PyDev-776*
  -

  Providing a way for the debugger to support a user-specified version
  of Qt for debugging QThreads (*preferences > PyDev > Debug > Qt
  Threads*).
  -

  Fixed issue where a *native Qt signal is not callable* message was
  raised when connecting a signal to QThread.started.
  -

  Fixed issue in displaying variable (with *Ctrl+Shift+D*) when
  debugging.
  -

  Debug view toolbar icons no longer appearing stretched due to Set
  Next Statement icon having a different size.
  -

   *Code completion*
   -

  *super* is now properly recognized (code completion and find
  definition).
  -

  *pytest fixtures* are now properly recognized (code completion and
  find definition).
  -

  Suppress invalid completions on literals numbers (patch by Jonah
  Graham)
  -

   *Others*
   -

  It's now possible to save the PyUnit preferences to the project or
  user settings.
  -

  Upgraded *pep8* to the latest *pycodestyle*.
  -

  Upgraded to latest *autopep8*.
  -

  Fixed issue in Django shell if version >= 1.10 *#PyDev-752*.
  -

  Add support for *coverage 4.x* (minimum supported version is now
  4.3). *#PyDev-691*
  -

  Syntax highlighting for *matmul operator* (was being considered a
  decorator). *#PyDev-771*
  -

  Making *PyLint* use the same thread pool used for code analysis.
  -

  String index out of range while reading buffer in AbstractShell.
  *#PyDev-768*

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.5.0 Released

2017-01-31 Thread Fabio Zadrozny
PyDev 5.5.0 Release Highlights
---

* **Important** PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.

* PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).

* If you enjoy PyDev, you can help in keeping it supported through its
Patreon crowdfunding: https://www.patreon.com/fabioz.

* **Refactoring**

* Fixed refactoring error when dealing with imports which have a
continuation char inside the module name part. **#PyDev-712**

* When extracting a method, decorators are properly considered for the
new method position. **#PyDev-321**

* **Code completion**

* When accessing enums, 'value' and 'name' are properly found.
**#PyDev-591**

* Code completion improved on method chaining. **#PyDev-636** and
**#PyDev-583**

* It's now possible to choose whether when a code-completion which adds
a local import should add the import to the beginning of the function or
the line above where it was requested.

* It may be configured in the preferences (Preferences > PyDev >
Editor > Code Completion > Put local imports on top of method?).

* Default was changed to add it to the top of the method.

* **New actions**

* **Ctrl+Shift+Alt+O** can be used to open the last hyperlink in the
console that's currently open (it's now possible to jump directly to the
error in some exception). **#PyDev-755**

* **Ctrl+2,sw** switches the target and value in assign statements (may
not work properly if more than one '=' is found in the line).

* **Debugger**

* Fixed error when hovering over variable when debugging. **#PyDev-580**

* **Others**

* Fixed issue in grammar parsing on nested async calls. **#PyDev-753**

* Fixed issue grouping imports when an import has a continuation char
inside the module part. **#PyDev 712**


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.4.0 Released

2016-11-30 Thread Fabio Zadrozny
PyDev 5.4.0 Released

Release Highlights:
---

* **Important** PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.

* PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).

* If you enjoy PyDev, please show your appreciation through its Patreon
crowdfunding: https://www.patreon.com/fabioz.

* **Initial support for Python 3.6**

* Code analysis for expressions on f-strings.
* Syntax highlighting on f-strings.
* Handling of underscores in numeric literals.
* Parsing (but still not using) variable annotations.
* Parsing asynchronous generators and comprehensions.

* **Launching**

* Improved console description of the launch.
* Support launching files with **python -m module.name** (instead of
python module/name.py). **Note**: Has to be enabled at **Preferences >
PyDev > Run**.


* **Debugger**

* Shows return values (may be disabled on preferences > PyDev > Debug).
* When the user is waiting for some input, it'll no longer try to
evaluate the entered contents.
* Fix for multiprocess debugging when the debugger is started with a
programmatic breakpoint (pydevd.settrace).

* **Unittest integration**

* Bugfixes in the pytest integration related to unicode errors.
* unittest subtests are now properly handled in the PyDev unittest
runner.
* The currently selected tests are persisted.

* **Others**

* In Linux, when applying a completion which would automatically add an
import, if the user focuses the completion pop-up (with Tab) and applies
the completion with Shift+Enter, a local import is properly made.

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.3.1 Released

2016-11-03 Thread Fabio Zadrozny
Release Highlights:
---

* **Important** PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards.

* PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars).

* **Code Completion**

* Substring completions are **on by default** (may be turned off in the
code-completion preferences).
* Fixed issue with code-completion using from..import..as aliases.

* **Others**

* Auto-fix imports with Ctrl+Shift+O properly sorts items based on the
same sorting improvements for code-completion.
* When fixing unresolved import (with Ctrl+1) it properly resolves
dependent projects (bugfix for regression in 5.3.0).
* **async** and **await** keywords are properly highlighted.
* **async** blocks properly auto-indented.
* In PEP 448 list unpack variable was not being marked as a "Load"
variable (which made the code analysis yield false positives).

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.3.0 Released

2016-10-14 Thread Fabio Zadrozny
Release Highlights:
---

* **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards.

* PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
* See: update sites page for the update site of older versions of PyDev.
* See: the **PyDev does not appear after install** section on the
download page for help on using a Java 8 vm in Eclipse.

* **Syntax validation for multiple grammars**

* Helps to make code which is **Python 2 and 3 compatible**.
* To customize, go to Project Properties > PyDev - Interpreter/Grammar,
and select **grammars for "additional syntax validation"**.

* **Code completion**

* The code-completion can now do substring based matches (i.e.: the
proposals will be shown if any part of the completion matches the requested
name).
* It's **still** not the default (to activate it, change the setting
**"Preferences > PyDev > Editor > Code Completion > Match substrings on
code completion?"** to true).
* Completion proposals have the part of the completion used to do the
match in bold.
* Qualifiers of the completion (i.e.: package name) are styled
differently (color may be customized in **General > Appearance > Colors and
Fonts > Basic Qualifier Information Color**).
* Completions are re-sorted when the name used to request a code
completion changes.
* **Sorting** is based on:

* The current name typed (so that matches that are exact or start
with the requested token appear first).
* The type of the completion (parameter, local, context insensitive
with auto-import, etc).
* Where the completion was found (so, matches from the same project
go first, referenced projects second and standard library last).

* **Ctrl and Shift Behavior when applying code-completion proposal**

* Ctrl is always **"replace the current name with the completion"**
for all completions.
* Pressing Ctrl to override the next name in code completion no
longer looses the highlight in the editor.
* On code completion with auto-import, for doing local imports, the
pop-up must be focused and Shift must be kept pressed while the completion
is applied.

* **PyQt5 support in Interactive Console**

* PyQt5 may now be used as a backend in the interactive console so that
widgets/plots can be inspected interactively while using the console.
* May be activated with **%matplotlib qt5** (when using IPython) or in
**"Preferences > PyDev > Interactive Console > Enable GUI event loop
integration > PyQt5"**.


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to automate java application in window using python

2016-09-16 Thread Fabio Zadrozny
Take a look at https://pyautogui.readthedocs.io/en/latest/

On Fri, Sep 16, 2016 at 9:24 AM, meInvent bbird 
wrote:

> you are right, english is not my first language
>
> i just talk as simple as i can, i do not know previous talking is mean
>
>
> On Friday, September 16, 2016 at 6:22:34 PM UTC+8, Christian Gollwitzer
> wrote:
> > Am 16.09.16 um 09:01 schrieb Lawrence D’Oliveiro:
> > > On Friday, September 16, 2016 at 6:55:07 PM UTC+12, meInvent bbird
> > > wrote:
> > >> On Thursday, September 15, 2016 at 3:52:41 PM UTC+8, Lawrence
> > >> D’Oliveiro wrote:
> > >>> On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent
> > >>> bbird wrote:
> >  how to automate java application in window using python
> > 
> >  1. scroll up or down of scroll bar 2. click button 3. type text
> >  in textbox
> > >>>
> > >>> Well, don’t leave us in suspense! Give us the link to your blog
> > >>> post!
> > >>
> > >> i do not have blog post,
> > >
> > > Oh, now you make us sad. I thought you were promoting a blog post
> > > where you tell us “how to automate java application in window using
> > > python” using just 3 steps! But it turns out you have nothing. You
> > > are an empty promiser.
> >
> > You are being mean. It is quite evident that English is not his first
> > language, and highly probable that this was actually the question "How
> > do I automate a Java application using Python?"
> >
> > I don't have a real answer myself, but maybe using Jython one can get
> > access to the Java objects underlying the application (and then, of
> > course, execute methods of the GUI objects). This depends on the GUI
> > toolkit (Swing/SWT) and knowledge of the applications' structure, of
> > course. Another (less robust) way of desktop automation is Sikuli
> > http://www.sikuli.org/ (Windows only, I think)
> >
> >   Christian
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.2.0 Released

2016-08-18 Thread Fabio Zadrozny
Release Highlights:
---

* **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards.

* PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
* See: `update sites page`_ for the update site of older versions of
PyDev.
* See: the **PyDev does not appear after install** section on `the
download page`_ for help on using a Java 8 vm in Eclipse.

* Inital support for code-completion using **PEP 484 static type
declarations**.

* **Debugger**

* Fixed racing condition where the variables view would not be properly
shown in the debugger -- which made an additional select of the stack
required in order to show the variables (#PyDev-672).
* Reusing the existing stack from the thread in the debugger (so that
the expanded state of the variables is properly kept on step over).
* Fixed issue changing attribute of local variable in the variables
view (#PyDev.Debugger-56).
* Fixed issue on attach to process: it required the pydevd_tracing to
be at the top-level and it was moved to _pydevd_bundle (restored it to be a
public API).

* **Indentation**

* The default indent mode now changed to better follow PEP 8 guidelines:

* Indenting directly after {, [, ( will add one indent level.
* Indenting after another token in a line with a {, [, ( will
indent to the {, [, ( level.

* It's possible to restore previous indent modes (which either always
indented to the parenthesis level or always indented a single level) in the
preferences > PyDev > Editor > Typing.

* **Interactive console**

* IPython 5 now supported in interactive console (#PyDev-710).
* Fixed issue executing single line with multiple statements in console.
* Fixed issue executing a multiple line statement in Jython.

* **Others**

* The (fast) parser which detects the outline of a Python module now
handles mixed indentation (and additional fixes which could result in log
entries such as "Did not expect to find item below node: Assign...").
* Support for unpacking generalizations (PEP 448) which could still
result in a syntax error for the Python 3 grammar (#PyDev-701).
* Fixed error in code analysis when the code is connected to an RTC
source control (#PyDev-184, patch by Wesley Barroso Lopes)

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.1.2 Released

2016-06-24 Thread Fabio Zadrozny
Release Highlights:
---

* **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards.

* PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
* See: http://www.pydev.org/update_sites/index.html for the update site of
older versions of PyDev.
* See: the **PyDev does not appear after install** section on
http://www.pydev.org/download.html for help on using a Java 8 vm in Eclipse.

* The pytest integration was redone and should now work properly with the
latest pytest.

* Properly showing output of tests in PyUnit view.
* Improved dealing with items filtered through Ctrl+F9.
* Better support for xdist (no longer reporting that the session finished
when only a slave finished).
* Reporting skipped items as "skip" and not "ok".
* Properly showing running tests on PyUnit view.
* Not using tokenize.open() in Python 3.2 for the execfile custom
implementation.

* Expand and collapse keybindings changed to use the Numpad entries (so
that they don't override the add/subtract used for zooming). #PyDev 695.

* The hover in PyDev has an implementation which is now more flexible and
easier to extend in plugins (patch by Mark A. Leone).

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 5.0.0 Released

2016-05-05 Thread Fabio Zadrozny
PyDev 5.0.0 Released

Release Highlights:
---

* **Important** PyDev now requires Java 8.

* PyDev 4.5.5 is the last release supporting Java 7.
* See: http://www.pydev.org/update_sites/index.html for the update site of
older versions of PyDev.
* See: the **PyDev does not appear after install** section on
http://www.pydev.org/download.html for help on using a Java 8 vm in Eclipse.

* PyUnit view now persists its state across restarts.

* Fixed issue in super() code completion.

* PyDev.Debugger updated to the latest version.

* No longer showing un-needed shell on Linux on startup when showing
donation dialog.

* Fixed pyedit_wrap_expression to avoid halt of the IDE on Ctrl+1 -> Wrap
expression.

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: installing scipy

2016-05-03 Thread Fabio Zadrozny
Are you sure that the Python34 you installed is 64-bits and not the 32-bit
version? (you can check that by just executing 'python'... the prompt will
show the proper info to you).

On Tue, Apr 26, 2016 at 12:33 PM, Heli  wrote:

> Hi all,
>
> I have a python34 installed on a windows-64bit machine. I am using Eclipse
> pydev editor. I need to used griddata from scipy.interpolate.
>
> I have installed scipy using by downloading the followng wheel file:
> scipy-0.17.0-cp34-none-win_amd64
>
> and isntalling using pip install. The install is successful, but
>
> It seems like scipy is not installed correctly and I get the following
> error when trying to import and use scipy modules:
>
> C:\Python34\Scripts>python -c "import scipy.interpolate"
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "C:\Python34\lib\site-packages\scipy\interpolate\__init__.py", line
> 158, in 
> from .interpolate import *
>   File "C:\Python34\lib\site-packages\scipy\interpolate\interpolate.py",
> line 11, in 
> import scipy.linalg
>   File "C:\Python34\lib\site-packages\scipy\linalg\__init__.py", line 174,
> in 
> from .misc import *
>   File "C:\Python34\lib\site-packages\scipy\linalg\misc.py", line 5, in
> 
> from .blas import get_blas_funcs
>   File "C:\Python34\lib\site-packages\scipy\linalg\blas.py", line 155, in
> 
> from scipy.linalg import _fblas
> ImportError: DLL load failed
>
> How can I fix this problem?
>
> Thanks,
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyVmMonitor 1.0.1 released

2016-01-27 Thread Fabio Zadrozny
PyVmMonitor 1.0.1 is now available for download

*Release Highlights:*

   - Pstats files may be passed in the command line to be opened in
   pyvmmonitor-ui.
   - Fixed issue opening PyVmMonitor in Mac OS (El Capitan).
   - Opening PStats file may fail because it's linked to a Python version,
   so, in such a situation, PyVmMonitor allows opening it using a different
   interpreter.
   - Command line examples are properly wrapped with quotes on Windows.

See: http://www.pyvmmonitor.com for more information.

*What is PyVmMonitor?*

PyVmMonitor is a profiler with a simple goal: being the best way to profile
a Python program.

*Features*

   - Attach profiler to a running (CPython) program
   - Deterministic profiling through cProfile/profile integration
   - On demand profiling with Yappi integration
   - Analyze existing PStats results
   - Open DOT files
   - Programatic API access
   - Profile on a different machine
   - Multiple processes support (multiprocessing, django...)
   - Live sampling/CPU view
   - Select time range
  - Group samples by method or line
   - PyDev integration
   - PyCharm integration

Enjoy!

Fabio Zadrozny

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Which Python editor has this feature?

2016-01-26 Thread Fabio Zadrozny
On Mon, Jan 11, 2016 at 6:40 AM, Gordon Levi  wrote:

> jf...@ms4.hinet.net wrote:
>
> >It lets you jump between the current cursor position and the line the
> upper level indentation start, something like the bracket matching in C
> editor. Because of Python use indentation as its code block mark, It might
> be helpful if we can jump between different level of it:-)
>
> Jetbrains Pycharm has "go to start of block" and "go to end of block"
> commands .
>
> Unfortunately the free version of Pycharm does not support remote
> debugging and my main use for Python is for programming a Raspberry
> Pi. I use Visual Studio instead and its "go to end of block" does not
> work in the Python editor
> .
> --


​Note that you can use Eclipse/ PyDev for remote debugging.​
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Which Python editor has this feature?

2016-01-26 Thread Fabio Zadrozny
On Sun, Jan 10, 2016 at 11:59 PM,  wrote:

> It lets you jump between the current cursor position and the line the
> upper level indentation start, something like the bracket matching in C
> editor. Because of Python use indentation as its code block mark, It might
> be helpful if we can jump between different level of it:-)
>

​You can do this in Eclipse/PyDev by using the scope selector (​Shift + Alt
+ Up multiple times to select outer scopes and Shift + Alt + Down to
deselect) and then use left arrow to go to the start or right arrow to go
to the end (although if you're just navigating methods, you can do
Ctrl+Shift+Up / Down to select the previous/next method, which may be a bit
faster).

Best Regards,

Fabio​
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.5.3 Released

2016-01-22 Thread Fabio Zadrozny
Release Highlights:
---

* Debugger

* Fixed issue in set next statement (#PyDev 651).

* pydevd.settrace was stopping inside the debugger and not in user code
(#PyDev 648).

* subprocess.Popen could crash when running non python executable (#PyDev
650).

* PyUnit view

* The last pinned test suite appears as the first entry in the history.

* More information is shown on the test run history.

* A string representation of the test suite can be saved in the clipboard
(last item in the test run history).

* Indexing: fixed issue where the indexing and code-analysis could race
with each other and one could become corrupt.


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.5.1 Released

2016-01-14 Thread Fabio Zadrozny
Release Highlights:
---

* Debugger

* Cython speedup modules are now available for the debugger (see
performance improvements at:
https://www.speedtin.com/reports/7_pydevd_cython).

* It is considerably faster even without the speedup modules (see
performance improvements at:
https://www.speedtin.com/reports/8_pydevd_pure_python).

* When debugging multiple processes the console wasn't being updated to the
selected stack in the debug view.

* Many bug-fixes.

* Improved the search to always play safe and update the index so that the
matches are always consistent (#PyDev-634).

* Fixed issue renaming top-level module on refactoring.

* Refactoring has option to rename variable to a standard case style.

* Improved the parser that extracted the outline for global tokens to deal
with async and consider declarations inside ifs.

* Code completion of properties with @property no longer shows arguments
parenthesis (#PyDev-453).

* Preventing a freeze if some code-analysis takes too much time
(#PyDev-636).

* Ctrl+1 can be used to wrap/unwrap the contents of brackets (patch by
yohell).

What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.4.0 Released

2015-10-06 Thread Fabio Zadrozny
Release Highlights:
---

* Improved PyDev Package Explorer to give more information when all
elements are filtered.

* Code completion improvements: when a parameter is typed in the docstring,
assigning it to an instance gives proper code-completion results when
accessing the instance.

* Fixed issues dealing with ansi colors in the interactive console.

* When autopep8 is applied as the code formatting engine, the region
selected is used to specify the lines for formatting.

* Minor improvements in the debugger.


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.3.0 released

2015-08-20 Thread Fabio Zadrozny
Release Highlights:
---

* Fixed parser for Python 3.x to support async and await as regular names
too (PyDev-593).

* The new search dialog now has a 'whole word' option which automatically
adds `*` to the search

* Search backend updated to Lucene 5.2.1 (instant searches on huge
codebases)

* When bringing up the search dialog the search text is initially selected.


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Fabio Zadrozny
Hi Uri,

No, I'm not related to it. -- I'm the PyDev/Eclipse maintainer... that
already takes a lot of my time ;)

It's license is BSD (so, no need to pay). As it's just a way to convert
from a Python-like syntax to JavaScript syntax you can even switch to plain
JavaScript later on if you want -- in fact, when you debug the code you'll
be debugging JavaScript and not Python (it's like CoffeScript but with a
Python-like syntax).

Cheers,

Fabio

On Tue, Aug 11, 2015 at 3:48 PM, Uri Even-Chen  wrote:

> Thanks Fabio, it's very interesting. Are you related to Pyjeon Software?
> Do we have to pay to use RapydScript? Is it ready for production?
>
>
> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> <http://www.facebook.com/urievenchen>
> <http://plus.google.com/+urievenchen>
> <http://www.linkedin.com/in/urievenchen>  <http://twitter.com/urievenchen>
> > Speedypedia in Hebrew and English
> <http://www.speedysoftware.com/uri/blog/speedypedia-in-hebrew-and-english/>
>
> On Tue, Aug 11, 2015 at 8:54 PM, Fabio Zadrozny  wrote:
>
>>
>> On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:
>>
>>> Thanks for the feedback. Actually I asked this question also in the
>>> django-users mailing list and Russell Keith-Magee told me about
>>> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
>>> lists) but I also asked if I can use JavaScript scripts such as jQuery,
>>> jQuery UI and other jQuery plugins from the scripts in Python and Russell
>>> said it's possible but not practical for production. And I'm thinking about
>>> developing Speedy Mail Software or other projects for production (of course
>>> after the alpha & beta are over) so I guess we are stuck with JavaScript
>>> for the client side programming. And I don't mind if they use a compiler or
>>> an interpreter or any other method to run Python in the client side, as
>>> long as it works. But without using jQuery and other plugins it would be
>>> very hard to use these projects in production.
>>>
>>> Uri.
>>>
>>
>>
>> ​I think that you could try RapydScript: http://rapydscript.pyjeon.com/
>>
>> Cheers,
>>
>> Fabio
>>
>>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Fabio Zadrozny
On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen  wrote:

> Thanks for the feedback. Actually I asked this question also in the
> django-users mailing list and Russell Keith-Magee told me about
> Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing
> lists) but I also asked if I can use JavaScript scripts such as jQuery,
> jQuery UI and other jQuery plugins from the scripts in Python and Russell
> said it's possible but not practical for production. And I'm thinking about
> developing Speedy Mail Software or other projects for production (of course
> after the alpha & beta are over) so I guess we are stuck with JavaScript
> for the client side programming. And I don't mind if they use a compiler or
> an interpreter or any other method to run Python in the client side, as
> long as it works. But without using jQuery and other plugins it would be
> very hard to use these projects in production.
>
> Uri.
>


​I think that you could try RapydScript: http://rapydscript.pyjeon.com/

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.2.0 Released

2015-07-07 Thread Fabio Zadrozny
Release Highlights:
---

* New search page for Python contents

* Text-searches using a Lucene index allows for fast matches.
* Matches can be flattened and grouped by project, folders and modules.
* Results page allows additional filtering based on module name.

* Further improvements on code completion unpacking compound types.

* Not adding auto 'import' token in cython files (to accept cimport).

* PyDev Mylyn integration no longer depends on a specific PyDev release.

* Fixed halting condition when unable to create native file watches.

* Vertical indent guide no longer slows down the editor on Linux
(PyDev-582).


What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.1.0 Released

2015-05-26 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/


Release Highlights:
---

* **Code Completion**

* Improved unpacking of compound types on more situations (PyDev-573).

* **Debugger**

* PyDev remote debugging no longer blocks running program to completion
(PyDev-574).
* When there are too many referrers to some object, results are trimmed.

* **Python 3 grammar**

* Accepting **@** as matrix multiplication operator.
* **async** and **await** are properly parsed.
* Fixed issue parsing 'list remainder' construct (PyDev-568).
* **Others**

* Fixed issue showing editor title name when more than one dot was present
in the filename.
* Support automatic folding elements when opening a file -- must be enabled
in PyDev > Editor > Code Folding (patch by Andreas Pakulat).
* Fixed issue on search page.
* Included css to set default editor colors for PyDev for in Eclipse dark
theme.
* Tab-stops on comments added and enabled by default (patch by jheiv).
* Fixed StackOverflowError on code-completion (PyDev-570)


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 4.0.0 Released

2015-04-15 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python,
Jython and IronPython development.

It comes with goodies such as code completion, syntax highlighting,
syntax analysis, code analysis, refactor, debug, interactive console,
etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for
Multiple cursors, theming and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html,
Javascript, etc.

It's also a commercial counterpart which helps supporting the
development of PyDev.

Details on LiClipse: http://www.liclipse.com/


Release Highlights:
---

* **Code Completion**

* PyDev can now code-complete unpacking compound types (such as
list(str), tuple(MyClass), dict(int:str), etc).
* Code-completion now has a maximum amount of time to complete (which
may be changed in the code-completion preferences).

* **Editor**

* Bytes and Unicode literals now have different colors (note: by
default the Unicode kept the same color used for the old 'Strings'
configuration).
* Mark occurrences is now also provided on some statements (such as
return, continue, etc).

* **PyVmMonitor**

* The PyVmMonitor integration was improved on finding the PyVmMonitor
executable on Linux and Mac.

* **Others**

* It's now possible to bind custom keybindings to help in passing
custom commands to the interactive console (see: PyDev > Interactive
Console > User Commands)
* The bundled autopep8.py and pep8.py were upgraded.
* Search for references (Ctrl+Shift+G) is faster (all processors
available are used for the initial search).
* Search page now has a 'whole word' option.
* Fixed PyDev-Mylyn integration in the PyDev Package Explorer to work
with the latest Mylyn.
* Fixed issue doing code-completion for elements of a list (lst[0].)
in the console. (PyDev-531)
* py.test xfailed tests are no longer marked as 'Failed' in PyUnit
view (PyDev-506)


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipsehttp://www.liclipse.com

PyDev - Python Development Environment for
Eclipsehttp://pydev.orghttp://pydev.blogspot.com

PyVmMonitor - Python Profilerhttp://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Design thought for callbacks

2015-02-26 Thread Fabio Zadrozny
On Wed, Feb 25, 2015 at 9:46 AM, Cem Karan  wrote:

>
> On Feb 24, 2015, at 8:23 AM, Fabio Zadrozny  wrote:
>
> > Hi Cem,
> >
> > I didn't read the whole long thread, but I thought I'd point you to what
> I'm using in PyVmMonitor (http://www.pyvmmonitor.com/) -- which may
> already cover your use-case.
> >
> > Take a look at the callback.py at
> https://github.com/fabioz/pyvmmonitor-core/blob/master/pyvmmonitor_core/callback.py
> >
> > And its related test (where you can see how to use it):
> https://github.com/fabioz/pyvmmonitor-core/blob/master/_pyvmmonitor_core_tests/test_callback.py
> (note that it falls back to a strong reference on simple functions -- i.e.:
> usually top-level methods or methods created inside a scope -- but
> otherwise uses weak references).
>
> That looks like a better version of what I was thinking about originally.
> However, various people on the list have convinced me to stick with strong
> references everywhere.  I'm working out a possible API right now, once I
> have some code that I can use to illustrate what I'm thinking to everyone,
> I'll post it to the list.
>
> Thank you for showing me your code though, it is clever!
>
> Thanks,
> Cem Karan


​Hi Cem,

Well, I decided to elaborate a bit on the use-case I have and how I use it
(on a higher level):
http://pydev.blogspot.com.br/2015/02/design-for-client-side-applications-in.html

So, you can see if it may be worth for you or not (I agree that sometimes
you should keep strong references, but for my use-cases, weak references
usually work better -- with the only exception being closures, which is
handled different anyways but with the gotcha of having to manually
unregister it).

Best Regards,

Fabio​
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.9.2 Released

2015-02-06 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (use LiClipse: http://www.liclipse.com
for a PyDev standalone with all requirements bundled).

* **PyVmMonitor Integration**

* PyVmMonitor: http://www.pyvmmonitor.com/ is now in public beta, so, the
PyDev integration
(Window > Show View > Other > PyDev > Profile) may be used to  profile your
programs.

* **Debugger**

* The debug view now has an interactive console (with history) attached to
it by default (which may be toggled on/off). (PyDev-507)
* Debugger no longer reopens a file when that file is already opened.
(PyDev-456)
* Handled issue when getting referrers for some object gave an error if it
was found in a dict where the key is not a string.
* When interactive console starts in debug session, a banner is no longer
shown.
* Stepping with #@DontTrace no longer returns through decorator call-site.
(PyDev-526)
* The default for tracing template render exceptions on Django is now false.

* **Interactive Console**

* F2 to send contents from editor to console now considers backslash
continuations. (PyDev-502)
* Interactive Console interrupt now properly interrupts a sleep call (when
possible). (PyDev-500)
* PyDev interactive console now has a user-specified encoding (by default
UTF-8). (PyDev-454)
* Scroll the console on stdout / stderr output. (PyDev-504, patch by James
Blackburn)
* Moved interactive console initial commands to a separate preferences page.
* Handling interrupted system call EINTR in the pydevconsole.py. (PyDev-534)
* Fixed racing condition where the output of the console could appear as a
user input. (PyDev-490, patch by James Blackburn)

* **Refactoring**

* Fixed issue where indentation lost on rename module refactoring.
(PyDev-498)
* The rename modules refactoring wizard now provides a way to do a simple
resource rename (to rename extensions).

* **Others**

* Converting filename from .pyx to .py doesn't loose indexing on the file
anymore. (PyDev-525)
* The Cython parser now properly scopes methods.
* Pasting contents directly in the PyDev package explorer to create a file
uses the proper delimiter.
* Fixed deadlock in ImageCache when rendering debug completions from
console. (PyDev-527)
* Fixed deadlock on racing condition when rendering PyTextHover. (PyDev-523)
* Tab settings were separated from the editor color settings and may now be
persisted in the project/user settings.
* Fixed surround with try..finally/except indentation on Ctrl+1 when some
line has a comment which has a different indentation.


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://www.pyvmmonitor.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.9.1 Released

2015-01-08 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (use LiClipse: http://www.liclipse.com
for a PyDev standalone with all requirements bundled).

* **Preferences**

  * PyDev preferences may now be saved and persisted for each project or in
the user settings (not just in the workspace).
  * Currently Save actions, Code Formatter, Typing and Imports are
supported (more to come in upcoming releases).
  * The same pages in the preferences are used to save settings to
(multiple) projects or user settings.
  * Configuration files are saved in Yaml format and are meant to be saved
in version control.

* **Editor**

  * The option to apply auto-formating was changed to apply any save
actions in non-workspace files.
  * Editor icon improved for dark theme (patch by Fathony Luthfillah).
  * When running the pep8 code analysis, the markers shown are no longer 1
character off.

* **Django**

  * Improved Django 1.7 support (patch by David Lehrian).

* **Profiling**

  * Integration with PyVmMonitor: http://pyvmmonitor.github.io/ (currently
only available for backers of the effort).

* A profiling view was created where the location of PyVmMonitor should
be specified.
* Just turning the option on will make all runs from that point on run
with the selected profile backend enabled.

* **Debugger**

  * Connecting to subprocesses working in Python 3.4.
  * Attach to running process is now supported on Mac OS.

* **Others**

  * Unset VIRTUAL_ENV before running external Python to protect the
sys.path (patch by James Blackburn).
  * pytest: Expected failure is no longer marked as a failure.
  * pytest: The working dir is changed so that conftests are loaded
properly (to workaround issue in pytest:
https://bitbucket.org/hpk42/pytest/issue/639/conftest-being-loaded-twice-giving
).
  * Fixed issue where an unused import would not be properly removed if it
was not a from import.
  * Fixed exception when drawing minimap overview ruler.


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler
http://pyvmmonitor.github.io/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need Help

2014-12-01 Thread Fabio Zadrozny
On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar <
aezhi...@gmail.com> wrote:

> Hi Guys,
>
> I'm a beginner of python, I just want your help.
>
> I'm using the Python in Pydev - Eclipse.
>
> How can I get the Failure values from the Console in to a txt or a csv
> file?
>
> And how can I get the final result of the TC (lets say, OK or FAIL or
> ERROR)?
>
> So that If I'm working with 1000 Test cases, I can easily find out the
> Failed TCs and work on them.
>
> Please find my above questions and revert me with a good answer.
>
>
Well, you want that to work/rerun the failed tests, PyDev does have a
unittest-integration view which shows failed tests. Just run the tests
right-clicking a folder -> run tests and the view should show the results
(and it provides a way to show only failed tests, rerun only failures, see
output, etc) -- see: http://pydev.org/manual_adv_pyunit.html

The only thing is that it doesn't export that to a file... if you want to
have that as an exported file, my suggestion would be using nose or pytest
(which can also be used as the runners inside of PyDev --
http://pydev.org/manual_adv_pyunit.html also has more details on that) and
pass a xml dump file (which I think both support).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] Dinamically set __call__ method

2014-11-13 Thread Fabio Zadrozny
On Thu, Nov 13, 2014 at 2:20 AM, Gregory Ewing 
wrote:

> Fabio Zadrozny wrote:
>
>> can someone from python-dev give some background of why that's the way it
>> is?
>>
>
> It's because, with new-style classes, a class is also an
> instance (of class "type" or a subclass thereof). So
> without that rule, it would be ambiguous whether a dunder
> method applied to instances of a class or to the class
> itself.
>
> > and if maybe it's something which python-dev would consider worth
>
>> changing in the future -- not sure how much could break because of that
>> though
>>
>
> Something fairly fundamental that would break is classs
> instantiation! You instantiate a class by calling it, so if
> a(x) were implemented as a.__call__(x), and class C had
> a __call__ method, then C() would invoke that method
> instead of instantiating C.
>
>
Hi Gregory,

Thanks for the explanation -- it still does seem a bit surprising from an
end-user point of view, but it does make more sense now :)

Best Regards,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.9.0 Released

2014-11-13 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (use LiClipse: http://www.liclipse.com
for a PyDev standalone with all requirements bundled).

* **Vertical Indent Guide** is now available (may be customized in PyDev >
Editor > Vertical Indent Guide. PyDev-359).

* **Minimap**

* The horizontal scrollbar is shown by default (again). It's still
possible to hide it in the Preferences > PyDev > Editor > Overview Ruler
Minimap.

* Fixed critical issue where the minimap could lead to a repaint
recursion on some Linux versions (reproduced on Ubuntu 12. LiClipse-120).

* The PYTHONPATH is now properly passed to PyLint when using an external
executable (PyDev-475).

* Fixed issue where breakpoints in other editors (i.e.: CDT) where wrongly
being handled by PyDev (patch by Danny Yoo. PyDev-482).

* Fixed issue doing code-completion for builtins in Jython (PyDev-457).

* **Interactive Console**

* When doing a code-completion with Ctrl+Space, let tab change the
focus instead of doing the tab-enabled completion.

* Output given from the backend could end up being editable (PyDev-465).

* input() was including the prompt in the input string (PyDev-465).

* Debugger console was outputting greeting message when it shouldn't
(PyDev-464).

* **pep8**: --exclude can now be used in pep8 parameters (patch by
Sebastian Elsner. PyDev-466).

* **autopep8**: end line delimiter is now being kept (patch by Ben Blank.
PyDev-461).

* Unittest integration: Making sure we don't import the unittest module
before executing pytest (PyDev-455).

* Unittest integration: Fix to use the proper encoding when passing
stdout/stderr to the java side.

* Fixed issue when debugging file without extension (when there was no
default editor associated to the file name).

* Debugger: getpass properly working with additional arguments (PyDev-460).


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] Dinamically set __call__ method

2014-11-12 Thread Fabio Zadrozny
On Tue, Nov 11, 2014 at 5:43 AM, Ian Kelly  wrote:

> On Sat, Nov 8, 2014 at 3:31 PM, Gregory Ewing
>  wrote:
> > (BTW, I'm actually surprised that this technique makes c callable.
> > There must be more going on that just "look up __call__ in the class
> > object", because evaluating C.__call__ just returns the descriptor
> > and doesn't invoking the descriptor mechanism.)
>
> But of course it doesn't just lookup C.__call__, because it has to
> bind the method to the instance before calling it, which means
> invoking the descriptor protocol. The actual lookup is more like:
>
> type(a).__dict__['__call__'].__get__(a, type(a))
> --
> https://mail.python.org/mailman/listinfo/python-list
>


As a reference, I recently found a blog post related to that:
http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/ (the
Slots part comments on that).

It does seem a bit counter-intuitive that this happens the way it does
though, so, can someone from python-dev give some background of why that's
the way it is? i.e.: instead of the approach which would seem simpler which
would do getattr(a, '__call__') instead of
type(a).__dict__['__call__'].__get__(a, type(a)) -- it seems to me it's
mostly because of historical reasons, but I'm really curious why is it so
(and if maybe it's something which python-dev would consider worth changing
in the future -- not sure how much could break because of that though).

Thanks and Best Regards,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.8.0 Released

2014-09-25 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://brainwy.github.io/liclipse/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (use LiClipse:
http://brainwy.github.io/liclipse for a PyDev standalone with all
requirements bundled).

* **Debugger**

* It's now possible to **attach debugger to running process in Windows
and Linux** (open debug perspective > PyDev > Attach to Process)

* pep8 upgraded to 1.5.7
* Fixed issue in dialog shown when PyDev editor is opened which could lead
to closing the IDE.
* Selecting PyQT API version using sip.setapi no longer fails in debug mode
(PyDev-452).
* Code completion tries to get docstring definition from class before
evaluating property (PyDev-412).
* Internal error error when parsing file with wrong syntax:
java.lang.ClassCastException for invalid dict (PyDev-411).
* runfile was restored in pydevconsole (Ctrl+Alt+Enter is working again).
* **Variables** and **Expressions** views working again when debugging
interactive console (PyDev-446).
* Pressing Shift to debug with Ctrl+F9 test runner now properly works in
Linux (PyDev-444).
* Fixed interpreter configuration when the interpreter prints something
before actually running interpreterInfo.py (PyDev-448).
* Fixed NullPointerException when debugging file without extension.


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PyDev Code Analysis

2014-09-02 Thread Fabio Zadrozny
On Tue, Sep 2, 2014 at 2:27 PM, Wanderer  wrote:

>
> I'm trying to set up Eclipse with PyDev and I can't get the code analysis
> to work the way I want.
>
> Whenever I type 'def' it generates an error before I finish the line. I
> don't want to see errors until I finish typing. It's not an error I'm just
> not done yet. So I try to turn this off by going to
> Window>Preferences>PyDev>Editor>CodeAnalysis and setting the option When do
> we analyze? to Only on save. This doesn't stop these errors from showing up
> while I'm typing. What it does is stop checking for warnings like 'unused
> variable' even on save. If I set the option to 'On any successful parse'
> then it will check for these warning only on save.
>
> To summarize
> Setting 'Only on save', turns off warnings but keeps giving real time
> errors.
>
> Setting 'On any successful parse', checks for warnings only on save and
> keeps giving real time errors.
>
> I'm using
> Eclipse IDE for C/C++ Developers 4.4.0.21040612
> Pydev for Eclipse 3.7.0.201408261926
>
>
> What I am I doing wrong?
>
> Thanks
>

Well, there are 2 different things there:

Code analysis and syntax analysis.

Syntax analysis is always done on the fly (and you can't really turn it off
-- the places which require an AST will usually use the AST which is
computed there and when it's computed and there's a syntax error, that
error will be shown). It should usually be computed when a new line is
entered, on a save or after you entered some text and the timeout specified
at preferences > pydev > builders is elapsed.

As for the code analysis (which will check errors and warnings such as
unused imports / unresolved imports / undefined variables, etc.), it has
the options you saw (which are affected by the only on save/on any
successful parse).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.7.0 Released

2014-08-27 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://brainwy.github.io/liclipse/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (use LiClipse:
http://brainwy.github.io/liclipse for a PyDev standalone with all
requirements bundled).

* **Minimap**

* Minimap is enabled by default.
* The minimap now shows content based on the outline.
* It's possible to customize the minimap selection color.
* Fixed issue where the background in the minimap could have a part
with a different color until the image was fully redrawn.
* Scrollbars hidden by default.

* **Editor**

* Auto code-completion on all letter chars is enabled by default.

* **Debugger**

* Merged debugger code with the PyCharm fork.
* Fix the wrong signature of stackless.get_schedule_callback.
* Breakpoints work in Django templates (requires the LiClipse:
http://brainwy.github.io/liclipse/ html/django editor to work).
* Gevent debugging (must be enabled in the debugger preferences page).
* Faster debugging when dealing with huge dicts/sets/lists/tuples.
* QThreads can be debugged (for remote debugging, 'import pydevd' must
be done before any user code is executed for it to work).

* **Interactive Console**

* Output is gotten asynchronously.
* It's possible to interrupt the console.

* **Others**

* Autopep8 now works with non ascii sources.
* More than 20 levels of indentation no longer causes
ArrayOutOfBoundsException.
* Fixed some NullPointerExceptions.
* A bunch of other bugfixes.


Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Error in PyDev but not in the standard python interpreter

2014-06-24 Thread Fabio Zadrozny
Well, it 'appears' to be the same type, but given that the File from one is
different from the other, I think they aren't...

Googling a bit, I found the source:
https://code.google.com/p/netcdf4-python/source/browse/trunk/netcdftime.py?r=1117
and it has a 'datetime' which says: "Phony datetime object which mimics the
python datetime object", now, I'm not sure why it works in the Python shell
but not in the IPython shell integrated in PyDev... You may want to create
a module and do a debug run to step into the 'num2date' call to see what
differs there... (i.e.: I think that if you do isinstance(d1, datetime)
it'll return false, as it seems to be a netcdftime.datetime object).

Best Regards,

Fabio


On Tue, Jun 24, 2014 at 10:28 AM, Fabien  wrote:

> Hi,
>
> this is probably not the best place for this topic but I know this forum
> is widely read. I take this opportunity and apology at the same time.
>
> If I run this in my python3 interpreter everything works fine:
>
> mowglie@flappi ~ $ python3
> Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
> [GCC 4.8.1] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from netCDF4 import num2date
> >>> from datetime import datetime
> >>> d1 = num2date(0, 'days since 1000-01-01', 'standard')
> >>> d2 = datetime(2000, 1, 1)
> >>> print(d1 < d2)
> True
>
> But if I run the code in PyDev I get:
> print(d1 < d2)
> TypeError: unorderable types: datetime() < datetime.datetime()
>
> When debugging in pyDev, everything looks fine:
> >>> sys.version
> Out[28]: '3.3.2+ (default, Feb 28 2014, 00:52:16) \n[GCC 4.8.1]'
> >>> ?d1
> Type:   datetime
> String Form:1000-01-01 00:00:00
> File:   /usr/local/lib/python3.3/dist-packages/netcdftime.py
> Docstring:
> [...]
> >>> ?d2
> Type:   datetime
> String Form:2000-01-01 00:00:00
> File:   /usr/lib/python3.3/datetime.py
> Docstring:
> [...]
> >>> d1 < d2
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py",
> line 2732, in run_code
> exec(code_obj, self.user_global_ns, self.user_ns)
>   File "", line 1, in 
> d1 < d2
> TypeError: unorderable types: datetime() < datetime.datetime()
>
>
> So they are two instances of the same object but something in pyDev
> doesn't want to compare them. Any Hint?
>
> Thanks!
>
> Fabien
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.5.0 Released

2014-05-20 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://brainwy.github.io/liclipse/


Release Highlights:
---

- **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (or LiClipse for a PyDev standalone
with all requirements bundled).

* Adding plead for the current crowdfunding at http://tiny.cc/pydev-2014.

* PyDev now has a new logo.

* **py.test**:

* Improved py.test test runner preferences page.

* py.test integration improved to be less intrusive and work with xdist.

* py.test protocol invocation now allows for module/session scoped
fixtures to work properly.

* Add bookmark and add task actions are shown in the ruler context menu
(**Ctrl+F10**).

* Code completion was not properly recognizing variables assigned to self
inside an elif statement.

* Django 1.7: Model.objects is manually patched inside PyDev to give proper
code-completion results.

* Debugger: hovering over private ('__' prefixed) variables now shows
proper value.

* Thread.isAlive() is no longer called to workaround debugger issue on
Python 3.4.

* Hyperlinking should not happen on spacing characters (I.e.: Ctrl+click on
spaces).

* Fixed NPE when interpreter is created with JDT and loaded afterwards
without it.

* Fixed issue where tokens cached information could end up being null after
I/O.

* Manually creating new run configuration no longer gives an exception
(i.e.: configuration without associated project).

* Out-of-sync error on PYTHONPATH change (patch by Danny Yoo)

* There's an extension point for clients to resolve modules (patch by Danny
Yoo).

* **Ctrl+Shift+G** (find references) is now properly categorized.

* Rename refactoring now validates files (read only) prior to refactoring
(patch by Danny Yoo).

* Not checking preferred settings when the PyDev plugin is started, but
rather when a PyDev editor is opened.

* Setting remote debugger socket to be properly reused.

* The PyDev stdout/stderr redirector now properly uses PYTHONIOENCODING.



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Fabio Zadrozny
On Wed, Apr 30, 2014 at 8:39 AM, Steve Simmons wrote:

> I'm trying to set up a new dev environment using Windows 7; Eclipse
> (Kepler); Python 3.3; PyDev and PyQt 5 and I've hit an issue getting PyUIC
> to generate a python Qt class from within Eclipse.
>
> I'm using the following setup process (from Google Groups)  modified to
> match my PyQt5 configuration:
>
> 1. Click Run -> External Tools -> External Tools Configurations ...
> 2. In the resulting dialog, click 'New' icon in the top left
> 3. Under 'Name' put 'PyUIC'
> 4. Under 'Location' enter 'C:\Program Files\Python\2.5\Python.exe' or
> the path to your Python executable (probably C:\Python25\Python.exe)
> 5. Under 'Arguments' enter '"C:\Program Files\Python\2.5\Lib\site-
> packages\PyQt4\uic\pyuic.py"  "${resource_loc}"' substituting the path
> to your PyQt4 installation - be sure also to include the double quotes
> 6. Change to the 'Common' tab and check 'File' under 'Standard Input/
> Output' and enter '${resource_loc}.py'
> 7. Change to the 'Build' tab and uncheck 'Build before launch'
> 8. Change to the 'Refresh' tab and check 'Refresh resources upon
> completion'
> 9. Click 'Apply' then 'Run'
>
> and I'm getting the following traceback:
>
> Traceback (most recent call last):
>   File "D:\Development\Python33\Lib\site-packages\PyQt5\uic\pyuic.py",
> line 28, in 
> from .driver import Driver
> SystemError: Parent module '' not loaded, cannot perform relative import
>
> I tried this on Qt4 a week or so ago and it worked OK but Qt5 is giving me
> an error message, so I guess I've either mis-transcribed or there's a
> difference in the directory structure betwee PyQt4 & PyQt5.
>
> I'm more interested to learn how to read the traceback (insightfully) and
> track it to the source of the problem, although it would be good to have it
> working too!!
>
> Steve Simmons
>
> PS Also posted to PyQT list.
> --
> https://mail.python.org/mailman/listinfo/python-list
>


The problem is that a main module cannot perform relative imports on
Python. To overcome that limitation, Python created a workaround to execute
a module with:

python -m 'module.name'

So, If you execute Python as:

python -m PyQt5.uic.pyuic

(instead of "python C:\Program
Files\Python\2.5\Lib\site-packages\PyQt5\uic\pyuic.py")

it should work.

If you want, you can read an answer on
http://stackoverflow.com/questions/14132789/python-relative-imports-for-the-billionth-timefor
more details on why it doesn't work and the other way does...

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Examples of modern GUI python programms

2014-04-03 Thread Fabio Zadrozny
On Wed, Apr 2, 2014 at 8:52 AM, Sturla Molden wrote:

> Wolfgang Keller  wrote:
>
> > Judging from the example screenshots on their website, Kivy might be
> > adequate.
>
> Kivy depends on PyGame which is GPL, and can only be used to build GPL
> software.


Actually, PyGame is LGPL: http://www.pygame.org/LGPL (it's also what their
source files say, although I noted that in their homepage the link which
points to http://www.pygame.org/LGPL *wrongly* says GPL when the actual
link goes to LGPL and the sources say LGPL).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.4.1 Released

2014-03-20 Thread Fabio Zadrozny
What is PyDev?
---

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com


What is LiClipse?
---

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming and a number of other languages such as Django Templates,
Kivy Language, Mako Templates, Html, Javascript, etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://brainwy.github.io/liclipse/


Release Highlights:
---

- **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (or LiClipse for a PyDev standalone
with all requirements bundled).


- **Interactive Console**:

* **Send a single line to the interactive console with F2** (akin to
Ctrl+Alt+Enter but only for the current line).


- **Debugger**:

* **Added support for debugging spawned subprocesses.**

* New Django launches no longer have -noreload to take advantage of
that (but existing launches have to be manually edited -- or removed and
recreated).

* When terminating a process its subprocesses are also killed (avoiding
django zombie processes).

* In the debugger, locals are now also properly saved on PyPy (requires
a newer version of PyPy too).

* Remote Debugger: when specifying items in
PATHS_FROM_ECLIPSE_TO_PYTHON pathnames are normalized.

* Fixes to work with Jython 2.1 and Jython 2.2.1

* Always setting PYTHONUNBUFFERED environment variable to 1.

* The python default encoding is no longer changed (only
PYTHONIOENCODING is used now and not sys.setdefaultencoding).

* Minor improvements on get referrers.


- **General**:

* **Cython: .pxd and .pxi files are properly supported.**

* Interpreter configuration: It's possible to reorder PYTHONPATH
entries with drag and drop.

* Fixed django interactive shell to work with newer versions of Django.

* Rename working properly for files without extensions.

* Fixed issue where specifying the type of a variable with a comment
was not detected in the code-completion.

* Fixed issue where we'd open a file as if it was an external file when
it was actually a file in the workspace or inside a source folder.

* PyDev Package Explorer: fixed issue where some errors would remain
showing when they didn't exist anymore.

* PyDev Package Explorer: fixed issue where items could change its
order depending on decorations.

* On a double-click on spaces, all the spaces are selected.


- **Test Runner**:

* **Improved py.test integration**: it's now possible to select which
tests to run with Ctrl+F9 (even if not under a class).

* No longer breaks if a file which was in a launch config is removed
(still runs other tests in the launch).

* After a test run finishes, if there are non-daemon threads running
they're printed to the output.

* Fixed UnicodeDecodeError when running unit-tests under python 2.x

* Fixed issue on test discovery on Linux.


- **Sorting Imports**:

* Sort of imports no longer adds spaces at end of imports.

* Sort of imports no longer passes the number of available columns
specified.

* It's now also possible to keep the names of 'from' imports sorted.



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Diagnose a segfault in ipython/readline

2014-03-06 Thread Fabio Zadrozny
On Thu, Mar 6, 2014 at 3:11 AM, Felix Yan  wrote:

> On Wednesday, March 05, 2014 20:15:31 Ned Deily wrote:
> > The current
> > assumption is that Python 2.7.6+, 3.3.5, and 3.4.0 have no problems with
> > readline 6.3.
>
> Thank you.
>
> I just gave a try to 3.4.0b2 with readline 6.3, and still get the same
> segfault. Not sure the version is new enough though.
>
> Also we reported the problem on readline mailing list first, so if they
> end up
> thinking there's something that python need to fix, I'll open a bug on the
> Python bug tracker.
>
> Thanks again!
>
>
Just a note here (which may or may not work for your case), but you could
try using the faulthandler module to see if it can give you a stack trace
you can work with...

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Fabio Zadrozny
On Sun, Feb 16, 2014 at 11:52 AM, Renato  wrote:

> It's solved now, oh my god I was so stupid! I created a package named
> "pybrain" for testing PyBrain module, so obviously when I tryed to import
> something from PyBrain library, Python would import all modules from this
> personal package I created. The problem was not being reproduced outside
> Eclipse because only within Eclipse my personal workstation directory
> (which contained the personal package "pybrain") was visible. The solution
> was simple: I just deleted the personal package named "pybrain" and now
> everything is working. Thank you very much for your help!
>


Hi Renato,

Nice that you got it working...

Now, just as a heads up, that version of PyDev is quite old (the latest
PyDev release: 3.3.3 is in many ways improved when comparing to older PyDev
versions). I know Aptana Studio still has the older version, so, if you use
mostly Python and you don't need the other features that Aptana Studio
adds, it might be worth going to pure Eclipse + PyDev (or using LiClipse
which also adds support for other languages -- besides being better
configured out of the box, although it's a commercial counterpart of PyDev
-- whose funds help to keep PyDev development going forward).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem importing libraries installed with PIP in Eclipse

2014-02-15 Thread Fabio Zadrozny
On Fri, Feb 14, 2014 at 1:30 AM, Renato  wrote:

> Hi guys, I'm using Python 2.7.5 64 bits and I have a problem when
> importing libraries that were installed via PIP when importing them inside
> Eclipse (version 4.3.1). Outside Eclipse (directly in Python's shell)
> everything works fine, here is an example:
>
> >>> import numpy # installed from repositories
> >>> from numpy import array
> >>> import pybrain   # installed via PIP
> >>> from pybrain import Network
> >>>
>
> Everything works outside Eclipse. But inside Eclipse I can't import
> libraries installed via PIP using "from x import y" format, it will give an
> error. The only way I can import libraries installed via PIP is using
> "import x" format. Here is an example:
>
> import numpy # no errors (installed
> from repositories)
> from numpy import array  # no errors
> import pybrain   # no errors (installed
> via PIP)
> from pybrain import Network  # gives the error below
>
> Traceback (most recent call last):
>   File "/media/arquivos/pybrain_import_test.py", line 4, in 
> from pybrain import Network
> ImportError: cannot import name Network
>
> I suspected it could be related to virtualenv, but here is a print screen (
> http://imageshack.com/a/img534/4307/3x0m.png) of my Python's PATH. The
> directory /usr/lib/python2.7/site-packages where PyBrain is installed is
> already in Python's PATH inside Eclipse. Could someone help me, please?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Hi Renato,

Can you do the following:

Create a new script with:

import sys
print '\n'.join(sorted(sys.path))

And let me know if the paths you have listed in both are equal... Also,
which version of PyDev are you using?

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.3.3 Released

2014-01-28 Thread Fabio Zadrozny
Hi All,

PyDev 3.3.3 has been released

Details on PyDev: http://pydev.org

Details on its development: http://pydev.blogspot.com

LiClipse (PyDev standalone with goodies such as support for Django
Templates, Kivy Language, Mako Templates, Html, Javascript, etc):
http://brainwy.github.io/liclipse/


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, code analysis, refactor, debug, etc.


Release Highlights:
---


* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x (see LiClipse:
http://brainwy.github.io/liclipse for a PyDev standalone with all
requirements bundled).


* **Code Completion**:

- Compiled modules are now indexed and shown in the context-insensitive
code-completion.

- In an empty file, a code-completion request will show options related
to creating modules (press Ctrl+Space twice to show only those templates).


* **Performance**:

- Building (indexing) of Python files is **much** faster.

- Code completion does not get slown down by other analysis done in the
background due to shell synchronization.


* **Interactive Console**:

- The interactive console now has tab-completion (so, tab can be used
to show completions such as in IPython).


* **Debugger**:

- **Locals are now properly changed in the debugger** -- along with set
next statement and auto-reloading this can make a debug session much more
enjoyable!

- Added a way to skip functions on a step-in on functions with
**#@DontTrace** comments:

- **Makes it possible to skip a lot of boilerplate code on a debug
session!**
- Can be enabled/disabled in the debugger preferences;
- Ctrl+1 in a line with a method shows option to add
**#@DontTrace** comment (if enabled in the preferences).

- Debugging Stackless is much improved, especially for versions of
Stackless released from 2014 onwards (special thanks to Anselm Kruis who
improved stackless itself for this integration to work properly).

- Reload during a debug session is improved and more stable:

- Only updates what it can in-place or adds new attributes;

- Shows what's being patched in the console output;

- New hooks are provided for clients which may want to extend the
reload;

- See: Auto Reload in Debugger:
http://pydev.org/manual_adv_debugger_auto_reload.html for more details.



* **General**:

- Compiled modules are now indexed, so, **fix import with Ctrl+1 now
works with itertools, PyQt and other 'forced builtins'**.

- When diffing a Python file, the PyDev comparison (with proper syntax
highlighting) is now the default.

- When finding a definition in a .pyd file, if there's a related .pyx
in the same location, it's opened.

- Running unit-tests will not try to import files that are in folders
that don't have an __init__.py file.

- Alt+Shift+O can be used to toggle mark occurrences.

- Ctrl+3 not bound by default anymore on PyDev so that it does not
conflict with the Eclipse Ctrl+3 (Ctrl+/ can be used instead).

- Fixed recursion issue when finding file in pydev package explorer.

- When configuring the interpreter, links are not followed when
resolving entries for the PYTHONPATH.

- It's possible to launch a directory containing a __main__.py file
executable.

- Fixed issues when creating django project without any existing
project in the workspace.

- Fixed deadlock on code-completion.

- __pycache__ folders are hidden by default.


* **Organize imports**:

- When saving a file, if automatically organizing imports, don't remove
unused imports even if that option is checked.

- When saving a file, if automatically organizing imports, and nothing
changes, don't change the buffer (so, no undo command is created).

- @NoMove can be used in an import so that the import organizer doesn't
mess with it.



* **Refactoring**:

- Fixed error when moving resource in PYTHONPATH to a dir out of the
PYTHONPATH.

- On a search make sure we search only python files, not dlls (which
could give OutOfMemory errors and make the search considerably slower).

- Multiple fixes on the rename module refactoring.



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.2.0 Released

2013-12-30 Thread Fabio Zadrozny
Hi All,

PyDev 3.2.0 has been released

Details on PyDev: http://pydev.org

Details on its development: http://pydev.blogspot.com

LiClipse (PyDev standalone with goodies such as support for Django
Templates, Mako Templates, Html, Javascript, etc):
http://brainwy.github.io/liclipse/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x.

* **General**:

* Added option to sort imports on save.

* Showing dialog suggesting user to customize settings in Eclipse which
are more suitable for PyDev.

* Memory improvements on situations where an OutOfMemoryError could
happen.

* Search references (Ctrl+Shift+G) when initial is on external module
works (for matches in workspace).

* **Rename refactoring**:

* Added option to rename module without updating references.

* Bugfixes.

* **Performance**:

* Code completion: Builtins gotten from a shell are now cached for
subsequent requests.

* Doing a full build (reindex) is faster.

* **Debugger**:

* Improvements on stackless integration.

* Providing a view which shows the current caught exception.

* Providing way to ignore current caught exception.

* Providing option to show progress on taskbar when breakpoint is hit
to get the users attention (windows 7).

* Fixed issue in while getting referrers when getting __dict__ and
having an exception.



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

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: eclipse+pyDev code complete problem

2013-12-29 Thread Fabio Zadrozny
Hi there,

Please create an issue in the PyDev tracker for that:
https://sw-brainwy.rhcloud.com/tracker/PyDev/

Cheers,

Fabio


On Fri, Dec 27, 2013 at 4:54 PM, zhaoyunsong  wrote:

> dear all,
> I am trying to configure eclipse + pydev as my ide, but there seems to be
> some problem on code complete.
> the attached is the case when code complete does not work. any
> suggestions? Thanks!
>
> my system is win 64bit
> pyhon 3.3 64bit
> eclipse kepler-SR1
> pydev 3.1
> I downloaded pillow from this website:
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
>
> Yunsong Zhao
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.1.0 released

2013-12-12 Thread Fabio Zadrozny
Hi All,

PyDev 3.1.0 has been released

Details on PyDev: http://pydev.org

Details on its development: http://pydev.blogspot.com

LiClipse (PyDev standalone with goodies such as support for Django
Templates, Mako Templates, Html, Javascript, etc):
http://brainwy.github.io/liclipse/


Release Highlights:
---

* **Important**: PyDev requires Eclipse 3.8 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x.

* **Refactoring**:

* It's now possible to rename a module (using F2 or drag and drop in
the pydev package explorer).

* Multiple improvements on the rename refactoring.

* **Debugger**:

* **Automatic code reloading on the debugger** (based on xreload).

* When a file is changed and a debug session is on, PyDev will
automatically reload it (based on xreload).

* View
https://github.com/fabioz/Pydev/blob/development/plugins/org.python.pydev/pysrc/pydevd_reload.pyfor
caveats/limitations.

* **Get referrers on debug**

* Right-click expression or variable in debugger and select 'Get
Referrers'

* Note: may not work on some Python variants as it needs access to
the gc module.

* **Stackless python** is now supported in the debugger, showing all
the suspended tasklets in the stack view.

* Automatically force focus to Eclipse on breakpoint hit (Enable in
prefereces > pydev > debug).

* The remote debugger can be left 'always on' (Enable in prefereces >
pydev > debug).

* If there's an exception while evaluating a conditional breakpoint the
thread is suspended and the issue reported.

* Option to skip caught exceptions thrown and handled in the same
context.

* A comment with @IgnoreException can be added to lines where an
exception is thrown to have that exception ignored by the debugger when
caught exceptions support is turned on.

* Improved visualization of frame objects.

* Bug-fixes on Jython debugging.

* **Unittest**:

* Django: The default PyDev unittest runner can now run Django tests
properly

* Selecting a unit-test method in the editor and **right-click > run as
unit-test** will run only the selected unit-test.

* **Ctrl+F9** with test selected will pre-select only that test to run
in unit-test.


* **General**:

* Improvements on search for references (Ctrl+Shift+G).

* Fixed some racing conditions related to the plugin startup.

* Organize imports has option to add from imports before other imports.

* Improved connection to shell that does code-completion.

* Properly supporting creation of shell inside a Jython VM in Eclipse.


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

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: UnicodeDecodeError: 'ascii' codec can't decodee byte 0xff in position 0: ordinal not in range(128)

2013-11-18 Thread Fabio Zadrozny
On Mon, Nov 18, 2013 at 2:55 AM, Hoàng Tuấn Việt wrote:

> Hi all,
>
>
>
> I use Python telnetlib on Windows 7 32 bit. Here is my code:
>
>
>
> def *telnet*(*self*, host, os, username, password):
>
> connection = telnetlib.Telnet(host)
>
> connection.read_until(*'login: '*)
>
> connection.write(username + *'\r'*)
>
> connection.read_until(*'assword: '*)
>
> connection.write(password + *'\r'*)
>
> connection.read_until(*'>'*, timeout = TIMEOUT)
>
>return connection
>
>
>
> I can run the program in Eclipse and telnet successfully to a Windows host.
>
>
>
> But when I export to .exe file:
>
>
>
> from distutils.core import setup
>
> import py2exe
>
>
>
> setup(
>
> options = {
>
> *"py2exe"*:{
>
> *"packages"*: [*'wx.lib.pubsub'*],
>
> *"dll_excludes"*: [*"MSVCP90.dll"*, *"HID.DLL"*,
> *"w9xpopen.exe"*],
>
> }
>
> },
>
> console = [{*'script'*: *‘my_program.py'*}]
>
> )
>
>
>
> and run the programe, I encounter this error:
>
>
>
> UnicodeDecodeError: 'ascii' codec can't decodee byte 0xff in position 0:
> ordinal not in range(128)
>
>
>
> at line:
>
>
>
> connection.write(username + '\r')
>
>
>
> I have debugged and searched the Internet hard but found no solution yet.
>
>
>
> I think it is because of ‘\r’.
>
>
>
> Do you have any idea?
>
>
>
> Viet
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
You should be able to reproduce the same behavior on PyDev if in your run
configuration you select the encoding of the console to be ascii (run > run
configurations > select run configuration > common > set encoding to
us-ascii).

My guess is that you have the problem because the username has non-ascii
chars -- and you're receiving it as an unicode and not a string... so, you
have to do encode it properly to a string before writing to the connection
(i.e.: username.encode('utf-8') + '\r' -- although the encoding may have to
be a different one and not utf-8).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PyDev 3.0 Released

2013-11-08 Thread Fabio Zadrozny
Hi,

What you get from LiClipse which you don't have on Eclipse+PyDev is:

- Lightweight support for other languages (i.e.: there's an editor which
provides highlighting, outline and other goodies which supports multiple
languages such as Django Templates, Mako, Javascript, Html, etc. -- and it
should be easy to add other DSLs too).

- Improved themeing (it extends eclipse color theme to theme not only the
editor, but other parts of the ide).

- Multi-edition (i.e.: Ctrl+K will create links for multi edition or
alternatively you can Ctrl+Alt+mouse select to select multiple lines to
edit at once)

- Things are pre-configured (i.e.: it provides a native installer which
bundles a jre and other common plugins such as anyedit, startexplorer,
egit...)

So, currently those are the advantages -- still, as you noted, PyDev is the
same on both cases :)

Cheers,

Fabio


On Fri, Nov 8, 2013 at 12:14 AM, flebber  wrote:

> I see the main difference between Liclipes and Eclipse+Pydev being
> lightweight  and Loclipse preconfigured to a degree.
>
> Moving forward what advantages would I get by buying Liclipes over Eclipse?
>
> Sayh
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 3.0 Released

2013-11-07 Thread Fabio Zadrozny
Hi All,

PyDev 3.0 has been released

Details on PyDev: http://pydev.org

Details on its development: http://pydev.blogspot.com

LiClipse (PyDev standalone with goodies such as support for Django
Templates, Mako Templates, Html, Javascript, etc):
http://brainwy.github.io/liclipse/


Release Highlights:
---

* From now on, PyDev requires Eclipse 3.7 or 4.3 onwards and Java 7! For
older versions, keep using PyDev 2.x.

* Interpreter is now kept up to date with changes to the interpreter, so,
pip-installing packages will automatically update internal caches without
requiring a manual step.

* Fixed issue connecting to shell for code-completion (which could halt the
IDE).

* Interactive Console (patches by Jonah Graham)

* IPython 1.0 is now supported.

* Computational Crystallography Toolbox (CCTBX:
http://cctbx.sourceforge.net/) can now be used with PyDev.

* Debug support in interactive console (must be enabled in preferences).

* User Module Deleter (UMD): forcefully reloads user-loaded modules
when using runfile on interactive console (must be enabled in preferences).

* GUI event loop integration: more backends are now supported and can
be configured in the preferences.

* %gui provides customization for the gui event loop integration (i.e.:
%gui wx enables wxPython integration).

* %edit on IPython will open the file in the PyDev editor.

* History of commands is now saved to a persistent file.

* Loading of history is faster.

* Interpreter configuration (patches by Andrew Ferrazzutti)

* Interpreter configuration quick auto-config: automatically finds a
Python installed and configures it.

* Interpreter configuration advanced auto-config: searches for multiple
Python installations in the computer and allows selecting one to configure.

* Source folders (PYTHONPATH) are kept updated on renames and moves in
the PyDev package explorer.

* Grammar 3.x accepts u'str'.

* Fixed project configuration ${PROJECT_DIR_NAME} variable to point to dir
name inside Eclipse and not the folder name in filesystem (this could make
PyDev miss folders in the project PYTHONPATH).

* Debugger:

* Breakpoints working on files with unicode chars.

* patches by Jonah Graham:

* Variables can be pretty-printed with right-click > pretty print.

* Improved handling for numpy.ndarrays.

* And as usual, many other bugfixes!

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

LiClipse
http://brainwy.github.io/liclipse

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python IDE and function definition

2013-09-24 Thread Fabio Zadrozny
On Mon, Sep 23, 2013 at 8:20 PM, Neil Hodgson  wrote:

> Chris Friesen:
>
>
>  where I could highlight the "stop" and ask it to go to the definition.
>> (Where the definition is in a different file.)
>>
>> I'm running into issues where my current IDE (I'm playing with Komodo)
>> can't seem to locate the definition, I suspect because it's too ambiguous.
>>
>
> Some IDEs allow you to help them understand the context by adding type
> information. Here's some documentation for Wing IDE that uses an isinstance
> assertion:
> http://www.wingware.com/doc/**edit/helping-wing-analyze-code


Just to note, PyDev can also use the assert isinstance as well as
docstrings (http://pydev.org/manual_adv_type_hints.html) for type hinting.

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python IDE and function definition

2013-09-23 Thread Fabio Zadrozny
On Mon, Sep 23, 2013 at 2:29 PM, Chris Friesen  wrote:

> On 09/23/2013 09:32 AM, Fabio Zadrozny wrote:
>
>> On Mon, Sep 23, 2013 at 12:06 PM, Chris Friesen > <mailto:cbf...@mail.usask.ca>> wrote:
>>
>>
>> Hi all,
>>
>> I'm looking for a python IDE (for Linux) that can look at code like
>> this:
>>
>> class ConductorManager(manager.__**Manager):
>>
>>  def compute_recover(self, context, instance):
>>  self.compute_api.stop(context, instance, do_cast=False)
>>
>> where I could highlight the "stop" and ask it to go to the
>> definition. (Where the definition is in a different file.)
>>
>> I'm running into issues where my current IDE (I'm playing with
>> Komodo) can't seem to locate the definition, I suspect because it's
>> too ambiguous.
>>
>> The fact that python is dynamically typed seems to mean that there
>> could potentially be multiple answers, any class with a stop()
>> method with the right signature could presumably be plausible,
>> right?  So rather than give up, I'd like to have my IDE suggest all
>> possible answers.
>>
>>
>>
>> PyDev (http://pydev.org/) is able to do that (i.e.: if the find
>> definition doesn't find it directly, it shows a list with possible
>> matches for you to choose the most appropriate one:
>> http://pydev.org/manual_adv_**gotodef.html<http://pydev.org/manual_adv_gotodef.html>)
>> -- additionally, you can also
>> search for methods/classes/attributes directly:
>> http://pydev.org/manual_adv_**open_decl_quick.html<http://pydev.org/manual_adv_open_decl_quick.html>
>>
>
> I've installed eclipse/pydev and tried it out.  The problem that I'm
> seeing is that it will show me *all* stop() methods that it knows about,
> regardless of function signature.
>
> So in the above case, my function call looks like:
> self.compute_api.stop(context, instance, do_cast=False)
>
> but pydev will offer matches that look like:
> def stop(self):
>
> This runs into problems with commonly-named functions.  I tried searching
> for the start() method in:
>
> self.compute_api.start(**context, instance)
>
> and it complained that there were too many possible results.
>
> Basically, I'm looking for something smart enough to throw out methods
> with the same name but that don't match the signature.
>
> Chris
>
>
Seems like a nice request... it'd be nice if you can report it as a feature
request at the pydev tracker (at https://sw-brainwy.rhcloud.com/ -- note
that you have to sign up to create an issue).

Cheers,

Fabio
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python IDE and function definition

2013-09-23 Thread Fabio Zadrozny
On Mon, Sep 23, 2013 at 12:06 PM, Chris Friesen wrote:

>
> Hi all,
>
> I'm looking for a python IDE (for Linux) that can look at code like this:
>
> class ConductorManager(manager.**Manager):
> def compute_recover(self, context, instance):
> self.compute_api.stop(context, instance, do_cast=False)
>
> where I could highlight the "stop" and ask it to go to the definition.
> (Where the definition is in a different file.)
>
> I'm running into issues where my current IDE (I'm playing with Komodo)
> can't seem to locate the definition, I suspect because it's too ambiguous.
>
> The fact that python is dynamically typed seems to mean that there could
> potentially be multiple answers, any class with a stop() method with the
> right signature could presumably be plausible, right?  So rather than give
> up, I'd like to have my IDE suggest all possible answers.



PyDev (http://pydev.org/) is able to do that (i.e.: if the find definition
doesn't find it directly, it shows a list with possible matches for you to
choose the most appropriate one: http://pydev.org/manual_adv_gotodef.html)
-- additionally, you can also search for methods/classes/attributes
directly: http://pydev.org/manual_adv_open_decl_quick.html

Cheers,

Fabio



>
>
> Chris
> --
> https://mail.python.org/**mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: better and user friendly IDE recommended?

2013-09-12 Thread Fabio Zadrozny
You'll probably get way too many answers (everyone has its own personal
favorite).

I suggest you check:
http://stackoverflow.com/questions/81584/what-ide-to-use-for-python and
https://wiki.python.org/moin/IntegratedDevelopmentEnvironments, grab the
ones you think are worth it, experiment with them a bit and use what works
best for you.

Cheers,

Fabio



On Wed, Sep 11, 2013 at 11:14 AM,  wrote:

> Hey i am a programmer but new to python. Can anyone guide me in knowing
> which is a better IDE used to develop web related apps that connect to DB
> using python?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python Debugger tool

2013-09-06 Thread Fabio Zadrozny
On Fri, Sep 6, 2013 at 3:14 AM, chandan kumar wrote:

> Hi
>
> Is any one aware of  free ipython debugger tool.How good is this tool for
> a beginner to use like ,placing breakpoints,checking variables ,call stack
> (function flow) etc.I don't like to use python PDB .
>  I have heard about wingware ,pycharm  which are licensed versions.Used
> wingware trail version and felt pretty good tool for beginners.
>
> Please let know your views on ipython.Let me know about any python free
> debugger tools
>

Just a note: the debugger in PyCharm is actually a fork of the PyDev
debugger, so, using PyDev (which is Open Source) may be an option if you'd
like something more visual than the IPython debugger (see:
http://pydev.org/manual_adv_debugger.html for the debugger and
http://pydev.org/manual_101_root.html for installing/configuring PyDev
initially).

Cheers,

Fabio


>
>
> Best Regards,
> Chandan
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 2.8.2 released

2013-09-05 Thread Fabio Zadrozny
Hi All,

PyDev 2.8.2 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
Become a supporter and help to keep it going forward:
https://sw-brainwy.rhcloud.com/

Release Highlights:
---

* The type inference engine now accepts comments in the format **#@type a:
str** to get the type.

* Interpreter configuration properly deals with characters with ampersand.

* Interactive console can now work with PySide and wxPython to create
widgets without blocking.

* Debugger now working properly with Jython 2.1.

* Markups in sphinx or epydoc format can now have a different color in
docstrings.

* Code-completion for the sphinx markup is provided in docstrings.

* Fixed issue when resolving module names (which could make PyDev find
modules as Lib.math instead of math if the interpreter folder was added to
the PYTHONPATH and not only the Lib folder).

* When configuring project source folders (PYTHONPATH), it's possible to
make use of the PROJECT_DIR_NAME variable.

* **Patches by Trey Greer**:

* PyLint 1.0 is now properly supported.

* **Patches by Jonah Graham:**

* Fixed issue in interactive console interaction with XML-RPC.

* Interactive console history is saved to persistent location.

* It's possible to filter variables in the variables view menu (can be
activated with Ctrl+F10 focusing the variables view > PyDev,
select/deselect filters).

* Eclipse variables are expanded in the initial interpreter commands for
the interactive console.

* An evaluate button (same as Ctrl+Alt+Enter) is now available in the
toolbar.

* **Patches by by Anselm Kruis:**

* Fixed issues related to having the interpreter or workspace in locations
with non-ascii characters.

* **Patches by Jeremy Carroll:**

* It's now possible to use PEP-8 style imports (default now, can be
unconfigured at window > preferencs > pydev > editor > code style >
imports).

* It's possible to configure the organize imports to remove unused imports
(must be enabled in window > preferencs > pydev > editor > code style >
imports).

* **Patches by Andrew Ferrazzutti:**

* Better heuristics to discover file in workspace related to open files
when debugging.

* Improvements in the PyDev project configuration and wizard.

* It's possible to mark/unmark folders as source folders with a right-click
context menu.

* Auto-Configuration of interpreter streamlined.

* **Patches by Andre Berg:**

* It's possible to have a change action which will keep a variable updated
when file is changed (i.e.: __date__ = '2013-01-01' would be updated when
file is saved to a new date).


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

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 2.8.0 Released

2013-07-25 Thread Fabio Zadrozny
Hi All,

PyDev 2.8.0 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com

Release Highlights:
---

* Type Inference now works with docstrings (Sphinx or Epydoc). See:
http://pydev.org/manual_adv_type_hints.html

* Fixed debugger to work on Google App Engine

* Patch by Edward Catmur

* Interactive console supports running with the Qt and Gtk event loops

* Patches by Andrew Ferrazzutti

* Multiple main modules/packages may be selected in the unittest run
configuration

* Properly handling unittest errors caused by setUpClass/setUpModule
exceptions

* It's possible to select the Working Set configuration in the New
PyDev Project wizard

* Patches by Christoph Zwerschke

* It's possible to specify PyLint settings per project by passing
--rcfile=.pylintrc (it's now run relative to the project directory)

* PyLint now accepts an executable so that it does not have to rely on
the configured interpreter.

* Fixed OutOfMemoryError when large file was found in the workspace.

* Editor startup is now faster due to improvements in Jython scripts.

* Improved the way that the interpreter location is shown on the pydev
package explorer.

* PyDev Package Explorer icon no longer missing when top level elements is
set to Working Sets

* Other minor bugfixes

Note: PyDev is now signed with a new (self-signed) certificate (see
http://pydev.org/manual_101_install.html for the new certificate) .



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

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How can I make this piece of code even faster?

2013-07-20 Thread Fabio Zadrozny
On Sat, Jul 20, 2013 at 5:22 PM,  wrote:

> Ok, I'm working on a predator/prey simulation, which evolve using genetic
> algorithms. At the moment, they use a quite simple feed-forward neural
> network, which can change size over time. Each brain "tick" is performed by
> the following function (inside the Brain class):
>
> def tick(self):
> input_num = self.input_num
> hidden_num = self.hidden_num
> output_num = self.output_num
>
> hidden = [0]*hidden_num
> output = [0]*output_num
>
> inputs = self.input
> h_weight = self.h_weight
> o_weight = self.o_weight
>
> e = math.e
>
> count = -1
> for x in range(hidden_num):
> temp = 0
> for y in range(input_num):
> count += 1
> temp += inputs[y] * h_weight[count]
> hidden[x] = 1/(1+e**(-temp))
>
> count = -1
> for x in range(output_num):
> temp = 0
> for y in range(hidden_num):
> count += 1
> temp += hidden[y] * o_weight[count]
> output[x] = 1/(1+e**(-temp))
>
> self.output = output
>
> The function is actually quite fast (~0.040 seconds per 200 calls, using
> 10 input, 20 hidden and 3 output neurons), and used to be much slower
> untill I fiddled about with it a bit to make it faster. However, it is
> still somewhat slow for what I need it.
>
> My question to you is if you an see any obvious (or not so obvious) way of
> making this faster. I've heard about numpy and have been reading about it,
> but I really can't see how it could be implemented here.
>
> Cheers!
> --
> http://mail.python.org/mailman/listinfo/python-list
>



Low level optimizations:

If you're in Python 2.x (and not 3), you should use xrange() instead of
range(), or maybe even create a local variable and increment it and check
its value within a while (that way you can save a few instructions on
method invocations from xrange/range).

Anyways, if that's not fast enough, just port it to c/c++ (or one of the
alternatives to speed it up while still in python: numba, cython,
shedskin). Or (if you can), try to use PyPy and see if you get more speed
without doing anything.

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


PyDev 2.7.5 Released

2013-05-28 Thread Fabio Zadrozny
Hi All,

PyDev 2.7.5 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com

Release Highlights:
---

* Icons in the outline are now correct.

* Fixed deadlock found on code analysis.

* Project-related error markers no longer created in the main thread.

* Showing a dialog to select template when a new module is created.

* PyUnit view output font uses the same font as the console

* New option in auto-formatting to auto-format only workspace files.

* Auto-formatting with only deleted lines no longer changes everything.

* PyUnit view orientation menu is now properly shown.

* Fixed interaction with external files on pydev package explorer.

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

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


PyDev 2.7.4 Released

2013-05-16 Thread Fabio Zadrozny
Hi All,

PyDev 2.7.4 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com

Release Highlights:
---

* Improved Jython scripting startup time (so, the editor should start up
faster).

* PyDev no longer causing JSP problem annotation disappear (fix by Danny
Ju).

* Restored invalidateTextPresentation on save due to issue on annotations
kept.

* Thank you everyone for helping to keep PyDev going:
http://pydev.blogspot.com.br/2013/05/pydev-crowdfunding-finished.html

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

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: IDE for GUI Designer

2013-04-07 Thread Fabio Zadrozny
Well, I usually use the Qt Designer and it does work well for me.

It generates a .ui file with it which has to be passed to pyuic to generate
the actual Python code -- and you have to generate a subclass to implement
the slots -- for that, I add an external builder to Eclipse, so, in the end
it's mostly a matter of saving the ui in designer and going on to implement
the actual code for the actions in PyDev/Eclipse (sure, you don't click on
a link to add Python code, but for me that separation is good).

Cheers,

Fabio


On Sun, Apr 7, 2013 at 2:40 PM, Wolfgang Keller  wrote:

> > Guys, is this, I wonder if there is an IDE with native support for the
> > development of GUI's
>
> A decent Python IDE would probably integrate well enough with any decent
> GUI builder. If there was one (decent GUI builder).
>
> Unfortunately there's afaik currently no GUI builder available for any
> of the Python GUI frameworks that actually makes use of the dynamic
> interpreted nature of Python (in a way comparable to Cocoa's Interface
> Builder or the Visualworks Smalltalk IDE). They are unfortunately all
> just conceived following the clumsy tedious static C++-ish
> code-generation method. X-(
>
> Sincerely,
>
> Wolfgang
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 2:27 PM, rusi  wrote:

> On Mar 23, 4:11 pm, Fabio Zadrozny  wrote:
> > On Sat, Mar 23, 2013 at 12:38 AM, rusi  wrote:
> > >
> > > ie Eclipse-4 claims to have made plugin development (for new custom
> > > languages) easier.
> > > What is the relation of liclipse to eclipse 3<->4 plugin architecture?
> >
> > Well, it may have become a bit easier (with dltk and xtext), but it's
> still
> > far from trivial (you still have to know at least java, how plugins work,
> > eclipse internals, creating a grammar, etc.).
>
> I still have one (quite general) question:
> When eclipse 'does' pydev, is it mostly in java or in python?
>
> Using python's native parser etc makes the analysis more reliable at
> the cost of more fragile, non-portable(?) etc plumbing between java
> and python.
>
> Whereas rewriting python's parsing etc in java, makes the basic
> architecture easier but will always keep you behind target when say
> python changes/adds to its syntax/feature set etc.
>

Parsing in PyDev is done at java (so, yes, I have to update it when Python
itself goes forward).

Still, note that even if I was in Python and could use the Python parser, I
don't think that using the internal Python parser would be a good choice
(because it ends up being too fragile for me -- i.e.: if the IDE is done
using Python 2.x it wouldn't be able to analyze a Python 3 codebase --
unless it spawned scripts based on the configured Python you're developing
against, but things as a proper code analysis would prove very difficult to
do that way).

Also, the feature set from the PyDev grammar is different from the Python
grammar:

For example:
- it has to be fault tolerant (because you'll still want to see the outline
and get code completion even if you don't have the complete file correct)
- it may need to store more information in case a pretty-printing is needed
later on (so, the Python grammar can get something as "a = (1)" and remove
the parenthesis as they don't make part of the AST, as that's the same as
"a = 1" but in case you were pretty-printing the AST you may not want to
throw that away).


>
> Which do you choose? And are the new facilities in Juno easier for
> cross-language feature-sets?
>

As for easier cross-language feature sets, not sure what exactly are you
referring to... (but I don't think Eclipse 4 itself changed much from the
existing status quo... it's may difference in the programming model is on
the dependency injection, so some APIs are cleaner now -- besides the UI
changes).

Cheers,

Fabio


> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 12:07 PM, Wanderer  wrote:

> On Saturday, March 23, 2013 7:11:10 AM UTC-4, Fabio Zadrozny wrote:
> > On Sat, Mar 23, 2013 at 12:38 AM, rusi  wrote:
> >
> >
> >
> >
> > On Mar 23, 7:58 am, Fabio Zadrozny  wrote:
> >
> >
> >
> > > Hello there,
> >
> > >
> >
> > > As I've proposed it, let me try to explain it a bit better (if you have
> >
> > > doubts, I should probably rephrase the proposal).
> >
> > >
> >
> > > There are 2 main targets there: keeping PyDev properly supported (which
> >
> > > hopefully doesn't need more explanation) and creating LiClipse.
> >
> > >
> >
> > > The idea for LiClipse is definitely not making a fork, but having an
> easier
> >
> > > way to add a basic editor inside Eclipse (while developing PyDev, I do
> get
> >
> > > many requests for adding support for editors related to Python, such as
> >
> > > Django templates, Mako, Restructured text, Cython, etc), so, this will
> >
> > > provide me with a basis to do that (and with the basis in place, the
> idea
> >
> > > is having the possibility of creating an editor without knowledge of
> >
> > > Eclipse and in a very fast way -- current technologies for that such as
> >
> > > DLTK or XText aim much higher and are not trivial. I really want to
> have a
> >
> > > way to have a basic editor inside Eclipse just specifying the language
> very
> >
> > > 'loosely' -- say, something that'd take you 15-30 minutes and almost no
> >
> > > special knowledge of Eclipse internals -- and which would need more
> >
> > > knowledge of Eclipse internals only for more advanced stuff).
> >
> > >
> >
> > > As for the dark theme, it's something that annoys me a lot (so, I was
> >
> > > hoping it was also something interesting for other people -- right now,
> >
> > > it's not possible to have a professional dark theme in Eclipse, there
> are
> >
> > > many loose ends -- so, for those that would like to work with a dark
> theme
> >
> > > -- as myself -- it may be very annoying -- although yes, it may not be
> >
> > > applicable if you're happy with the current non-dark UI).
> >
> > >
> >
> > > As for distributions, yes, I plan to do an Eclipse distribution with
> >
> > > LiClipse / PyDev bundled -- Easy Eclipse is definitely not a solution
> as it
> >
> > > is NOT supported (it has an ancient version of PyDev which only serves
> to
> >
> > > confuse users and Eclipse.org does not have a Python version with
> PyDev).
> >
> > > I'd hardly call that a fork thought (and it should be possible to
> install
> >
> > > it as a separate plugin anyways, so, you can use the Eclipse you got
> from
> >
> > > anywhere and just use the update site to get those plugins).
> >
> > >
> >
> > > Cheers,
> >
> > >
> >
> > > Fabio
> >
> >
> >
> > I am interested in the new eclipse plugin capabilities.
> >
> > Where does liclipse stand with respect to this?
> >
> >
> >
> > The idea is providing a way to add a language just by saying things like
> keywords, elements (such as function or class -- if your language has
> that), indenting words and it'll provide you an editor that has all the
> common functions you'd expect, such as syntax highlighting, outline,
> indenting, template completion, etc. So, in LiClipse, you shouldn't need to
> create a plugin at this level, just one configuration file (which you
> should be able to fill in 15-30 minutes).
> >
> >
> >
> >
> > After that, if you want more things (such as code analysis or a semantic
> aware code completion), then you'd have to go the route of actually
> creating an Eclipse plugin.
> >
> >
> >
> > ie Eclipse-4 claims to have made plugin development (for new custom
> >
> > languages) easier.
> >
> > What is the relation of liclipse to eclipse 3<->4 plugin architecture?
> >
> >
> >
> > Well, it may have become a bit easier (with dltk and xtext), but it's
> still far from trivial (you still have to know at least java, how plugins
> work, eclipse internals, creating a grammar, etc.).
> >
> >
> >
> >
> > The editors structure for LiClipse should work in b

Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 12:38 AM, rusi  wrote:

> On Mar 23, 7:58 am, Fabio Zadrozny  wrote:
> > Hello there,
> >
> > As I've proposed it, let me try to explain it a bit better (if you have
> > doubts, I should probably rephrase the proposal).
> >
> > There are 2 main targets there: keeping PyDev properly supported (which
> > hopefully doesn't need more explanation) and creating LiClipse.
> >
> > The idea for LiClipse is definitely not making a fork, but having an
> easier
> > way to add a basic editor inside Eclipse (while developing PyDev, I do
> get
> > many requests for adding support for editors related to Python, such as
> > Django templates, Mako, Restructured text, Cython, etc), so, this will
> > provide me with a basis to do that (and with the basis in place, the idea
> > is having the possibility of creating an editor without knowledge of
> > Eclipse and in a very fast way -- current technologies for that such as
> > DLTK or XText aim much higher and are not trivial. I really want to have
> a
> > way to have a basic editor inside Eclipse just specifying the language
> very
> > 'loosely' -- say, something that'd take you 15-30 minutes and almost no
> > special knowledge of Eclipse internals -- and which would need more
> > knowledge of Eclipse internals only for more advanced stuff).
> >
> > As for the dark theme, it's something that annoys me a lot (so, I was
> > hoping it was also something interesting for other people -- right now,
> > it's not possible to have a professional dark theme in Eclipse, there are
> > many loose ends -- so, for those that would like to work with a dark
> theme
> > -- as myself -- it may be very annoying -- although yes, it may not be
> > applicable if you're happy with the current non-dark UI).
> >
> > As for distributions, yes, I plan to do an Eclipse distribution with
> > LiClipse / PyDev bundled -- Easy Eclipse is definitely not a solution as
> it
> > is NOT supported (it has an ancient version of PyDev which only serves to
> > confuse users and Eclipse.org does not have a Python version with PyDev).
> > I'd hardly call that a fork thought (and it should be possible to install
> > it as a separate plugin anyways, so, you can use the Eclipse you got from
> > anywhere and just use the update site to get those plugins).
> >
> > Cheers,
> >
> > Fabio
>
> I am interested in the new eclipse plugin capabilities.
> Where does liclipse stand with respect to this?
>

The idea is providing a way to add a language just by saying things like
keywords, elements (such as function or class -- if your language has
that), indenting words and it'll provide you an editor that has all the
common functions you'd expect, such as syntax highlighting, outline,
indenting, template completion, etc. So, in LiClipse, you shouldn't need to
create a plugin at this level, just one configuration file (which you
should be able to fill in 15-30 minutes).

After that, if you want more things (such as code analysis or a semantic
aware code completion), then you'd have to go the route of actually
creating an Eclipse plugin.


> ie Eclipse-4 claims to have made plugin development (for new custom
> languages) easier.
> What is the relation of liclipse to eclipse 3<->4 plugin architecture?
>

Well, it may have become a bit easier (with dltk and xtext), but it's still
far from trivial (you still have to know at least java, how plugins work,
eclipse internals, creating a grammar, etc.).

The editors structure for LiClipse should work in both Eclipse 3 or 4,
although the theming enhancements will require Eclipse 4 (as it'll need
some features only available there).

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: LiClipse

2013-03-22 Thread Fabio Zadrozny
Hello there,

As I've proposed it, let me try to explain it a bit better (if you have
doubts, I should probably rephrase the proposal).

There are 2 main targets there: keeping PyDev properly supported (which
hopefully doesn't need more explanation) and creating LiClipse.

The idea for LiClipse is definitely not making a fork, but having an easier
way to add a basic editor inside Eclipse (while developing PyDev, I do get
many requests for adding support for editors related to Python, such as
Django templates, Mako, Restructured text, Cython, etc), so, this will
provide me with a basis to do that (and with the basis in place, the idea
is having the possibility of creating an editor without knowledge of
Eclipse and in a very fast way -- current technologies for that such as
DLTK or XText aim much higher and are not trivial. I really want to have a
way to have a basic editor inside Eclipse just specifying the language very
'loosely' -- say, something that'd take you 15-30 minutes and almost no
special knowledge of Eclipse internals -- and which would need more
knowledge of Eclipse internals only for more advanced stuff).

As for the dark theme, it's something that annoys me a lot (so, I was
hoping it was also something interesting for other people -- right now,
it's not possible to have a professional dark theme in Eclipse, there are
many loose ends -- so, for those that would like to work with a dark theme
-- as myself -- it may be very annoying -- although yes, it may not be
applicable if you're happy with the current non-dark UI).

As for distributions, yes, I plan to do an Eclipse distribution with
LiClipse / PyDev bundled -- Easy Eclipse is definitely not a solution as it
is NOT supported (it has an ancient version of PyDev which only serves to
confuse users and Eclipse.org does not have a Python version with PyDev).
I'd hardly call that a fork thought (and it should be possible to install
it as a separate plugin anyways, so, you can use the Eclipse you got from
anywhere and just use the update site to get those plugins).

Cheers,

Fabio


On Fri, Mar 22, 2013 at 10:01 PM, Verde Denim  wrote:

> On 03/22/2013 04:26 PM, Wanderer wrote:
> > I just updated PyDev and I got this message that they are looking for
> funding for a new flavor of Eclipse called LiClipse. The description of
> what LiClipse will be is kind of sketchy. No offense intended, but why?
> There is already a bunch of downloads at Eclipse and there is also Easy
> Eclipse. The only reason for a redesign of Eclipse, I would want would be
> change it from being Java based. Oracle is losing money and I wonder what
> their next business model will be for Java. Anyway, does anyone know what
> this LiClipse is all about?
> >
> > Thanks
> Check this -
>
> http://www.indiegogo.com/projects/pydev-and-liclipse-for-a-fast-sexy-and-dark-eclipse
> described as a toolchain with plugins and a sleek UI for Eclipse; sounds
> like a fork...
>
> --
> Regards
>
> Jack
> Boston Tea Party, Coercive Acts, Powder Alarm, Revolution
> Lessons (mistakes) not learned are bound to be repeated.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


PyDev 2.7.2 Released / Help to keep PyDev alive

2013-03-15 Thread Fabio Zadrozny
Hi All,

PyDev 2.7.2 has been released and needs help to be kept being developed.


Release Highlights


* Updated icons in PyDev to match better a dark theme.
* Improved minimap.
* Fixed issue copying qualified name when editor is not in the PYTHONPATH.
* Removed call home ping from PyDev.
* Fixed issue on Ctrl+1 assist to ignore some warning.
* Improved comment/uncomment to deal properly with pep8 formatting.


Helping PyDev
---

Currently, PyDev is raising funds so that it's development can be continued
and a lightweight toolchain for editors inside Eclipse can complement it.

Please help keeping PyDev alive! More details can be seen at:
http://igg.me/at/liclipse


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

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: UnicodeEncodeError when not running script from IDE

2013-02-12 Thread Fabio Zadrozny
Just to note, PyDev does something behind the scenes (it sets the encoding
for the console).

You may specify which encoding you want at your launch configuration (in
the 'common' tab you can set the encoding you want for the shell).

Cheers,

Fabio


On Tue, Feb 12, 2013 at 3:12 PM, Magnus Pettersson
wrote:

> > What encoding is this file?  Since you're appending to it, you really
> >
> > need to match the pre-existing encoding, or the next program to deal
> >
> > with it is in big trouble.  So using the io.open() without the encoding=
> >
> > keyword is probably a mistake.
>
> The .txt file is in UTF-8
>
> I have got it to work now in the terminal, but i dont understand what im
> doing and why i didnt need to do all the unicode strings and encode mumbo
> jumbo in eclipse
>
> #Here kanji = u"私"
> baseurl = u"http://www.romajidesu.com/kanji/";
> url = baseurl+kanji
> savefile([url]) #this test works now. uses: io.open(filepath,
> "a",encoding="UTF-8") as f:
> # This made the fetching of the website work. Why did i have to write
> url.encode("UTF-8") when url already is unicode? I feel i dont have a good
> understanding of this.
> page = urllib2.urlopen(url.encode("UTF-8"))
>
>
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Fabio Zadrozny
On Thu, Sep 6, 2012 at 10:43 AM, Alex  wrote:
> Ramchandra Apte wrote:
>
>> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex  wrote:
>> > I'm new to Python and have been using IDLE 3.2.3 to experiment with
>> >
>> > code as I learn. Despite being configured to use a 4 space
>> > indentation
>> >
>> > width, sometimes IDLE's "smart" indentation insists upon using
>> > width-8
>> >
>> > tabs.
>> >
>> >
>> >
>> > From what I've been able to find on Google, this is due to a
>> >
>> > shortcoming in Tk. While it's not that big a deal in the grand
>> > scheme
>> >
>> > of things, I think it looks like poop, and I'd like to change IDLE
>> > to
>> >
>> > use 4-space indentation instead of tabs for all indentation levels.
>> >
>> >
>> >
>> > Is there any way for me to achieve what I want in IDLE, or do I
>> > have to
>> >
>> > start up my full-blown IDE if I want consistent 4-space indentation?
>> >
>> >
>> >
>> > Alex
>>
>> I think an IDE is better than IDLE. Try NINJA IDE.
>> http://ninja-ide.org
>
> Agreed. I like PyDev in Eclipse, but sometimes I just want to try out
> something quick in the interpreter, to ensure I understand it or do a
> quick experiment. Since indentation is syntactically significant in
> Python, I think fixing the interpreter to produce good, readable,
> cut-and-pasteable, and Pythonic code is more important than a cosmetic
> feature, but less important than true bugs.
> --


Actually, if you're in PyDev/Eclipse already, you can just use the
interactive shell that PyDev provides:
http://pydev.org/manual_adv_interactive_console.html

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyDev IPython Confusion

2012-06-30 Thread Fabio Zadrozny
On Wed, May 23, 2012 at 5:06 PM, Wanderer  wrote:
> I have two versions of Python and Ipython; Python 2.6.6 with Ipython
> 0.11 and Python 2.7.3 with Ipython 0.12.  When I run the Eclipse PyDev
> console for the Python 2.7.3 it says it is using Ipython 0.11 as the
> interpreter. Ipython 0.11 should not be in the Path for Python 2.7.3.
> Is this a bug in Ipython 0.12? Is there a command to check the Ipython
> version to verify it is Ipython 0.11 and not Ipython 0.12? Could this
> be something in the Windows registry that Ipython 0.11 is the
> 'registered' version of Ipython?
>

Please check on the latest PyDev 2.6.0  release (there was an issue
related PYTHONPATH ordering inside PyDev which could potentially lead
to that).

If it doesn't solve it for you, check if your PYTHONPATH is what you
expected inside the shell: import sys;
print('\n'.join(sorted(sys.path))) and compare that with your
configuration... ( note that the recommended place to ask PyDev
questions is at stackoverflow with a PyDev tag... see:
http://pydev.org/about.html )

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: other languages API to python

2012-06-01 Thread Fabio Zadrozny
On Thu, May 24, 2012 at 9:25 AM, Chris Angelico  wrote:
> On Thu, May 24, 2012 at 9:58 PM, Rita  wrote:
>> Hello,
>>
>> A vendor provided a C, C++ and Java API for a application. They dont support
>> python so I would like to create a library for it. My question is, how
>> hard/easy would it be to create something like this? Is there a simple HOWTO
>> or examples I can follow? Can someone shed home light on this?
>
> The best way would be to write something in C that exposes the API to
> Python. Check out the docs on "Extending and Embedding Python":
>
> For Python 2.x: http://docs.python.org/extending/
> For Python 3.x: http://docs.python.org/py3k/extending/
>
> You'll need to learn Python's own API, of course, but if you're a
> competent C programmer, you should find it fairly straightforward.
>
> There's an alternative, too, though I haven't personally used it. The
> ctypes module allows you to directly call a variety of C-provided
> functions.
>
> http://docs.python.org/library/ctypes.html
> http://docs.python.org/py3k/library/ctypes.html
>
> The resulting code isn't nearly as Pythonic as it could be if you
> write a proper wrapper, but you save the work of writing C code.
>
> Chris Angelico
> --
> http://mail.python.org/mailman/listinfo/python-list

There are some wrapping libraries that may help in wrapping C/C++ for
Python... Take a look at Boost::Python, Swig, Sip and Cython
(personally, I like Boost::Python, but the generated code can be a bit
bloated -- but not a problem unless it's a really huge library --
Cython seems nice too, but I've only made few things with it, so, I
can't comment much).

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error importing __init__ declared variable from another package

2012-03-07 Thread Fabio Zadrozny
On Wed, Feb 29, 2012 at 1:38 AM, Jason Veldicott
 wrote:
>> > Hi,
>> >
>> > I have a simple configuration of modules as beneath, but an import error
>> > is reported:
>> >
>> > /engine
>> >    (__init__ is empty here)
>> >    engine.py
>> > /sim
>> >    __init__.py
>> >
>> >
>> > The module engine.py imports a variable instantiated in sim.__init__ as
>> > follows:
>> >
>> >    from sim import var_name
>> >    var_name.func()
>> >
>> > The following error messaged is received on the func() call above
>> > (Eclipse
>> > PyDev):
>> >
>> > "undefined variable from import: func"
>> Are you rephrasing or is this really the error message? If so run your
>> program again on the command-line. Then please cut and paste the error
>> message together with the traceback.
>> > Any idea why this is causing an error?
>> What version of Python are you using?
>> What does sim/__init__.py contain?
>
>
>
> Thanks Peter.
>
> I'm using Python 2.6, but it works at the command line.  The error only
> appears in Eclipse as a red cross in the margin.  The exact error msg, as
> appears in a floating text caption on mouse over, is as I mentioned
> (capitalised).
>
> Perhaps it is some issue in PyDev, maybe related to the version of Python
> I'm using.
>
> I'm in the process of trying to solve another related import problem, and
> wished to resolve this one in the hope that it might shed light on the
> other. But as it works beside the error icon appearing, I might just ignore
> it and spare the trouble of precise identification of cause.

Please report that as a bug in the PyDev sf tracker (please attach a
sample project where this problem can be reproduced).

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make PyDev pep8 friendly?

2012-02-17 Thread Fabio Zadrozny
On Wed, Feb 8, 2012 at 10:15 PM, Ali Zandi  wrote:
> Hi,
>
> I was trying to find a way to configure PyDev e.g. in Eclipse to be
> pep8 friendly.
>
> There are a few configurations like right trim lines, use space after
> commas, use space before and after operators, add new line at the end
> of file which can be configured via Eclipse -> Window -> Preferences -
>> PyDev -> Editor -> Code Style -> Code Formatter. But these are not
> enough; for example I couldn't find a way to configure double line
> spacing between function definitions.
>
> So is there any way to configure eclipse or PyDev to apply pep8 rules
> e.g. on each save?
>

While this is known, there are still no dates on when this will
actually be implemented...

On the other way, I'd love to accept patches for that... it could even
be done in Python (actually Jython 2.2.1) -- which is also the way
that pep8.py was integrated.

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


PyDev 2.4.0 Released

2012-02-01 Thread Fabio Zadrozny
Hi All,

PyDev 2.4.0 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com

Release Highlights:
---

PyDev is now faster and uses less memory (many performance and memory
improvements were done)!

The contents of the homepage are now migrated to a wiki at
https://wiki.appcelerator.org/display/tis/Python+Development ...
(later most of the homepage will become a mirror of the wiki).

Others

* Organize imports: Fixed issue where other statements in a commit
line got lost (now such a line is ignored).
* PyDev Package Explorer: closed project no longer remains with old icons.
* Fixed deadlock when setting project as Django.
* Fixed issue in code formatting *args on lambda statement.
* TODO tags: only searched now in a string/comment partition.
* Fixed issue when saving empty document (bad location on code-formatter).
* Fixed issue removing comments from document.
* Applied patch for internal Jython 2.2.1 to fix list.sort
(http://bugs.jython.org/issue1835099).
* Fixed resolution of template variable prev_class_or_method and
next_class_or_method.


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


Re: PySide / PyQt autocompletion in IDEs

2011-12-31 Thread Fabio Zadrozny
On Thu, Dec 29, 2011 at 6:22 PM, Merwin  wrote:
> Hi,
>
> I would like to work with PyQt / PySide, but there is a small problem :
> methods arguments are not completed by IDE's autocompletion.
>
> When, typing "PySide.", I correctly get the module's attributes, but when I
> want to see what arguments are expected to a constructor / method, all I get
> is *args, **kwargs.
>
> I perfectly understand why this happen, but do you know a way to get around
> this ?
>
> I spend more time looking for arguments in Qt's documentation than
> effectively programming, which is a problem :-/

In PyDev you can use a .api file (the same from QScintilla) to be used
for the code-completion. Take a look at:
http://pydev.org/manual_101_interpreter.html for details (I know it's
available for PyQt, but I'm not sure about PySide, but if it's not,
maybe it can be requested for the PySide guys).

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Interpreter Error with PyDev (Eclipse IDE)

2011-12-16 Thread Fabio Zadrozny
It seems you have a version of Python 2.5 in your system and when
starting up Python 3.2.2 it's getting things from 2.5 (this would
probably also happen on the command line).

The usual suspect is that you defined a PYTHONROOT variable which is
pointing to Python 2.5 and not to the python you're using...

Cheers,

Fabio

On Thu, Dec 15, 2011 at 10:20 PM, Joshua Jodrey  wrote:
> Hi,
> This is my first email to this list, so I apologize if there's a better
> mailing-list for this type of question.
>
> I'm looking to get started with python development, so I downloaded Python
> 3.2.2 and PyDev IDE for Eclipse.  When I go to configure my interpreter for
> a new python project, Windows gives me the following error:
>
> "python.exe has stopped working"
>
> and then Eclipse shows
>
> "Error getting info on interpreter
> "See error log for details.
> No output was in the standard output when trying to create the interpreter
> info.
> The error output contains:>>Fatal Python error: Py_Initialize: unable to
> load the file system codec
>   File "C:\csvn\Python25\\lib\encodings\__init__.py", line 120
>     raise CodecRegistryError,\
>                             ^
> SyntaxError: invalid syntax
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
> <<"
>
> Does anybody have any idea what this means or what I'm doing wrong?  I've
> tried re-installing Python, but still can't get it to work.
> And again, if I'm in the wrong place, please direct me to the proper
> mailing-list or forum.
>
> Thanks!
> Josh
>
> P.S. I'm not subscribed to this mailer, so please include me in your
> replies!
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


PyDev 2.3.0 Released

2011-12-15 Thread Fabio Zadrozny
Hi All,

PyDev 2.3.0 has been released

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com

Release Highlights:
---

* Pep8.py integrated (must be enabled in PyDev > Editor > Code
Analysis > pep8.py).
* Faster PyDev startup (internal Jython upgraded to version 2.2.1 --
and also optimized for PyDev).
* Action to select/deselect scope (Shift+Alt+Up/Down).
* Fix: cache issue where the PYTHONPATH in memory became different
from the PYTHONPATH configured for a project.
* Fix: OutOfMemoryError when dealing with PyOpenGL.
* Fix: deadlock (could occur in a race condition when importing a
project with an existing Python configuration).
* Fix: code-completion integration issue with IPython 011 (patch from
jonahkichwacoders).
* Fix: annotation could remain in editor after removing a marker.
* Fix: BadLocationException on extract local refactoring.


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


Re: PyDev and multithreaded application debug

2011-12-13 Thread Fabio Zadrozny
On Mon, Dec 12, 2011 at 2:30 PM, Massi  wrote:
> Hi everyone, I've just started to use pydev to develop my python
> application and I'm encountering some problems to debug it. The
> application I'm dealing with is a multithreaded application; when I
> try to debug it with pydev, it seems not to be able to handle the
> execution of multiple threads. The problem is that when the execution
> reaches a breakpoint in one of the threads, all the other ones don't
> stop, but they continue their execution.
> Have I to make some specific settings or am I missing something?
> Thanks in advance!

Actually, that's expected, as you've only hit the breakpoint at that
thread... if you want, you can press the pause button to stop the
other threads.

Cheers,

Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   3   4   >