[issue42406] Importing multiprocessing breaks pickle.whichmodule

2020-11-30 Thread Renato Cunha


Renato Cunha  added the comment:

No worries, Gregory. Glad I could help. :-)

--

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



[issue42406] Importing multiprocessing breaks pickle.whichmodule

2020-11-19 Thread Renato Cunha


Change by Renato Cunha :


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

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



[issue42406] Importing multiprocessing breaks pickle.whichmodule

2020-11-19 Thread Renato Cunha


Change by Renato Cunha :


--
components: +Library (Lib) -Interpreter Core

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



[issue42406] Importing multiprocessing breaks pickle.whichmodule

2020-11-19 Thread Renato Cunha


New submission from Renato Cunha :

Importing multiprocessing prior to other modules that define `ufunc`s breaks 
pickle.whichmodule for those functions.

Example:

Python 3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> from scipy.special import gdtrix
>>> from pickle import whichmodule
>>> whichmodule(gdtrix, gdtrix.__name__)
'__mp_main__'

Now, if we change the order of imports, whichmodule works fine:

Python 3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.special import gdtrix
>>> from pickle import whichmodule
>>> import multiprocessing
>>> whichmodule(gdtrix, gdtrix.__name__)
'scipy.special._ufuncs'

This happens because multiprocessing creates an alias to `__main__` when 
imported:

Lib/multiprocessing/__init__.py
37:sys.modules['__mp_main__'] = sys.modules['__main__']

But doing so changes the ordering of `sys.modules`, and `whichmodule` returns 
`__mp_main__` instead of the correct `scipy.special._ufuncs`.

This bug has arisen in the context of using `dill` (which imports 
multiprocessing) for serialization and is further documented at 
https://github.com/uqfoundation/dill/issues/392.

I intend to submit a patch/PR with a fix soon.

--
components: Interpreter Core
messages: 381410
nosy: renatolfc
priority: normal
severity: normal
status: open
title: Importing multiprocessing breaks pickle.whichmodule
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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



[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves

Renato Alves added the comment:

Also related to http://bugs.python.org/issue212317

--

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



[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves

Changes by Renato Alves <alves@gmail.com>:


--
versions: +Python 2.7, Python 3.5

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



[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves

New submission from Renato Alves:

Hi everyone,

I'm not really sure if this is a new issue but digging through the bug reports 
from the past I couldn't find an answer.
There's http://bugs.python.org/issue1438480 but this seems to be a different 
issue.
I also found http://bugs.python.org/issue9993 that addressed problems with 
symlinks but didn't correct the behavior reported here.

The problem can be visualized with the following code.
Code fails on python 2.7 as well as python 3.4+. Not tested in python <2.7 and 
<3.4.


import shutil
import os

TMPDIR = "/tmp/tmpdir"
TESTLINK = "test_dir"

if not os.path.isdir(TMPDIR):
os.mkdir(TMPDIR)

if not os.path.islink(TESTLINK):
os.symlink(TMPDIR, TESTLINK)

shutil.move(TESTLINK, TMPDIR)


When executed it gives me:

% python3 test.py
Traceback (most recent call last):
  File "test.py", line 14, in 
shutil.move(TESTLINK, TMPDIR)
  File "/usr/lib64/python3.4/shutil.py", line 516, in move
os.rename(src, dst)
OSError: [Errno 18] Invalid cross-device link: 'test_dir' -> '/tmp/tmpdir'


This happens because /tmp is:

  tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,nodiratime)


In the past the recommendation to handle this problem was to stop using 
os.rename and use shutil.move instead.
This was even discussed in a bug report - http://bugs.python.org/issue14848

If one searches for this exception there's plenty of advice [1][2][3][4] in the 
same direction.
However, given that shutil.move uses os.rename internally, the problem returns.

On the other end doing the equivalent action in the shell with 'mv' works fine.


[1] - http://stackoverflow.com/a/15300474
[2] - https://mail.python.org/pipermail/python-list/2005-February/342892.html
[3] - 
http://www.thecodingforums.com/threads/errno-18-invalid-cross-device-link-using-os-rename.341597/
[4] - https://github.com/pypa/pip/issues/103

--
components: Library (Lib)
messages: 263616
nosy: Unode
priority: normal
severity: normal
status: open
title: shutil.move fails to move symlink (Invalid cross-device link)
versions: Python 3.4

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



v3.5.1 - msi download

2015-12-21 Thread Renato Emanuel Dysangco
hello

is an **.msi* version of your *Python 3.5.1 (32 bit)* in the pipeline soon?

thanks for your time
-- 
https://mail.python.org/mailman/listinfo/python-list


Python Brasil [10] - Call for papers

2014-08-09 Thread Renato Oliveira
Hi all,

You have until tomorrow to submit your talk to Python Brasil [10].

http://2014.pythonbrasil.org.br/dashboard/proposals/

The conference will be amazing! See why:

Our Keynotes - http://2014.pythonbrasil.org.br/speakers/

Our Venue - http://2014.pythonbrasil.org.br/news/the-conference-venue/

And on November 9th were going to have some activities (TBA) like scuba
diving, standup paddle
https://www.google.com.br/search?q=standup+paddlesafe=offes_sm=93source=lnmstbm=ischsa=Xei=qC7mU-PGKKq-sQTC3oKgDQved=0CAgQ_AUoAQbiw=1325bih=659
and
others!

Thanks and see you in Porto de Galinhas!

Renato Oliveira
@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Python Brasil 10] Registrations are now open!

2014-07-14 Thread Renato Oliveira
Hi all,

The call for papers are now open!

http://2014.pythonbrasil.org.br/dashboard/proposals/

We're going to hava an English Track, so feel free to submit your proposals!

See you at Python Brasil 10!

Renato Oliveira
@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br



On Mon, Jul 7, 2014 at 11:16 AM, Renato Oliveira 
renatooliveira@gmail.com wrote:

 Hey everyone!
 Registrations for Python Brasil are now open!

 http://2014.pythonbrasil.org.br/register

 Sadly the payment form is in portuguese, so if you have any trouble please
 let me know (in private message).
 The call for papers will open on Jul 10th as you can see here

 http://2014.pythonbrasil.org.br/about

 For now the announced keynotes are:
 Alex Gaynor
 http://2014.pythonbrasil.org.br/news/keynotes-alex-gaynor

 Fernando Perez
 http://2014.pythonbrasil.org.br/news/keynotes-fernando-perez

 Lynn Root
 http://2014.pythonbrasil.org.br/news/keynotes-lynn-root

 And this beach is waiting for you:
 http://2014.pythonbrasil.org.br/venue

 Please, help us by spreading the word :)
 Thanks
 Renato Oliveira

 @_renatooliveira http://twitter.com/_renatooliveira
 Labcodes - www.labcodes.com.br


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


Re: [Python Brasil 10] Registrations are now open!

2014-07-14 Thread Renato Oliveira
have*

Renato Oliveira
@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br



On Mon, Jul 14, 2014 at 11:53 PM, Renato Oliveira 
renatooliveira@gmail.com wrote:

 Hi all,

 The call for papers are now open!

 http://2014.pythonbrasil.org.br/dashboard/proposals/

 We're going to hava an English Track, so feel free to submit your
 proposals!

 See you at Python Brasil 10!

 Renato Oliveira
 @_renatooliveira http://twitter.com/_renatooliveira
 Labcodes - www.labcodes.com.br



 On Mon, Jul 7, 2014 at 11:16 AM, Renato Oliveira 
 renatooliveira@gmail.com wrote:

 Hey everyone!
 Registrations for Python Brasil are now open!

 http://2014.pythonbrasil.org.br/register

 Sadly the payment form is in portuguese, so if you have any trouble
 please let me know (in private message).
 The call for papers will open on Jul 10th as you can see here

 http://2014.pythonbrasil.org.br/about

 For now the announced keynotes are:
 Alex Gaynor
 http://2014.pythonbrasil.org.br/news/keynotes-alex-gaynor

 Fernando Perez
 http://2014.pythonbrasil.org.br/news/keynotes-fernando-perez

 Lynn Root
 http://2014.pythonbrasil.org.br/news/keynotes-lynn-root

 And this beach is waiting for you:
 http://2014.pythonbrasil.org.br/venue

 Please, help us by spreading the word :)
 Thanks
 Renato Oliveira

 @_renatooliveira http://twitter.com/_renatooliveira
 Labcodes - www.labcodes.com.br



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


[Python Brasil 10] Registrations are now open!

2014-07-07 Thread Renato Oliveira
Hey everyone!
Registrations for Python Brasil are now open!

http://2014.pythonbrasil.org.br/register

Sadly the payment form is in portuguese, so if you have any trouble please
let me know (in private message).
The call for papers will open on Jul 10th as you can see here

http://2014.pythonbrasil.org.br/about

For now the announced keynotes are:
Alex Gaynor
http://2014.pythonbrasil.org.br/news/keynotes-alex-gaynor

Fernando Perez
http://2014.pythonbrasil.org.br/news/keynotes-fernando-perez

Lynn Root
http://2014.pythonbrasil.org.br/news/keynotes-lynn-root

And this beach is waiting for you:
http://2014.pythonbrasil.org.br/venue

Please, help us by spreading the word :)
Thanks
Renato Oliveira

