Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-04 Thread Fabio Zadrozny
emember it was associated only with svn -- cvs didn't have that problem -- but it was something like trying to make undo on a file that didn't have anything changed and then it would go to the svn and remove another file). Cheers, Fabio On Fri, Apr 4, 2008 at 12:38 PM, Nebur <[EMAIL

Re: *.py source file surprisingly deleted with Pydev/Eclipse. Who else experienced this ?

2008-04-04 Thread Fabio Zadrozny
anted to point out that eclipse saves your file history (even if you do not have a vcs)... that operation can be selected by right clicking a parent folder and selecting 'restore from local history'. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.3.15 Released

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

Pydev shell (was: Re: Stani's python ide 'spe' editor problem)

2008-04-09 Thread Fabio Zadrozny
et/ for more details). Aside from that, which 'funky' things started happening? Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.3.16 Released

2008-05-07 Thread Fabio Zadrozny
nalysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Developme

Pydev 1.3.20 Released

2008-08-22 Thread Fabio Zadrozny
use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Sof

Pydev 1.3.22 Released

2008-10-02 Thread Fabio Zadrozny
hon 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 ESSS - E

Re: Compile ui files from within Eclipse

2006-03-07 Thread Fabio Zadrozny
(menu: run > external tools > external tools). You can also add a keybinding to the last external tool launched. Cheers, Fabio -- Fabio Zadrozny -- Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.b

Re: Compile ui files from within Eclipse

2006-03-07 Thread Fabio Zadrozny
s below that folder -- recursively), and then we pass that script in the external tool (actually as a parameter, as the tool will be python itself). It is not only easier within Eclipse, but in the command line too. Cheers, Fabio -- Fa

[ANN] Pydev and Pydev Extensions 1.0.3 release

2006-03-08 Thread Fabio Zadrozny
k on template images Cheers, -- Fabio Zadrozny -- Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Ecli

Re: Python IDE: great headache....

2006-03-12 Thread Fabio Zadrozny
Hi Sullivan,Just to let you know, pydev does all that you asked for (and if there's something you're missing you might want to add a feature request to it: http://sourceforge.net/tracker/?group_id=85796&atid=577332)Some notes:To change the indentation in 'blocks', just select the lines you want an

How to change echo in python prompt

2006-03-18 Thread Fabio Zadrozny
Hi All,Does someone know if there is some way to supress the '>>>' and '...' in the python prompt (while actually forcing prompts with -i)?-- and all that in a non-platform dependent way ;-) Thanks,Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: How to change echo in python prompt

2006-03-18 Thread Fabio Zadrozny
Hi... Found out (sys.ps1 and sys.ps2 control that).Cheers,FabioOn 3/18/06, Fabio Zadrozny <[EMAIL PROTECTED] > wrote:Hi All,Does someone know if there is some way to supress the '>>>' and '...' in the python prompt (while actually forcing prompts with -i)

Re: Free Python IDE ?

2006-03-29 Thread Fabio Zadrozny
ev for Eclipse.Good moderately priced: Komodo.You forgot excellent and moderately priced: Pydev Extensions ;-P (it is an extension to Pydev that adds many nice features... check it at http://www.fabioz.com/pydev). Cheers,Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-03-31 Thread Fabio Zadrozny
On 31 Mar 2006 06:46:35 -0800, kbperry <[EMAIL PROTECTED]> wrote: I have recently been trying out NewEdit, and it is a pretty good "IDE"for Python.The reason that I have it in quotes is because I haven't really found atrue IDE (like the way Eclipse behaves for Java) for python.  (I realize that Ecl

Re: Best IDE for Python?

2006-03-31 Thread Fabio Zadrozny
Well, in pydev you surely can have code-completion on 'math.' I think you got some wrong configuration...  Have you read the getting started manual? (http://www.fabioz.com/pydev/manual_101_root.html)  On 31 Mar 2006 07:44:38 -0800, kbperry <[EMAIL PROTECTED]> wrote: To me, it just doesn't behave t

Re: Best IDE for Python?

2006-03-31 Thread Fabio Zadrozny
On 3/31/06, Keith B. Perry <[EMAIL PROTECTED]> wrote: You are probably right, and I will definitely take a look at the starter manual.  Hopefully it also works well on classes that I create?  You got some nice docs there. Surely does ;-) Cheers, Fabio Thanks for the tip!  On 3/31/06,

Pydev and Pydev Extensions 1.0.4 release

2006-04-03 Thread Fabio Zadrozny
Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer ESSS - E

Pydev and Pydev Extensions 1.0.5 release

2006-04-05 Thread Fabio Zadrozny
x analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python D

Re: editor with autocompletion

2009-12-05 Thread Fabio Zadrozny
steeper, although that road will certainly be more work than adding support in notepad++ ). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.5.2 Released

