Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Aseem Bansal
@Andrew Berg @Chris Angelico Is there a way to have both Python 2 and 3 installed on my computer till I can update the little codebase that I have built? Can I make different commands for invoking python 2 and Python 3? I am using Windows 7 and use Windows Powershell as an alternative to the li

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Chris Angelico
On Thu, Jul 18, 2013 at 5:05 PM, Aseem Bansal wrote: > @Andrew Berg > @Chris Angelico > > Is there a way to have both Python 2 and 3 installed on my computer till I > can update the little codebase that I have built? Can I make different > commands for invoking python 2 and Python 3? I am using

Re: tkinter redraw rates

2013-07-18 Thread Christian Gollwitzer
Am 18.07.13 06:38, schrieb fronag...@gmail.com: On Thursday, July 18, 2013 9:07:24 AM UTC+8, Dave Angel wrote: Nope - don't use that. Instead, post an event on the queue, and return to the mainloop() from whence we came. def test_thread(self): if self.loader_thread.isAliv

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Aseem Bansal
@ChrisA Thanks. That's great. That solved the whole thing easily. I'll install Python 3 and start updating today. About reading comp.lang.python can you suggest how to read it and reply? I have never read a newsgroup leave alone participated in one. I am used to forums like stackoverflow. Any

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Chris Angelico
On Thu, Jul 18, 2013 at 5:29 PM, Aseem Bansal wrote: > @ChrisA > > Thanks. That's great. That solved the whole thing easily. I'll install Python > 3 and start updating today. > > About reading comp.lang.python can you suggest how to read it and reply? I > have never read a newsgroup leave alone

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Aseem Bansal
@ChrisA I subscribed to it. How do I reply to a message that has already been posted before my subscription? -- http://mail.python.org/mailman/listinfo/python-list

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Chris Angelico
On Thu, Jul 18, 2013 at 5:48 PM, Aseem Bansal wrote: > @ChrisA > > I subscribed to it. How do I reply to a message that has already been posted > before my subscription? Not easily, far as I know. But you now have this reply, and you can always just post something with the right subject line and

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Aseem Bansal
I tried replying to your message by mail. I used the reply button and send it to "python-list@python.org"? Or do I need to use "pytho...@python.org" as you wrote in your post? -- http://mail.python.org/mailman/listinfo/python-list

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Chris Angelico
On Thu, Jul 18, 2013 at 6:10 PM, Aseem Bansal wrote: > I tried replying to your message by mail. I used the reply button and send it > to "python-list@python.org"? Or do I need to use "pytho...@python.org" as you > wrote in your post? You replied correctly. The ellipsis was presumably an anti-s

Re: Stack Overflow moderator “animuson”

2013-07-18 Thread Antoine Pitrou
Joshua Landau landau.ws> writes: > > > The same with Unicode. We hate French people, > > And for good damn reason too. They're ruining our language, á mon avis. We do! Regards Antoine. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Joshua Landau
On 18 July 2013 00:58, CTSB01 wrote: > Please let me know if this is unclear. I will certainly continue revising > until it makes sense to those reading. Can you summarize what your question is? Leave aside the details of the function, just explain what thing in particular you aren't able to do

Re: tkinter redraw rates

2013-07-18 Thread fronagzen
On Thursday, July 18, 2013 3:20:28 PM UTC+8, Christian Gollwitzer wrote: > Am 18.07.13 06:38, schrieb fronag...@gmail.com: > > On Thursday, July 18, 2013 9:07:24 AM UTC+8, Dave Angel wrote: > >> Nope - don't use that. Instead, post an event on the queue, and return > >> to the mainloop() from when

Re: Why on CentOS, python consumes too much memory ?

2013-07-18 Thread William Bai
I found that it was caused by not by python but by /usr/lib/locale/locale-archive, the same problem as that described in http://illiterat.livejournal.com/4615.html. William 在 2013年7月18日星期四UTC+8下午12时45分01秒,William Bai写道: > Hi: > > > >Previously, we found that our python scripts consume too

Re: Why on CentOS, python consumes too much memory ?

2013-07-18 Thread Antoine Pitrou
gmail.com> writes: > > Hi: > >Previously, we found that our python scripts consume too much memory. So I use python's resource module to > restrict RLIMIT_AS's soft limit and hard limit to 200M. > On my RHEL5.3(i386)+python2.6.2, it works OK. But on CentOS 6.2(x86_64)+python2.6.6, it repor

