Re: refresing the edited python function

2013-08-20 Thread alex23
On 19/08/2013 10:55 AM, Sudheer Joseph wrote: 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

Re: default python os x

2013-08-20 Thread Uwe Rangs
Ah, I see. Thank you! On 2013-08-20 05:39:56 +, Steven D'Aprano said: On Mon, 19 Aug 2013 22:24:46 +0200, Uwe Rangs wrote: My workflow at the moment is to set a link: mv python python_old ln -s /usr/local/bin/python3.2 python But is this a good idea? You should never change the system

Re: Importing variables non-deterministic?

2013-08-20 Thread wxjmfauth
Le mardi 20 août 2013 08:55:18 UTC+2, Antoon Pardon a écrit : > > > > > > > > > If you consider the implementation of sin and cos functions, they usually > > > reduce the argument modulo π to something in the first quadrant, and then > > > use symmetry to adjust the value. So changing th

Re: Importing variables non-deterministic?

2013-08-20 Thread Antoon Pardon
Op 20-08-13 09:31, wxjmfa...@gmail.com schreef: > Le mardi 20 août 2013 08:55:18 UTC+2, Antoon Pardon a écrit : >> >>> >> > >> >> >> >>> If you consider the implementation of sin and cos functions, they usually >> >>> reduce the argument modulo π to something in the first quadrant, and then >> >

Beginer of python,could I write a personal blog using cherrtpy?

2013-08-20 Thread leafonsword
I'v seen 《byte of python》《head first python》~ Could I read cherrypy's offical document and then I write a personal blog using cherrypy? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this PEP-able? (syntax for functools.partial-like functionality)

2013-08-20 Thread Fábio Santos
On 20 Aug 2013 07:22, "Steven D'Aprano" wrote: > > On Tue, 20 Aug 2013 00:49:16 +0100, Fábio Santos wrote: > > > I had an idea for a handy syntax which I thought of while designing a > > language for fun. This would be a syntax for creating, from a function, > > a function which is just like it bu

Replace blanks with letter

2013-08-20 Thread eschneider92
I'm trying to replace the blank(_) with the letter typed in by the user, in the appropriate blank(_) spot where the letter should be (where is in the letters list). letters='abcdefg' blanks='_ '*len(letters) print('type letter from a to g') print(blanks) input1=input() for i in range(len(letters

Re: Beginer of python,could I write a personal blog using cherrtpy?

2013-08-20 Thread Steven D'Aprano
On Tue, 20 Aug 2013 01:14:27 -0700, leafonsword wrote: > I'v seen 《byte of python》《head first python》~ Could I read cherrypy's > offical document and then I write a personal blog using cherrypy? It is certainly possible to create a blog using CherryPy. http://docs.cherrypy.org/stable/appendix/s

Re: Is this PEP-able? (syntax for functools.partial-like functionality)

2013-08-20 Thread Ian Kelly
On Tue, Aug 20, 2013 at 2:28 AM, Fábio Santos wrote: > I do realize that syntax in python is practically written in stone, but I > have seen changes come by if they have good reasons. For example, > keyword-only argument syntax was added. > > I suggested this because I thought it would be the most

Re: Replace blanks with letter

2013-08-20 Thread Fábio Santos
On 20 Aug 2013 09:42, wrote: > > I'm trying to replace the blank(_) with the letter typed in by the user, in the appropriate blank(_) spot where the letter should be (where is in the letters list). > > letters='abcdefg' > blanks='_ '*len(letters) > print('type letter from a to g') > print(blanks)

Re: Replace blanks with letter

2013-08-20 Thread Peter Otten
eschneide...@comcast.net wrote: > I'm trying to replace the blank(_) with the letter typed in by the user, > in the appropriate blank(_) spot where the letter should be (where is in > the letters list). > > letters='abcdefg' > blanks='_ '*len(letters) > print('type letter from a to g') > print(bl

Re: Importing variables non-deterministic?

2013-08-20 Thread wxjmfauth
Le mardi 20 août 2013 09:55:44 UTC+2, Antoon Pardon a écrit : > Op 20-08-13 09:31, wxjmfa...@gmail.com schreef: > > > Le mardi 20 août 2013 08:55:18 UTC+2, Antoon Pardon a écrit : > > >> > > >>> > > >> > > > > > >> > > >> > > >> > > >>> If you consider the implementation of sin and cos fu

Re: Is this PEP-able? (syntax for functools.partial-like functionality)

2013-08-20 Thread Fábio Santos
On 20 Aug 2013 10:14, "Ian Kelly" wrote: > > On Tue, Aug 20, 2013 at 2:28 AM, Fábio Santos wrote: > > I do realize that syntax in python is practically written in stone, but I > > have seen changes come by if they have good reasons. For example, > > keyword-only argument syntax was added. > > > >

Re: Where to suggest improvements in the official Python documentation?

2013-08-20 Thread Aseem Bansal
@Joel Goldstick > Joel Goldstick > > http://joelgoldstick.com My specific question was that the Python documentation's tutorial isn't clear when it comes to lambda forms. I just wanted something to be done so it becomes clear for future readers who are not familiar with functional paradigm. I

Re: Where to suggest improvements in the official Python documentation?

