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


[Python-announce] PyDev 11.0.2 Released

2023-10-29 Thread Fabio Zadrozny
 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
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


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


[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

> > So, it's expected that `some_module` and `v` would be in the locals at this 
> > point.

> If a function does not have the local variables `some_module` and `v`, then 
> the change wouldn't be visible to the debugee.
So what difference does it make?

Right now such changes are visible to the debugee in the locals frames if a 
user does the `exec` and calls `PyFrame_FastToLocals` right afterwards (even if 
they weren't initially there).

So, it's the difference between being able to import a module and 
creating/manipulating new variables in an `exec` in any frame (as it works 
right now) or not being able to make it at all (if that feature is deprecated 
as is being implied in the PEP).

--

___
Python tracker 
<https://bugs.python.org/issue42197>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@ncoghlan I took a quick look at the PEP...

I'm a bit worried about:

> On optimised frames, the Python level f_locals API will become a direct 
> read/write proxy for the frame's local and closure variable storage, and 
> hence no longer support storing additional data that doesn't correspond to a 
> local or closure variable on the underyling frame object.

In particular, it's common for a debugger to evaluate expressions in a context 
that would change the locals to add new variables.

i.e.: stopping at a breakpoint and doing 2 `exec` calls with frame.f_locals 
with:
import some_module
v = some_module.compute(xxx)

So, it's expected that `some_module` and `v` would be in the locals at this 
point.

Right now after each line of the evaluation, a `PyFrame_FastToLocals` must be 
called so things work as they should, but given that the PEP explicitly says 
that it should be deprecated, and this being a common feature for a debugger, 
what'd be the proper way to support that?

p.s.: should I ask such questions regarding the PEP somewhere else instead of 
this issue or is this an appropriate place?

--

___
Python tracker 
<https://bugs.python.org/issue42197>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42044] Running Python in unbuffered mode may not write all contents to the console

2021-06-11 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

Seems fair. I just did a pull request to remove those limits. 

Please let me know if you think something else is needed there.

--

___
Python tracker 
<https://bugs.python.org/issue42044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42044] Running Python in unbuffered mode may not write all contents to the console

2021-06-11 Thread Fabio Zadrozny


Change by Fabio Zadrozny :


--
keywords: +patch
pull_requests: +25264
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26678

___
Python tracker 
<https://bugs.python.org/issue42044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


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


[issue42197] Disable automatic update of frame locals during tracing

2021-01-20 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

I agree that it can be made better, but I think most of the issues right now 
comes from CPython trying to automatically do something that's not bound to 
work (calling PyFrame_FastToLocals/PyFrame_LocalsToFast under the hood during 
the tracing call).

https://bugs.python.org/issue30744 is a great example of why that can never 
work properly (debuggers need to manage that much more carefully, just doing it 
on all calls is really bound to not work).

So, the current implementation besides being broken also makes things pretty 
slow.

I agree that PEP 558 may fix things here (but it's much more work).

As a disclaimer, pydevd actually uses a different tracer which doesn't do those 
calls and when possible uses the frame eval to modify the bytecode directly to 
minimize the overhead, so, in practice the current support given by CPython for 
debugger is pretty reasonable for doing a fast debugger (but there are a few 
caveats that it must work around -- such as the auto 
PyFrame_FastToLocals/PyFrame_LocalsToFast calls).

--

___
Python tracker 
<https://bugs.python.org/issue42197>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


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


[issue42197] Disable automatic update of frame locals during tracing

2020-10-29 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

Right now, when a debugger is active, the number of local variables can affect 
the tracing speed quite a lot.

For instance, having tracing setup in a program such as the one below takes 
4.64 seconds to run, yet, changing all the variables to have the same name -- 
i.e.: change all assignments to `a = 1` (such that there's only a single 
variable in the namespace), it takes 1.47 seconds (in my machine)... the higher 
the number of variables, the slower the tracing becomes.

```
import time
t = time.time()

def call():
a = 1
b = 1
c = 1
d = 1
e = 1
f = 1

def noop(frame, event, arg):
return noop

import sys
sys.settrace(noop)

for i in range(1_000_000):
call()

print('%.2fs' % (time.time() - t,))
```

This happens because `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` 
are called inside the `call_trampoline` 
(https://github.com/python/cpython/blob/master/Python/sysmodule.c#L946).

So, I'd like to simply remove those calls.

Debuggers can call  `PyFrame_LocalsToFast` when needed -- otherwise mutating 
non-current frames doesn't work anyways. As a note, pydevd already has such a 
call: 
https://github.com/fabioz/PyDev.Debugger/blob/0d4d210f01a1c0a8647178b2e665b53ab113509d/_pydevd_bundle/pydevd_save_locals.py#L57
 and PyPy also has a counterpart.

As for `PyFrame_FastToLocalsWithError`, I don't really see any reason to call 
it at all.

i.e.: something as the code below prints the `a` variable from the `main()` 
frame regardless of that and I checked all pydevd tests and nothing seems to be 
affected (it seems that accessing f_locals already does this: 
https://github.com/python/cpython/blob/cb9879b948a19c9434316f8ab6aba9c4601a8173/Objects/frameobject.c#L35,
 so, I don't see much reason to call it at all).

```
def call():
import sys
frame = sys._getframe()
print(frame.f_back.f_locals)
   
def main():
a = 1
call()
   
if __name__ == '__main__':
main()
```

So, the idea is removing those lines (I expect that I'll be able to provide a 
pull request for this).

--
components: Interpreter Core
messages: 379874
nosy: fabioz
priority: normal
severity: normal
status: open
title: Disable automatic update of frame locals during tracing
type: performance
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue42197>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42044] Running Python in unbuffered mode may not write all contents to the console

2020-10-15 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

When running Python in unbuffered mode it may fail to write all the contents to 
the actual console (on Windows).

The code below can reproduce the issue: 

```
import sys
s = ''
for i in range(1,301):
s += f"{str(i*100).zfill(10)}{'x' * 89}\n"

sys.stdout.write(s)
```

When calling it with `python -u code.py` it'll write only up to line 15000 and 
when calling it with `python code.py` it'll write up to line 3.

This fails because in `_textiowrapper_writeflush` it doesn't verify if all the 
contents have been indeed written and thus fails in a partial write. In 
buffered mode it works because `_io_BufferedWriter_write_impl` does the job 
properly.

I'm a bit uncertain on why doesn't `_io__WindowsConsoleIO_write_impl` itself do 
the loop to write everything instead of leaving it up to callers to do that 
work (apparently due to issue11395 it says that it only writes partially, but 
maybe the fix could've been to loop inside of 
`_io__WindowsConsoleIO_write_impl` to write everything instead of expecting 
callers to handle partial writes...

--
components: IO
messages: 378684
nosy: fabioz
priority: normal
severity: normal
status: open
title: Running Python in unbuffered mode may not write all contents to the 
console
type: behavior
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue42044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


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
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


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


[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-16 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

>> I.e.: something as adding a thread_id to sys.settrace -- 
>> sys.settrace(trace_func, thread_id=None).

> What is the use case for this feature?

The use case is having the user attach the debugger (either programmatically or 
by doing an attach to process) and be able to debug all threads, not just the 
current thread.

> It seems quite complicated to implement the thread_id for 
> sys.settrace(trace_func, thread_id=None).

Humm, isn't it just a matter of passing the proper tstate to _PyEval_SetTrace? 
It seems reasonably simple to do at C (i.e.: iterate the existing thread states 
to get the thread id and then pass the proper tsate to _PyEval_SetTrace -- 
which is roughly what is done in the debugger, although it's a bit more 
complicated because it supports Python 2.7 up to Python 3.8...).

> At the C level, Python doesn't maintain a list of thread. There is only 
> threading.enumerate() which is implemented in Python.

The tstate does contain the thread id, so, iterating the available tstates 
should be enough for that.

> PyDev.Debugger seems to use the C API. Can it continue to use the C API?

It can for CPython, but it can't for other Python implementations (and ideally 
I'd like to rely less on the CPython C-API -- because there's too much 
implementation details on it, things seem to break at each new version).

> Note: There is threading.setprofile() and threading.settrace() which set a 
> profile/trace function when *new* threads are spawned

Yes, I know about those, but it's not enough if the user attaches the debugger 
after the process is already running.

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-16 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

>> As a note, the original request was for a Python-level tracing function (so 
>> that in the future other Python implementations also provide that function) 
>> -- does this need a PEP?

> What do you mean by a Python-level tracing function?

I mean that it's a function to be called from Python (not only from C) -- which 
hopefully could be adopted by other Python implementations in the long run. 

I.e.: something as adding a thread_id to sys.settrace -- 
sys.settrace(trace_func, thread_id=None).

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

Holding the GIL is a reasonable constraint.

As a note, the original request was for a Python-level tracing function (so 
that in the future other Python implementations also provide that function) -- 
does this need a PEP?

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

I'm iterating on all threads and getting its thread id to find out the thread 
state (in my use case) and then doing what you just did there...

So, while this solution does work for me, if the idea is making tstate opaque, 
then having (an optional) thread id in settrace (which iterates to find the 
proper thread if given) could solve it without having to rely on any CPython 
internals on my side (although it should probably return a bool to say if it 
did work then).

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

Maybe better would be the thread id so that the tstate structure is not needed 
there.

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

>> Note: currently there is a way to achieve that by pausing all the threads 
>> then selectively switching to a thread to make it current and setting the 
>> tracing function using the C-API (see: 
>> https://github.com/fabioz/PyDev.Debugger/blob/master/pydevd_attach_to_process/dll/attach.cpp#L1224),
>>  but I believe this is very hacky and not portable to other Python 
>> implementations.

> I'm not sure that I understand your need. Do you need a variant of 
> PyEval_SetTrace() which accepts a tstate argument?

Yes

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

I'd like to, but it only sets the tracing to the currently running thread (the 
request is for setting the tracing for other threads).

Just for info, the problem I'm solving is that the debugger is multi-threaded, 
but the user can start the code without any tracing in place, and then, when it 
gets to an attach to process or a programmatic attach to the debugger, the 
debugger needs to set the tracing to threads that are already running (and any 
new thread created afterward) and Python doesn't really have any structure for 
that in place (so, I'm using the C-API as a workaround to do what 
PyEval_SetTrace does but targeting any thread).

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

As a note, the workaround is now in 
https://github.com/fabioz/PyDev.Debugger/blob/pydev_debugger_1_9_0/pydevd_attach_to_process/common/py_settrace_37.hpp#L150

--

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

As a note, externally I have to use it in pydevd to set the tracing for 
different threads -- i.e.: https://bugs.python.org/issue35370

Will that still be possible?

--
nosy: +fabioz

___
Python tracker 
<https://bugs.python.org/issue39947>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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
--
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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


[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-21 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Mark

First you have to explain to me how you envision changing the method code 
reliably in the debugger... 

Import hooks don't work (they'd break with something as simple as the code 
below)

def method():
   a = 10

mod = reload(old_mod)
old_mod.method.__code__ = mod.method.__code__

using the tracing also doesn't work (it's too late to change the code)

Note: consider the reload just an example, not the only use case (say, the user 
could pickle code objects to remote execution and the debugger should still 
work).

Also, consider you have to change the bytecode of methods which are only 
internal to a function (and thus can't be accessed from the outside).

Then, if you have a reliable way to do it, how do you keep track of those code 
objects to reapply the patching when breakpoints change? What if it adds a 
breakpoint to a new method, how do you locate it? Creating strong references to 
methods isn't an option because it would prevent things from being garbage 
collected (and you'd have to track all objects containing code objects for it 
to be reliable).

As a note, pydevd does have some support for hot-reloading, but there are too 
many corner-cases and it doesn't work 100% for live coding (it's an unsolved 
problem is Python) -- and I can't really envision it working for regular 
breakpoints as there are too many corner cases to handle.

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-19 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Bret

I don't really see a problem in breaking the API in major releases (so, having 
access for it in the internal API but without a backwards-compatibility 
guarantee seems like a good fit for me).

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-19 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Mark @Brett

Well, PEP 523 still works (it's just more inconvenient to use now).

Still, if PEP 523 will still be supported I think that having the setter/getter 
makes sense.

If it is to be deprecated as @Mark is suggesting it doesn't really make sense 
to add it (but then, it should really be deprecated and ideally there'd be some 
replacement for the current debugger use... not sure about other use cases such 
as a jit, which was the initial target of PEP 523 -- @Mark, do you want to go 
that route/create a PEP to deprecate it so that this discussion takes place in 
a proper place?).

p.s.: as a note, bytecode modification on the actual object is not a usable 
approach for the debugger because users could break that in real-world use 
cases (i.e.: what happens if the user creates a **new** code and sets it to the 
code which had the breakpoint? What about breakpoint changes? Right now the 
debugger evaluates all assumptions just before the frame is executed, so, it's 
easier to get things right -- the case you posted currently does what's 
expected on pydevd). Still, a callback before the execution so that it could 
change the frame code before it's executed without the remainder of PEP 523 
would be enough (and maybe it could be adopted in other Python implementations 
too) -- actually, for the debugger it'd be awesome if the frame code could be 
changed from inside a trace call and then that stack would restart execution 
(close to what happens with setting the frame line to be executed), but I guess 
this would be a completely different request ;)

p.s.: please don't reply to my previous p.s. here (let's move the discussion to 
another place -- either by @Mark creating a PEP for discussion or acknowledging 
the issue is ok given the current status quo).

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-08 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Mark

I can think of many use-cases which may break if the function code is changed 
(users can change the code in real-use cases and when they do that they'd loose 
debugging).

So, as long as the function code is part of the public API of Python, the 
debugger can't really change it for breakpoints (which is a bit different from 
the frame code, which the user can't really swap and it's not so common to 
change).

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-07 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Mark I don't want to change the original function code, I just want to change 
the code to be executed in the frame (i.e.: as breakpoints change things may be 
different).

Changing the actual function code is a no-go since changing the real function 
code can break valid user code.

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

@Mark Shannon what I do is change the code object of the frame about to be 
evaluated to add a programmatic breakpoint, to avoid the need to have the trace 
function set at contexts that would need to be traced (after changing the 
frame.f_code it goes on to call the regular _PyEval_EvalFrameDefault), so, the 
user-code runs at full speed on all contexts (there's still added overhead on a 
function call to decide if the code object needs to be changed, but that'd 
happen on the regular tracing code too).

Note that this does not change the semantics of anything as it calls the 
regular _PyEval_EvalFrameDefault, so, the worries you're listing shouldn't be a 
concern in this particular use-case.

Also note that until Python 3.7 this was easy to change, and that's still 
possible in Python 3.8 (the only thing is that now it's less straightforward).

Note that my use is much simpler that the original intent of the frame 
evaluator -- my use case could be solved by having a callback to change the 
code object before the frame execution -- but as far as I know, right now, the 
way to do that is through the frame evaluation API.

--

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38508] Tracing events anomaly when creating a multi-line list

2019-10-17 Thread Fabio Zadrozny


Fabio Zadrozny  added the comment:

If it's a feature and not a bug, seems ok to me (I reported mainly because I 
thought the behavior was odd, but I guess it makes sense).

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue38508>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38508] Tracing events anomaly when creating a multi-line list