Re: Homework help requested (not what you think!)

2013-07-18 Thread Beth McNany
On Tue, Jul 16, 2013 at 6:43 PM, John Ladasky wrote: > Hi folks, > > No, I'm not asking for YOU to help ME with a Python homework assignment! > > Previously, I mentioned that I was starting to teach my son Python. > > https://groups.google.com/d/msg/comp.lang.python/I7spp6iC3tw/8lxUXfrL-9gJ > > He

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread aseem bansal
Ok I'll mail by e-mail now. Hope that it reaches the place correctly.-- http://mail.python.org/mailman/listinfo/python-list

Re: Homework help requested (not what you think!)

2013-07-18 Thread Albert van der Horst
In article , Chris Angelico wrote: >On Wed, Jul 17, 2013 at 8:43 AM, John Ladasky > wrote: >> I think that they're disappointed when I show them how much they have to >understand just to write a program that plays Tic Tac Toe. > > >The disillusionment of every novice programmer, I think. It start

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Grant Edwards
On 2013-07-18, Chris Angelico wrote: > On Thu, Jul 18, 2013 at 4:11 PM, Aseem Bansal wrote: >> @vikash agrawal >> >> About GUI I discussed it at >> https://groups.google.com/forum/#!starred/comp.lang.python/M-Dy2pyWRfM and I >> am thinking about using PySide 1.2 for clients of chat system. I th

Re: Homework help requested (not what you think!)

2013-07-18 Thread Gene Heskett
On Thursday 18 July 2013 09:04:32 Albert van der Horst did opine: > In article , > > Chris Angelico wrote: > >On Wed, Jul 17, 2013 at 8:43 AM, John Ladasky > > > > wrote: > >> I think that they're disappointed when I show them how much they have > >> to > > > >understand just to write a program

Re: Why on CentOS, python consumes too much memory ?

2013-07-18 Thread Michael Torrie
On 07/18/2013 03:13 AM, William Bai wrote: > I found that it was caused by not by python but by > /usr/lib/locale/locale-archive, the same problem as that described > in http://illiterat.livejournal.com/4615.html. Too funny. So in other words there isn't a problem at all. What you thought was RA

RE: Homework help requested (not what you think!)

2013-07-18 Thread Joseph Clark
Not to open Pandora's box or anything, but are you aware of the Roguelike community (subculture?) (cult?) of game development? Rogue was an old "text-based" role playing game for Unix, "text-based" in the sense that it used the console as a 2D map and ASCII characters as graphics. There has be

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Terry Reedy
On 7/18/2013 3:29 AM, Aseem Bansal wrote: About reading comp.lang.python can you suggest how to read it and reply? To read this list as a newsgroup use news.gmane.org. The difference between the mailing list interface and newsgroup interface is that the latter automatically segregates messag

Jabber Bot

2013-07-18 Thread Matt
Anyone have any luck with creating Jabber Bots? Everyone I have found so far for python 3.3 has been outdated, or the required modules are outdated. -- http://mail.python.org/mailman/listinfo/python-list

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Serhiy Storchaka
18.07.13 20:04, Terry Reedy написав(ла): On 7/18/2013 3:29 AM, Aseem Bansal wrote: About reading comp.lang.python can you suggest how to read it and reply? To read this list as a newsgroup use news.gmane.org. The difference between the mailing list interface and newsgroup interface is that the

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Grant Edwards
On 2013-07-18, Serhiy Storchaka wrote: > 18.07.13 20:04, Terry Reedy ??(): >> On 7/18/2013 3:29 AM, Aseem Bansal wrote: >>> About reading comp.lang.python can you suggest how to read it and >>> reply? >> >> To read this list as a newsgroup use news.gmane.org. The difference >> betw

Re: Python HTTP POST

