Re: refresing the edited python function

2013-08-18 Thread dieter
Sudheer Joseph writes: > I have been using ipython and ipython with qtconsole and working on a code > with functions. Each time I make a modification in function  > > I have to quit IPTHON console (in both with and with out qt console ) and > reload the function freshly. If I need to see the c

ANN: rom 0.18 - Redis object mapper for Python

2013-08-18 Thread Josiah Carlson
Hey everyone, As time progresses, so does my Redis object mapper. The "rom" package is a Redis object mapper for Python. It sports an interface similar to Django's ORM, SQLAlchemy + Elixir, or Appengine's datastore. The changelog for recent releases can be seen below my signature. You can find

refresing the edited python function

2013-08-18 Thread Sudheer Joseph
Hi, I have been using ipython and ipython with qtconsole and working on a code with functions. Each time I make a modification in function  I have to quit IPTHON console (in both with and with out qt console ) and reload the function freshly. If I need to see the changed I made in the functi

Re: Need somebody schmardter than me

2013-08-18 Thread Gene Heskett
On Sunday 18 August 2013 19:30:43 Chris Angelico did opine: > On Sun, Aug 18, 2013 at 9:48 PM, Gene Heskett wrote: > >> import time > > > > That of course goes near the top of the script. > > > >> time.sleep(1.5) > > > > I'll see if I can see a sensible place to add this one. > > The import d

Re: Question about crypto

2013-08-18 Thread Roy Smith
In article , Anthony Papillion wrote: > I've just started working with the Crypto library and I've already run > into a wall even though I'm following a tutorial. Basically, I'm trying > to encrypt a string using AES in CBC mode. Here is the code: > > from Crypto import AES You don't say exact

Re: Question about crypto

2013-08-18 Thread Skip Montanaro
> When I run the code above, I am told that the IV must be 16 bytes long. > I'm assuming that the IV (I know that means "Initialization Vector") is > either the key OR something else I can set. But I don't know how or what > to do. Does this Stack Overflow thread help? It looks to me like you are

Question about crypto

2013-08-18 Thread Anthony Papillion
I've just started working with the Crypto library and I've already run into a wall even though I'm following a tutorial. Basically, I'm trying to encrypt a string using AES in CBC mode. Here is the code: from Crypto import AES import hashlib text_to_encrypt = 'This is a super secret encrypted mes

Re: Need somebody schmardter than me

2013-08-18 Thread Chris Angelico
On Sun, Aug 18, 2013 at 9:48 PM, Gene Heskett wrote: >> import time > > That of course goes near the top of the script. > >> time.sleep(1.5) > > I'll see if I can see a sensible place to add this one. The import doesn't have to happen near the top of the script; it's an executable statement like

Re: Need somebody schmardter than me

2013-08-18 Thread Gene Heskett
On Sunday 18 August 2013 16:38:52 Roy Smith did opine: > In article , > Gene Heskett wrote: > > [much that doesn't appear to have anything to do with Python elided] > > > When cheese runs this camera, there is a several second delay while > > cheese is apparently talking to it to establish the

Re: log incoming ip/porrt connections

2013-08-18 Thread D. Xenakis
This monitors also ip/port of incoming udp packets? Or just tcp after a connection has been enstablished? If i dont make any sense, plz correct me. Not much experience with networking here :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Local variable in a closure

2013-08-18 Thread Terry Reedy
On 8/18/2013 6:44 AM, Dave Angel wrote: w.w.mil...@googlemail.com wrote: Is f local or not? http://pastebin.com/AKDJrbDs Please have a little respect, and include the source in your message. You managed quite nicely to keep it small, but you put it in an obscure place that some people won't b

Re: Need somebody schmardter than me

2013-08-18 Thread Roy Smith
In article , Gene Heskett wrote: [much that doesn't appear to have anything to do with Python elided] > When cheese runs this camera, there is a several second delay while cheese > is apparently talking to it to establish the correct output format before > cheese starts displaying its output,

Need somebody schmardter than me

2013-08-18 Thread Gene Heskett
Greetings all; I am trying to make a machine vision kit of modules work in linuxcnc, which uses a lot of python for scripts and gui controls in the user interface. This is on a Ubu 10.04.4 LTS install, which because linuxcnc is intimately married to an RTAI equipt kernel version, has not been u

Re: How to I do this in Python ?

2013-08-18 Thread Ganesh Pal
Hi Steven , Firstly thanks for responding to the question and also guiding me on how to post the question in the right order ( general to least important order ) Please find the comments >>> inline On Fri, 16 Aug 2013 11:51:32 +0530, Ganesh Pal wrote: > My goal is to create various kinds of fil

Re: Encapsulation unpythonic?

2013-08-18 Thread Joshua Landau
On 17 August 2013 17:17, Steven D'Aprano wrote: > On Sat, 17 Aug 2013 05:26:32 -0700, fsaldan1 wrote: >> how do I >> deal with the fact that other programmers can easily alter the values of >> members of my classes? > ... > If they insist on messing with your private single-underscore > _attribute

crawling/parsing a webpage based on dynamic javascript

2013-08-18 Thread bruce
Hi. Looking at using python/cerely/twisted to test in parsing a test site. Also looking at being able to parse a site created using dynamic javascript. I've got test apps to parse a site, but I'm interested in getting a better understanding of using multi-thread/multi-processing approaches to spi

Re: Local variable in a closure

2013-08-18 Thread Dave Angel
w.w.mil...@googlemail.com wrote: > Is f local or not? > http://pastebin.com/AKDJrbDs Please have a little respect, and include the source in your message. You managed quite nicely to keep it small, but you put it in an obscure place that some people won't be able to reach, and that might not sur

Re: Local variable in a closure

2013-08-18 Thread Ian Kelly
f is nonlocal to times(), local to multiplier(). As the docs for the locals() function say, "Free variables are returned by locals() when it is called in function blocks, but not in class blocks." On Sun, Aug 18, 2013 at 3:41 AM, wrote: > Is f local or not? > http://pastebin.com/AKDJrbDs > -- >

Re: Local variable in a closure

2013-08-18 Thread Chris Angelico
On Sun, Aug 18, 2013 at 10:41 AM, wrote: > Is f local or not? > http://pastebin.com/AKDJrbDs With something that short, it'd be easier to simply paste it straight into your post, rather than having it off elsewhere. But to answer your question: It is its own kind of beast. You can play around wi

Local variable in a closure

2013-08-18 Thread w . w . milner
Is f local or not? http://pastebin.com/AKDJrbDs -- http://mail.python.org/mailman/listinfo/python-list

Re: .split() Qeustion

2013-08-18 Thread wxjmfauth
Le dimanche 18 août 2013 01:30:14 UTC+2, Gregory Ewing a écrit : > wxjmfa...@gmail.com wrote: > > > Na + Cl --> NaCl > > > > > > the chemist combines *one mole* of sodium and *one > > > mole* of chlorine to get *one mole* of sodium chloride > > > > > > It's independent of the number of