2013-08-20 Thread Joel Goldstick
On Tue, Aug 20, 2013 at 10:22 AM, Aseem Bansal wrote: > @Joel Goldstick >> Joel Goldstick >> >> http://joelgoldstick.com > > My specific question was that the Python documentation's tutorial isn't clear > when it comes to lambda forms. I just wanted something to be done so it > becomes clear for

monitor multicast traffic/IP

2013-08-20 Thread jasonguto
Folks: I am a Network Engineer, but have been trying to teach myself Python since Cisco will be leverage it on new high end models, yet I am very new to programming and Python; however, I have a need to have the ability to monitor traffic, more specificity multicast packets from a few sources.

RE: refresing the edited python function

2013-08-20 Thread Prasad, Ramit
alex23 > > On 19/08/2013 10:55 AM, Sudheer Joseph wrote: > > 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 funct

Re: refresing the edited python function

2013-08-20 Thread Jean-Michel Pichavant
- Original Message - > 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 s

Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Aseem Bansal
In PEP 5 it is 4. Add an an optional warning mode to the parser that will inform There are 2 `an`s here. How to suggest a correction for this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Joel Goldstick
On Tue, Aug 20, 2013 at 1:14 PM, Aseem Bansal wrote: > In PEP 5 it is > > 4. Add an an optional warning mode to the parser that will inform > > There are 2 `an`s here. How to suggest a correction for this? > -- > http://mail.python.org/mailman/listinfo/python-list You already asked this question.

Re: Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Aseem Bansal
@Joel Goldstick That is the documentation and this is about the PEP. I didn't realize that the same works for both. I'll do that. -- http://mail.python.org/mailman/listinfo/python-list

Re: monitor multicast traffic/IP

2013-08-20 Thread ElChino
wrote: I am a Network Engineer, but have been trying to teach myself Python since Cisco will be leverage it on new high end models, yet I am very new to programming and Python; however, I have a need to have the ability to monitor traffic, more specificity multicast packets from a few sources

Re: Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Terry Reedy
On 8/20/2013 1:14 PM, Aseem Bansal wrote: In PEP 5 it is 4. Add an an optional warning mode to the parser that will inform There are 2 `an`s here. Fixed. How to suggest a correction for this? You just did. If this list does not work, or for non-trivial suggestions, go to bugs.python.org

Re: Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Joel Goldstick
On Tue, Aug 20, 2013 at 4:05 PM, Terry Reedy wrote: > On 8/20/2013 1:14 PM, Aseem Bansal wrote: >> >> In PEP 5 it is >> >> 4. Add an an optional warning mode to the parser that will inform >> >> There are 2 `an`s here. > > > Fixed. > > >> How to suggest a correction for this? > > > You just did. I

Re: Replace blanks with letter

2013-08-20 Thread eschneider92
Is there also a way to have the code remember what I typed and not stop after the first letter the user types? For example, if I typed 'a' once, thus returning 'a__', and then typed in 'b', I want the code to return 'ab_' and so on. I wasn't clear about this part in my original post. Tha

Re: Replace blanks with letter

2013-08-20 Thread Dave Angel
eschneide...@comcast.net wrote: > Is there also a way to have the code remember what I typed and not stop after > the first letter the user types? For example, if I typed 'a' once, thus > returning 'a__', and then typed in 'b', I want the code to return > 'ab_' and so on. I wasn't clear

How to keep cookies when making http requests (Python 2.7)

2013-08-20 Thread Luca Cerone
Hi everybody, I am trying to write a simple Python script to solve the "riddle" at: http://quiz.gambitresearch.com/ The quiz is quite easy to solve, one needs to evaluate the expression between the curly brackets (say that the expression has value ) and go to the web page: http://quiz.gambitrese

Re: Found a grammar error in PEP 5. How to suggest correction?

2013-08-20 Thread Aseem Bansal
@ Terry Jan Reedy, @Joel Goldstick The problem with that documentation link is that it says the bugs in that documentation should be mailed at that e-mail address. But the PEPs are not the part of the documentation. I am saying that PEPs are not its part because when I downloaded the documentat

PEPs should be included with the documentation download

2013-08-20 Thread Aseem Bansal
Currently the documentation download includes a lot of things but PEPs are not its part. I wanted to suggest that PEPs should be included in the download. They are very much relevant to Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-20 Thread dieter
Luca Cerone writes: > ... Python has a module for cookie handling: "cookielib" ("cookiejar" in Python 3). "urllib2" has a standard way to integrate with this module. However, I do not know the details (check the documentation for the modules). I have used "cookielib" externally to "urllib2". It

Any Django users in Reims (France) ?

2013-08-20 Thread fabrice . romand
Bonjour, Je cherche des dev Django dans la région de Reims (France) pour organiser des rencontres sympas et échanger sur notre plateforme préférée voire développer ensemble nos excellentes idées. A votre écoute, Fabrice -- http://mail.python.org/mailman/listinfo/python-list

Basic Python Query

2013-08-20 Thread chandan kumar
Hi all, Please see the below code. class Test(threading.Thread):           def StartThread(self):        Lock = threading.Lock()         self.start()    class Test1(threading.Thread):     def __init__(self):         threading.Thread.__init__ ( self )         self.Lock = threading.Lock() self.st