Re: [OSX] side by side python

2011-04-14 Thread Fabio
In article 
<0d6d1306-6395-4c29-a3c1-b2748bda4...@i39g2000prd.googlegroups.com>,
 Robert  wrote:

> Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX
> without them stepping all over each other?

I have troubles with textwrangler, and I have the feeling it is related 
to the fact that I have two different versions of Python installed.
I am on MacOSX 10.6.7.
I have the "built-in" Python2.5 which comes installed by "mother Apple".
Then I installed Python2.6, and left 2.5 untouched (I was suggested to 
leave it on the system, since "something might need it").

I ran the "Update Shell Profile.command", and now if I launch "python" 
in the terminal it happily launches the 2.6 version.
Then I installed some libraries (scipy and matplotlib).
They work, and everything is fine.

Then, I started to use TexWrangler, and I wanted to use the "shebang" 
menu, and "run" command.
I have the "#! first line" pointing to the 2.6 version.
It works fine, as long as I don't import the libraries, in which case it 
casts an error saying:
import scipy as sp
ImportError: No module named scipy

which makes me think that for some reason it points to the old 2.5 
version. But I might be wrong and the problem is another...

Any clue?

Thanks

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


[Mac OSX] TextWrangler "run" command not working properly

2011-04-14 Thread Fabio
Hi to all,
I have troubles with TextWrangler "run" command in the "shebang" (#!) 
menu.
I am on MacOSX 10.6.7.
I have the "built-in" Python2.5 which comes installed by "mother Apple".
Then I installed Python2.6, and left 2.5 untouched (I was suggested to 
leave it on the system, since "something might need it").

I ran the "Update Shell Profile.command", and now if I launch "python" 
in the terminal it happily launches the 2.6 version.
Then I installed some libraries (scipy and matplotlib) on this newer 2.6 
version.
They work, and everything is fine.

Then, I started to use TexWrangler, and I wanted to use the "shebang" 
menu, and "run" command.
I have the "#! first line" pointing to the 2.6 version.
It works fine, as long as I don't import the libraries, in which case it 
casts an error saying:

ImportError: No module named scipy

Maybe for some reason it points to the old 2.5 version. 
But I might be wrong and the problem is another...

I copy here the first lines in the terminal window if i give the "run in 
terminal" command


Last login: Thu Apr 14 22:38:26 on ttys000
Fabio-Mac:~ fabio$ 
/var/folders/BS/BSS71XvjFKiJPH3Wqtx90k+++TM/-Tmp-/Cleanup\ At\ 
Startup/untitled\ text-324506443.860.command ; exit;
Traceback (most recent call last):
  File "/Users/fabio/Desktop/test.py", line 3, in 
import scipy as sp
ImportError: No module named scipy
logout

[Process completed]

where the source (test.py) contains just:

#!/usr/bin/python2.6

import scipy as sp

print "hello world"


Any clue?

Thanks

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


Re: TextWrangler "run" command not working properly

2011-04-15 Thread Fabio
In article 
<382709dd-5e3f-4b07-a642-4ce141ef4...@18g2000prd.googlegroups.com>,
 Jon Clements  wrote:

> http://www.velocityreviews.com/forums/t570137-textwrangler-and-new-python-vers
> ion-mac.html

Thank you for the reply Jon.
I saw the post in velocityreviews. Unfortunately it doesn't solve my 
problem.

Cheers
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: TextWrangler "run" command not working properly

2011-04-17 Thread Fabio
In article ,
 Ernest Obusek  wrote:

> I'm not a python expert, but you might trying running 'print sys.path' inside 
> your script and run that from TextWrangler to see where it's looking for 
> modules.
> 
> - Ernest




Hi Ernst, Hi Brian,
Thank you for your answers!
With the "#!/usr/bin/env python" shebang line now it works!
I also had more insights running "print sys.path".

I still have to understand how comes, even with this "env trick" 
TextWrangler isn't able to "find the libraries" if I run a script "in 
TextWrangler". It only works fine if I use the "Run in Terminal" method.
Do you have more details about how TextWrangler manages these commands?
Which are its defalut locations?

Cheers,

Fabio

> 
> 
> On Apr 14, 2011, at 5:01 PM, Jon Clements wrote:
> 
> > On Apr 14, 9:52 pm, Fabio  wrote:
> >> Hi to all,
> >> I have troubles with TextWrangler "run" command in the "shebang" (#!)
> >> menu.
> >> I am on MacOSX 10.6.7.
> >> I have the "built-in" Python2.5 which comes installed by "mother Apple".
> >> Then I installed Python2.6, and left 2.5 untouched (I was suggested to
> >> leave it on the system, since "something might need it").
> >> 
> >> I ran the "Update Shell Profile.command", and now if I launch "python"
> >> in the terminal it happily launches the 2.6 version.
> >> Then I installed some libraries (scipy and matplotlib) on this newer 2.6
> >> version.
> >> They work, and everything is fine.
> >> 
> >> Then, I started to use TexWrangler, and I wanted to use the "shebang"
> >> menu, and "run" command.
> >> I have the "#! first line" pointing to the 2.6 version.
> >> It works fine, as long as I don't import the libraries, in which case it
> >> casts an error saying:
> >> 
> >> ImportError: No module named scipy
> >> 
> >> Maybe for some reason it points to the old 2.5 version.
> >> But I might be wrong and the problem is another...
> >> 
> >> I copy here the first lines in the terminal window if i give the "run in
> >> terminal" command
> >> 
> >> Last login: Thu Apr 14 22:38:26 on ttys000
> >> Fabio-Mac:~ fabio$
> >> /var/folders/BS/BSS71XvjFKiJPH3Wqtx90k+++TM/-Tmp-/Cleanup\ At\
> >> Startup/untitled\ text-324506443.860.command ; exit;
> >> Traceback (most recent call last):
> >>   File "/Users/fabio/Desktop/test.py", line 3, in 
> >> import scipy as sp
> >> ImportError: No module named scipy
> >> logout
> >> 
> >> [Process completed]
> >> 
> >> where the source (test.py) contains just:
> >> 
> >> #!/usr/bin/python2.6
> >> 
> >> import scipy as sp
> >> 
> >> print "hello world"
> >> 
> >> Any clue?
> >> 
> >> Thanks
> >> 
> >> Fabio
> > 
> > http://www.velocityreviews.com/forums/t570137-textwrangler-and-new-python-ve
> > rsion-mac.html
> > ?
> > -- 
> > http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


PyQT Licensing and plugins/scripting

2004-12-03 Thread Fabio
Hi all,
I'm about to write an application, and I'd like to use PyQt, but before
choosing this toolkit I would like to clarify some particular licensing
issues; if some user has already touched these, I would like to hear from
his experiences.

This app should be cross-platform, so, given qt licensing policies, I would
buy a commercial PyQt license and a commercial Qt license.

Could I license the application under the GPL for Gnu/Linux and under a
commercial license for Windows and Mac OS X? If this is possible, I guess
that contributions to the GPLed version could not be incorporated in the
commercial version, but this would not be a big problem.

The main issue with licensing is that I would like to give users of the
application a scripting framework (for macros and the like), and eventually
a plugin framework; PyQT redistribution policy states that if an user can
get in touch with PyQT directly it should have a commercial license itself;
how does this apply to those who want to develop commercial PyQT
applications with a plugin/scripting framework?

Thanks,
Fabio
-- 
http://mail.python.org/mailman/listinfo/python-list


Question concerning array.array and C++

2008-11-05 Thread Fabio

Hi All,
I have a question concerning the use of array.array inside of C++ code I 
wrote.


I am working with _big_ data files but some entries in these files are
usually bounded say between -5 to 40. Returning a Python list makes no 
sense. In Python I always work with the array.array module which does 
the trick. But now that I wrote my own C++ module for some preprocessing 
I need the return array.array objects.


Consider the object

array.array('c',[40,40,40])

Can I create such an object from within the C++ layer and pass it to the 
Python layer?


I already looked at arraymodule.c and tried to link the arraymodule.o 
file to my code but then I have to mess around with extern "C" and the 
like and it gets really messy.


Any help would be great!

Fabio

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


PyDev 2.7.4 Released

2013-05-16 Thread Fabio Zadrozny
Hi All,

PyDev 2.7.4 has been released

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

Release Highlights:
---

* Improved Jython scripting startup time (so, the editor should start up
faster).

* PyDev no longer causing JSP problem annotation disappear (fix by Danny
Ju).

* Restored invalidateTextPresentation on save due to issue on annotations
kept.

* Thank you everyone for helping to keep PyDev going:
http://pydev.blogspot.com.br/2013/05/pydev-crowdfunding-finished.html

What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython and
IronPython development -- making Eclipse a first class Python IDE -- It
comes with many goodies such as code completion, syntax highlighting,
syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

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


PyDev 2.7.5 Released

2013-05-28 Thread Fabio Zadrozny
Hi All,

PyDev 2.7.5 has been released

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

Release Highlights:
---

* Icons in the outline are now correct.

* Fixed deadlock found on code analysis.

* Project-related error markers no longer created in the main thread.

* Showing a dialog to select template when a new module is created.

* PyUnit view output font uses the same font as the console

* New option in auto-formatting to auto-format only workspace files.

* Auto-formatting with only deleted lines no longer changes everything.

* PyUnit view orientation menu is now properly shown.

* Fixed interaction with external files on pydev package explorer.

What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython and
IronPython development -- making Eclipse a first class Python IDE -- It
comes with many goodies such as code completion, syntax highlighting,
syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

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


Re: How can I make this piece of code even faster?

2013-07-20 Thread Fabio Zadrozny
On Sat, Jul 20, 2013 at 5:22 PM,  wrote:

> Ok, I'm working on a predator/prey simulation, which evolve using genetic
> algorithms. At the moment, they use a quite simple feed-forward neural
> network, which can change size over time. Each brain "tick" is performed by
> the following function (inside the Brain class):
>
> def tick(self):
> input_num = self.input_num
> hidden_num = self.hidden_num
> output_num = self.output_num
>
> hidden = [0]*hidden_num
> output = [0]*output_num
>
> inputs = self.input
> h_weight = self.h_weight
> o_weight = self.o_weight
>
> e = math.e
>
> count = -1
> for x in range(hidden_num):
> temp = 0
> for y in range(input_num):
> count += 1
> temp += inputs[y] * h_weight[count]
> hidden[x] = 1/(1+e**(-temp))
>
> count = -1
> for x in range(output_num):
> temp = 0
> for y in range(hidden_num):
> count += 1
> temp += hidden[y] * o_weight[count]
> output[x] = 1/(1+e**(-temp))
>
> self.output = output
>
> The function is actually quite fast (~0.040 seconds per 200 calls, using
> 10 input, 20 hidden and 3 output neurons), and used to be much slower
> untill I fiddled about with it a bit to make it faster. However, it is
> still somewhat slow for what I need it.
>
> My question to you is if you an see any obvious (or not so obvious) way of
> making this faster. I've heard about numpy and have been reading about it,
> but I really can't see how it could be implemented here.
>
> Cheers!
> --
> http://mail.python.org/mailman/listinfo/python-list
>



Low level optimizations:

If you're in Python 2.x (and not 3), you should use xrange() instead of
range(), or maybe even create a local variable and increment it and check
its value within a while (that way you can save a few instructions on
method invocations from xrange/range).

Anyways, if that's not fast enough, just port it to c/c++ (or one of the
alternatives to speed it up while still in python: numba, cython,
shedskin). Or (if you can), try to use PyPy and see if you get more speed
without doing anything.

Cheers,

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


PyDev 2.8.0 Released

2013-07-25 Thread Fabio Zadrozny
Hi All,

PyDev 2.8.0 has been released

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

Release Highlights:
---

* Type Inference now works with docstrings (Sphinx or Epydoc). See:
http://pydev.org/manual_adv_type_hints.html

* Fixed debugger to work on Google App Engine

* Patch by Edward Catmur

* Interactive console supports running with the Qt and Gtk event loops

* Patches by Andrew Ferrazzutti

* Multiple main modules/packages may be selected in the unittest run
configuration

* Properly handling unittest errors caused by setUpClass/setUpModule
exceptions

* It's possible to select the Working Set configuration in the New
PyDev Project wizard

* Patches by Christoph Zwerschke

* It's possible to specify PyLint settings per project by passing
--rcfile=.pylintrc (it's now run relative to the project directory)

* PyLint now accepts an executable so that it does not have to rely on
the configured interpreter.

* Fixed OutOfMemoryError when large file was found in the workspace.

* Editor startup is now faster due to improvements in Jython scripts.

* Improved the way that the interpreter location is shown on the pydev
package explorer.

* PyDev Package Explorer icon no longer missing when top level elements is
set to Working Sets

* Other minor bugfixes

Note: PyDev is now signed with a new (self-signed) certificate (see
http://pydev.org/manual_101_install.html for the new certificate) .



What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython and
IronPython development -- making Eclipse a first class Python IDE -- It
comes with many goodies such as code completion, syntax highlighting,
syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

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


Re: PyDev IPython Confusion

2012-06-30 Thread Fabio Zadrozny
On Wed, May 23, 2012 at 5:06 PM, Wanderer  wrote:
> I have two versions of Python and Ipython; Python 2.6.6 with Ipython
> 0.11 and Python 2.7.3 with Ipython 0.12.  When I run the Eclipse PyDev
> console for the Python 2.7.3 it says it is using Ipython 0.11 as the
> interpreter. Ipython 0.11 should not be in the Path for Python 2.7.3.
> Is this a bug in Ipython 0.12? Is there a command to check the Ipython
> version to verify it is Ipython 0.11 and not Ipython 0.12? Could this
> be something in the Windows registry that Ipython 0.11 is the
> 'registered' version of Ipython?
>

Please check on the latest PyDev 2.6.0  release (there was an issue
related PYTHONPATH ordering inside PyDev which could potentially lead
to that).

If it doesn't solve it for you, check if your PYTHONPATH is what you
expected inside the shell: import sys;
print('\n'.join(sorted(sys.path))) and compare that with your
configuration... ( note that the recommended place to ask PyDev
questions is at stackoverflow with a PyDev tag... see:
http://pydev.org/about.html )

Cheers,

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


Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Fabio Zadrozny
On Thu, Sep 6, 2012 at 10:43 AM, Alex  wrote:
> Ramchandra Apte wrote:
>
>> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex  wrote:
>> > I'm new to Python and have been using IDLE 3.2.3 to experiment with
>> >
>> > code as I learn. Despite being configured to use a 4 space
>> > indentation
>> >
>> > width, sometimes IDLE's "smart" indentation insists upon using
>> > width-8
>> >
>> > tabs.
>> >
>> >
>> >
>> > From what I've been able to find on Google, this is due to a
>> >
>> > shortcoming in Tk. While it's not that big a deal in the grand
>> > scheme
>> >
>> > of things, I think it looks like poop, and I'd like to change IDLE
>> > to
>> >
>> > use 4-space indentation instead of tabs for all indentation levels.
>> >
>> >
>> >
>> > Is there any way for me to achieve what I want in IDLE, or do I
>> > have to
>> >
>> > start up my full-blown IDE if I want consistent 4-space indentation?
>> >
>> >
>> >
>> > Alex
>>
>> I think an IDE is better than IDLE. Try NINJA IDE.
>> http://ninja-ide.org
>
> Agreed. I like PyDev in Eclipse, but sometimes I just want to try out
> something quick in the interpreter, to ensure I understand it or do a
> quick experiment. Since indentation is syntactically significant in
> Python, I think fixing the interpreter to produce good, readable,
> cut-and-pasteable, and Pythonic code is more important than a cosmetic
> feature, but less important than true bugs.
> --


Actually, if you're in PyDev/Eclipse already, you can just use the
interactive shell that PyDev provides:
http://pydev.org/manual_adv_interactive_console.html

Cheers,

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


PyDev 2.4.0 Released

2012-02-01 Thread Fabio Zadrozny
Hi All,

PyDev 2.4.0 has been released

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

Release Highlights:
---

PyDev is now faster and uses less memory (many performance and memory
improvements were done)!

The contents of the homepage are now migrated to a wiki at
https://wiki.appcelerator.org/display/tis/Python+Development ...
(later most of the homepage will become a mirror of the wiki).

Others

* Organize imports: Fixed issue where other statements in a commit
line got lost (now such a line is ignored).
* PyDev Package Explorer: closed project no longer remains with old icons.
* Fixed deadlock when setting project as Django.
* Fixed issue in code formatting *args on lambda statement.
* TODO tags: only searched now in a string/comment partition.
* Fixed issue when saving empty document (bad location on code-formatter).
* Fixed issue removing comments from document.
* Applied patch for internal Jython 2.2.1 to fix list.sort
(http://bugs.jython.org/issue1835099).
* Fixed resolution of template variable prev_class_or_method and
next_class_or_method.


What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


Re: How to make PyDev pep8 friendly?

2012-02-17 Thread Fabio Zadrozny
On Wed, Feb 8, 2012 at 10:15 PM, Ali Zandi  wrote:
> Hi,
>
> I was trying to find a way to configure PyDev e.g. in Eclipse to be
> pep8 friendly.
>
> There are a few configurations like right trim lines, use space after
> commas, use space before and after operators, add new line at the end
> of file which can be configured via Eclipse -> Window -> Preferences -
>> PyDev -> Editor -> Code Style -> Code Formatter. But these are not
> enough; for example I couldn't find a way to configure double line
> spacing between function definitions.
>
> So is there any way to configure eclipse or PyDev to apply pep8 rules
> e.g. on each save?
>

While this is known, there are still no dates on when this will
actually be implemented...

On the other way, I'd love to accept patches for that... it could even
be done in Python (actually Jython 2.2.1) -- which is also the way
that pep8.py was integrated.

Cheers,

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


Re: Error importing __init__ declared variable from another package

2012-03-07 Thread Fabio Zadrozny
On Wed, Feb 29, 2012 at 1:38 AM, Jason Veldicott
 wrote:
>> > Hi,
>> >
>> > I have a simple configuration of modules as beneath, but an import error
>> > is reported:
>> >
>> > /engine
>> >    (__init__ is empty here)
>> >    engine.py
>> > /sim
>> >    __init__.py
>> >
>> >
>> > The module engine.py imports a variable instantiated in sim.__init__ as
>> > follows:
>> >
>> >    from sim import var_name
>> >    var_name.func()
>> >
>> > The following error messaged is received on the func() call above
>> > (Eclipse
>> > PyDev):
>> >
>> > "undefined variable from import: func"
>> Are you rephrasing or is this really the error message? If so run your
>> program again on the command-line. Then please cut and paste the error
>> message together with the traceback.
>> > Any idea why this is causing an error?
>> What version of Python are you using?
>> What does sim/__init__.py contain?
>
>
>
> Thanks Peter.
>
> I'm using Python 2.6, but it works at the command line.  The error only
> appears in Eclipse as a red cross in the margin.  The exact error msg, as
> appears in a floating text caption on mouse over, is as I mentioned
> (capitalised).
>
> Perhaps it is some issue in PyDev, maybe related to the version of Python
> I'm using.
>
> I'm in the process of trying to solve another related import problem, and
> wished to resolve this one in the hope that it might shed light on the
> other. But as it works beside the error icon appearing, I might just ignore
> it and spare the trouble of precise identification of cause.

Please report that as a bug in the PyDev sf tracker (please attach a
sample project where this problem can be reproduced).

Cheers,

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


Re: other languages API to python

2012-06-01 Thread Fabio Zadrozny
On Thu, May 24, 2012 at 9:25 AM, Chris Angelico  wrote:
> On Thu, May 24, 2012 at 9:58 PM, Rita  wrote:
>> Hello,
>>
>> A vendor provided a C, C++ and Java API for a application. They dont support
>> python so I would like to create a library for it. My question is, how
>> hard/easy would it be to create something like this? Is there a simple HOWTO
>> or examples I can follow? Can someone shed home light on this?
>
> The best way would be to write something in C that exposes the API to
> Python. Check out the docs on "Extending and Embedding Python":
>
> For Python 2.x: http://docs.python.org/extending/
> For Python 3.x: http://docs.python.org/py3k/extending/
>
> You'll need to learn Python's own API, of course, but if you're a
> competent C programmer, you should find it fairly straightforward.
>
> There's an alternative, too, though I haven't personally used it. The
> ctypes module allows you to directly call a variety of C-provided
> functions.
>
> http://docs.python.org/library/ctypes.html
> http://docs.python.org/py3k/library/ctypes.html
>
> The resulting code isn't nearly as Pythonic as it could be if you
> write a proper wrapper, but you save the work of writing C code.
>
> Chris Angelico
> --
> http://mail.python.org/mailman/listinfo/python-list

There are some wrapping libraries that may help in wrapping C/C++ for
Python... Take a look at Boost::Python, Swig, Sip and Cython
(personally, I like Boost::Python, but the generated code can be a bit
bloated -- but not a problem unless it's a really huge library --
Cython seems nice too, but I've only made few things with it, so, I
can't comment much).

Cheers,

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


Pydev 2.2.0 Released

2011-06-27 Thread Fabio Zadrozny
Hi All,

Pydev 2.2.0 has been released

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

Release Highlights:
---


**Eclipse 3.7**

  * Eclipse 3.7 (Indigo) is now supported.

**Break on Exceptions**

  * It's now possible to **break on caught exceptions** in the debugger.
  * There's an UI to break on caught or uncaught exceptions (menu: Run
> Manage Python Exception Breakpoints).

**Hierarchy view**

  * UI improved (now only uses SWT -- access through F4 with the
cursor over a class).

**PyPy**:

  * PyDev now supports PyPy (can be configured as a regular Python interpreter).

**Django**


  * Django configuration in project properties page (improved UI for
configuration of the django manage.py and django settings module).
  * Improved support for debugging Django with autoreload. Details at:
http://pydev.org/manual_adv_remote_debugger.html#django-remote-debugging-with-auto-reload

**Code analysis**

  * Fixed issue where a resolution of a token did not properly
consider a try..except ImportError (always went for the first match).
  * Fixed issue with relative import with wildcards.
  * Fixed issue with relative import with alias.
  * Fixed issue where binary files would be wrongly parsed (ended up
generating errors in the error log).

**Code completion**

  * Improved sorting of proposals (__*__ come at last)

**Others**

  * Improved ctrl+1 quick fix with local import.
  * Fixed issue running with py.test.
  * PyDev test runner working properly with unittest2.
  * Fixed compatibility issue with eclipse 3.2.
  * No longer sorting libraries when adding interpreter/added option
to select all not in workspace.
  * Fixed deadlock in the debugger when dealing with multiple threads.
  * Fixed debugger issue (dictionary changing size during thread
creation/removal on python 3.x).




What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


PyDev 2.2.1 Released

2011-07-14 Thread Fabio Zadrozny
Hi All,

PyDev 2.2.1 has been released

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

Release Highlights:
---

Quick-outline

 * Parent methods may be shown with a 2nd Ctrl+O.
 * The initial node is selected with the current location in the file.

Extract local refactoring

 * Option to replace duplicates.
 * Fixed issue where wrong grammar could be used.

Others

 * Improved handling of Ctrl+Shift+T so that no keybinding conflict
takes place (now it'll be only active on the PyDev views/editor).
 * PyLint markers always removed on a project clean.
 * If the standard library source files are not found, more options
are presented.
 * If the completion popup is focused and shift is pressed on a
context insensitive completion, a local import is done.
 * Fixed issue where a local import wasn't being added to the correct location.
 * Fixed error message in debugger when there was no caught/uncaught
exception set in an empty workspace.
 * Performance improvements on hierarchy view.
 * Django commands may be deleted on dialog with backspace.


What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


Re: Virtual functions are virtually invisible!

2011-07-16 Thread Fabio Zadrozny
On Sun, Jul 10, 2011 at 2:15 PM, rantingrick  wrote:
> On Jul 4, 3:43 am, Gregory Ewing  wrote:
>> rantingrick wrote:
>> > what concerns me is the fact that virtual methods in derived
>> > classes just blend in to the crowd.
>> > I think we really need some
>> > sort of visual cue in the form of forced syntactical notation (just
>> > like the special method underscores).
>>
>> If you're suggesting that it should be impossible to override
>> a method unless it is specially marked somehow in the base
>> class, I think that would be a bad idea.
>
> Sorry i did explain properly... No NOT marked in the BASE class but
> marked in the DERIVED class! My concerns are from a readability
> standpoint.



I also like the idea of override annotations and I've created a blog
post at: 
http://pydev.blogspot.com/2011/06/overrideimplements-templates-on-pydev.html
to explain how I do use it (and in a way that I think should be
standard in Python the same way it's in Java).

Cheers,

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


Re: How to use python environment created using virtualenv?

2011-08-16 Thread Fabio Zadrozny
On Tue, Aug 16, 2011 at 2:15 AM, smith jack  wrote:
> I have created a python environment using virtualenv, but when i want
> to import such environment to PyDev, error just appears,
> it tells there should be a Libs dir, but there is no Libs DIr in the
> virtual envronment created using virtualenv, what should i do if
> i want to use this virtual environment?


You have to use the Lib dir from the base python (the one you used to
create your virtualenv) -- it needs that to have access to the base
python library (i.e.: threading.py, etc).

Cheers,

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


PyDev 2.2.2 Released

2011-08-23 Thread Fabio Zadrozny
Hi All,

PyDev 2.2.2 has been released

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

Release Highlights:
---

**IPython / Interactive console**

* IPython (0.10 or 0.11) is now used as the interactive console
backend if PyDev can detect it in the PYTHONPATH.
* While waiting for the output of a command, intermediary results
are printed in the console.
* ANSI color codes are supported in the interactive console.

**Code Analysis**

* Reporting variables that shadow builtins as warnings.
* Fixed issue where __dict__ was not found.

**Code completion**

* Aliases have a better treatment (i.e.: unittest.assertEqual will
show the proper type/parameters).
* Improved support for analyzing function builtins where the
return type is known (i.e.: open, str.split, etc).

**Debugger**

* When doing a remote debug session, if the files cannot be found
in the local filesystem, PyDev will ask for files in the remote
debugger.

**Editor**

* Files without extension that have a python shebang (e.g.:
#!/usr/bin/python in the first line) are automatically opened with the
PyDev editor (in the PyDev Package Explorer).

**Django**

* When the shell command is used in the django custom commands,
PyDev no longer uses 100% cpu while it doesn't complete.

**Others**

* Fixed issue where the * operator was not properly formatted.
* When the quick outline dialog is deactivated, it's closed.
* Fixed heuristic for finding position for local import.
* Fixed compare editor issue with Eclipse 3.2.
* Fixed integration issue with latest PyLint.
* Fixed deadlock issue on app engine manage window.
* More options added to configure the automatic deletion of .pyc
files (delete always, never delete, delete only on .py delete).



What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


Re: Python IDE/Eclipse

2011-08-30 Thread Fabio Zadrozny
On Fri, Aug 26, 2011 at 11:18 AM, Dave Boland  wrote:
> I'm looking for a good IDE -- easy to setup, easy to use -- for Python.  Any
> suggestions?
>
> I use Eclipse for other projects and have no problem with using it for
> Python, except that I can't get PyDev to install.  It takes forever, then
> produces an error that makes no sense.
>
> An error occurred while installing the items
>  session context was:(profile=PlatformProfile,
> phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
> operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343,
> action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
>  Cannot connect to keystore.
>  This trust engine is read only.
>  The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was
> not found.
>
>
> Any suggestions on getting this to work?

In the install dialog, uncheck the 'contact all update sites during
install to find required software'.

Another option would be getting Aptana Studio 3, which has PyDev
preinstalled (see: http://pydev.org/download.html )

Cheers,

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


Pydev 2.0 Released

2011-04-04 Thread Fabio Zadrozny
Hi All,

PyDev 2.0 has been released

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

Release Highlights:
===

Major
-

* TDD actions on Ctrl+1

* Improved code coverage support

See video at: http://pydev.org/video_pydev_20.html with these improvements


Noteworthy


PyUnit

 * It's possible to pin a test run and restore it later.
 * Errors that occur while importing modules are properly shown.
 * It's possible to override the test runner configurations for a given launch.
 * The Nose test runner works properly when there's an error in a fixture.

Editor

 * When there's some text selected and ' or " is entered, the content
is converted to a string.
 * Handling literals with ui linking.
 * Creating ui link in the editor after entering (,[,{ when it is auto-closed.
 * On hover, when there's a name defined in another module, the
statement containing the name is shown.
 * It's possible to launch an editor with a file not in the workspace
(a project must be selected in this case)
 * If a line starts with __version__ no import is added above it.
 * When doing assign to attributes, if there's a pass in the line the
assign will be added, it's removed.
 * When Ctrl+1 is used to add an import on an unresolved variable, if
Ctrl is pressed on apply a local import is done.

Interactive console (options)

 * Focus on creation
 * When created the selection may be directly sent to the console

The DJANGO_SETTINGS_MODULE environment var is passed when making a launch.

The outline page now has a filter.

The input() method properly works in Python 3.2 (last "\r" no longer shown).

**LOTS** of other adjustments and bug fixes



What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


Pydev 2.1.0 Released

2011-05-30 Thread Fabio Zadrozny
Hi All,

Pydev 2.1.0 has been released

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

Release Highlights:
---


Code Analysis

By default, only the currently opened editor will be analyzed
(resulting in much shorter build times).
Added action to force the analysis on a given folder or file.
Showing error markers for PyDev elements in the tree.
New option to remove error markers when the editor is closed (default).

Editor

Override method completions (Ctrl+Space after a 'def ') .
Completions starting with '_' now have lower priority.
Fixed major issue when replacing markers which could make errors
appear when they shouldn't appear anymore
Auto-linking on close parens is now optional (and disabled by default).

Code coverage

No longer looses the selection on a refresh.
Fixed issue where coverage was not working properly when running
with multiple processes.
Added orientation options

PyUnit

Added feature to relaunch the last launch when file changes (with
option to relaunch only errors).
setUpClass was not called when running with the pydev test runner
F12 makes the editor active even if there's a tooltip active in
the PyUnit view.
The PyUnit tooltip is now properly restoring the focus of the
previous active control.
Added orientation options

And a bunch of other bug-fixes.


Note: Java 1.4 is no longer supported (at least Java 5 is required now).



What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython
and IronPython development -- making Eclipse a first class Python IDE
-- It comes with many goodies such as code completion, syntax
highlighting, syntax analysis, refactor, debug and many others.


Cheers,

-- 
Fabio Zadrozny
--
Software Developer

Appcelerator
http://appcelerator.com/

Aptana
http://aptana.com/

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


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


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


Re: Python with PyDev on Visual Studio Code

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

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

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


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


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


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


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


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


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


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.4.0 Released

2016-11-30 Thread Fabio Zadrozny
PyDev 5.4.0 Released

Release Highlights:
---

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

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

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

* **Initial support for Python 3.6**

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

* **Launching**

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


* **Debugger**

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

* **Unittest integration**

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

* **Others**

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

What is PyDev?
---

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

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

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


What is LiClipse?
---

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

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

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



Cheers,

--
Fabio Zadrozny
--
Software Developer

LiClipse
http://www.liclipse.com

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

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


PyDev 5.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 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.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.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


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


​PyDev 7.0.3 Released

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

* **Mypy**

* PyDev can now use Mypy when doing code analysis.

* **Black Formatter**

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

* **Virtual environments**

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

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

* **Debugger**

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

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

* Removed support for using the Python 2.4 grammar.

* The 2to3 integration shows a better dialog.

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

About PyDev
---

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

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

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

Links:

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

Cheers,

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


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


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


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


Re: "How to protect the python code"

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

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

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

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

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


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


PyDev 7.6.0 Released

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

   -

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

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

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

About PyDev

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

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

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

Links:

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

Cheers,

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


PyDev 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 8.1.0 Released

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

   -

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

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

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

About PyDev

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

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

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

Links:

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

Cheers,

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


PyDev 0.9.8.2 released

2005-09-26 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.2 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.2

Major highlights:


* Content assistants reviewed (and better documented on the homepage 
-- I really reccomend checking it)
* Timeout parsing options added (this is available in the builder 
preferences page)
* Auto-dedent added

Others that are new and noteworthy:
-

* .pyc is removed when the corresponding .py file is removed.
* Debugger has been changed so that it becomes faster (still not as 
fast as I would like, but still... faster) -- looking for people with 
expertise on this to help me, as I'm kind of lost on which should be the 
'recommended' way to speed it more.
* Some escaped quotes problems fixed when formatting code
* Navigation with Ctrl+Shift+ (up or down) has been slightly 
improved, so that it goes to the start or the end of the file when no 
other class or method declaration is found
* Other bug-fixes (as ususal)

Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com



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


PyDev 0.9.8.3 released

2005-10-13 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.3 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.3


Major highlights:


* Debugger was improved to be faster (more info about it at my blog
  <http://pydev.blogspot.com/2005/10/high-speed-debugger.html> --
  http://pydev.blogspot.com/2005/10/high-speed-debugger.html)
* The debugger is now getting info correctly on java classes when
  debugging jython
* Add watch added to the editor popup menu
* Added syntax highlighting to the 'self' token
* Code folding added for 'glued' imports
* Fixed some outline problems


Others that are new and noteworthy:
-

* Debugger does not try to get breakpoints on closed projects anymore
* Some refreshing issues regarding the outline and colors when
  reusing the editor were fixed
* Code completion for relative imports has changed a lot (there were
  some pretty hard-to-find bugs in this area...)
* Some move imports problems fixed
* The auto-add '(self):' now works with tabs too


Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com



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


Re: A macro editor

2005-10-25 Thread Fabio Zadrozny
Hi Jaume,

Pydev (http://pydev.sf.net) is an eclipse plugin that does 
code-completion for jython, so, it might be worth taking a look at it...

Cheers,

Fabio


jau wrote:

>Hello mates.
>
>I'm part of a big project's developer team. We are writting an 
>application in Java and we are planning to add scripting functionality 
>to it. What we exactly are planning is to give a kind of tool that would 
>allow our users to write their own scripts to perform their special 
>operations. Something like VBA does in several comercial applications. 
>But, as we are GPL we have to use a close to GPL licensed-like language.
>
>My teammates and I were talking about to use one of Python, Ruby or 
>Groovy. But, we haven't decided which to use.
>
>What seems to be easier is to use Python, you know.. because of the 
>Jython thing. But, it is probably a mistake to take Jython without a 
>extensive analysis of the all possibilities.
>
> From my point of view, the best choice will be those that allow the 
>average user getting results as fast as possible rather than the power 
>of the language itself. At the end, what we will write is a gateway to 
>access to our application's Java API through the scripts written by our 
>users.
>
>In this sense, I'd like to ask if someone knows if any of these 
>languages have a Java implementation that supports code auto-complete 
>and class navigation or any kind of functionality that would ease and 
>speed up the user's learning curve and productivity.
>
>In other words, is it possible to have a small and lightly intelligent 
>workbench window (a mini-Eclipse for example) for our future "macro 
>editor" within our application?
>
>I promise that if get some info I'll publish it here as soon I have it.
>
>Thanks for your time!
>Jaume
>  
>


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


PyDev 0.9.8.4 released

2005-11-03 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.4 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.4


Major highlights:


* The license was changed to EPL. It can be found at: 
http://www.opensource.org/licenses/eclipse-1.0.php
* Code-completion information is now saved in deltas instead of 
"saving only at shutdown" (being so, it does not loose information if it 
does not have a regular shut-down).



Others that are new and noteworthy:
-

* Added option for not using the smart-indent after opening brackets
* Some step-by-step instructions of how to get started with pydev 
have been contributed by Jack Trainor.
* Many bugfixes


Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com



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


Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Fabio Zadrozny
Hi Dave,

Currently there is no python debugger (that I know of) that does it, 
altough tools are beggining to get to it (another example outside of the 
python world is that eclipse already does it for java). If you use the 
pdb (that is the command-line debugger that comes along with python), 
you can do it, but it would require a considerable effort because you 
would have to modify it manually (with reload, assignments, etc.) -- not 
really a good thing in my opinion -- and you wouldn't have the easiness 
that is provided by visual debuggers.

Now, I'm the developer of pydev (http://pydev.sf.net), that is a plugin 
that aims at enabling python development within eclipse (and is already 
used a lot in the python community), and I believe that given some time 
pydev will reach the functionality you're describing -- as others will 
probably do too -- and that's one of the reasons why pydev is being 
developed (the current state of tools for editing python still has space 
for LOTS of opportunities).

So, making it short... currently you can do it but it is not easy 
because tools are still catching up to what python provides (I 
personally believe this is because it is so easy to edit python and 
understand the code that some people don't look for other alternatives, 
and end up just 'accepting' what they have because it is already better 
than alternatives -- altough this is only true for some given scenarios).

Cheers,

Fabio



python wrote:

>thanks for all that have replied so far.
>i still find it __very__ hard to believe that i cannot edit code inside a 
>function while debugging it.
>as i mentioned even micro$soft can do this using statically type languages 
>like visual basic and csharp.
>also, both visualbasic and csharp have goto statements, which i do to not use 
>in final code but can be real handy when 
>used with the ability to change debugged code on the fly while inside the 
>function being debugged.
>
>for example,
>if i am inside a function and there is some an error on a line and that is 
>where the debugger is currently pointing at,
>i simple copy and paste the bad code line just below the actual code line.
>i fix this copied code line.
>then i just turn the bad line into a comment line and the debugger will move 
>the current focus to the next time, which 
>is the fixed code.
>
>how can such a dynamic language like python not be able to do this.
>
>i have seen functions like exec that can even run dynamically generated text 
>on the fly.
>
>very strange..
>
>any other ideas,
>
>thanks so much,
>
>dave
>
>"python" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>  
>
>>hello and thanks for reading this,
>>
>>i have been a dos/windows user using some form of the basic language for 30 
>>years now.
>>i own and run a small programming company and there is one feature that keeps 
>>me in the windows/basic world.
>>
>>while i will agree that it has not evolved well, it does have one awesome 
>>feature that i have yet to see replicated in
>>any linux product that i know about so far.
>>
>>
>>i am a long time windows user and have had a great way to learn new api.
>>to write some code and then run it.
>>if there is an error, the debugger will load.
>>then i can figure out what the eror is, just touch up the ocde and continue 
>>to run the code.
>>i do not have to stop the code, modify the code, rerun  the code.
>>often an error will only happen after a complex set of conditions and not 
>>have to completely stop the app is a 
>>fantastic
>>way to debug.
>>
>>there are several applications that can do this.
>>in fact, the free version of the visual studio 2005, which is free, have this 
>>ability.
>>
>>so how can i use python to debug code and change that code without having to 
>>restart the code.
>>
>>thanks so much,
>>dave
>>
>>
>>
>>
>>
>
>
>  
>


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


PyDev 0.9.8.5 released

2005-11-17 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.5 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.5

Major highlights:
---

* Removed the dependency on packages 'sun..Base64', so that 
other VMs can be targetted
* Some code-completion problems in the 'resolution order' regarding 
tokens in __init__ were solved
* Added option so that the user can choose whether to automatically 
add 'self' or not in method declarations

Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com



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


Re: Eclipse best/good or bad IDE for Python?

2005-12-02 Thread Fabio Zadrozny
Hi Chris,

I think that you should try it yourself... being the *best ide*  is 
usually a subjective matter, so, you should decide yourself if it is the 
best IDE for the task you want it to.

I must also warn you that I'm its current maintainer, and it is *my* 
favorite IDE :-)

Also, I use it for large projects (2569 .py files on my python 
installation and about 1800 .py files in my project), and, altough I 
agree with the general idea that you need a fast computer to use it at 
optimal performance, I found that using an athlon 1600+ with 512mb RAM 
was enough for me when using eclipse with pydev (also, the features 
provided by eclipse are more than worth the loss of speed when editing 
some things when compared to editors such as vi or emacs, altough the 
learning curve for that might not be so light, in the long run, I'm 
pretty sure that it is worth it -- altough I really miss a faster 
machine for compiling c++).

But in the end, as I said, it is a subjective matter, so, you'll have to 
decide it for yourself.

Cheers,

Fabio

[EMAIL PROTECTED] wrote:

>I'm trying to move beyond Emacs/Vim/Kate
>and was wondering if Eclipse is better and if it is the *best*
>IDE for Python.
>
>Should I leave Emacs and do Python coding in Eclipse?
>
>Chris
>
>  
>


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


Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
John J. Lee wrote:

>Aaron Bingham <[EMAIL PROTECTED]> writes:
>  
>
>>[EMAIL PROTECTED] wrote:
>>
>>
>[...ex-emacs user explains switch to Eclipse...]
>  
>
>>The killer PyDev feature for me is pylint integration.  Being informed 
>>immediately when you mistype a variable name is a big timesaver.  Also 
>>
>>
>
>I now find it difficult to mis-type variable names in Emacs, since I
>have F4 bound to dabbrev-expand.  I also do standard things like using
>query-replace when renaming.  Actually, something like dabbrev-expand
>is perhaps the one thing I would find indispensible switching to any
>other editor -- I wonder if Eclipse/PyDev has it?
>
>(dabbrev-expand searches backwards in the current buffer to find
>'words' that are completions of the word you're typing immediately
>before the cursor position (then back and forth in all other buffers
>if search in the current buffer failed...), until it finds a
>completion; then you can repeat the command to cycle through all other
>possible completions.)
>  
>

Yes, Eclipse has it by default (not a pydev work): Alt+/


>
>  
>
>>nice is the refactoring support (although this it is possible to 
>>integrate BicycleRepairMan! with Emacs, I found it easier to use in 
>>Eclipse).
>>
>>
>[...]
>
>Refactoring and the general 'semantic slant' certainly seems the
>interesting bit about Eclipse (that and the fact that Emacs is a bit
>old and hairy, and Eclipse is growing a big user base like Emacs).
>
>Not entirely sure Lisp->Java is progress, though.
>  
>

Well, actually, pydev does some things with python too (code-completion 
for builtins and bicycle repair man integration), and it would be 
extremely simple to add some scripting capabilities with jython too, so, 
I don't really think you'd be tied to 'only java' -- altough its core 
will always be.

>
>John
>
>  
>

Cheers,

Fabio

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


Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
John J. Lee wrote:

>Fabio Zadrozny <[EMAIL PROTECTED]> writes:
>[...]
>  
>
>>I must also warn you that I'm its current maintainer, and it is *my* 
>>favorite IDE :-)
>>
>>
>[...]
>  
>
>>But in the end, as I said, it is a subjective matter, so, you'll have to 
>>decide it for yourself.
>>
>>
>
>Hey, Fabio, can this be true:
>
>https://bugs.eclipse.org/bugs/show_bug.cgi?id=15820
>
>|--- Comment #4 From Chris McLaren  2003-01-08 10:43  [reply] ---
>|
>|this is not a key bindings issue anymore - key bindings can be fully 
>|customized but vi emulation requires special support from the editor. closing 
>|this pr - best step is to try and lobby vi emulation to the draft proposal.
>
>
>
>They're kidding, right???  Can it be possible there's no free vi mode
>for Eclipse??  If something so basic is missing from the core stuff,
>gives me little hope emacs will be displaced as the Big Beast of
>editors anytime soon...
>  
>
Well, I remember seeing one that was free (altough this was more than a 
year ago -- I don't really use vi, so, I searched it just out of 
curiosity), but if you searched and it was not found... I don't know, 
maybe its author decided to make it commercial? Still, I'm pretty sure 
there was one...

>The basis in Java makes me worry a tiny bit too.  First, Lisp plus the
>'programmers scratch their own itch' model seems to have been very
>successful in letting people Get the Job Done in Emacs.  More
>important, I fear licensing issues will keep away Emacs hackers who
>might otherwise switch and make the platform more usable for other
>Emacs refugees.
>
>  
>
Being java, does not worry me that much... there are already many vms 
aside from suns (including gcj), and I think that if you do not want to 
program in java, adding scripting layers for jython, jruby, etc should 
be fairly easy (given that someone has the time to do it).

>
>John
>
>  
>
Fabio

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


Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
malv wrote:

>As "bicycle repair man integration" keeps popping up as a distinct
>feature of jave-based PyDev, let it be known that other IDE's also have
>this.
>For example, non-java Eric has had " bicycle repair man" integration
>for a very long time.
>
>Personally, in spite of intense programming in python, I've never
>encountered a real need for the bicycle gimmick.
>
>  
>
Hi...

Yeap, bicycle repair man is used by many IDEs (that's what it was meant 
for, right)?
As for refactoring, it is something you only miss after having used it 
(and yes, the one provided by bicycle repair man is still in its 
childhood when compared to tools available for java, but python 
compensates that in its ease of programming -- until a certain point, 
because if you had tools as good as the ones for java, it would make 
programming in python even more enjoyable). And sure, you can do it 
manually, but why bother when you have tools to do it?

Cheers,

Fabio

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


Pydev 0.8.5 released!

2005-01-21 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python development enviroment for Eclipse) version 0.8.5
has just been released.

This release has as its main feature a new Code Completion. Check the
homepage for more details (http://pydev.sourceforge.net/).

Other things in the release include some bugs corrected, and some patches:
- Scott Schlesier has provided a patch to configure the editor background
and color of the highlighted line.
- Sebastian Tusk provided a patch to see watch expressions on debug.

Hope you enjoy it... 

Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software 
www.esss.com.br


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


ANN: PyDev 0.9.0 released

2005-02-03 Thread Fabio Zadrozny
Hi All,
PyDev - Python IDE (Python development enviroment for Eclipse) version 
0.9.0 has just been released.

This release supports python 2.4 and has PyLint 0.6 integrated.
Code completion had some improvements too.
Check the homepage for more details (http://pydev.sourceforge.net/).
Regards,
Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
--
http://mail.python.org/mailman/listinfo/python-list


ANN: PyDev 0.9.5 released

2005-06-28 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.5 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Release Highlights:

- File encodings now follow the python convention
- Overview ruler now works
- Editor is synchronized when working in multiple windows with the same file
- Code folding improved
- Syntax highlighting is not confused by escaped quote + triple quote 
anymore
- Insertion of parentheses now replaces selected text
- Some more bugs...

Regards,

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: ANN: PyDev 0.9.5 released

2005-06-29 Thread Fabio Zadrozny
Most things do work, but some still seem to have problems with version 
3.1 (and thus it is still not officially supported - but should be, not 
long from now).

Cheers,

Fabio

Dave Cook wrote:

>On 2005-06-28, Fabio Zadrozny <[EMAIL PROTECTED]> wrote:
>
>  
>
>>PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
>>0.9.5 has just been released.
>>
>>
>
>Does it work with the newly released Eclipse 3.1?
>
>Dave COok
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: Thoughts on Guido's ITC audio interview

2005-07-01 Thread Fabio Zadrozny
Ville Vainio wrote:

>>>>>>"Timothy" == Delaney, Timothy (Tim) <[EMAIL PROTECTED]> writes:
>>>>>>
>>>>>>
>
>Timothy> Absolutely. I've really tried to use Eclipse - it's the
>Timothy> standard editor for my current project (Java - blegh!). I
>Timothy> *hate* it. It's huge, bulky, slow ... I've gone back to
>Timothy> my text editor. I'm a hell of a lot more
>
>Have you tried the recently released 3.1 version? It seems to be a tad
>snappier than the old version.
>
>Timothy> The only IDE I've ever actually liked using was
>Timothy> Metrowerks CodeWarrior (on MacOS classic). Simple,
>Timothy> unobtrusive. Good project management, without trying to
>Timothy> control every aspect of the development process. And
>
>The debugger in CodeWarrior is quite crappy IMHO. Unlike visual
>studio, it doesn't show the return values of function calls. The
>editor is also quite lacking, without the ability to create macros
>etc.
>
>I agree about the project management part. Though I would still love
>to use Eclipse instead, if it only was supported for my line of work
>:-/.
>
>Timothy> it allowed me to use the entire screen for editing if I
>Timothy> wished whilst still having everything readily available.
>
>Eclipse allows this as well. ctrl+m is maximize/unmaximize.
>
>  
>
What line of work is not supported in eclipse?

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.6 released

2005-07-20 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.6 has just been released.

This is to be considered a stable release for all features but the 
debugger, as there are still some integration issues for it to work with 
Eclipse 3.1, so, if you are using PyDev because of its debugger support, 
you should stick to version 3.0.x until those issues are fixed.

Check the homepage (http://pydev.sourceforge.net/) for more details.

The major release highlights is that it Eclipse 3.1 is now supported. 
Older versions of Eclipse are no longer supported.

Regards,

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.7 released

2005-07-26 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.7 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Release Highlights:

This build fixes some nasty bugs from 0.9.6... it is highly recommended 
you install it. (right now, everything but the debugger should work fine 
with 3.1).

Important notes

Note 1: Because of some issues with Eclipse, you have to uninstall all 
previous PyDev installations before installing the new release.
Note 2: This release only works with Eclipse 3.1 (and from now on, 
Eclipse 3.0.x is no longer supported).
Note 3: Java 5.0 is required from now on.

Regards,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: ANN: PyDev 0.9.7 released

2005-07-26 Thread Fabio Zadrozny
That's s sort of an Eclipse issue... you have to disable it, restart 
eclipse and only then will an uninstall appear (it has something to do 
with some resources eclipse is not able to remove when the plugin is 
active).

Cheers,

Fabio

Dennis Lee Bieber wrote:

>On Tue, 26 Jul 2005 10:56:58 -0300, Fabio Zadrozny <[EMAIL PROTECTED]>
>declaimed the following in comp.lang.python:
>
>  
>
>>Hi All,
>>
>>PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
>>0.9.7 has just been released.
>>
>>
>>
>   How nice... my dial-up system has been on all night downloading
>and installing various optional packages, including 0.9.6
>  
>
>>Note 1: Because of some issues with Eclipse, you have to uninstall all 
>>previous PyDev installations before installing the new release.
>>
>>
>
>   Silly question -- but since I've only downloaded Eclipse et al
>this week (and so, obviously, have no real experience with it), just how
>/do/ I uninstall PyDev? I didn't see anything jump out of the menu
>system -- disabling it, yes; removing it, no.
>
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.7 with support to java 1.3 and 1.4 released

2005-08-01 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.7  with support to java 1.3 and 1.4 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

IMPORTANT:

- A new package has been added to the pydev release with support to 
earlier java versions (latest release just supports java 5.0).

- This package is targeted specifically for people that don't have 
access to java 5.0 (namely, earlier versions of MAC OS).

- Support for this release is limited to the .zip distribution in the 
sourcforge downloads, and will not be put into the update site.


Release Highlights:

This build fixes some nasty bugs from 0.9.6... it is highly recommended 
you install it. (right now, everything but the debugger should work fine 
with 3.1).

Important notes

Note 1: Because of some issues with Eclipse, you have to uninstall all 
previous PyDev installations before installing the new release.
Note 2: This release only works with Eclipse 3.1 (and from now on, 
Eclipse 3.0.x is no longer supported).

Regards,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: pyunit and Eclipse

2005-08-04 Thread Fabio Zadrozny
Steve Jorgensen wrote:

>I was working with a friend on a project Monday night, and tried to run a
>pyunit test from Eclipse, and nothing seemed to happen.  We finally figured
>out that the test is doing exactly what it's supposed to do, but the pyunit
>output isn't making it to the Eclipse console window.  We get the same result
>if I run the module as a pyunit test using Eclipse, or if we simply have the
>program call unittest.main, and run that.
>
>As a workaround, we just ran the tests from a command prompt which worked well
>enough, but it would be nice to fix the problem.
>  
>
Which pydev version? How did you do the run?

Guessing those...

Just a single file, yes, it would be just unittest.main()...

Anyway, there is an issue in Eclipse (happens in java too) that is the 
following: if you do a run and it is too fast, sometimes the output does 
not show (usually if you re-run it --Ctrl+F11 -- , it works, but not 
always).

If you are running the unit-test for a folder, you don't need the 
unittest.main(), as it should auto-import the test-cases in the files 
below the folder (recursively) and run them.

Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: "Compile time" checking?

2005-08-11 Thread Fabio Zadrozny
Just as a note... Pylint is integrated within pydev (http://pydev.sf.net)

Cheers,

Fabio

Qopit wrote:

>>Why not just find out, by trying to compile it? :-)
>>
>>
>
>This will likely certify me as a python newbie, but... how do you mean?
> How do you compile a .py file?
>
>If you mean to .pyc by doing an import on it, that may work fine for
>the simple example I typed up earlier, but that is easy to bypass by
>slapping the offending line in a function.  The sample below also
>passes PyChecker with not even a warning:
>
>#
>def tester(a,b,c):
>  print "bogus test function",a,b,c
>
>def try1():
>  tester(1,2,3)
>def try2():
>  tester(1,2)#still no error here
>#
>
>Do you mean something different?
>
>Also - thanks for the pylint comment... haven't tried it yet.  It would
>be nice to have the capability in an IDE like SPE, though.
>
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.7.99 released

2005-08-19 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.7.99 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.


Details for Release: 0.9.7.99

OK, what's with the strange release version number?... Well, this 
version undergone lot's of changes, so, PyDev will be waiting on 
feedback about them... only after that will it become 0.9.8!


Major highlights:

* PyDev has its first shot at Jython. you should be able to use many 
things already, meaning: all the common editor features and code completion.
* The debugger is working.


Others that are new and noteworthy:

* Code completion has been improved for supporting wild imports and 
relative imports better (sometimes it had some problems).
* There are hovers for the text and annotations (when you pass the 
mouse through an error it will show its description).
* Block comment (Ctrl+4) now uses the size defined for the print margin.
* New block-comment style added (Ctrl+Shift+4).
* New icons were created.
* wxPython completions now show.
* Many other bug-fixes as usual.

Note on Java 1.4 support: Currently Java 1.4 is not supported (only java 
5.0), altough we will try to add support for java 1.4 before the 1.0 
release.


Special thanks
---
This release would not be possible without help from:

OctetString, for the financial support for making jython support possible!
Aleks Totic, Scott Schlesier and Vitor Oba for the debugger patches!
Eduardo A. Hoff, for the new logo and changes on the site layout!

Cheers,

Fabio

-- 

Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


[Jython-users] ANN: PyDev 0.9.7.99 released

2005-08-19 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.7.99 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.


Details for Release: 0.9.7.99

OK, what's with the strange release version number?... Well, this 
version undergone lot's of changes, so, PyDev will be waiting on 
feedback about them... only after that will it become 0.9.8!


Major highlights:

* PyDev has its first shot at Jython. you should be able to use many 
things already, meaning: all the common editor features and code completion.
* The debugger is working.


Others that are new and noteworthy:

* Code completion has been improved for supporting wild imports and 
relative imports better (sometimes it had some problems).
* There are hovers for the text and annotations (when you pass the 
mouse through an error it will show its description).
* Block comment (Ctrl+4) now uses the size defined for the print margin.
* New block-comment style added (Ctrl+Shift+4).
* New icons were created.
* wxPython completions now show.
* Many other bug-fixes as usual.

Note on Java 1.4 support: Currently Java 1.4 is not supported (only java 
5.0), altough we will try to add support for java 1.4 before the 1.0 
release.


Special thanks
---
This release would not be possible without help from:

OctetString, for the financial support for making jython support possible!
Aleks Totic, Scott Schlesier and Vitor Oba for the debugger patches!
Eduardo A. Hoff, for the new logo and changes on the site layout!

Cheers,

Fabio

-- 

Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com




---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Jython-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jython-users

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


Re: jython debugger

2005-08-24 Thread Fabio Zadrozny
wait one more week... until there, pydev (http://pydev.sf.net) should 
already have debugger support for jython.

Cheers,

Fabio

[EMAIL PROTECTED] wrote:

>Hi,
>I am looking for an ide debugger for jython: is there someone with
>some suggestions ?
>
>Thanks,
>   Adriano
>
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.8 released

2005-08-29 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8

Major highlights:
---

* Jython integrated.
* Jython debugger support added.

Others that are new and noteworthy:
-

* jython integration supports spaces for jython.jar and java install
* jython code-completion support for new style objects (jython 
2.2a1) has been enhanced.
* many templates were added
* the grammar evolved a lot, so, now you actually have decorators in 
the grammar, list comprehension on method calls and tuples and the new 
from xxx import (a,b,c) syntax.
* pylint supports spaces
* pylint is no longer distributed with pydev (it must be installed 
in the site-packages and its location must be specified in the preferences)
* some problems regarding 'zombie processes' after eclipse exit with 
the shells used for code-completion should be fixed

Special thanks
---

This release would not be possible without help from:

OctetString, for the financial support for making jython support possible!
Vitor Oba for debugger patches!

Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: [Jython-users] Re: [Jython-dev] Parsing grammar for jython available (compatible with python 2.4)

2005-08-30 Thread Fabio Zadrozny
Well, if you post your problems in the pydev bug-tracker, maybe those 
cases can be sorted out...

(one area on where it is really difficult currently, is when you do 
code-completion and it is unable to parse your module... is this your case?)

Cheers,

Fabio

could ildg wrote:

> thanks.
> pydev is very nice, I like it.
> But sometimes the code completion will not work.
>
> On 8/30/05, *Frank Wierzbicki* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> The code, as well as the files for javacc and asdl (both were
> changed)
> are available in the pydev cvs at sourceforge, in the
> org.python.pydev.parser module (the packages should be the
> same jython
> uses -- org.python.parser and org.python.parser.ast).
>
> The tests I used are available in the tests source folder
> (org.python.pydev.parser.PyParserTest)
>
> Hey -- that's great!
> Unfortunately we probably will not be able to integrate 2.4
> features in until after we get a 2.3 version stable... But I hope
> you can remind us of this work (or I can remember it) when we do
> get to that point.  If you want to leave a strong reminder you
> could submit your changes as a patch -- but I mean this as only
> the gentlest of nudges since it will likely be quite a while
> before we could really look at it.
>
> Thanks,
> Frank
>  
>
>
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: ANN: PyDev 0.9.8 released

2005-08-30 Thread Fabio Zadrozny
Hi Max,

I may be a little (or maybe a lot) biased for it (as I'm its 
maintainer), but as I do 'eat my own dogfood', I though I might share it 
with you...

At my company, everybody that programs with python switched to pydev. 
Most people used 'highly customized' text-editors before pydev, as the 
company does not enforce one ambient for all... still, everybody changed 
to pydev, coming from vi, scintilla, komodo... and we have some really 
big projects (my current ambient has about 400 python modules, all 
managed in pydev). Also, there are no current bug reports for any 
instability in pydev.

Well, anyway, I would like to know other opinions in pydev too... as I 
said, I might bee too biased towards it :-)

Cheers,

Fabio

Max M wrote:

>Fabio Zadrozny wrote:
>  
>
>>Hi All,
>>
>>PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
>>0.9.8 has just been released.
>>
>>
>
>
>I read this, and thought it was time to check out both Eclipse, end the 
>pydev plugin.
>
>I got it all installed, along with a subversion plugin for eclipse, and 
>it actually seems like a very sweet combo.
>
>I was afraid that a Java based editor would be sluggish. But it doesn't 
>seem so.
>
>There are a few nice features too with a file navigator, refactoring, 
>code folding and more.
>
>So I have decided to give it a try. But before commiting to it, I just 
>wondered what experiences other users might have when using it for 
>production. Being that my text editing environment is my bread and butter.
>
>Is it stable/effective etc?
>
>Anybody cares to share?
>
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.8.1 released

2005-09-06 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.1 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.1

Major highlights:
---

* Java 1.4 support reintroduced.
* Styles added for syntax highlighting (bold and italic), 
contributed by Gerhard Kalab.


Others that are new and noteworthy:
-

* zombie process after exiting eclipse should not happen anymore
* paths with '.' are accepted for the pythonpath (unless they start 
with a '.', because it may not accept relative paths).
* relative imports are added to code-completion
* local imports are taken into consideration when doing code completion
* debugger has 'change support', so, changed variables in a scope 
appear red


Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.8.1 released

2005-09-08 Thread Fabio Zadrozny
Hi All,

PyDev - Python IDE (Python Development Enviroment for Eclipse) version 
0.9.8.1 has been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.

Details for Release: 0.9.8.1

Major highlights:
---

* Java 1.4 support reintroduced.
* Styles added for syntax highlighting (bold and italic), 
contributed by Gerhard Kalab.


Others that are new and noteworthy:
-

* zombie process after exiting eclipse should not happen anymore
* paths with '.' are accepted for the pythonpath (unless they start 
with a '.', because it may not accept relative paths).
* relative imports are added to code-completion
* local imports are taken into consideration when doing code completion
* debugger has 'change support', so, changed variables in a scope 
appear red


Cheers,

Fabio

-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: Two questions on PyDev for Eclipse

2005-09-20 Thread Fabio Zadrozny
Hi,

for 2: as far as I know, eclipse must have 'local', or at least 
'emulated' local access, so, if you have samba access, it should do what 
you want.

for 1... I use it a LOT without any problems for some really big 
projects ( with about 2.000 python modules -- not counting the python 
installation) -- but as I also develop it, so, I may be kind of 
impartial ;-)

Cheers,

Fabio

Kenneth McDonald wrote:

>The first is general; what are users' experience with PyDev for  
>Eclipse. It looks pretty good to me right now, but I've only started  
>playing with it. Converting to Eclipse is a major effort, and if  
>there are problems which would prevent pydev from being useful right  
>now, I'd certainly appreciate knowing about them.
>
>The second question is specific; is it possible to use Eclipse to  
>edit a remote file, i.e. through SFTP or something equivalent? My  
>current (limited) understanding of Eclipse is that it maintains an on- 
>disk directory of files in a project. Unfortunately, for what I'm  
>doing, a fair number of the files (mostly Python files) I'm editing  
>are on a remote server, so whatever editor I use, the ability to edit  
>remote files would be a big help.
>
>Thanks,
>Ken
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


Re: Two questions on PyDev for Eclipse

2005-09-20 Thread Fabio Zadrozny
Fabio Zadrozny wrote:

>Hi,
>
>for 2: as far as I know, eclipse must have 'local', or at least 
>'emulated' local access, so, if you have samba access, it should do what 
>you want.
>
>for 1... I use it a LOT without any problems for some really big 
>projects ( with about 2.000 python modules -- not counting the python 
>installation) -- but as I also develop it, so, I may be kind of 
>impartial ;-)
>  
>
I meant partial ;-)

>Cheers,
>
>Fabio
>
>Kenneth McDonald wrote:
>
>  
>
>>The first is general; what are users' experience with PyDev for  
>>Eclipse. It looks pretty good to me right now, but I've only started  
>>playing with it. Converting to Eclipse is a major effort, and if  
>>there are problems which would prevent pydev from being useful right  
>>now, I'd certainly appreciate knowing about them.
>>
>>The second question is specific; is it possible to use Eclipse to  
>>edit a remote file, i.e. through SFTP or something equivalent? My  
>>current (limited) understanding of Eclipse is that it maintains an on- 
>>disk directory of files in a project. Unfortunately, for what I'm  
>>doing, a fair number of the files (mostly Python files) I'm editing  
>>are on a remote server, so whatever editor I use, the ability to edit  
>>remote files would be a big help.
>>
>>Thanks,
>>Ken
>> 
>>
>>
>>
>
>
>  
>


-- 
Fabio Zadrozny
--
Software Developer

ESSS - Engineering Simulation and Scientific Software
www.esss.com.br

PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com


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


ANN: PyDev 0.9.1 released

2005-03-02 Thread Fabio Zadrozny
Hi All,
PyDev - Python IDE (Python development enviroment for Eclipse) version 
0.9.1 has just been released.

You can check the homepage (http://pydev.sourceforge.net/) or my blog 
(http://pydev.blogspot.com/) for more details.

--
COMMENTS ON RELEASE:
Content assistant improvements:
- assign content assistant when assigned to variable strips the "get";
- move imports content assistant should be improved to move import 
closer to existant import and
not to top of file;
- Icons added to them;

Others:
- Ctrl+Shift+O: if no selection: Organizes all global imports from the 
file (sorts alphabetically);
- Ctrl+Shift+O: if some line selection: sorts alphabetically the lines 
selected;
- Ctrl+Shift+F: if no selection: Formats all code;
- Ctrl+Shift+F: if some line selection: Formats selected code;
- PyLint only blocks interface on "update results";
- the namespace in debug mode is not polluted anymore (Scott Schleiser 
provided the patch);
- The PYTHONPATH used for debug now should be the same used in run.
- Editor preferences

Code Completion:
- get parameters in code completion;
- builtins like ' ', {}, [] should bring correct suggestions;
- relative imports;
- other bug-fixes;
------
Regards,
Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
--
http://mail.python.org/mailman/listinfo/python-list


Re: Creating module skeleton from unit tests

2005-03-04 Thread Fabio Zadrozny
I think that the best approach I saw to this was in the Eclipse java 
ide... You can basically go on the declaration of

self.obj = player.Player('Fred the Adventurer')
press Ctrl+1 and it adds a suggestion to create the class Player.
Then go to
assert self.obj.name == 'Fred the Adventurer'
press Ctrl+1 and it adds suggestion: Declare field name in class 
Player... and so on for methods...  (true, you still have to go and 
press some Ctrl+1s, but that should be fairly easy, especially if you 
had some hints on what is missing... Python has a very dynamic nature, 
but most of it can still be done...

I think that most Python IDEs are still not in the same level, but some 
day they might get there...
Being the maintaner of PyDev (http://pydev.sf.net), I think it will get 
there someday, true, lots of work to make it happen, right now only few 
things in Ctrl+1 are available like that (still, some already are)... 
and that's the way things work... nothing's always perfect (but at least 
they evolve).

Regards,
Fabio
Peter Maas wrote:
Edvard Majakari schrieb:
Greetings, fellow Pythonistas!
I'm about to create three modules. As an avid TDD fan I'd like to create
typical 'use-cases' for each of these modules. One of them is rather 
large,
and I wondered if it would be easy enough to create a code skeleton 
out of
unit test module.

I think this is too difficult, because there are many ways to write
code (even skeletons) for a use case. An easier approach would
be to write the skeleton manually, embed the test cases in the doc
strings and generate the test code from the doc strings. If I
remember correctly IBM has published something to generate unit
tests from code. Python has a doctest module to support testing
derived from doc strings. This can be combined with unit tests.
> The problem can be solved more easily if you design the module
skeleton first, then the tests and then the logic for the skeleton
- you would be creating tests before the code, but many people
> wouldn't regard it as TDD then.
You shouldn't care if your approach works for you.

--
Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
--
http://mail.python.org/mailman/listinfo/python-list


ANN: PyDev 0.9.2 released

2005-03-31 Thread Fabio Zadrozny
Hi All,
PyDev - Python IDE (Python development enviroment for Eclipse) version 
0.9.2 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.
Regards,
Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list


check instace already running...

2005-04-09 Thread Fabio Pliger
Hi,
is it possibile, in python, to check for an already running instance of an
application?
My problem is that, if my program i running and the user relaunch it, i
don't want to open a new instance and have to instances of the same program
running togheter...
Can someone help me on this?
Fabio P.


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


Re: change the date string into timestamp

2005-04-09 Thread Fabio Pliger
You can use some date/time modules as:
time built in module
datetime
wxDatetime from wx

just take a look in the documentation... they are very simple to use.

F.P.

"praba kar" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Dear All,
>
> In Php strtotime() will change a date
> string into timestamp.  I want to know which
> python function will  change a date string
> into timestamp.
>
>
> Date string format is below
>
> Fri, 8 Apr 2005 09:22:14 +0900
>
> regards
> Prabahar
>
> 
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony


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


Re: check instace already running...

2005-04-10 Thread Fabio Pliger
"Aldric L'Hernault" <[EMAIL PROTECTED]> ha scritto nel
messaggio news:[EMAIL PROTECTED]
> Sidharth Kuruvila a écrit :
> > I haven't tested this. There is probably a better way of doing this
> > looking at process information. I use a lock file to mark that the
> > program is already running. The problem is that for an abrupt shutdown
> > the file might not be removed.
>
> To enhance your check, just write the PID into the file.
> On startup, if file exists, you may check that the process
> who has written it is still alive.
>
> Aldric L.


Yeah, but how can i retrieve my PID number?And how do i check if the process
who has written the file is still alive?If there a way to have the list of
the precesses running?



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


printing with wxPython

2005-04-12 Thread Fabio Pliger
Hi!
I'm using wxPython to handle my application gui.. So,  I have a notebook
widget and i have to print the object inside it's tab ... Maybe doing a
preview before printing... I know that wx has many objects to handle
printing.. i've tryied to use them, but i wasn't able to... Any hint? By
now, i solved the problem saving a screenshot if the screen in an image(bmp)
and then sending it to printer... (a print preview would be cool...)
tnx
F.P.





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


chaco and wx 2.5....

2005-04-12 Thread Fabio Pliger
anyone know if it's possibile to run chaco with wx 2.5.3 or grater?


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


Re: printing with wxPython

2005-04-13 Thread Fabio Pliger
Yeah,
There are two about printing... there is also an example in the wxDemo...
but they all talk about printing text... In my case i need to print (or at
least to make a print preview) a bitmap (or a panel...)


"Peter Hansen" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Fabio Pliger wrote:
> > Hi!
> > I'm using wxPython to handle my application gui.. So,  I have a notebook
> > widget and i have to print the object inside it's tab ... Maybe doing a
> > preview before printing... I know that wx has many objects to handle
> > printing.. i've tryied to use them, but i wasn't able to... Any hint? By
> > now, i solved the problem saving a screenshot if the screen in an
image(bmp)
> > and then sending it to printer... (a print preview would be cool...)
> > tnx
>
> Maybe the recipes on the wxPython wiki page would
> help:
> http://wiki.wxpython.org/index.cgi/RecipesOther
>
> There are at least two dealing with "Printing".


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


ANN: PyDev 0.9.3 released

2005-04-25 Thread Fabio Zadrozny
Hi All,
PyDev - Python IDE (Python development enviroment for Eclipse) version 
0.9.3 has just been released.

Check the homepage (http://pydev.sourceforge.net/) for more details.
Regards,
Fabio Zadrozny
--
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br
PyDev - Python Development Enviroment for Eclipse
pydev.sf.net
pydev.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to create temporary file?

2005-04-29 Thread Fabio Pliger

"Frank Millman" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Hi all
>
> I need to generate potentially large reports from a database, and I
> want to offer the option of print preview before actually printing
> (using wxPython). I figure that the best way to achieve this is to
> write the report to a temporary file, or more likely to a temporary
> directory with a separate file for each page. I can use that for
> previewing and for printing, and then delete the file/directory.
>
> There seems to be a few ways to achieve this, and I am not sure of the
> best way.
>
> 1. I can call tempfile.TemporaryFile() for each file required.
>
> 2. I can call tempfile.mkdtemp() to create a temporary directory, and
> create each file manually.
>
> 3. I can call os.tmpfile() for each file required.
>
> After creating the files, I need to re-read them, either one at a time
> in sequence (if printing), or any one at random (if previewing a
> particular page). This makes me lean towards method 2.
>
> With this method, I create the files manually, so I can name them
> according to their page numbers, which makes it easy to open and close
> them as required. The other two methods return open file objects, so
> it seems that I cannot close them, as there would be no means of
> accessing their contents subsequently. Therefore I would have to
> maintain a list of open file objects, use indexing to retrieve a
> particular page, and then perform seek(0) before I could read it. A
> slight downside of method 2 is that I have to delete the files and the
> directory manually when I have finished.
>
> I have two additional questions regarding method 3.
>
> Firstly, I am not sure how it works. The docs say that the file has no
> directory entries associated with it, and it will be automatically
> deleted when there are no file descriptors for the file. What does
> this mean? Does it create a physical file, or is it stored in memory?
> If the latter, could I run into memory problems if I create a report
> with hundreds of pages?
>
> Secondly, I can create the file using FC3 (Python 2.4), but if I try
> on Windows 2000 (Python 2.4) I get the message 'OSError: Permission
> denied', even though I am a member of the Administrators group.
>
> Any advice on the best approach for this will be much appreciated.
>
> Frank Millman


 Why create an intermediate file to preview with wxPython? I would just
preview the data with wx and keep it inside your application. If you want to
print it just print... avoid temp file creation if it's not necessary... :)

F.P.


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


Re: [wxPython] Many wxPanel forms in 1 wxFrame

2005-04-30 Thread Fabio Pliger

"CYBER" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Is this possible to create 1 wxFrame and
> register more than 1 wxPanel in it.
> And select the one you want to show at the moment ?
>
> I'm trying to implement a multistep wizard under wxPython.
> I need to be able to hide and show windows inside my
> frame.
>
> Help :)
>

Take a look at the wx documentation about wizards... There is a good example
about doing wizards!

F.P.


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


Re: date to digit

2005-04-30 Thread Fabio Pliger

"Sara Khalatbari" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Is there a program in python that inputs a date & a
> time, for example:  "2005-04-17 04:20+". And
> returns a digit, for example: "3501" instead?
>
> and if there is such program or built-in function, how
> can I run it inside a code?

Here you go:

>>> a = time.strptime("2005-04-17 04:20", "%Y-%m-%d %H:%M")
>>> time.mktime(a)
1113704400.0

F.P.



>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




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


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

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

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

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

Cheers,

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


PyDev 3.1.0 released

2013-12-12 Thread Fabio Zadrozny
Hi All,

PyDev 3.1.0 has been released

Details on PyDev: http://pydev.org

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

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


Release Highlights:
---

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

* **Refactoring**:

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

* Multiple improvements on the rename refactoring.

* **Debugger**:

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

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

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

* **Get referrers on debug**

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

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

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

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

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

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

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

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

* Improved visualization of frame objects.

* Bug-fixes on Jython debugging.

* **Unittest**:

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

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

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


* **General**:

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

* Fixed some racing conditions related to the plugin startup.

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

* Improved connection to shell that does code-completion.

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


What is PyDev?
---

PyDev is a plugin that enables users to use Eclipse for Python, Jython and
IronPython development -- making Eclipse a first class Python IDE -- It
comes with many goodies such as code completion, syntax highlighting,
syntax analysis, refactor, debug and many others.


Cheers,

--
Fabio Zadrozny
--
Software Developer

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

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


  1   2   3   4   >