@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br
-- 
https://mail.python.org/mailman/listinfo/python-list


Python Brasil[10]

2014-06-14 Thread Renato Oliveira
Hi all!

My name is Renato Oliveira, I'm board member of Python Brazil Association
and co-chair of the next Python Brasil Conference
http://loogi.ca/MKLEOHj31. This year the conf is taking place in Porto de
Galinhas, Pernambuco http://loogi.ca/0YqHyHj31 (for ten times in a row
elected the most beautiful Brazilian beach) on Nov 4 - Nov 8 with some
special activities (TBA) on November 9th.

The tickets will be available on Monday, and we just announced our first
keynote: Alex Gaynor  http://loogi.ca/4pChizj31

How can you help us? Attending, Spreading the word in your local groups and
sponsoring the conference. The prospectus is here
https://pybr.s3.amazonaws.com/static/docs/python-brasil-10-prospectus-en.dbe24b34575b.pdf
.

If you're planning to come to the conference and need help to find a place
to stay, just need some tips or have any kind of doubt, please let me know.

Best regards,

Renato Oliveira
@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br
Renato Oliveira
@_renatooliveira http://twitter.com/_renatooliveira
Labcodes - www.labcodes.com.br
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Password validation security issue

2014-03-02 Thread Renato
I would like to thank every one who posted a reply. I learnt a lot from you, 
guys! I appreciate your attention and your help :)

I took a class on Computer Simulation last year. It was told that deterministic 
(pseudo-)random numbers are excellent for simulations, because they allow 
debugging and replication when using a seed(). But it was said that 
deterministic random numbers weren't indeed suitable for encryption and 
security issues in general. For this purpose, non-deterministc stochastic 
methods would be more indicated. I learnt a lot about deterministic random 
numbers generation in this course, like using Mersenne Twister algorithm, but I 
learnt nothing about encryption, since it wasn't in the scope of that course. 
Could you suggest some introductory material concerning encryption? I have an 
intermediate math background (calculus, linear algebra etc) and I'm willing to 
learn more about security matters.

One last thing, about my original question. So, the only way of encapsulating a 
Python script content is to code a simple binary program to call it?

Regards,
Renato