2013-07-18 Thread Sivaram Neelakantan
On Thu, Jul 18 2013,Joel Goldstick wrote: [snipped 28 lines] > > Many people find urllib and urllib2 to be confusing. There is a module > called requests which makes this stuff a lot easier. ymmv > > http://docs.python-requests.org/en/latest/ Yes, please use this instead of the url* ones, eas

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Owen Marshall
On 2013-07-18, Grant Edwards wrote: > On 2013-07-18, Serhiy Storchaka wrote: >> 18.07.13 20:04, Terry Reedy ??(): >>> On 7/18/2013 3:29 AM, Aseem Bansal wrote: About reading comp.lang.python can you suggest how to read it and reply? >>> >>> To read this list as a newsgro

Re: RE Module Performance

2013-07-18 Thread 88888 Dihedral
Devyn Collier Johnson於 2013年7月16日星期二UTC+8下午6時30分33秒寫道: > Am 07/12/2013 07:16 PM, schrieb MRAB: > > > On 12/07/2013 23:16, Tim Delaney wrote: > > >> On 13 July 2013 03:58, Devyn Collier Johnson > >> > wrote: > > >> > > >> > > >> Thanks for the thorough resp

Re: Jabber Bot

2013-07-18 Thread Fábio Santos
On 18 Jul 2013 18:52, "Matt" wrote: > > Anyone have any luck with creating Jabber Bots? > > Everyone I have found so far for python 3.3 has been outdated, or the required modules are outdated. You can find some modules here. http://stackoverflow.com/questions/1901828/best-python-xmpp-jabber-clie

[ANN] Elasticluster 1.0.1, a tool for cluster provisioning in the cloud

2013-07-18 Thread riccardo . murri
The Grid Computing Competence Center (GC3) is pleased to announce release 1.0.1 of Elasticluster. Elasticluster is a Python tool to automate the creation, configuration and management of clusters of virtual machines hosted on a cloud. It can provision clusters on Amazon's Elastic Compute Cloud EC

Support for Mixed Mode Python/C++ debugging in Visual Studio