2019-10-17 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

When creating a multi-line list it seems that there's an additional line event 
that goes back to the start of the list.

i.e.: considering the code as:

[
1,
2
]

when stepping through the list, a debugger would get a line event at the `1` 
then at `2` and then at `['.

I'm attaching a sample code which prints the traced lines, where it's possible 
to see that there's a line event that goes backward to the list creation there 
(note that on Python 3.7 there's no line event for the list creation).

--
components: Interpreter Core
files: snippet33.py
messages: 354845
nosy: fabioz
priority: normal
severity: normal
status: open
title: Tracing events anomaly when creating a multi-line list
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48665/snippet33.py

___
Python tracker 
<https://bugs.python.org/issue38508>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-10-16 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

In CPython 3.7 it was possible to do:

#include "pystate.h"
...
PyThreadState *ts = PyThreadState_Get();
PyInterpreterState *interp = ts->interp;
interp->eval_frame = my_frame_eval_func;

This is no longer possible because in 3.8 the PyInterpreterState is opaque, so, 
Py_BUILD_CORE_MODULE needs to be defined defined and 
"internal/pycore_pystate.h" must be included to set 
PyInterpreterState.eval_frame.

This works but isn't ideal -- maybe there could be a function to set 
PyInterpreterState.eval_frame?

--
components: Interpreter Core
messages: 354803
nosy: fabioz, vstinner
priority: normal
severity: normal
status: open
title: Provide a way to get/set PyInterpreterState.frame_eval without needing 
to access interpreter internals
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue38500>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-26 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

I'm attaching a snippet which shows the issue (i.e.: threading.main_thread() 
and threading.current_thread() should be the same and they aren't).

What I'd see as a possible solution is that the initial thread ident would be 
stored when the interpreter is initialized and then when threading is imported 
the first time it would get that indent to initialize the main thread instead 
of calling `threading._MainThread._set_ident` in the wrong thread.

I'm not sure if this is possible if CPython is embedded in some other C++ 
program, but it seems to be the correct approach when Python is called from the 
command line.

As a note, I found this when doing an attach to pid for the `pydevd` debugger 
where a thread is created to initialize the debugger (the issue on the debugger 
is reported at: https://github.com/microsoft/ptvsd/issues/1542).

--
components: Interpreter Core
files: snippet.py
messages: 346653
nosy: fabioz
priority: normal
severity: normal
status: open
title: If threading is not imported from the main thread it sees the wrong 
thread as the main thread.
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48438/snippet.py

___
Python tracker 
<https://bugs.python.org/issue37416>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



PyDev 7.2.0 Released

2019-04-02 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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


[issue35370] Provide API to set the tracing function to be used for running threads.

2018-12-01 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

Right now it's hard for debuggers to set the tracing function to be used for 
running threads.

This would be really handy for debuggers when attaching to a running program to 
debug all threads.

-- Note: currently there is a way to achieve that by pausing all the threads 
then selectively switching to a thread to make it current and setting the 
tracing function using the C-API (see: 
https://github.com/fabioz/PyDev.Debugger/blob/master/pydevd_attach_to_process/dll/attach.cpp#L1224),
 but I believe this is very hacky and not portable to other Python 
implementations.

--
components: Interpreter Core
messages: 330849
nosy: fabioz
priority: normal
severity: normal
status: open
title: Provide API to set the tracing function to be used for running threads.
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35370] Provide API to set the tracing function to be used for running threads.

2018-12-01 Thread Fabio Zadrozny


Change by Fabio Zadrozny :


--
type:  -> enhancement

___
Python tracker 
<https://bugs.python.org/issue35370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



​PyDev 7.0.3 Released

2018-11-13 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


​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


[issue34799] When function in tracing returns None, tracing continues.

2018-09-25 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

https://docs.python.org/3/library/sys.html#sys.settrace explicitly states:

The local trace function should return a reference to itself (or to another 
function for further tracing in that scope), or None to turn off tracing in 
that scope.

Yet, it seems this happens only on the return of a 'call'. If None is returned 
in a 'line' event, apparently the previous tracing function is reused (but if a 
new function is returned, the new function is used properly).

I'm attaching a test case which shows the issue. I've tested on 2.7, 3.6 and 
3.7 and this issue is present on all.

If I set frame.f_trace = None before returning it seems to work though (so, I 
think that either this behavior should be fixed or the docs should be updated 
to reflect that).

--
files: issue_in_tracing_func.py
messages: 326360
nosy: fabioz
priority: normal
severity: normal
status: open
title: When function in tracing returns None, tracing continues.
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7
Added file: https://bugs.python.org/file47822/issue_in_tracing_func.py

___
Python tracker 
<https://bugs.python.org/issue34799>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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-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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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


[issue34099] Provide debuggers with a way to know that a function is exiting with an unhandled exception.

2018-07-11 Thread Fabio Zadrozny


New submission from Fabio Zadrozny :

Right now, debuggers can deal with handled exceptions by detecting the 
'exception' event, but it's hard to know if the exception is handled or 
unhandled at that point (so, debuggers end up checking if it happens in a 
top-level function, but this isn't good if the user started the code and did a 
remote attach later on, where the top-level code is still user code).

My suggestion would be creating another event type (such as 'exception_return') 
which would be issued after the 'return' event with the same information passed 
on the 'exception' info so that debuggers can detect that some exception is 
unhandled (the 'return' would still be issued as usual to minimize breakage to 
existing debuggers).

Another option could be adding that information to the frame itself during a 
'return' event (and then removing right after calling the debugger to avoid any 
cycles) -- although I think the other option is better to avoid making the 
frame bigger.

--
components: Interpreter Core
messages: 321492
nosy: fabioz
priority: normal
severity: normal
status: open
title: Provide debuggers with a way to know that a function is exiting with an 
unhandled exception.
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue34099>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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.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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue33621] repr(threading._DummyThread) always fails.

2018-05-24 Thread Fabio Zadrozny

Fabio Zadrozny <fab...@users.sourceforge.net> added the comment:

Actually, I tried on a more recent version of Python 3.6 (3.6.5) and it doesn't 
happen there (so, just happens in 3.6.0 -- i.e.: in the old conda env I had 
around).

Sorry for the noise. Closing issue as it's already fixed.

--
stage:  -> resolved
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33621] repr(threading._DummyThread) always fails.

2018-05-24 Thread Fabio Zadrozny

Fabio Zadrozny <fab...@users.sourceforge.net> added the comment:

Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 11:57:41) [MSC 
v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import threading
>>> repr(threading._DummyThread())
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 819, in __repr__
self.is_alive() # easy way to get ._is_stopped set when appropriate
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 1115, in is_alive
self._wait_for_tstate_lock(False)
  File "C:\tools\Miniconda\envs\pyqt5\lib\threading.py", line 1071, in 
_wait_for_tstate_lock
assert self._is_stopped
AssertionError

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33621] repr(threading._DummyThread) always fails.

2018-05-23 Thread Fabio Zadrozny

New submission from Fabio Zadrozny <fab...@users.sourceforge.net>:

Doing the following throws an exception:

import threading
repr(threading._DummyThread())


Or, in a more contrived example (I actually had this in a QThread, so, 
reproducing using getting the current_thread using a thread created with the 
_thread module):

import threading
import traceback
finished = threading.Event()
worked = []
def method():
try:
repr(threading.current_thread())
worked.append(True)
except:
traceback.print_exc()
worked.append(False)
finally:
finished.set()

import _thread
_thread.start_new_thread(method, ())

finished.wait()
assert worked[0]

--
components: Library (Lib)
messages: 317430
nosy: fabioz
priority: normal
severity: normal
status: open
title: repr(threading._DummyThread) always fails.
type: behavior
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



PyDev 6.3.2 released

2018-03-22 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-03-01 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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 <elch...@cnn.cn> 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-12-11 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


PyDev 6.2.0 released

2017-11-30 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-19 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-10 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-17 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-02-01 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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


[issue28597] f-string behavior is conflicting with its documentation

2016-11-03 Thread Fabio Zadrozny

New submission from Fabio Zadrozny:

The file:

/Doc/reference/lexical_analysis.rst says that things as:

f"abc {a[\"x\"]} def"  # workaround: escape the inner quotes
f"newline: {ord('\\n')}"  # workaround: double escaping
fr"newline: {ord('\n')}"  # workaround: raw outer string

are accepted in f-strings, yet, all those examples raise a:

SyntaxError: f-string expression part cannot include a backslash

The current Python version where this was tested is: 3.6.0b4

So, either those cases should be supported or lexical_analysis.rst should be 
updated to say that '\' is not valid in the expression part of f-strings.

--
components: Interpreter Core
messages: 279992
nosy: fabioz
priority: normal
severity: normal
status: open
title: f-string behavior is conflicting with its documentation
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28597>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-17 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-22 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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-28 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-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


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 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


  1   2   3   4   5   6   >