Em sábado, 1 de março de 2014 14h49min49s UTC-3, Renato  escreveu:
 Hello everybody, I implemented a password validation with a Python 2.7.5 
 script in OpenSUSE 13.1. The user calls it passing 'login' and 'password' as 
 arguments. I made a dictionary in the format hashtable = {'login':'password'} 
 and I use this hash table to compare the 'login' and 'password' that were 
 passed in order to validate them. The problem is that any user who can 
 execute the script will be able to read it too (since it must be read by 
 python's interpreter), and this is causing some security issues since any 
 user can access all other users' passwords if he opens this script and reads 
 the code.
 
 
 
 My question is: is there a way of preventing the user from reading the 
 script's content? Is there any strategy I could use to hide the passwords 
 from the users?

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


Password validation security issue

2014-03-01 Thread Renato
Hello everybody, I implemented a password validation with a Python 2.7.5 script 
in OpenSUSE 13.1. The user calls it passing 'login' and 'password' as 
arguments. I made a dictionary in the format hashtable = {'login':'password'} 
and I use this hash table to compare the 'login' and 'password' that were 
passed in order to validate them. The problem is that any user who can execute 
the script will be able to read it too (since it must be read by python's 
interpreter), and this is causing some security issues since any user can 
access all other users' passwords if he opens this script and reads the code.

My question is: is there a way of preventing the user from reading the script's 
content? Is there any strategy I could use to hide the passwords from the users?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem importing libraries installed with PIP in Eclipse

2014-02-17 Thread Renato Vernucio
Hi Fabio,

I wish I could use the latest PyDev, unfortunately I need Aptana studio.
It's a pity they won't let us install individual packages from their
bundle. If they did, I could install only the other packages and install
PyDev separately.

Thanks for your help once again.

Yours,
Renato


2014-02-17 16:07 GMT-03:00 Fabio Zadrozny fabi...@gmail.com:


 On Sun, Feb 16, 2014 at 11:52 AM, Renato rvernu...@gmail.com wrote:

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



 Hi Renato,

 Nice that you got it working...

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

 Cheers,

 Fabio

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


Re: Problem importing libraries installed with PIP in Eclipse

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


Fabio, thanks for your reply. I'm using PyDev version 2.7.0.2013032300, the one 
who comes with Aptana Studio plugin for Eclipse. Here is Eclipse output:

/media/arquivos/Documentos/Programacao/Source/workspace_linux/Testes em 
Python/src
/media/arquivos/Documentos/Programacao/Source/workspace_linux/Testes em 
Python/src/pip_eclipse
/usr/lib/python2.7/site-packages
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/PIL
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib64/python2.7/site-packages
/usr/local/lib64/python2.7/site-packages

And here is Python shell output:

/usr/lib/python2.7/site-packages
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/PIL
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode
/usr/local/lib/python2.7/site-packages
/usr/local/lib64/python2.7/site-packages

They are almost exactly the same, the only difference is that Eclipse includes 
the directory I'm running the script and print twice the last 2 directories.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem importing libraries installed with PIP in Eclipse

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


Problem importing libraries installed with PIP in Eclipse

2014-02-13 Thread Renato
Hi guys, I'm using Python 2.7.5 64 bits and I have a problem when importing 
libraries that were installed via PIP when importing them inside Eclipse 
(version 4.3.1). Outside Eclipse (directly in Python's shell) everything works 
fine, here is an example:

 import numpy # installed from repositories
 from numpy import array
 import pybrain   # installed via PIP
 from pybrain import Network
 

Everything works outside Eclipse. But inside Eclipse I can't import libraries 
installed via PIP using from x import y format, it will give an error. The 
only way I can import libraries installed via PIP is using import x format. 
Here is an example:

import numpy # no errors (installed from 
repositories)
from numpy import array  # no errors
import pybrain   # no errors (installed via PIP)
from pybrain import Network  # gives the error below

Traceback (most recent call last):
  File /media/arquivos/pybrain_import_test.py, line 4, in module
from pybrain import Network
ImportError: cannot import name Network

I suspected it could be related to virtualenv, but here is a print screen 
(http://imageshack.com/a/img534/4307/3x0m.png) of my Python's PATH. The 
directory /usr/lib/python2.7/site-packages where PyBrain is installed is 
already in Python's PATH inside Eclipse. Could someone help me, please?
-- 
https://mail.python.org/mailman/listinfo/python-list


Automation P-I-D

2013-11-23 Thread Renato Barbosa Pim Pereira
I mentioned some time ago about a program to calculate PID constants for
tuning controllers, follow the link to its online version algorithm for
anyone interested http://pastebin.com/wAqZmVnR
I thank you for the help I received from many here on the list. ;D
-- 
https://mail.python.org/mailman/listinfo/python-list


Web framework

2013-11-21 Thread Renato Barbosa Pim Pereira
I'm thinking of porting a Python application that uses numpy for web,
basically would like to upload a user-defined data, perform the
calculations with numpy and plot charts with the general structure of a
site such as a blog for example, I have studied a bit of django and
web2py, but I wonder if there is some better framework? or how to choose
a particular framework over another?

Since now, thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation

2013-11-13 Thread renato . barbosa . pim . pereira
Thanks for all the help, I finished the program, follow the download link and a 
brief explanation of the same (in Portuguese, my native language), I apologize 
again for my bad english and any inconvenience that I have generated.

http://mundodacana.blogspot.com.br/2013/11/programa-para-calculo-de-constantes-pid.html

Python commands :D
-- 
https://mail.python.org/mailman/listinfo/python-list


Automation

2013-11-03 Thread Renato Barbosa Pim Pereira
I have one .xls file with the values of PV MV and SP, I wanna to calculate
Kp Ki Kd with python from this file, can anyone give me any suggestion
about how can I do this? From now, thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation

2013-11-03 Thread renato . barbosa . pim . pereira
http://pastebin.com/N9dgaHTx

With this program I can read a csv file with 3 columns, in one of these columns 
I need to read the value more high and multiply by 0.632 and with result, 
search in the same column by a value that aproximate with this result, and then 
return the vector position.
-- 
https://mail.python.org/mailman/listinfo/python-list


PID tuning.

2013-10-14 Thread Renato Barbosa Pim Pereira
I am looking for some software for PID tuning that would take the result of
a step response, and calculates Td, Ti, Kp, any suggestion or hint of where
to start?, thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread Renato Silva

Changes by Renato Silva br.renatosi...@gmail.com:


--
nosy:  -renatosilva

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



[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Renato Silva

Renato Silva added the comment:

 In context it should be clear that the statement  in gcc 4.x it
 produces an error preventing build refers to Cygwin's gcc and not
 MinGW's. Which gcc are you referring to?

If it refers to Cygwin only, sorry then. However, didn't folks said in 
MinGW thread that they didn't touch anything about such flag there? If 
so, then how can it have been removed later in 4.5 or 4.6 instead of 
4.0 like in Cygwin?

 Yes gcc 4.6 would fail because it won't accept the -mno-cygwin option.
 That does not mean that any other MinGW gcc ever *required* the
 -mno-cygwin option for anything.

Again, I was not saying it was required *for MinGW*, but *for building 
Pidgin*. Note that I'm not saying either that their use of such option 
was ever meaningful in the build process (in fact, they have removed 
such flag while still using 4.4, indicating that it was really useless).

 Yes but that particular error message is coming from Cygwin's gcc not
 MinGW. As stated by the Pidgin dev in that message the OP does not
 know which compiler they are using:
 http://pidgin.im/pipermail/support/2011-December/011159.html

We actually cannot confirm whether the GCC was from Cygwin, MSYS or Pidgin 
build box (the correct), and which version. It could be from Cygwin, but still 
my point stands, that the Pidgin developer does confirm that GCC 4.4 from MinGW 
*does* accept that flag.

--

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



[issue12641] Remove -mno-cygwin from distutils

2013-05-24 Thread Renato Silva

Renato Silva added the comment:

 MinGW has never supported the -mno-cygwin option. It has simply 
 tolerated it. The option never did anything useful and at some point 
 it became an error to even supply it. I'm not sure exactly when but 
 some time after 4.4 sounds reasonable to me.

Hi Oscar! Sorry, I just meant to correct this information: in gcc 4.x it 
produces an error preventing build. Even if it doesn't do anything useful, 
still GCC 4.4 does accept that option normally. If MinGW didn't touch anything 
relevant, then what Cygwin folks said about 4.x [1] clearly did not come to 
reality.

 No the developer does not confirm that the -mno-cygin option is 
 required for MinGW.

Not for MinGW, but for building Pidgin. I have just checked it, and -mno-cygwin 
actually is no longer necessary since 2.10.7 [1], but it was at the time of 
that message. Even though it didn't do anything meaningful, a GCC like 4.6 
would cause build to fail.

 Also from what I've seen I would say that the error message that
 the OP shows there comes from Cygwin's gcc not MinGW.

No, you can use either Cygwin or MinGW MSYS as environment, but the compiler 
must be MinGW [2].

[1] https://hg.pidgin.im/pidgin/main/rev/c959cde2a7bd
[2] https://developer.pidgin.im/wiki/BuildingWinPidgin#Setupyourbuildenvironment

--

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



[issue12641] Remove -mno-cygwin from distutils

2013-05-24 Thread Renato Silva

Renato Silva added the comment:

ERRATA.

Where you see: [1] clearly did not come to reality.
Please read: [0] clearly did not come to reality.

[0] http://cygwin.com/ml/cygwin/2009-03/msg00802.html

--

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



[issue12641] Remove -mno-cygwin from distutils

2013-05-23 Thread Renato Silva

Renato Silva added the comment:

I must note that GCC 4.x *does* support -mno-cygwin, at least until 4.4, and at 
least the MinGW version. I have used it myself for building Pidgin under 
Windows, which requires that option. See [1] where a Pidgin developer confirms 
that.

[1] http://pidgin.im/pipermail/support/2011-December/011159.html

--
nosy: +renatosilva

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



Tornado with cgi form

2013-04-17 Thread Renato Barbosa Pim Pereira
*I installed tornado and he is functional, but when I execute the following
script:*

import tornado.ioloop
import tornado.web
import cgi

class MainHandler(tornado.web.
RequestHandler):

form = cgi.FieldStorage() # parse form data
print('Content-type: text/html\n')# hdr plus blank line
print('titleReply Page/title')# html reply page
if not 'user' in form:
print('h1Who are you?/h1')
else:
print('h1Hello i%s/i!/h1' %
cgi.escape(form['user'].value))

application = tornado.web.Application([
(r/, MainHandler),
])

if __name__ == __main__:
application.listen()
tornado.ioloop.IOLoop.instance().start()

*In the terminal have these outputs:*

python test.py
Content-type: text/html

titleReply Page/title
h1Who are you?/h1

*When I call the browser on localhost:, the message is this:*

405: Method Not Allowed
*
**Please, can someone have a idea about why the error occurs? and what I
need to do to fix this?*
-- 
http://mail.python.org/mailman/listinfo/python-list


Python with Apache

2013-04-15 Thread Renato Barbosa Pim Pereira
I am trying to execute cgi101.py:

#!/usr/bin/python

import cgi

form = cgi.FieldStorage() # parse form data
print('Content-type: text/html\n')# hdr plus blank line
print('titleReply Page/title')# html reply page
if not 'user' in form:
print('h1Who are you?/h1')
else:
print('h1Hello i%s/i!/h1' % cgi.escape(form['user'].value))

I have installed mod_python do apache2 and created one entry in
/etc/apache2/sites-available/default:

DocumentRoot /var/www
Directory /var/www/py/
AddHandler mod_python .py
PythonHandler cgi101
PythonDebug On
/Directory

What. happen is: when i call this file on browser I have the following
error:
Can someone help?

MOD_PYTHON ERROR

ProcessId:  2742
Interpreter:'127.0.1.1'

ServerName: '127.0.1.1'
DocumentRoot:   '/var/www'

URI:'/py/cgi101.py'
Location:   None
Directory:  '/var/www/py/'
Filename:   '/var/www/py/cgi101.py'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'cgi101'

Traceback (most recent call last):

  File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line
1206, in _process_target
object = apache.resolve_object(module, object_str, arg, silent=silent)

  File /usr/lib/python2.7/dist-packages/mod_python/apache.py, line
696, in resolve_object
raise AttributeError, s

AttributeError: module '/var/www/py/cgi101.py' contains no 'handler'


MODULE CACHE DETAILS

Accessed:   Mon Apr 15 22:02:42 2013
Generation: 0

_mp_63ea7b6576c7d3a5f48ef8741e8048b0 {
  FileName: '/var/www/py/cgi101.py'
  Instance: 1 [IMPORT]
  Generation:   1
  Modified: Mon Apr 15 21:52:27 2013
  Imported: Mon Apr 15 22:02:42 2013
}
-- 
http://mail.python.org/mailman/listinfo/python-list


IDE for GUI Designer

2013-04-04 Thread Renato Barbosa Pim Pereira
Guys, is this, I wonder if there is an IDE with native support for the
development of GUI's such as Netbeans with Swing, Visual Basic, etc.,
already tested the Boa Constructor, and PyQt, but did not like what I'm looking
for is an IDE all in one, ie power encode and draw the screens of the
program, someone indicates some?, but what I would like to know everything
together with an IDE: Coding + GUI (via visual elements) without the need
to import or export anything, like so: I want a button, I click and drag it to
a window, give two clicks and encode their actions, understand?

Thanks for all.
-- 
http://mail.python.org/mailman/listinfo/python-list


Tkinter

2013-04-02 Thread Renato Barbosa Pim Pereira
I need to create a button and a text box follows the text box to enter a
number, and this number is expected to create the same screen text boxes, and
these text boxes need to be referenced, ie if I enter 30 in the first text
box and click the button to be created 30 text boxes so that I can then 
call each of the boxes, eg box1, box2, box3, etc. .. .

This all-in Tkinter.

I thank you all for understanding and help.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter

2013-04-02 Thread Renato Barbosa Pim Pereira
Thanks for the advices, I need now one scrollbar to roll under screen, I
created the scrollbar but cant roll, please help me on this.

http://pastebin.com/L6XWY6cm


2013/4/2 Jason Swails jason.swa...@gmail.com

 Please keep response replies to the Python list (e.g., use 'reply all' or
 just send the email to python-list).

 Also, you should tell people what Python version you are using. I assume
 you are using Python 2 since Tkinter was renamed to tkinter in Python 3.

 Finally, do not top-post.  Type your responses inside the body of the
 email you are responding to.  That gives people context for your responses.

 On Tue, Apr 2, 2013 at 11:48 AM, Renato Barbosa Pim Pereira 
 renato.barbosa.pim.pere...@gmail.com wrote:

 Sorry for my inconsistence:

 I need a textbox to get one number and pass for variable called numero
 with one click of button. Thanks .

 I have this:

 import numpy as np
 import matplotlib.pyplot as plt
 from Tkinter import *
 import tkMessageBox

 prefixo = vetor
 numero = 10
 numeroVetores = 0

 def makeWidgets(numero):
 global entries
 window = Tk()
 window.title('Vetores')
 form = Frame(window)
 form.pack()
 entries = {}
 for ix in range(numero):
 label = %s %s % (prefixo , ix + 1)
 lab = Label(form, text=label)
 ent = Entry(form)
 lab.grid(row=ix, column=0)
 ent.grid(row=ix, column=1)
 entries[label] = ent





 Button(window, text=Calcular,  command=calcular).pack(side=LEFT)
 Button(window, text=Media,  command=media).pack(side=LEFT)



 return window



 def pegavalores():
 valores = []
 for chave, entrada in sorted(entries.items()):
 valores.append(entrada.get())

 return valores


 def calcular():
 calcular = pegavalores()
 plt.plot(calcular)
 plt.show()

 def media():
 media = pegavalores()
 elementos = len(media)
 media = np.asarray(media, dtype=np.float64)
 valormedio = np.sum(media)/elementos
 tkMessageBox.showinfo(Media, valormedio)


 window = makeWidgets(numero)
 window.mainloop()


 I'm not sure exactly what you are trying to do.  My guess is that you want
 to get numero from user input.  Luckily, the tkSimpleDialog module
 contains a handy function that does just this: askinteger.  So add a call:

 numero = tkSimpleDialog.askinteger('Window Title', 'Please insert the
 number of input values you want')
 window = makeWidgets(numero)
 window.mainloop()

 I leave to you the task of bringing tkSimpleDialog into your namespace.

 Good luck,
 Jason
 --
 Jason M. Swails
 Quantum Theory Project,
 University of Florida
 Ph.D. Candidate
 352-392-4032

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


[issue15375] Trivial for fix in the subprocess documentation

2012-07-16 Thread Renato Cunha

New submission from Renato Cunha ren...@renatocunha.com:

The word child is needlessly repeated in the subprocess documentation. This 
trivial patch fixes this.

--
assignee: docs@python
components: Documentation
files: subprocess.diff
keywords: patch
messages: 165670
nosy: docs@python, trovao
priority: normal
severity: normal
status: open
title: Trivial for fix in the subprocess documentation
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file26408/subprocess.diff

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



[ANNOUNCE] PySide 1.0.7 - Beatriz: Python for Qt released!

2011-09-22 Thread Renato Araujo Oliveira Filho
The PySide team is proud to announce the new release version 1.0.7
of PySide project.

Major changes
==

. Memory consumption optimization;
. Bug Fixes;


About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [1], an open
Bugzilla [2] for reporting bugs, and an open design process [3]. We welcome
any contribution without requiring a transfer of copyright.


List of bugs fixed
==

996 Missing dependencies for QtWebKit in buildscripts for Fedora
986 Documentation links
985 Provide versioned pyside-docs zip file to help packagers
981 QSettings docs should empathize the behavior changes of value() on
different platforms
902 Expose Shiboken functionality through a Python module
997 QDeclarativePropertyMap doesn't work.
994 QIODevice.readData must use qmemcpy instead of qstrncpy
989 Pickling QColor fails
987 Disconnecting a signal that has not been connected
973 shouldInterruptJavaScript slot override is never called
966 QX11Info.display() missing
959 can't pass QVariant to the QtWebkit bridge
1006 Segfault in QLabel init
1002 Segmentation fault on PySide/Spyder exit
998 Segfault with Spyder after switching to another app
995 QDeclarativeView.itemAt returns faulty reference. (leading to SEGFAULT)
990 Segfault when trying to disconnect a signal that is not connected
975 Possible memory leak
991 The __repr__ of various types is broken
988 The type supplied with  currentChanged signal in QTabWidget has
changed in 1.0.6

Download


The files can be downloaded from PySide download page[4]


References
==

[1] http://qt.gitorious.org/pyside
[2] http://bugs.openbossa.org/
[3] http://www.pyside.org/docs/pseps/psep-0001.html
[4] http://developer.qt.nokia.com/wiki/PySideDownloads

PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


[ANNOUNCE] PySide 1.0.6.1 - Minor Release

2011-08-26 Thread Renato Araujo Oliveira Filho
Hi All,

Due some problems with PySide + Qt 4.6 compilation we are releasing this minor
update, which contains the fix for this problem.

Since this version only contains the fix for Qt. 4.6 bug, the update is not
required for those who are using Qt. 4.7.

You can get the latest PySide version from the download page[1].

[1]http://developer.qt.nokia.com/wiki/Category:LanguageBindings::PySide::Downloads

Thanks All,
PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


[ANNOUNCE] PySide 1.0.6 - Isolino: Python for Qt released!

2011-08-23 Thread Renato Araujo Oliveira Filho
The PySide team is proud to announce the monthly release version 1.0.6
of PySide project.

Major changes
==

. New documentation layout;
. Fixed some regressions from the last release (1.0.5);
. Optimizations during anonymous connection;

About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [2], an open
Bugzilla [3] for reporting bugs, and an open design process [4]. We welcome
any contribution without requiring a transfer of copyright.


List of bugs fixed
==

972 anchorlayout.py of  graphicsview example  raised a unwriteable
memory exception when exits
953 Segfault when QObject is garbage collected after QTimer.singeShot
951 ComponentComplete not called on QDeclarativeItem subclass
965 Segfault in QtUiTools.QUiLoader.load
958 Segmentation fault with resource files
944 Segfault on QIcon(None).pixmap()
941 Signals with QtCore.Qt types as arguments has invalid signatures
964 QAbstractItemView.moveCursor() method is missing
963 What's This not displaying QTableWidget column header information
as in Qt Designer
961 QColor.__repr__/__str__ should be more pythonic
960 QColor.__reduce__ is incorrect for HSL colors
950 implement Q_INVOKABLE
940 setAttributeArray/setUniformValueArray do not take arrays
931 isinstance() fails with Signal instances
928 100's of QGraphicItems with signal connections causes slowdown
930 Documentation mixes signals and functions.
923 Make QScriptValue (or QScriptValueIterator) implement the Python
iterator protocol
922 QScriptValue's repr() should give some information about its data
900 QtCore.Property as decorator
895 jQuery version is outdated, distribution code de-duplication
breaks documentation search
731 Can't specify more than a single 'since' argument
983 copy.deepcopy raises SystemError with QColor
947 NETWORK_ERR during interaction QtWebKit window with server
873 Deprecated methods could emit DeprecationWarning
831 PySide docs would have a Inherited by list for each class


Download


The files can be downloaded from PySide download page[2]


References
==

[1] http://lists.pyside.org/pipermail/pyside/2011-July/002648.html
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html
[5] http://developer.qt.nokia.com/wiki/PySideDownloads

-- 
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


[ANNOUNCE] PySide 1.0.5 - And no name was given that day: Python for Qt released!

2011-07-23 Thread Renato Araujo Oliveira Filho
PySide 1.0.5 - And no name was given that day: Python for Qt released!


The PySide team is proud to announce the monthly release version 1.0.5
of PySide project.

Major changes
==

. Widgets present on ui files are exported in the root widget, check
PySide ML thread for more information[1];
. pyside-uic generate menubars without parent on MacOS plataform;
. Signal connection optimizations;


About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [2], an open
Bugzilla [3] for reporting bugs, and an open design process [4]. We welcome
any contribution without requiring a transfer of copyright.


List of bugs fixed
==

892 Segfault when destructing QWidget and QApplication has event
filter installed
407 Crash while multiple inheriting with QObject and native python class
939 Shiboken::importModule must verify if PyImport_ImportModule succeeds
937 missing pid method in QProcess
927 Segfault on QThread code.
925 Segfault when passing a QScriptValue as QObject or when using
.toVariant() on a QScriptValue
905 QtGui.QHBoxLayout.setMargin function call is created by
pyside-uic, but this is not available in the pyside bindings
904 Repeatedly opening a QDialog with Qt.WA_DeleteOnClose set crashes PySide
899 Segfault with 'QVariantList' Property.
893 Shiboken leak reference in the parent control
878 Shiboken may generate incompatible modules if a new class is added.
938 QTemporaryFile JPEG problem
934 A __getitem__ of QByteArray behaves strange
929 pkg-config files do not know about Python version tags
926 qmlRegisterType does not work with QObject
924 Allow QScriptValue to be accessed via []
921 Signals not automatically disconnected on object destruction
920 Cannot use same slot for two signals
919 Default arguments on QStyle methods not working
915 QDeclarativeView.scene().addItem(x) make the x object invalid
913 Widgets inside QTabWidget are not exported as members of the
containing widget
910 installEventFilter() increments reference count on target object
907 pyside-uic adds MainWindow.setMenuBar(self.menubar) to the
generated code under OS X
903 eventFilter in ItemDelegate
897 QObject.property() and QObject.setProperty() methods fails for
user-defined properties
896 QObject.staticMetaObject() is missing
916 Missing info about when is possible to use keyword arguments in
docs [was: QListWidgetItem's constructor ignores text parameter]
890 Add signal connection example for valueChanged(int) on QSpinBox to the 
docs
821 Mapping interface for QPixmapCache
909 Deletion of QMainWindow/QApplication leads to segmentation fault


Download


The files can be downloaded from PySide download page[2]


References
==

[1] http://lists.pyside.org/pipermail/pyside/2011-July/002648.html
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html
[5] http://developer.qt.nokia.com/wiki/PySideDownloads


PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


PySide 1.0.4 - The winter is coming: Python for Qt released!

2011-06-23 Thread Renato Araujo Oliveira Filho
PySide 1.0.4 - The winter is coming: Python for Qt released!
===

The PySide team is proud to announce our monthly release of PySide project.

Major changes
==

PySide now is 100% compatible with squish[1]

About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [2], an open
Bugzilla [3] for reporting bugs, and an open design process [4]. We welcome
any contribution without requiring a transfer of copyright.

List of bugs fixed
==

882 Can't use QApplication without X
881 pyside-lupdate generates incorrect context when a class contains
another class
879 QDoubleSpinBox: Can't call the parent validate() method from a subclass
877 Fatal Python error on application quit
875 Missing underscore.js in uploaded files
874 QApplication.winEventFilter(msg)  not implemented but in docs
872 Squish GUI Tests work with QT  PyQt but not Pyside.
871 Shiboken should prevent custom code on virtual methods to cause
infinite recursion.
870 QStylePainter.drawControl doesn't draw anything
869 QDateTimeEdit initial time problem
868 Returning color value from styleHint() hangs application
865 Apparent reference counting problem with event filters
863 QAbstractFileEngine::beginEntryList isn't exported to Python
862 Problems when printing objects
860 Problems with slot overloads
858 pyside-rcc produces bigger files than pyrcc4
853 MeeGo packages don't contain PySide.QtOpenGL module
827 Anchor sign for headers to copy links for sections
631 QSocketNotifier: Accept file-like object (with .fileno() method)
in constructor
501 Shiboken generator doesn't use full qualified name (with ::
prefix) on all places.
464 Can't create target lang package and namespace with the same name
424 QDockWidget.setTitleBarWidget does not accept 0
292 Rich comparison overload order issues

Download


The files can be downloaded from PySide download page[2]


References
==

[1] http://www.froglogic.com/
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html
[5] http://developer.qt.nokia.com/wiki/PySideDownloads


PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


[ANNOUNCE] PySide 1.0.3 - comigo: Python for Qt released!

2011-05-27 Thread Renato Araujo Oliveira Filho
PySide 1.0.3 - comigo: Python for Qt released!
===

The PySide team is proud to announce another minor release of PySide project.


Major changes
==

* PySide official supported on MeeGo 1.2 DE (continuous update);
* Several bug fixes (list below);
* New Class 'ClassInfo': used to replace Q_CLASSINFO macro;
* Now the number of signals and slots are limitless;
* Support for Qt 4.5 is back;
* Bugzilla theme fix (Lovely bug is back);


About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [1], an open
Bugzilla [2] for reporting bugs, and an open design process [3]. We welcome
any contribution without requiring a transfer of copyright.


List of bugs fixed
==

798 Doc generator could show since attribute.
844 Crash in QGraphicsItem::toGraphicsObject when printing obj reference
857 64bit Windows build broken
840 Shiboken prints Can't find type resolver for 9QMacStyle
826 Segmentation fault when geting custom event type
829 Segfault in Shiboken::ConverterQVariant::toCpp(_object*) when
converting dict with non-string keys to QVariant
834 Segfault on childEvent
835 pyside breaks descriptor protocol
839 QTest::touchEvent causes Python crash.
841 QStandardItem::clone and QStandardItemModel::setItemPrototype
854 implementing __getitem__ in QAbstractItemModel leads to endless loop.
786 There's no __eq__ for all classes inherited from
ObjectDescriptionT due to an Apiextractor bug.
797 error on ui file load
813 Can not override connect method when subclassing QObject
825 Can't register a class using that uses metaclasses in QML using
qmlRegisterType
849 Support for Qt4.5
634 It is not possible mock any Qt functions with PySide. Always
raises TypeError...
716 QPersistentModelIndex isn't convertible to QModelIndex
847 Slots on QDeclarativeView subclass can't be called from QML/JavaScript
381 apiextractor segfaults when building on MeeGo (Gcc-4.5.0-3.8)
606 add function to convert QPoint/QPointF/QSize/... to (and from) tuple
615 QTransform.quadToQuad should have a 2-argument version
654 __repr__ of enums should be more Pythonic
722 float vs. qreal conflict in new-style-signals
785 QItemSelection operators inherited from QListQItemSelectionRange 
missing
809 QtCore.QSysInfo empty
820 Slots cannot receive signal when another decorator is present
828 Multiple QDirModel/QFileSystemModel bugs
417 Support nested naming of flags
686 Request to make Q[Mutex|Read|Write]Locker context managers
803 QWebElementCollection.operator[] is not implemented
807 Bugzilla theme doesn't link back to website
851 Shiboken recognizes dereference operator overload as times
operator overload.
312 Limit of 50 on dynamic slots
505 CppObject was destroyed before __del__ be called
629 Certain types of QObject properties cannot be accessed from QML
without being wrapped in a QVariant
680 QDateTimeEdit.setDate() doesn't accept Python datetime instances
705 PySide should provide an equivalent to Q_CLASSINFO macro.
725 Is not possible to set custom curve function in QEasingCurve
808 Bugzilla theme is different from the original web site
810 QtOpenGL Ubuntu package for ARM
830 QAbstractItemModel is not linked from QTreeView page
806 Lovely bug is missing

Download


All tarball files are available on PySide Download page[4].


References
==

[1] http://qt.gitorious.org/pyside
[2] http://bugs.openbossa.org/
[3] http://www.pyside.org/docs/pseps/psep-0001.html
[4] http://developer.qt.nokia.com/wiki/PySideDownloads

PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


PySide 1.0.2 - 80710a06: Python for Qt released!

2011-04-30 Thread Renato Araujo Oliveira Filho
PySide 1.0.2 - 80710a06: Python for Qt released!
===

The PySide team is proud to announce another minor release of PySide project.


Major changes
==

This release essentially includes a lot of bug fixes (most of then missing
functions).

About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing access to
not only the complete Qt 4.7 framework but also Qt Mobility, as well as to
generator tools for rapidly generating bindings for any C++ libraries.

The PySide project is developed in the open, with all facilities you'd expect
from any modern OSS project such as all code in a git repository [1], an open
Bugzilla [3] for reporting bugs, and an open design process [4]. We welcome
any contribution without requiring a transfer of copyright.

List of bugs fixed
==

781 Method QPainter::drawPoints(const QPoint*, int) missing
782 Method QPainter::drawPolygon(const QPointF*, int, Qt::FillRule) 
missing
783 Method QPainter::drawPolyline(const QPoint*, int) missing
784 Method QPainter::drawRects(const QRect*, int) missing
823 Shiboken doesn't support function call overloads
741 Method qreal QTextLine::cursorToX(int *cursorPos, Edge edge =
Leading) const missing
742 Method void QPrinter::getPageMargins(qreal*, qreal*, qreal*,
qreal*, Unit) const missing
753 Methods void QTextDocument::undo(QTextCursor*) missing
754 Methods void QTextDocument::redo(QTextCursor*) missing
755 Methods void QInputContext::setFocusWidget(QWidget*) missing
757 Constructor QPixmap(const char* const[] xpm) missing
688 The __iadd__ and __isub__ method is missing in QTextFrame.iterator
720 QByteArray prints itself wrong, on tp_print and tp_repr
722 float vs. qreal conflict in new-style-signals
739 Method QTransform::map(qreal x, qreal y, qreal* tx, qreal*
ty) const missing
740 Method QBitmap::fromData(QSize,const uchar*,QImage::Format) 
missing
743 The removed method QMatrix4x4::operator()(int, int) should
be replaced by an implementation of the sequence protocol
744 Method void QGraphicsLayout::getContentsMargins(qreal*,
qreal*, qreal*, qreal*) const missing
745 Method void QGraphicsLayoutItem::getContentsMargins(qreal*,
qreal*, qreal*, qreal*) const missing
746 Method 
QFormLayout::getLayoutPosition(QLayout*,int*,QFormLayout::ItemRole*)const
missing
747 Method 
QFormLayout::getWidgetPosition(QWidget*,int*,QFormLayout::ItemRole*)const
missing
748 Method 
QFormLayout::getItemPosition(int,int*,QFormLayout::ItemRole*)const
missing
750 Method QFontInfo QPainter::fontInfo() const missing
751 Method void QSplashScreen::repaint() missing
752 Method void QSplitter::getRange(int index, int* min, int*
max) const missing
756 Method void QWidget::getContentsMargins(int*,int*,int*,int*)
const missing
758 Method void
QTextCursor::selectedTableCells(int*,int*,int*,int*)const missing
759 Method virtual void QPicture::setData(const char* data, uint
size) missing
764 Method void QLayout::getContentsMargins(int*,int*,int*,int*)
const missing
773 Method QWebFrame.metaData is missing
774 Operator QKeySequence::operator[](uint)const missing
775 Operator QKeySequence::operator QVariant() const missing
778 Iterator protocol methods missing for QTreeWidgetItemIterator
787 ObjectDescription.fromIndex(int) is missing.
788 QIPv6Address.__getitem__ is missing.
819 QFileDialog.getSaveFileName does not accept a 'selectedFilter' 
argument.
843 Provide constants for Qt and PySide version (documentation)


References
==

[1] http://qt.gitorious.org/pyside
[2] http://developer.qt.nokia.com/wiki/PySideDownloads
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html

PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


PySide: Python for Qt 1.0 released!

2011-03-04 Thread Renato Araujo Oliveira Filho
Hi all,

For those of you interested in writing Qt and QML software on Python:

The PySide project has released PySide: Python for Qt version 1.0.0
after a long stabilization period. In addition to the source code
release, project community packagers have already released binary
packages for all major Linux distributions, Microsoft Windows, Mac OS
X, and Nokia’s Maemo 5 platform. With this release, the team regards
PySide to be production quality and they will restart feature
development in parallel to the continued bugfixing effort.

PySide is a Nokia-sponsored Python Qt bindings project, providing
bindings to not only the complete Qt 4.7 framework (including Qt
Quick/QML) but also Qt Mobility, as well as to generator tools for
rapidly generating new bindings for any C++ libraries. Due to the
LGPL-licensing of the bindings, PySide can be used both for
Free/Open-source and commercial software development.

The PySide project is developed in the open, with all facilities one
would expect from any modern OSS project such as all code in a git
repository, an open Bugzilla for reporting bugs, and an open design
process. PySide welcomes any contribution without requiring a transfer
of copyright.

See the PySide website for download links and more information:

http://www.pyside.org


PySide Team
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


Python for Qt version 1.0.0~beta5 color blind released

2011-02-02 Thread Renato Araujo Oliveira Filho
The PySide team is happy to announce the fifth beta release of PySide:
Python for Qt. New versions of the PySide toolchain components
have been released as well.

This is a source code release only; we hope our community packagers will
be providing provide binary packages shortly. To acquire the source code
packages, refer to our download wiki page [1] or pull the relevant
tagged versions from our git repositories [2].

Major changes since 1.0.0~beta4
===

This is a bugfix release. Since beta4, a total of 23 bugs have been
fixed. See the list of fixed bugs at the end of this message.

Path towards 1.0 release


The list of bugs in our Bugzilla [3] having P3 or higher priority is
getting short enough that we are beginning to feel confident for to do
the 1.0 release soon. The next release, in two weeks, will be our first
release candidate (rc1): it will incorporate all or most of the
currently open P2/P3 bugs, but after that, only clear regressions
(features which have worked in previous PySide versions but not in rc1)
will be fixed before 1.0. Then, the 1.0 release will happen two weeks
from rc1.

About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing
access to not only the complete Qt 4.7 framework but also Qt Mobility,
as well as to generator tools for rapidly generating bindings for any
Qt-based libraries.

The PySide project is developed in the open, with all facilities you'd
expect from any modern OSS project such as all code in a git repository
[2], an open Bugzilla [3] for reporting bugs, and an open design
process [4]. We welcome any contribution without requiring a transfer of
copyright.

List of bugs fixed
==

640 Crash in example elasticnodes.py
627 Compile error in generatorrunner - missing abstractmetalang.h, etc
632 QLineEdit.getTextMargins() segmentation fault
647 QGLWidget.bindTexture(QPixmap) causes program crash
650 Missing bindings for QNetworkProxyFactory
651 Calling disconnect() with no arguments causes segfault
562 pyside-uic does not generate some layers properties
565 QImage missing *data constructors
590 Error QFileDialog.getSaveFileName with DontConfirmOverwrite option
593 __repr__ should be more Pythonic
605 Using metaclasses with the PySide classes doesn't work
612 QColor.__reduce__ is not accurate
613 QSvgRenderer chooses QByteArray overload when given a file path
616 error compiling when public and private methods differ by the const-ness
617 conversion from C++ enum to PySide does not set repr() properly
618 QAbstractItemModel.createIndex only creates a weak reference to ptr
633 bool of null QDate (possibly other empty QString/null QObj types?)
returns True for empty instance; probably should be False
641 some errors in diagramscene.py
655 bad re-implementations of QApplication.notify result in a SystemError
656 cannot inherit from QCoreApplication
659 removeParent() performs very poorly when a parent has 1 items
566 'PySide.QtGui.QImage' object has no attribute 'scanLine'
636 Unable to navigate back to the main site from the generated 
documentation


References
==

[1] http://developer.qt.nokia.com/wiki/PySideDownloads
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


Python for Qt version 1.0.0~beta4 I have altered the deal released

2011-01-21 Thread Renato Araujo Oliveira Filho
The PySide team is happy to announce the fourth beta release of PySide:
Python for Qt. New versions of some of the PySide toolchain components
apiextractor, generatorrunner, shiboken, libpyside, pyside-tools have been
released as well.

Like the others, this is a source code release only; we hope our community
packagers will be providing provide binary packages shortly. To acquire the
source code packages, refer to our download wiki page [1] or pull the relevant
tagged versions from our git repositories [2].

Major changes since 1.0.0~beta3
===

This is a bug fix release. Since beta3, a total of 47 high-priority
bugs have been fixed. See the list of fixed bugs at the end of this message.

Path towards 1.0 release


There are still some outstanding bugs in our Bugzilla [3]. To have these
fixed, we plan to do other beta in two weeks. The beta cycle will continue
until we have all P2 bugs fixed.


About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing
access to not only the complete Qt 4.7 framework but also Qt Mobility,
as well as to generator tools for rapidly generating bindings for any
Qt-based libraries.

The PySide project is developed in the open, with all facilities you'd
expect from any modern OSS project such as all code in a git repository
[2], an open Bugzilla [5] for reporting bugs, and an open design
process [4]. We welcome any contribution without requiring a transfer of
copyright.

List of bugs fixed
==

624 button click emit doesn't work
484 Error compiling QtContacts 1.1 (problems with const QListQVariant)
498 powerStateChanged-SIGNAL not emitted!
509 Can't use Shiboken when both Debug and Released are installed.
528 Connecting to SIGNAL positionUpdated fails
552 Segmentation fault when using QUiLoader and QTabWidget
553 A warning against using QUILoader is needed in the documentation
560 Lack of QtCore.Signal documentation
582 Python slots don't get called when they have a custom decorator
589 Crash related to QGraphicsProxyWidget and QVariant
592 shiboken.dll produces a segmentation fault when reloading a PySide 
module
608 Photoviewer example missing license boilerplates and shebang lines
609 Python site-packages path cannot be customized
610 QWidgetItemV2 not exposed to Python
626 Problem building PySide on OS X (qabstractfileengine_wrapper.cpp:
No such file or directory)
406 Unable to send instant messages using QMessageService
458 Doesn't build with QtMobility 1.1.0~beta2
487 Support QContactDetailFieldDefinition.setAllowableTypes
497 Miising __lt__ operators in QtMobility::QGeoMapObject
499 QFeedbackHapticsInterface and QFeedbackFileInterface are broken
511 QPainter doesn't respect Qt.NoPen
522 example/threads/mandelbrot.py crashes on exit
523 QWidget.winId() returns PyCObject (expected unsigned long)
530 Importing division from future breaks QPoint division
531 sessionProperty ConnectInBackground does not work
539 MCC and MNC interchanged
541 QTableWidget.itemAt(row, col) always returns item at 0, 0.
550 Can't call PySide slot from QtScript when the args are a list of 
anything.
556 QGraphicsScene.addItem performs very poorly when the scene has 1 
items
562 pyside-uic does not generate some layers properties
568 List insertion time grows with list size
574 In docs of QUuid there's documentation for a function called
operator QString
575 Strange behaviour of QTextEdit.ExtraSelection().cursor
584 python pickle module can't treat QByteArray object of PySide
591 QtCore.QRect has no attribute getRect() in Windows binary
611 enum values lack a tp_print implementation
614 FAil to register 2 objects in the same address
619 never automatically delete a QWidget that has no parent widget and
is visible
620 QAbstractItemModel.createIndex(int,int,PyObject*) does not
increment refcount
621 QGLWidget.bindTexture(QString) does not bind the texture correctly
622 PPA pyside is broken on Ubuntu 10.10
623 QGLWidget.bindTexture(QPixmap, GLenum, GLenum) is missing
625 QFileDialog return a tuple instead of a unicode
628 pyside-uic can't effect headerVisible attribute for QTreeView
and QTreeWidget
232 [FTBFS] Fails to build on hurd-i386 (Test lock hangs for more
than 191 minutes)
255 Test qtscripttools_debugger segfaults on ia64
298 Contact subtype not correctly set



References
==

[1] http://developer.qt.nokia.com/wiki/PySideDownloads
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html

Thanks
PySide team.
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


Python for Qt version 1.0.0~beta3 salmiak released

2011-01-07 Thread Renato Araujo Oliveira Filho
The PySide team is happy to announce the third beta release of PySide:
Python for Qt. New versions of some of the PySide toolchain components
apiextractor, shiboken, libpyside have been released as well.

This is a source code release only; we hope our community packagers will
be providing provide binary packages shortly. To acquire the source code
packages, refer to our download wiki page [1] or pull the relevant
tagged versions from our git repositories [2].

Major changes since 1.0.0~beta2
===

This is a bugfix release. Since beta2, a total of 35 high-priority
bugs have been fixed. See the list of fixed bugs at the end of this message.

Path towards 1.0 release


There are still some outstanding bugs in our Bugzilla [3]. To have these
fixed, we plan to do a new beta in two weeks. After that we will
check the possibility of a release candidate or other beta before 1.0.


About PySide


PySide is the Nokia-sponsored Python Qt bindings project, providing
access to not only the complete Qt 4.7 framework but also Qt Mobility,
as well as to generator tools for rapidly generating bindings for any
Qt-based libraries.

The PySide project is developed in the open, with all facilities you'd
expect from any modern OSS project such as all code in a git repository
[2], an open Bugzilla [5] for reporting bugs, and an open design
process [4]. We welcome any contribution without requiring a transfer of
copyright.

List of bugs fixed
==

379 QGLWidget.bindTexture is missing
404 Tests fail both in pyside-qt.46+0.4.0 and pyside-qt.46+0.4.1
460 pyside-uic can't deal with QWizard
473 pyside tools lack manpages
474 Enums in non-generated namespaces aren't generated either.
481 mimeData() missing from QListWidget, QTreeWidget, QTableWidget
493 __eq__ and friends not implemented for QKeyEvent == QKeySequence
495 Broken rich compare operators if they use an object-type as parameter
502 Delegate generated editor widget is killed on C++ before its time
503 There's no bindings for QSslCertificate
506 Segmentation fault
514 Static method QByteArray.fromRawData is missing from QtCore
515 Global qAddPostRoutine function missing on QtCore
544 QtCore.QRect missing binding for method getCoords
546 Python crash on exit
547 QTreeWidget segmentation fault
549 [patch] QGraphicsWidget::getContentsMargins() and
QGraphicsWidget::getWindowFrameMargins() not available
554 Inner classes don't work and give us a segfault
557 Segmentation fault in QDeclarativeComponent.loadUrl()
558 print attribute of a QWebFrame cannot be accessed normally (syntax 
error)
561 pyside-uic generates invalid code when tab name is not translatable
563 Unhandled signal emitting with invalid signature (which leads to
application crash)
567 Compilation error - PySide
569 QTableWidgetItem is missing binding of __lt__ to operator
570 Link to old wiki
572 Giving unicode value as 'body' argument to WebView's load method
crashes python
573 Problème avec fonction print() de QPrintPreviewWidget
576 QWidget.setParent( None ) producing orphaned Widgets which won't die
577 Reference to QString in docs
578 QtNetwork_basic_auth_test (Timeout)
580 lock (Timeout)
581 phonon_basic_playing_test (Timeout)
583 add a new QDatetime init function with 6 argument
585 QTreeWidgetItem disappear
587 Test: protected (Failed)


References
==

[1] http://developer.qt.nokia.com/wiki/PySideDownloads
[2] http://qt.gitorious.org/pyside
[3] http://bugs.openbossa.org/
[4] http://www.pyside.org/docs/pseps/psep-0001.html

Thanks
PySide team.
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

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


[issue9014] Incorrect documentation of the PyObject_HEAD macro

2010-06-16 Thread Renato Cunha

New submission from Renato Cunha ren...@renatocunha.com:

PyObject_HEAD's documentation in py3k 
(http://docs.python.org/dev/py3k/c-api/structures.html#PyObject_HEAD) uses the 
same content used in the python 2.x's docs which is wrong, as there were some 
API changes.

PyObject_HEAD is actually defined as

#define PyObject_HEAD PyObject ob_base;

with PyObject defined as

typedef struct _object {
_PyObject_HEAD_EXTRA
Py_ssize_t ob_refcnt;
struct _typeobject *ob_type;
} PyObject;

(The PyTRACE_REFS discussion is still valid, though.)

Additionally, it'd be nice to mention that the Py_REFCNT(ob) and Py_TYPE(ob) 
macros should be used to access the PyObject members.

--
assignee: d...@python
components: Documentation
messages: 107953
nosy: d...@python, trovao
priority: normal
severity: normal
status: open
title: Incorrect documentation of the PyObject_HEAD macro
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3

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



[issue9001] PyFile_FromFd wrong documentation

2010-06-15 Thread Renato Cunha

New submission from Renato Cunha ren...@renatocunha.com:

PyFile_FromFd has a wrong argument cound and, consequently, a wrong description 
in py3k docs. The errors is never mentioned.

--
assignee: d...@python
components: Documentation
files: correct-py3k-c-api-doc.diff
keywords: patch
messages: 107879
nosy: d...@python, trovao
priority: normal
severity: normal
status: open
title: PyFile_FromFd wrong documentation
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file17677/correct-py3k-c-api-doc.diff

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



[issue9002] Add a pointer on where to find a better description of PyFile_FromFd arguments

2010-06-15 Thread Renato Cunha

New submission from Renato Cunha ren...@renatocunha.com:

Even though the File Objects section in py3k documentation makes it clear 
that the functions there listed are just wrappers over the io module, it took 
me a bit to find which function PyFile_FromFd was wrapping.

So, what about making it clear that PyFile_FromFd wraps io.open? The attached 
patch tries to do that. (It assumes that my previous patch, from issue #9001, 
will get accepted, as it builds on it.)

--
assignee: d...@python
components: Documentation
files: py3k-pyfile-from-fd-io-module.diff
keywords: patch
messages: 107881
nosy: d...@python, trovao
priority: normal
severity: normal
status: open
title: Add a pointer on where to find a better description of PyFile_FromFd 
arguments
type: feature request
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file17678/py3k-pyfile-from-fd-io-module.diff

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



[issue7400] Small typo in Python's library documentation: set

2009-11-26 Thread Renato Cunha

New submission from Renato Cunha ren...@renatocunha.com:

In the documentation of the built-in functions, the description of set
says Return a new set, optionally with elements ARE taken from
iterable. 

The referenced text should be either ... optionally with elements taken
from iterable. 

--
assignee: georg.brandl
components: Documentation
files: set-typo-fix.diff
keywords: patch
messages: 95752
nosy: georg.brandl, trovao
severity: normal
status: open
title: Small typo in Python's library documentation: set
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file15399/set-typo-fix.diff

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



python, threading and a radio timer

2006-10-30 Thread Renato
Dear all,

I found this nifty article on how to record your favourite radio show
using cron and mplayer:
http://grimthing.com/archives/2004/05/20/recording-streaming-audio-with-mplayer/

Because I couldn't get the date in the filename (and was too lazy to
look into sh/bash manuals), I decided to use Python. It was a good
choice, because I decided to improve the timer - learning some more
Python along the way!

So, the idea is:
- cron runs the script at a specific time
- the script starts mplayer, and will keep checking the clock until
it's time to kill mplayer
- after mplayer has exited, oggenc is started to turn the raw WAV into
ogg
- and finally the remaining WAV is deleted

This basic setting is quite easy, and I used os.spawnvp(os.P_WAIT,...),
along with another CRON entry to kill mplayer.

But then I got more ambitious: I wanted the script to keep checking if
mplayer was alive - in case the connection goes down. Moreover, I would
rather have the script stop mplayer than cron.

At this point, I thought I should get some professional help... :) What
is the right way to go? Would threads be overkill? If so, where can I
go about looking for process control/management without delving into
complex daemon architectures?

So, rather than asking for code, I'm looking for guidance - this is a
didactic experience!

Cheers,

Renato

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


Re: items in an array

2006-04-19 Thread Renato
 list_array = ['aaa','bbb','ccc']
 for item in list_array:
... print item + ',',
...
aaa, bbb, ccc,


(notice the comma at the end of the print statement: this causes the
suppression of the automatic newline)

Is this what you need?

-- 
Renato Ramonda

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


Re: Java Developer Exploring Python

2006-04-18 Thread Renato
You don't actually *need* a libglade/pyGtk IDE: glade will be more than
enough :-)

By its very nature glade will enable you to design the GUI and define
the signals.

Then you'll load the glade file in python, and use whatever editor you
feel comfortable with.

-- 
Have fun,
Renato Ramonda

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


Re: Which GUI toolkit is THE best?

2006-03-22 Thread Renato
Hardly a showstopper: gtk works now (with X11), and will work even
better soon (native).

:-)

--
Ciao, Renato

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


Re: Python Indentation Problems

2006-02-26 Thread Renato
If you use vi (vim, I hope), then place something like this in your
.vimrc

set ts=4
set sw=4
set expandtab
set ai

There are a lot more tricks for python in vim (and plugins, and
helpers, and so on), but this is the starting point: tabstops of 4
places, autoconverted in spaces. Also, when shifting text with  or 
it moves 4 spaces.

-- 
bye, 
Renato

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


Re: installing python on a server?

2006-02-10 Thread Renato
You mentioned using python for web apps: with which framework?
(TurboGears, CherryPy, Subway, Django, whatever) Or only for cgi?

With which web server? (Apache, Twisted, Zope, etc.)

On which linux platform? (Slackware, Debian, Fedora/RedHat, Suse, etc)

I think you'll have to think about other questions before.

On systems with package management (pretty much all of them, except
Slack) install is a matter of a few commands. And you can automate it,
obviously.

-- 
bye,
Renato

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


Re: Guido at Google

2005-12-22 Thread Renato
For what is worth,
all of the native administration tools of RedHat (all versions) and
Fedora Core are written in python (system-config-* and/or
redhat-config-* ). And even more importantly, yum (the official
software package manager for Fedora and RHEL) and Anaconda (OS
installer) are written in Python, too.

So RedHat, too, has a big interest in Python :-)

