Re: From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-15 Thread dieter
Thomas Güttler writes: > Am Freitag, 11. September 2015 11:03:52 UTC+2 schrieb jmp: > ... >> Something like (python 2.7) >> >> import logging >> >> logCfg = { >> 'remote':( >> logging.StreamHandler(), >> logging.Formatter('Remote - %(levelname)s - %(message)s'), >>

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Mark Lawrence
On 15/09/2015 17:03, Robin Becker wrote: On 15/09/2015 16:54, Zachary Ware wrote: On Tue, Sep 15, 2015 at 8:32 AM, Robin Becker wrote: I'm a bit surprised that you can successfully use the same .libs for 2.7 and 3.3/3.4. But since that seems to work, I'd say go ahead and try it wit

Re: Python handles globals badly.

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 11:20 AM, Steven D'Aprano wrote: > On Wed, 16 Sep 2015 11:13 am, Steven D'Aprano wrote: > >> Python is a remarkably clean and consistent language. There's only one >> kind of value (the object -- everything is an object, even classes are >> objects). The syntax isn't full o

Re: Python handles globals badly.

2015-09-15 Thread Random832
Steven D'Aprano writes: > I don't need to see 23 printed, because I already know what the value is, so > that takes two lines where one would do. (On the rare case I did want to > see the value of something I had just assigned to, I could just print the > expression.) Of course, you could just as

Re: Python handles globals badly.

2015-09-15 Thread Steven D'Aprano
On Wed, 16 Sep 2015 11:13 am, Steven D'Aprano wrote: > Python is a remarkably clean and consistent language. There's only one > kind of value (the object -- everything is an object, even classes are > objects). The syntax isn't full of special cases. For example, there's > nothing like this horror

Re: Python handles globals badly.

2015-09-15 Thread Steven D'Aprano
On Mon, 14 Sep 2015 06:30 pm, Antoon Pardon wrote: > Op 12-09-15 om 05:48 schreef Steven D'Aprano: >> I believe I already acknowledged that assignment-as-expression was fine >> if it avoided the = versus == error, from the perspective of avoiding >> errors. But from the perspective of a clean and

Re: Problem with lists

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 10:29 AM, Rafael David wrote: > Oooohhh ... I think I got it! I'm assigning a reference to peca and not the > value itself! Thank you very much MRAB and C Smith for the enlightenment :) Right! That's how Python's assignment always works. You may find, in your case, that y

Re: Problem with lists

2015-09-15 Thread Rafael David
Em terça-feira, 15 de setembro de 2015 21:11:38 UTC-3, MRAB escreveu: > On 2015-09-16 00:45, Rafael David wrote: > > Hi guys, > > > > I'm newbie in Python (but not a newbie developer). I'm facing a > > problem with a bidimensional list (list of lists) containing > > dictionaries. I don't know if I

Re: Problem with lists

2015-09-15 Thread MRAB
On 2015-09-16 00:45, Rafael David wrote: Hi guys, I'm newbie in Python (but not a newbie developer). I'm facing a problem with a bidimensional list (list of lists) containing dictionaries. I don't know if I didn't understand how lists and dictionaries work in Python or if there is a mistake in m

Re: Problem with lists

2015-09-15 Thread C Smith
>>tabuleiro[lin][col] = peca use peca.copy() here or else a deep copy is made. On Tue, Sep 15, 2015 at 4:45 PM, Rafael David wrote: > Hi guys, > > I'm newbie in Python (but not a newbie developer). I'm facing a problem with > a bidimensional list (list of lists) containing dictionaries. I don't

Problem with lists

2015-09-15 Thread Rafael David
Hi guys, I'm newbie in Python (but not a newbie developer). I'm facing a problem with a bidimensional list (list of lists) containing dictionaries. I don't know if I didn't understand how lists and dictionaries work in Python or if there is a mistake in my code that I can't see. In the code I'm

Python Developer- Houston, TX

2015-09-15 Thread appthought1
Hi, Hope you are doing good!! Please revert back to me if the below job description matches your profile Position: Python Developer Location: Houston, TX Duration: Long Term Job Description * 6+ years of experience with Linux/UNIX Systems Administration * 2+ years of Openstack Expe

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 2:40 AM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> >>> I you may be underestimating the laziness and overestimating the >>> cleverness of most people. ;) >> >> Heh :) But in that case, you can probably get away with just >> zipimport. Deflation sure is

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > >> I you may be underestimating the laziness and overestimating the >> cleverness of most people. ;) > > Heh :) But in that case, you can probably get away with just > zipimport. Deflation sure isn't encryption, but the code is pretty > thoroughly concealed a

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards > wrote: >> On 2015-09-15, Chris Angelico wrote: >>> On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: Pyarmor is dedicated to users who create their applications, components, scripts or any file

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Wed, Sep 16, 2015 at 2:20 AM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards >> wrote: >>> On 2015-09-15, Chris Angelico wrote: If they can be run as if no protection had been applied, that presumably means the loader