2013-07-18 Thread python tools
Hi folks, 1st time poster – apologies if I’m breaking any protocols… We were told that this would be a good alias to announce this on: a few Python & OSS enthusiasts and Microsoft have created a plug-in for Visual Studio that enables Python <-> C/C++ debugging. You may find this useful for

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 5:12:08 AM UTC-4, Joshua Landau wrote: > On 18 July 2013 00:58, CTSB01 wrote: > > > Please let me know if this is unclear. I will certainly continue revising > > until it makes sense to those reading. > > > > Can you summarize what your question is? Leave aside the

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Gary Herron
On 07/18/2013 02:57 PM, CTSB01 wrote: On Thursday, July 18, 2013 5:12:08 AM UTC-4, Joshua Landau wrote: On 18 July 2013 00:58, CTSB01 wrote: Please let me know if this is unclear. I will certainly continue revising until it makes sense to those reading. Can you summarize what your questi

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 6:12:52 PM UTC-4, Gary Herron wrote: > On 07/18/2013 02:57 PM, CTSB01 wrote: > > > On Thursday, July 18, 2013 5:12:08 AM UTC-4, Joshua Landau wrote: > > >> On 18 July 2013 00:58, CTSB01 wrote: > > >> > > >>> Please let me know if this is unclear. I will certainly co

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Michael Torrie
On 07/17/2013 11:39 PM, Eric S. Johansson wrote: > Not discourage you but this is a "been there, done that" kind of project. > You could learn more from reading somebody else is code. What hasn't been > done, and this would be very cool, is a chat program that works > peer-to-peer with no cen

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Michael Torrie
On 07/18/2013 12:19 PM, Owen Marshall wrote: > Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always > used it to search mailing lists. If the list dumped to usenet (much like > c.l.python) I'd post through sunsite.dk, which is a very nice usenet > provider. But that still meant s

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Ian Kelly
On Jul 18, 2013 4:23 PM, "CTSB01" wrote: > > File "", line 2 > ... rtn = [] > ^ The "..." is the continuation prompt from the interactive interpreter, not part of the code. Don't paste it into Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 6:49:03 PM UTC-4, Ian wrote: > On Jul 18, 2013 4:23 PM, "CTSB01" wrote: > > > > > >   File "", line 2 > > >     ...   rtn = [] > > >     ^ > > The "..." is the continuation prompt from the interactive interpreter, not > part of the code. Don't paste it into Python.

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Ian Kelly
On Thu, Jul 18, 2013 at 5:04 PM, CTSB01 wrote: > Thanks Ian. That worked regarding that issue. Now I have an 'invalid > syntax' issue unfortunately. > >>> def phi_m(x,m): > rtn = [] > for n2 in range(0, len(x)*m - 2): > n = n2 / m > r = n2 - n * m > rtn.appen

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Ian Kelly
On Thu, Jul 18, 2013 at 5:42 PM, Ian Kelly wrote: > On Thu, Jul 18, 2013 at 5:04 PM, CTSB01 wrote: >> Thanks Ian. That worked regarding that issue. Now I have an 'invalid >> syntax' issue unfortunately. >> def phi_m(x,m): >> rtn = [] >> for n2 in range(0, len(x)*m - 2): >>

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Rhodri James
On Fri, 19 Jul 2013 00:04:33 +0100, CTSB01 wrote: On Thursday, July 18, 2013 6:49:03 PM UTC-4, Ian wrote: On Jul 18, 2013 4:23 PM, "CTSB01" wrote: > > File "", line 2 > ... rtn = [] > ^ The "..." is the continuation prompt from the interactive interpreter, not part of the

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Dave Angel
On 07/18/2013 07:04 PM, CTSB01 wrote: On Thursday, July 18, 2013 6:49:03 PM UTC-4, Ian wrote: On Jul 18, 2013 4:23 PM, "CTSB01" wrote: File "", line 2 ... rtn = [] ^ The "..." is the continuation prompt from the interactive interpreter, not part of the code. Don't

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 7:45:49 PM UTC-4, Ian wrote: > On Thu, Jul 18, 2013 at 5:42 PM, Ian Kelly wrote: > > > On Thu, Jul 18, 2013 at 5:04 PM, CTSB01 wrote: > > >> Thanks Ian. That worked regarding that issue. Now I have an 'invalid > >> syntax' issue unfortunately. > > >> > > def

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
> It's only obvious if you're using Python 3.x. You have forgotten the > > parentheses in the call to the print() function. > > > On the other hand, if this is Python 2.x, I have no idea. Next time, > > please paste the actual error, not paraphrased. The error message > > includes a tra

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Owen Marshall
On 2013-07-18, Michael Torrie wrote: > On 07/18/2013 12:19 PM, Owen Marshall wrote: >> Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always >> used it to search mailing lists. If the list dumped to usenet (much like >> c.l.python) I'd post through sunsite.dk, which is a very nic

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Dave Angel
On 07/18/2013 08:35 PM, CTSB01 wrote: > It's only obvious if you're using Python 3.x. You have forgotten the parentheses in the call to the print() function. On the other hand, if this is Python 2.x, I have no idea. Next time, please paste the actual error, not paraphrased. The error me

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
Thanks for the alternative links, I'll use gmane.org as an access point next time. > > Don't paraphrase. Just copy/paste it into your email message. And I'm > > assuming you know to run things from the terminal window, and not from > > IDLE or something else that messes up the error messag

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Dave Angel
On 07/18/2013 10:16 PM, CTSB01 wrote: Does something like def phi_m(x, m): rtn = [] for n2 in range(0, len(x) * m - 2): n = n2 / m r = n2 - n * m rtn.append(m * x[n] + r * (x[n + 1] - x[n])) print ('n2 =', n2, ': n ='

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Fábio Santos
On 19 Jul 2013 03:24, "CTSB01" wrote: > > Thanks for the alternative links, I'll use gmane.org as an access point next time. > > > > > Don't paraphrase. Just copy/paste it into your email message. And I'm > > > > assuming you know to run things from the terminal window, and not from > > > > IDLE

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 10:48:23 PM UTC-4, Fábio Santos wrote: > On 19 Jul 2013 03:24, "CTSB01" wrote: > > > > > > Thanks for the alternative links, I'll use gmane.org as an access point > > next time. > > > > > > > > > > > Don't paraphrase.  Just copy/paste it into your email message.  A

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread CTSB01
On Thursday, July 18, 2013 10:43:11 PM UTC-4, Dave Angel wrote: > On 07/18/2013 10:16 PM, CTSB01 wrote: > > Does something like > > > > > > def phi_m(x, m): > > >rtn = [] > > >for n2 in range(0, len(x) * m - 2): > > > n = n2 / m > > > r = n2

ANN: rom 0.16 - Redis object mapper for Python

2013-07-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