-- 
Renato Ramonda

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


Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Renato
What use is Java WebStart, exactly?

Just make a .exe installer with everything (for windows), using for
example py2exe and InnoSetup, and a distutils compliant package for the
others.

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


Re: Folding in vim

2005-07-06 Thread Renato Ramonda
Terry Hancock ha scritto:

 
 Yep, this is what I just set up in my .vimrc.  Works beautifully.

And (you probably already know, but it could be of use to others) you 
can bind the activation of some or all of those commands to au 
(autocommand) depending on the file extension.

That way you can have 8 spaces real tabs in C files, for examples, 
without touching your conf.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Good starterbook for learning Python?

2005-07-06 Thread Renato Ramonda
Lennart ha scritto:

 Programming Python will I sell as a book that i read secondly, and use as a
 reference. 

I'd like to suggest also Thinking like a CS in python: a schoolbook 
used in real classes to teach the basis of programming.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: debugger?

2005-07-03 Thread Renato Ramonda
Qiangning Hong ha scritto:
 Eric3 need pyqt so it is not free under windows platform.

Eric3 has had a free version for months now on windows, since the kde on 
win32 project recompiled the free versions on windows.

And qt4 now has a GPL version free on windows too.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to find Windows Application data directory??

2005-06-29 Thread Renato Ramonda
Trent Mick ha scritto:
 Note that the APPDATA environment variable is only there on *some* of
 the Windows flavours. It is there on Win2k and WinXP. It is not there on
 WinME. Dunno about Win95, Win98, WinNT... but you may not care about
 those old guys.