testfixtures 4.3.3 Released!

2015-09-15 Thread Chris Withers
Sorry, the move to using Travis CI was not without bumps, and we're now on 4.3.3, which should be correctly built, including docs up on http://testfixtures.readthedocs.org/. Apologies for the noise... Chris On 15/09/2015 14:54, Chris Withers wrote: Hi All, I'm pleased to announce the releas

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 15/09/2015 16:54, Zachary Ware wrote: On Tue, Sep 15, 2015 at 8:32 AM, Robin Becker wrote: I'm a bit surprised that you can successfully use the same .libs for 2.7 and 3.3/3.4. But since that seems to work, I'd say go ahead and try it with 3.5, and if the build succeeds test the

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Zachary Ware
On Tue, Sep 15, 2015 at 8:32 AM, Robin Becker wrote: > However, I try to link bits of various libraries statically into the > reportlab extensions eg freetype.lib. Does anyone know if I will need > separate versions of those for VS2015? Currently I build with distutils for > Python 27, 33 & 34. Cu

Re: From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-15 Thread jmp
On 09/15/2015 11:35 AM, Thomas Güttler wrote: Yes, I could do it this way. But somehow I am not happy with this solution. I think the filtering should be outside of python. [snip] Can you understand my concerns? Thomas Güttler No, not really. I showed you how it can be done in p

Re: Terminology: "reference" versus "pointer"

2015-09-15 Thread Steven D'Aprano
On Tue, 15 Sep 2015 03:34 am, Random832 wrote: > On Mon, Sep 14, 2015, at 13:03, Steven D'Aprano wrote: >> On Tue, 15 Sep 2015 01:10 am, Random832 wrote: >> > That's not true in CPython. In fact, the range object in python >> > contains *four* reference boxes - one more for length. >> >> I really

Re: Terminology: "reference" versus "pointer"

2015-09-15 Thread Steven D'Aprano
On Tue, 15 Sep 2015 04:02 am, Random832 wrote: > The point is that with immutable objects no-one cares if they are three > objects with the same value, or three references to the same object. Well, you might care... a = (1,)*(10**12) b = (1,)*(10**12) c = (1,)*(10**12) Each of those tuples wou

testfixtures 4.3.0 Released!

2015-09-15 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.3.0. This is a feature release that adds the following: - Add TempDirectory.compare with a cleaner, more explicit API that allows comparison of only the files in a temporary directory. - Deprecate TempDirectory.check, TempDirecto

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 15/09/2015 12:38, Robin Becker wrote: On 14/09/2015 17:26, Mark Lawrence wrote: On 14/09/2015 16:52, Robin Becker wrote: ... http://stevedower.id.au/blog/building-for-python-3-5-part-two/ The most important thing is to have something to do while the Visual Studio installation takes up

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Tue, Sep 15, 2015 at 11:16 PM, Grant Edwards wrote: > On 2015-09-15, Chris Angelico wrote: >> On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: >>> Pyarmor is dedicated to users who create their applications, components, >>> scripts or any file with the help of the Python programming langua

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Grant Edwards
On 2015-09-15, Chris Angelico wrote: > On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: >> Pyarmor is dedicated to users who create their applications, components, >> scripts or any file with the help of the Python programming language. You >> may use this application to encrypt the files, in

{Spam?} Re: need help with selenium