2009-12-09 Thread Fabio Zadrozny
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

Re: Eclipse Carriage Return Workaround

2009-12-19 Thread Fabio Zadrozny
DEV_CONSOLE_ENCODING' in the environment or let it try to find a default on) -- should be compatible with python 2 or 3. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse Carriage Return Workaround

2009-12-19 Thread Fabio Zadrozny
On Sat, Dec 19, 2009 at 8:36 AM, Fabio Zadrozny wrote: > On Fri, Dec 18, 2009 at 1:38 PM, Steve Holden wrote: >> I've written a Python 3 course that uses an Eclipse-based teaching >> system. The school is telling me that their version of Eclipse/pydev >> appears to hav

Pydev 1.5.4 Released

2010-01-19 Thread Fabio Zadrozny
development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://a

Re: Aaaargh! "global name 'eggz' is not defined"

2009-10-30 Thread Fabio Zadrozny
nterpreter can't know about > these things at compile time, but I thought I'd ask. > Pydev has a code-analysis feature which works analyzing the code while you're typing. See: http://pydev.org/manual_adv_code_analysis.html Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.5.1 Released

2009-11-17 Thread Fabio Zadrozny
yntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com

Pydev 1.5.5 Released

2010-03-04 Thread Fabio Zadrozny
such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/python Pydev - Python Development Environment for Eclipse http://pydev.org

Re: Get Eclipse/PyDev to run scripts that don't end in .py

2010-03-31 Thread Fabio Zadrozny
ociations: add the *.extension and bind it to the Python Editor (see how the *.py association is done). 2. window > preferences > Pydev > editor > code style > file types: add your custom extension there (and you may want to change the default python extension if you'll keep cre

Pydev 1.5.6 Released (Django Integration)

2010-04-01 Thread Fabio Zadrozny
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 Apta

Re: Python - NAWIT / Community

2010-12-31 Thread Fabio Zadrozny
ly maintained, which takes a lot of effort, so, I'm not sure it'd be worth reproducing all that just to have it 100% Python code -- I say 100% because Pydev does have a number of things that are in Python, such as the debugger and Jython for the scripting engine, although the major portion is really in java. Another important aspect is that it's much better if you can get an experience that can later be replicated to other languages (which Eclipse provides). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.6.4 Released

2011-01-01 Thread Fabio Zadrozny
x analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mai

Re: [PyQt] Working with PyQt and Pydev

2011-01-07 Thread Fabio Zadrozny
pyuic when a .ui file is changed, so you don't have to go to the console to ask pyuic to be rerun every time you change the file. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.6.5 Released

2011-02-03 Thread Fabio Zadrozny
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 -- Sof

Europython 2011 - Call for Papers

2011-02-21 Thread Fabio Pliger
Europython is coming back around! Europython will be held in Florence, Italy from the 20th to the 25th of june. EuroPython is a conference for the Python programming language community. It is aimed at everyone in the Python community, of all skill levels, both users and programmers. It's one of t

Re: Pydev 1.5.6 Released (Django Integration)

2010-04-23 Thread Fabio Zadrozny
rompt? > Yes. See: http://pydev.org/manual_adv_interactive_console.html Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: How to choose a debugger

2010-04-26 Thread Fabio Zadrozny
om the c++ ide, the python debugger should connect to it remotely). What I usually use is the pydev remote debugger (http://pydev.org/manual_adv_remote_debugger.html) and msvc (through tools > attach to process). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: PyDev : undefined variable from import

2010-04-26 Thread Fabio Zadrozny
nd the contents of the related modules). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

2to3 issues with execfile on python 3.0 on files with encoding

2010-05-06 Thread Fabio Zadrozny
is not None: stream = open(file, encoding=encoding) else: stream = open(file) try: contents = stream.read() finally: stream.close() exec(compile(contents+"\n", file, 'exec'), globals, locals) #execute the script Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.5.7 Released

2010-05-06 Thread Fabio Zadrozny
linux What is PyDev? --- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, r

Re: Do any debuggers support "edit and continue?"

2010-05-22 Thread Fabio Zadrozny
ives in mind that would improve that support greatly, some things could never be really fixed, such as changing the value of an int constant that's been already assigned to somewhere else -- anyways, I've got my hands on some other things right now, so, there's currently no pla

Re: weird pickle behavior in Python 3.1.2 + Eclipse 3.5.2