That's (I guess) because the DOS spawn (win9x family) was single user 
and did not really have concepts like home directories, profiles, 
separate settings for each user... hell, it did not even have users! :-D

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: help!

2005-06-24 Thread Renato Ramonda
Johannes Findeisen ha scritto:
 some filesystems do support that. From the ext2 specification
 ( http://e2fsprogs.sourceforge.net/ext2intro.html ):
 
 As a response to these problems, two new filesytems were released in
 Alpha version in January 1993: the Xia filesystem and the Second
 Extended File System. The Xia filesystem was heavily based on the Minix
 filesystem kernel code and only added a few improvements over this
 filesystem. Basically, it provided long file names, support for bigger
 partitions and support for the three timestamps.

That is, if it is mounted do do so. Just pass a noatime parameter to 
the mount command (or fstab line) and the atime (access time) will not 
be written.

Common when using very slow storage devices, or devices with somewhat 
limited read/write cycles (like old compactflash memories).

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: extreme newbie

2005-06-18 Thread Renato Ramonda
cpunerd4 ha scritto:
 thanks all for the advice. The reason I was thinking about using java
 (or C or something) was that it is a little more secure than
 distributing the source code isn't it? 

As in protecting your code from prying eyes?

Then java is exactly like python: I can distribute a fully functional 
python program using only .pyc or .pyo files (unreadable) just as I can 
distribute only .class files (or jars) in java.

And reverse engineering (de-compiling) both is damn easy. The produced 
code won't be beautiful, sure, but don't rely on it if you want to keep 
your code secret (for whatever reason).

 And also, from what I know, the
 Java virtual machine is more popular (and installed on more computers).

And it is also HUGE, so anyone NOT having it will think twice before 
downloading it only for your app. Python on the other hand is installed 
by default on all linux and OSX machines, and on windows you can use 
py2exe and produce packages of 2-3MBs (correct me if I'm wrong) with 
everything bundled.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: extreme newbie

2005-06-18 Thread Renato Ramonda
cpunerd4 ha scritto:

 Another reason I was thinging java was because you can
 run it in the browser.

Bad idea in 99% of the cases: applets are evil.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: extreme newbie

2005-06-18 Thread Renato Ramonda
Grant Edwards ha scritto:

 Python is required and Java is optional and not installed by
 default in the Linux distros I'm familiar with.
 
 I don't know how many Windows systems have Java installed.
 I don't think any of mine do.

It's pretty much the other way round: java CANNOT be included by default 
in any (free) linux distro for license reasons, and it CANNOT be 
included by default in Windows as a consequence of court ruling: 
Microsoft is actually _not allowed_ to include Java.

The only system (apart from solaris, I guess) that has a JVM by default 
is OSX, and it's _NOT_ sun's one, but the internally developed one.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What is different with Python ? (OT I guess)

2005-06-15 Thread Renato Ramonda
Terry Hancock ha scritto:
 
 It's the reverse-translation from the French Informatique.

Or maybe the italian Informatica...

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: anygui,anydb, any opinions?

2005-06-11 Thread Renato Ramonda
Tim Roberts ha scritto:

 Hardly.  Sizers have been the primary method of placing multiple controls
 in wx for as long as I've been using it, which goes back to 2.3.  In fact,
 it's hard to create a non-trivial wx app WITHOUT using sizers.  All of the
 wx GUIs place controls in nested sets of sizers.

Dunno... I'll take your word on this. In my experience though wx apps 
have awfully ugly laid out interfaces, often non resizable ones. Maybe 
is't only bad luck :-)

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: anygui,anydb, any opinions?

2005-06-09 Thread Renato Ramonda
Thomas Bartkus ha scritto:

Then download gtk2.6 and glade for windows and then install pygtk and
code away to your satisfaction! :-D

 
 
 I *will* try that.

On linux you probably have everything installed or a command away, on 
windows use this:

http://gladewin32.sourceforge.net/

choosing the development package (that includes gtk _and_ glade), plus

http://www.pcpm.ucl.ac.be/~gustin/win32_ports/pygtk.html

for pygtk. Just choose the right python version, obviously.


-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Riccardo Galli ha scritto:
 GUI cross platform need external support, in a OS or in another.

Sure, but using win32 versions of gtk and glade plus py2exe and 
InnoSetup (if you want to build a fancy installer) will give you a self 
contained gui program in windows.

Big, sure, but self contained :-D

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Mike Meyer ha scritto:
 Then I can go do something useful while the package system downloads,
 compiles and installs all the required software. I don't know if
 Debian has a similar system for installing from source. Gentoo does if
 you want to stay with Linux.

Debian actually has such a mechanism, if you have deb-src repositories 
in your apt sources list. The real problem will come from conflicting 
versions of wx and/or gtk required by different (other) programs.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Start application continue after app exits

2005-06-09 Thread Renato Ramonda
guy lateur ha scritto:

 I see what you mean, but wouldn't a call to open(fn, 'w') on a filename 
 that's in use (for reading or writing) result in an error condition or 
 something? I'm a noob, btw.

Uh... no, not on linux.
Try this:

$ touch foo.txt

$ gedit foo.txt  (write something in it and save, but do not close gedit)

$ gvim foo.txt   (write something else in it and save, but do not close 
gvim)

$ rm foo.txt

All this without having the file is in use errors, because well... 
only windows has those :-)

Oh, and btw: you'll notice that gVim is smart enough to notice that the 
file is no longer there, or that it is there but is more recent than his 
working copy (if you re-edited with gedit, for example).

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Paul Rubin ha scritto:
 The installer is going to download more stuff?  Yuccch, I'd rather not
 need a network connection to do an install.  Anyway, wxpython built ok
 on FC3.  The problem was wxwidgets, which needed an obsolete version
 of GTK.  I spent at least an hour or two messing around with it before
 deciding it wasn't worth the hassle.

AFAIR the linux package for wxpython does not require wxWidgets at all 
(it's embedded).

As for the obsolete gtk look for a gtk+ package, not for the gtk 
which is the up-to-date gtk2 package. And good luck :-)

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: anygui,anydb, any opinions?

2005-06-08 Thread Renato Ramonda
Thomas Bartkus ha scritto:
 The attractiveness of wxPython here is that it extends the platform
 neutrality of Python to GUI interfaces.  On a Windows platform, the work
 looks like any other Windows program.  On Gnome/Linux, the identical code
 fits right into the Gnome desktop scheme.  *Big* plus.

Maybe I'm just nitpicking, but please!

wxWidgets apps look ALMOST native on windows (combobox and similar 
widgets are emulated, and look really bad), and they sure _don't_ look 
like gnome apps on linux (gtk maybe, except for those custom widgets, 
but surely not gnome).

Besides, wx generally catches the look, but almost never the 'feel'.

wx is what you use if you really have no other choice, from my point of 
view... I'd honestly prefer to code a _good_ gui with gtk+glade and then 
bundle all the package together with py2exe and InnoSetup on windows. It 
will not look _native_, but it will look _GOOD_.

Last time I looked wx did not have spacers (vbox, hbox and the like)... 
this leads to ugly non resizable vb-style guis, in my experience (just 
look at aMule... plain ugly).

And that's not even starting to consider the version mess: try to 
install xCHM, Boa Constructor, aMule, VLC and some other app together... 
instant madness.

 Yes.  And I'm sorry to sound like I was complaining (but I was :-)
 I'm here because MS is well along it's declining years and I've jumped off
 the .NET bandwagon.  New/wonderful things are no longer forthcoming from

Then download gtk2.6 and glade for windows and then install pygtk and 
code away to your satisfaction! :-D

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: anygui,anydb, any opinions?

2005-06-08 Thread Renato Ramonda
Tim Roberts ha scritto:
 Renato Ramonda [EMAIL PROTECTED] wrote:
 
wxWidgets apps look ALMOST native on windows (combobox and similar 
widgets are emulated, and look really bad),
 
 
 That just isn't true.  They use the standard combo box.


Then it has changed recently. Mind that most stable apps still use wx2.4

 wx uses sizers to do the same thing.  Same purpose, different philosophy.
 I find sizers more natural, but people should certainly stick to whatever
 makes them comfortable.

I like sizers too, but in my experience wx apps do not use them. Are 
they by chance something that came with the 2.5/2.6 development cycle?
That version is still pretty rare in real world applications.

And that's not even starting to consider the version mess: try to 
install xCHM, Boa Constructor, aMule, VLC and some other app together... 
instant madness.
 
 
 They why would you do it?  gvim and wxPython do the job for me.  No mess.


Because i USE a chm reader. And I USE aMule, and I USE a multimedia player.

I'm not talking about developing (don't get confused by my mention of 
Boa), I'm talking about using. Only very recently wx introduced a 
mechanism to keep different versions in parallel.

-- 
Renato

Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
-- 
http://mail.python.org/mailman/listinfo/python-list