2015-09-15 Thread Nagy László Zsolt
After clicking on submit button, a message is displayed on the same page whether login was successful or not. However after clicking on submit button, I lose control over the web page. I can't use any selenium functions now like 'driver.find_element_by_name()'. You need to wait until the submi

Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread Laura Creighton
>On Monday, September 14, 2015 at 8:58:51 AM UTC+2, Kristian Rink wrote: >> Folks; coming from a server-sided Java background, I'm recently >> exploring frameworks such as cherrypy or webpy for building RESTful >> services, which is quite a breeze and a pretty pleasant experience; >> however one t

Re: Horizontal Scalability in python

2015-09-15 Thread Iuri
You can do it with nginx. Tornado has some docs about it: http://tornado.readthedocs.org/en/latest/guide/running.html#running-behind-a-load-balancer Also, nginx has extensive documentation about the topic; https://www.nginx.com/resources/admin-guide/load-balancer/ Cheers! On Tue, Sep 15, 2015 a

Horizontal Scalability in python

2015-09-15 Thread AliReza Firuzabadi
I am new in tornado and I want to make web application with tornado and want to scale one instance of tornado application to many in separated servers. I should have load balancer and it send client requests to servers. please tell me how can I do it in the best way. thank you for helping me. --

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 14/09/2015 17:26, Mark Lawrence wrote: On 14/09/2015 16:52, Robin Becker wrote: ... http://stevedower.id.au/blog/building-for-python-3-5-part-two/ The most important thing is to have something to do while the Visual Studio installation takes up 8G of your disk space and several hours o

Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread marco . nawijn
On Monday, September 14, 2015 at 8:58:51 AM UTC+2, Kristian Rink wrote: > Folks; > > coming from a server-sided Java background, I'm recently exploring frameworks > such as cherrypy or webpy for building RESTful services, which is quite a > breeze and a pretty pleasant experience; however one th

Re: kivy editable multicolumn list

2015-09-15 Thread Laura Creighton
In a message of Tue, 15 Sep 2015 03:31:49 +0100, Paulo da Silva writes: >Hi all. >Not sure if this is the place to ask about kivy ... >I apologize if not. > >I am playing with the example here >https://gist.github.com/geojeff/4442405 > >Now I would like to change the background color the editable f

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Chris Angelico
On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote: > Pyarmor is dedicated to users who create their applications, components, > scripts or any file with the help of the Python programming language. You may > use this application to encrypt the files, in order to protect their content > and your

Re: From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-15 Thread Thomas Güttler
Am Freitag, 11. September 2015 10:18:11 UTC+2 schrieb marco@colosso.nl: > On Friday, September 11, 2015 at 9:22:42 AM UTC+2, Thomas Güttler wrote: > > Am Donnerstag, 10. September 2015 08:42:47 UTC+2 schrieb dieter: > > > Thomas Güttler writes: > > > > ... > > > > Why we are unhappy with loggin

Re: From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-15 Thread Thomas Güttler
Am Freitag, 11. September 2015 11:03:52 UTC+2 schrieb jmp: > On 09/11/2015 09:22 AM, Thomas Güttler wrote: > > > > I want INFO to be logged and stored on the remote host. > > Therefore I must not filter INFO messages. > > > > I don't want to pull INFO messages over the VPN. > > > > Ergo, the filter

Re: Pyarmor, guard your python scripts

2015-09-15 Thread Ben Finney
Jondy Zhao writes: > Pyarmor is a simple to use tool which is capable of importing or > running encrypted Python script files. Moreover, it can apply encoding > algorithms to your Python scripts, in order to help you protect them > before you can distribute them. You may also generate license fil

Pyarmor, guard your python scripts

2015-09-15 Thread Jondy Zhao
Pyarmor is a simple to use tool which is capable of importing or running encrypted Python script files. Moreover, it can apply encoding algorithms to your Python scripts, in order to help you protect them before you can distribute them. You may also generate license files with custom validity c

RE: kivy editable multicolumn list

2015-09-15 Thread David Aldrich
> Not sure if this is the place to ask about kivy ... Try the kivy users list here: https://groups.google.com/forum/#!forum/kivy-users Best regards David -- https://mail.python.org/mailman/listinfo/python-list

Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread paul.hermeneutic
This might be helpful. https://docs.python.org/3/distributing/index.html See also https://docs.python.org/3/library/venv.html?highlight=venv#module-venv Folks; coming from a server-sided Java background, I'm recently exploring frameworks such as cherrypy or webpy for building RESTful services,