2010-06-08 Thread Fabio Zadrozny
ample.__module__ to '__main__' >> >>>>> import sys; print('%s %s' % (sys.executable or sys.platform, >>>>> sys.version)) >> C:\Python31\python.exe 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC >> v.1500 32 bit (Intel)] >>>>> import pickle >>>>> class Example: >> ...     pass >> ... >>>>> Example.__module__ >> 'builtins' >>>>> Example.__module__ = '__main__' >>>>> obj = Example() >>>>> obj >> <__main__.Example object at 0x029E8FD0> >>>>> f = open('testpickle.pkl','wb') >>>>> pickle.dump(obj, f) >> Traceback (most recent call last): >>   File "", line 1, in >>   File "C:\Python31\lib\pickle.py", line 1354, in dump >>     Pickler(file, protocol, fix_imports=fix_imports).dump(obj) >> _pickle.PicklingError: Can't pickle : >> attribute lookup __main__.Example failed >>>>> >> >> Dang. >> >> Any insights? > > Sorry, no. Consider a bug report to the pydev project. > I've taken a look at the pydev code and the issue seems to be in python itself. See: http://bugs.python.org/issue8943 Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

How to get the date format from the users locale?

2010-06-25 Thread Fabio Zadrozny
uot;license" for more information. >>> import locale;locale.nl_langinfo Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'nl_langinfo' Is that what I should be using? Is there any other way for get

Pydev 1.5.8 Released

2010-06-28 Thread Fabio Zadrozny
onPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http:

Re: Pydev 1.5.8 Released

2010-06-29 Thread Fabio Zadrozny
une 24th is not totally backward compatible -- and unfortunately no one saw that issue with the nightly build before the release either :( Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.6.0 Released

2010-07-20 Thread Fabio Zadrozny
many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Pydev 1.6.0 Released

2010-07-22 Thread Fabio Zadrozny
gt; > Pressing Ctrl-Alt-Enter, a interactive console opens but my class > defined in the editor window is not available. The first time Ctrl-Alt-Enter is used, it should open the console, if you want to make the execfile, you have to do Ctrl-Alt-Enter with a console already open. Cheers, Fabio

Pydev 1.6.1 Released

2010-08-03 Thread Fabio Zadrozny
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

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-18 Thread Fabio Zadrozny
be pretty quick unless you have some firewall that's preventing the communication or the spawn didn't go well -- check your error log to see if you have any errors... In linux I've seen some problems when connecting to 127.0.0.1 while having ipv6 enabled or in a network card miscon

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-19 Thread Fabio Zadrozny
retor? Please follow the getting started tutorial for that: http://fabioz.com/pydev/manual_101_root.html Cheers, Fabio > > Thanks > > James > > On Fri, Jun 19, 2009 at 9:32 AM, Fabio Zadrozny wrote: >> >> > yes, the same problem even on an empty program. every fil

Re: Python debugger

2009-07-04 Thread Fabio Zadrozny
ydev extensions adds to that a remote debugger ( http://fabioz.com/pydev/manual_adv_remote_debugger.html ) and a console ( http://fabioz.com/pydev/manual_adv_debug_console.html ). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Pydev 1.4.7 Released

2009-07-08 Thread Fabio Zadrozny
hon development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana

Re: Pydev 1.4.7 Released

2009-07-09 Thread Fabio Zadrozny
Yes. On Thu, Jul 9, 2009 at 3:32 AM, Morten Nygaard Aasnes wrote: > On 2009-07-08, Fabio Zadrozny wrote: >> Hi All, >> >> Pydev and Pydev Extensions 1.4.7 have been released >> >> Details on Pydev Extensions: http://www.fabioz.com/pydev >> Details on Pydev

Re: Eclipse Pydev update error ?

2009-07-24 Thread Fabio Zadrozny
e/1.4.7.2843 > This usually happens if there was some connection error during the update. You can try other mirrors (see: http://pydev.blogspot.com/2009/07/pydev-147-released.html for the new added mirrors). Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: Strongly typed list

2009-08-17 Thread Fabio Zadrozny
; that? > Perhaps of there is some thing like C# List > cfgAutomata such that the list wont accept items unless they are > AutomataBranch will be good. Hello, Unfortunately, right now there is no way to gather that specific code completion in pydev -- because of the dynamic nature of p

Pydev 1.4.8 Released

2009-08-21 Thread Fabio Zadrozny
se Eclipse for Python, Jython and Iron Python development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabi

Pydev 1.5.0 (Pydev Extensions open sourced)

2009-09-03 Thread Fabio Zadrozny
ously used subversion will be disabled. Instructions on getting the source code from the new location is available at: http://www.pydev.org/developers.html Best Regards, -- Fabio Zadrozny Aptana http://aptana.com Pydev - Python Development Environment for Eclipse http://pydev.org

Pydev 1.6.2 Released

2010-09-07 Thread Fabio Zadrozny
ronPython 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 Devel

Pydev 1.6.3 Released

2010-10-05 Thread Fabio Zadrozny
ode completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny -- Software Developer Aptana http://aptana.com/ Pydev - Python Development Environment for Eclipse http://pydev.org http://pydev.blog

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-31 Thread Fabio Zadrozny
d, but you can grab the nightly build with that fix already incorporated (it should be pretty stable at this point). See http://pydev.org/download.html for details on getting the nightly. Cheers, Fabio -- http://mail.python.org/mailman/listinfo/python-list

PyDev 5.6.0 Released

2017-03-23 Thread Fabio Zadrozny
o 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 D

PyDev 5.7.0 Released

2017-04-12 Thread Fabio Zadrozny
hich 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://pyde

PyDev 5.8.0: Code Coverage fixes, IronPython debugging

2017-06-08 Thread Fabio Zadrozny
ipse: 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/

PyDev 5.9.2 released

2017-08-15 Thread Fabio Zadrozny
tails 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

Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
er.py", line 1348, in __call__ return self.func(*args) File "/home/fabio/Desktop/prova.py", line 5, in reply showinfo(title='ciao', message='hello') File "lib-tk/tkMessageBox.py", line 84, in showinfo return _show(title, message, INFO, OK, *

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 19:12:48 +, kyosohma ha scritto: > > I'm not sure, but I don't think you need the "win" variable at all. I > can get it to work as follows: > > > > from Tkinter import * > from tkMessageBox import showinfo > > def reply(): > showinfo(title='ciao', message='hell

Re: Creating a shared object in python

2007-07-31 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 15:37:26 -0400, Delgado, Edgardo CIV NAVAIR 4.1.4.3 ha scritto: > Is there a way to create a shared object in python? > > Thx, > > Edgar Usually object are shared in Python. i.e. # a list l = [ 1 , 2 , 3 ] # a list containing l m = [ l, 4, 5 ] # now m is [ [1,2,3]

Re: Error with Tkinter and tkMessageBox

2007-08-01 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 18:45:57 -0400, jim-on-linux ha scritto: > Try This: > > def reply(): > showinfo('ciao','hello') > I've tried without success ... thanks I've also discovered that when I (or some other prog using tkinter) display menu, the underscore is an ugly little black box.

Re: Error with Tkinter and tkMessageBox

2007-08-02 Thread Fabio Z Tessitore
Il Thu, 02 Aug 2007 13:54:46 +1000, John McMonagle ha scritto: > What window manager are you using ? Hi John, I'm using gnome, with gdm. Do you think the problem is this? I'm going to try with another one ... bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with Tkinter and tkMessageBox

2007-08-02 Thread Fabio Z Tessitore
I've tried to use Twm and SURPRISE! it works!!! Can you say why? How can I fix the prob with Gnome? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with Tkinter and tkMessageBox

2007-08-03 Thread Fabio Z Tessitore
Il Fri, 03 Aug 2007 12:38:09 +1000, John McMonagle ha scritto: > Fabio Z Tessitore wrote: >> I've tried to use Twm and SURPRISE! it works!!! >> >> Can you say why? How can I fix the prob with Gnome? >> >> Thanks > > I don't know why it doesn

Re: Global package variable, is it possible?

2007-08-03 Thread Fabio Z Tessitore
Heve you tried to do something like: # module configure.py value1 = 10 value2 = 20 ... # other module from configure import * # now I'm able to use value1 value2 etc. var = value1 * value2 bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Global package variable, is it possible?

2007-08-03 Thread Fabio Z Tessitore
aven't read all the post, sorry! Only for knowing more about modules: is there a way to dinamically reload an already imported module? bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: downloading files

2007-08-03 Thread Fabio Z Tessitore
Win replace downloaded '\n' with a local '\r\n' and the file isn't readable. If you use 'wb' you say that you want a binary copy ('b' option) and Win doesn't replace anything. Hope it is useful, bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: regexp problem in Python

2007-08-04 Thread Fabio Z Tessitore
' in myurl): # myurl is the complete address you want print myurl # about re, I'm waiting for someone enlightening all us, bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

who is simpler? try/except/else or try/except

2007-08-12 Thread Fabio Z Tessitore
except ImportError: getpass = default_getpass thanks, Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression Grouping

2007-08-12 Thread Fabio Z Tessitore
Il Sun, 12 Aug 2007 17:21:02 +, linnewbie ha scritto: > Fairly new to this regex thing, so this might be very juvenile but > important. > > I cannot understand and why 'c' constitutes a group here without being > surrounded by "(" ,")" ? > import re m = re.match("([abc])+", "abc") >

Re: who is simpler? try/except/else or try/except

2007-08-12 Thread Fabio Z Tessitore
ce than me. maybe this example is too trivial for that ... ;-) > If you were to propose such a patch on the python-dev list, Oh no, I didn't think that thanks, bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: who is simpler? try/except/else or try/except

2007-08-12 Thread Fabio Z Tessitore
a problem for the simple code > at hand but is definitely a bad habit to get into. > thanks Peter, that's the kind of opinion I'm interesting to. bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: All names in the current module

2007-08-15 Thread Fabio Z Tessitore
Il Wed, 15 Aug 2007 19:01:17 +0200, Lawrence Oluyede ha scritto: > Torsten Bronger <[EMAIL PROTECTED]> wrote: >> How can I get a list with all classes defined in the current module? >> Thank you! > > [EMAIL PROTECTED] ~ % cat > t.py > class A: pass > > [EMAIL PROTECTED] ~ % python > Python 2.5.1

Re: Is there a way to change the default string encoding?

2007-08-21 Thread Fabio Z Tessitore
Il Mon, 20 Aug 2007 18:44:39 -0700, Ron Garret ha scritto: > Is there a way to change the default string encoding ... Dive Into Python. Section 9 on http://diveintopython.org/xml_processing/ unicode.html That will help. Bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: localhost, ?!

2007-08-28 Thread Fabio Z Tessitore
lhost working you need a web server (like apache). maybe you have it at your home. bye Fabio -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi

2007-08-29 Thread Fabio Z Tessitore
Il Wed, 29 Aug 2007 19:24:54 +0200, Gigs_ ha scritto: > i have simple page and form that ask for name and color and cgi script > that print that name in another page and background in chosen color > > all the time this error pop: > Error response > > Error code 501. > > Message: Can only POST t

Re: cgi

2007-08-29 Thread Fabio Z Tessitore
Are you sure your script is in the right dir? On my home computer, php script will work in /var/www but my python script need an other dir to work properly (i don't remember which now ;-)) bye -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi

2007-08-29 Thread Fabio Z Tessitore
Il Wed, 29 Aug 2007 23:11:53 +0200, Gigs_ ha scritto: > Gigs_ wrote: >> Fabio Z Tessitore wrote: >>> Are you sure your script is in the right dir? >>> >>> On my home computer, php script will work in /var/www but my python >>> script need an other dir

Re: Problem with extremely small real number

2007-09-03 Thread Fabio Z Tessitore
Il Mon, 03 Sep 2007 07:56:10 -0700, Andrea ha scritto: > [cut] > > I want to call factorial(2)//binomial(1024,2) for example, in this way > trivially I obtain 0 as probability, how can I obtain the probability > forcing this division to output extremely small real numbers int to float will h

Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-03 Thread Fabio Z Tessitore
> [cut] > But this code ends up waiting 5 minutes for **each** thread. that is > not what I want. I just want to wait for 5 minutes for all threads. how > can I do that? I've written a little code for you using threading. Hope it will help you: #! /usr/bin/env python # -*- coding: utf8 -*- impo

Daylight savings time problem

2008-03-26 Thread Fabio Durieux Lopes
Hi, I'm trying to execute some operations based on a file's time. The file's time is actually the file's name (e.g. FILE1_20080326170558). So I do this: fileTimeInSecs = time.mktime(time.strptime(timeString, "%Y%m%d%H%M")) timeString contains the date part of the file's name. Fun

Time problem (again)

2008-03-27 Thread Fabio Durieux Lopes
Hi, I'm recreating a date-time based on a string and I have a problem when daylight savings time is set (I'm off by 1). So today I forced my computer into daylight savings time and debugged it again, but this time I noticed something strange. This is the documentation from python libr

Signal problem

2008-03-27 Thread Fabio Durieux Lopes
Hello again! Full of problems today! This one is about signal treatment. I made a daemon and set it to treat 2 signals: SIGALRM and SIGTERM. It goes like this: signal.signal(signal.SIGTERM, daemon.signalHandler) signal.signal(signal.SIGALRM, aFilter.alarmHandler) On daemon.py I

PyDev 11.0.2 Released

2023-10-29 Thread Fabio Zadrozny via Python-list
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 12.0.0 Released

2024-02-04 Thread Fabio Zadrozny via Python-list
inja2, 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

<    1   2   3   4