Re: This formating is really tricky

2014-08-26 Thread Larry Hudson
On 08/25/2014 08:14 PM, Seymore4Head wrote: [snip] There is lots of help built in. Trying to read all the options makes me realize the stuff I am working on is just the tip of the iceberg. When checking the help function, it is clear I will never get to about 90% of the features. Thanks That

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 4:37 PM, Steven D'Aprano wrote: > On Wed, 27 Aug 2014 08:29:20 +0300, Marko Rauhamaa wrote: > >> Try flushing after each print. > > Doesn't help. It does, but insufficiently. If slurp.py is run under Py3, it works fine; or take Naoki's suggestion (although without the pare

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Steven D'Aprano
On Wed, 27 Aug 2014 08:29:20 +0300, Marko Rauhamaa wrote: > Steven D'Aprano : > >> When I pipe one to the other, I expect each line to be printed as they >> arrive, but instead they all queue up and happen at once: > > Try flushing after each print. Doesn't help. Here is an update that may mak

Re: Python vs C++

2014-08-26 Thread Ian Kelly
On Wed, Aug 27, 2014 at 12:23 AM, Ian Kelly wrote: > On Tue, Aug 26, 2014 at 11:43 PM, alex23 wrote: >> On 26/08/2014 6:12 PM, Amirouche Boubekki wrote: >>> >>> 2014-08-26 6:02 GMT+02:00 Ian Kelly >> >: >>> >>> It would be just as easy or easier in Python, or one

Re: Python vs C++

2014-08-26 Thread Ian Kelly
On Tue, Aug 26, 2014 at 11:43 PM, alex23 wrote: > On 26/08/2014 6:12 PM, Amirouche Boubekki wrote: >> >> 2014-08-26 6:02 GMT+02:00 Ian Kelly > >: >> >> It would be just as easy or easier in Python, or one could save a >> lot more effort by just using RPG Maker

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Naoki INADA
I recommend Python 3. On Python 2, iterating lines without buffering is slow, tricky and ugly. for line in iter(sys.stdin.readline(), ''):     print line — Sent from Mailbox On Wed, Aug 27, 2014 at 3:03 PM, Chris Angelico wrote: > On Wed, Aug 27, 2014 at 3:19 PM, Steven D'Aprano wrote: >>

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 3:19 PM, Steven D'Aprano wrote: > When I pipe one to the other, I expect each line to be printed as they > arrive, but instead they all queue up and happen at once: You're seeing two different problems here. One is the flushing of stdout in out.py, as Marko mentioned, but

Re: Python vs C++

2014-08-26 Thread alex23
On 26/08/2014 6:12 PM, Amirouche Boubekki wrote: 2014-08-26 6:02 GMT+02:00 Ian Kelly mailto:ian.g.ke...@gmail.com>>: It would be just as easy or easier in Python, or one could save a lot more effort by just using RPG Maker like every other indie RPG developer seems to do. I don't thi

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Marko Rauhamaa
Marko Rauhamaa : > Try flushing after each print. http://stackoverflow.com/questions/230751/how-to-flush-ou tput-of-python-print> Since Python 3.3, there is no need to use sys.stdout.flush(): print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False) Marko -- https://mail.

Re: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Marko Rauhamaa
Steven D'Aprano : > When I pipe one to the other, I expect each line to be printed as they > arrive, but instead they all queue up and happen at once: Try flushing after each print. When sys.stdout is a pipe, flushing happens only when the internal buffer fills up. Marko -- https://mail.pytho

Reading from sys.stdin reads the whole file in

2014-08-26 Thread Steven D'Aprano
I'm trying to read from stdin. Here I simulate a process that slowly outputs data to stdout: steve@runes:~$ cat out.py import time print "Hello..." time.sleep(10) print "World!" time.sleep(10) print "Goodbye!" and another process that reads from stdin: steve@runes:~$ cat slurp.py import sys

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 1:13 PM, Rustom Mody wrote: > On Wednesday, August 27, 2014 8:06:24 AM UTC+5:30, Chris Angelico wrote: >> On Wed, Aug 27, 2014 at 10:58 AM, Twirlip2 wrote: >> > So, please give me a few weeks to improve my code, before posting it. (I >> > recently came across somewhere on

Re: help! about pypcap.dispatch

2014-08-26 Thread Simmen
在 2014年8月26日星期二UTC+8下午10时45分15秒,Chris Angelico写道: > Where did pcap.pyx come from? What version is it? Is it something that > > was written for an ancient version of Python? It might be raising a > > string exception. > > > > ChrisA thank you for your reply! sorry for the terrible question

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Terry Reedy
On 8/26/2014 9:11 PM, Twirlip2 wrote: On Wednesday, 27 August 2014 01:51:20 UTC+1, Terry Reedy wrote: On 8/26/2014 7:29 PM, Twirlip2 wrote: On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: Another lesson is that google grops is crap [...] You read my mind! (See parenthetica

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Rustom Mody
On Wednesday, August 27, 2014 8:06:24 AM UTC+5:30, Chris Angelico wrote: > On Wed, Aug 27, 2014 at 10:58 AM, Twirlip2 wrote: > > So, please give me a few weeks to improve my code, before posting it. (I > > recently came across somewhere on the Web where you can post code, but I > > forget where.)

Re: help! about pypcap.dispatch

2014-08-26 Thread Simmen
在 2014年8月26日星期二UTC+8下午10时45分15秒,Chris Angelico写道: > Where did pcap.pyx come from? What version is it? Is it something that > > was written for an ancient version of Python? It might be raising a > > string exception. > > > > ChrisA thank you for your reply! sorry for the terrible question,

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 10:58 AM, Twirlip2 wrote: > So, please give me a few weeks to improve my code, before posting it. (I > recently came across somewhere on the Web where you can post code, but I > forget where.) If you're looking for hosting, I recommend one of the source control hosting sit

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:51:20 UTC+1, Terry Reedy wrote: > On 8/26/2014 7:29 PM, Twirlip2 wrote: > > On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: > >> Another lesson is that google grops is crap [...] > > You read my mind! (See parenthetical note at end of my most rece

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:58:16 UTC+1, Twirlip2 wrote: > It's a mess, but > it does at least keep local dependencies in a configuration file. (I > had no trouble getting it to run on two different PCs, under both XP > and Win98SE - and, if I recall correctly, also Vista, but I never use > t

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:21:32 UTC+1, Chris Angelico wrote: > On Wed, Aug 27, 2014 at 10:08 AM, Twirlip2 wrote: > > On Wednesday, 27 August 2014 01:04:18 UTC+1, Steven D'Aprano wrote: > >> Twirlip2 wrote: > >> > > >> > Since I require Python in order to listen to my beloved radio > >> > pr

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Terry Reedy
On 8/26/2014 7:29 PM, Twirlip2 wrote: On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: Another lesson is that google grops is crap [...] You read my mind! (See parenthetical note at end of my most recent post.) You can access python-list (and a few thousand other tech list

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 10:08 AM, Twirlip2 wrote: > On Wednesday, 27 August 2014 01:04:18 UTC+1, Steven D'Aprano wrote: > >> Twirlip2 wrote: >> >> > Since I require Python in order to listen to my beloved radio programmes >> > reliably (don't get me started on the subject of the thrice-accursed B

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 10:01 AM, Steven D'Aprano wrote: > Gregory Ewing wrote: > >> Although shadowing builtin module names is never a good >> idea, either! > > /s/builtin/standard library/ > > Quick! Name all the standard library modules, stat! > > In Python 3.3, there are something like 410 mod

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:04:18 UTC+1, Steven D'Aprano wrote: > Twirlip2 wrote: > > > Since I require Python in order to listen to my beloved radio programmes > > reliably (don't get me started on the subject of the thrice-accursed BBC > > website!), I therefore have IDLE running all the t

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:01:22 UTC+1, Steven D'Aprano wrote: > Gregory Ewing wrote: > > > Although shadowing builtin module names is never a good > > idea, either! > > /s/builtin/standard library/ > > Quick! Name all the standard library modules, stat! > > In Python 3.3, there are some

Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Steven D'Aprano
Twirlip2 wrote: > Since I require Python in order to listen to my beloved radio programmes > reliably (don't get me started on the subject of the thrice-accursed BBC > website!), I therefore have IDLE running all the time, very probably > sometimes for weeks on end. Well, don't keep us in suspend

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Steven D'Aprano
Gregory Ewing wrote: > Although shadowing builtin module names is never a good > idea, either! /s/builtin/standard library/ Quick! Name all the standard library modules, stat! In Python 3.3, there are something like 410 modules in the standard library. There's a reasonable chance that you've sh

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 9:25 AM, Twirlip2 wrote: > I do really mean "continuously". I'm hopelessly addicted to listening to > repeats of classic comedy programmes on Radio 4 Extra; I often listen at > bedtime, and first thing in the morning; and I keep my computer running 24/7 > (shutting it do

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: > Another lesson is that google grops is crap [...] You read my mind! (See parenthetical note at end of my most recent post.) I'm a recovered Usenet addict, of long standing. My excuse is that it was a near-emergency - I'd been

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 00:07:03 UTC+1, Chris Angelico wrote: > On Wed, Aug 27, 2014 at 4:01 AM, Twirlip2 wrote: > > > I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March > > this year, and since May I've been running IDLE almost continuously, using > > it scores of t

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Mark Lawrence
On 26/08/2014 20:44, Twirlip2 wrote: On Tuesday, 26 August 2014 20:20:22 UTC+1, Twirlip2 wrote: Mercifully, it looks like Python is not broken, but I have done something Silly! [...] What I don't yet understand is why Python is trying to execute anything at all. But I'm sure there's a simp

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 4:01 AM, Twirlip2 wrote: > I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March this > year, and since May I've been running IDLE almost continuously, using it > scores of times every day, > Just to clarify: When you say "continuously", do you mean tha

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 23:03:20 UTC+1, Gregory Ewing wrote: > Twirlip2 wrote: > > > There is probably some lesson I should learn from this. > > > > The lesson is probably that you shouldn't put the code > > you're developing somewhere that's on the default import path. Most of what I wa

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Gregory Ewing
Twirlip2 wrote: There is probably some lesson I should learn from this. The lesson is probably that you shouldn't put the code you're developing somewhere that's on the default import path. Although shadowing builtin module names is never a good idea, either! -- Greg -- https://mail.python.or

Re: PyPI password rules

2014-08-26 Thread Gregory Ewing
Chris Angelico wrote: And you wouldn't be generating passwords like "videocard begat browser fetches", which just came up as I was playing around now. Arg! Video card makers are putting spyware in them now?! -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: This formating is really tricky

2014-08-26 Thread Gregory Ewing
Mark Lawrence wrote: from __past__ import print_statement (untested) I don't think the PEP for the __past__ module has been accepted yet, so you'd have to precede that with from __future__ import __past__ -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Mark Lawrence
On 26/08/2014 20:58, Twirlip2 wrote: On Tuesday, 26 August 2014 20:44:35 UTC+1, Twirlip2 wrote: Meanwhile, let me try renaming my module, and see what happens ... Whoopee, IDLE is back! I need to sit down for a while, and just relax. Oh look, there's a nice comfy chair! Surely nothing un

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 20:44:35 UTC+1, Twirlip2 wrote: > Meanwhile, let me try renaming my module, and see what happens ... Whoopee, IDLE is back! I need to sit down for a while, and just relax. Oh look, there's a nice comfy chair! Surely nothing unexpected can happen now. -- https://ma

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Zachary Ware
On Tue, Aug 26, 2014 at 2:26 PM, Twirlip2 wrote: > On Tuesday, 26 August 2014 19:46:55 UTC+1, Terry Reedy wrote: >> On 8/26/2014 2:01 PM, Twirlip2 wrote: >> >> > [...] > > Here are the aforementioned error messages (sorry, I didn't realise I could > simply "select all" and "copy" text from a com

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 20:20:22 UTC+1, Twirlip2 wrote: > Mercifully, it looks like Python is not broken, but I have done something > Silly! > > [...] > > What I don't yet understand is why Python is trying to execute anything at > all. > > > > But I'm sure there's a simple explanation,

Re: This formating is really tricky

2014-08-26 Thread Seymore4Head
On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy wrote: >On 8/25/2014 4:14 PM, Seymore4Head wrote: >> import random >> sets=3 >> for x in range(0, sets): >> pb2=random.choice([1-53]) > >You want random.randint(1, 53) >... >> alist = sorted([pb1, pb2, pb3, pb4, pb5]) >> print ("Your

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 19:46:55 UTC+1, Terry Reedy wrote: > On 8/26/2014 2:01 PM, Twirlip2 wrote: > > > [...] Here are the aforementioned error messages (sorry, I didn't realise I could simply "select all" and "copy" text from a command window) - I hope the formatting doesn't get messed up

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 19:46:55 UTC+1, Terry Reedy wrote: > On 8/26/2014 2:01 PM, Twirlip2 wrote: > > > I've been using IDLE with Python 3.4.0 on Windows XP (SP3), > > ... > > > > Does all non-Python stuff seem to be working? Yes. > > For a few days, I'd been frequently running a secon

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Grant Edwards
On 2014-08-26, Twirlip2 wrote: Careful. If you hit it with a big stick it might fall on your head and give you a concussion making it hard to remember to not mention the war. -- Grant Edwards grant.b.edwardsYow! I hope the at

Re: This formating is really tricky

2014-08-26 Thread Gene Heskett
On Tuesday 26 August 2014 12:13:37 Chris Angelico did opine And Gene did reply: > On Wed, Aug 27, 2014 at 2:09 AM, Mark Lawrence wrote: > > On 26/08/2014 12:24, MRAB wrote: > >> On 2014-08-26 06:57, Mark Lawrence wrote: > >>> On 26/08/2014 02:10, Joel Goldstick wrote: > you should try python

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Terry Reedy
On 8/26/2014 2:01 PM, Twirlip2 wrote: I've been using IDLE with Python 3.4.0 on Windows XP (SP3), ... Does all non-Python stuff seem to be working? For a few days, I'd been frequently running a second instance of IDLE, to test a new version of the same script. Today, having closed this insta

Re: Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Jon Ribbens
On 2014-08-26, Terry Reedy wrote: > On 8/26/2014 12:03 PM, Jon Ribbens wrote: >> Flask suggests the following file layout: >> >> runflaskapp.py >> flaskapp/ >> __init__.py >> >> runflaskapp.py contains: >> >> from flaskapp import app >> app.run(debug=True) >> >> flaska

IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March this year, and since May I've been running IDLE almost continuously, using it scores of times every day, mostly to run the same script (for running a media player on BBC WMA streams, to bypass the dreaded iPlayer). No probl

Re: Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Terry Reedy
On 8/26/2014 12:03 PM, Jon Ribbens wrote: Flask suggests the following file layout: runflaskapp.py flaskapp/ __init__.py runflaskapp.py contains: from flaskapp import app app.run(debug=True) flaskapp/__init__.py contains: from flask import Flask app = F

Re: Small World Network model random data generation

2014-08-26 Thread Terry Reedy
On 8/26/2014 6:16 AM, lavanya addepalli wrote: How can i generate a random data that is identical to my realworld data I presume you mean same statistical properties. https://en.wikipedia.org/wiki/Small-world_network explains the difference between random networks and many real sw networks. i

Re: This formating is really tricky

2014-08-26 Thread Mark Lawrence
On 26/08/2014 17:33, Chris Angelico wrote: On Wed, Aug 27, 2014 at 2:28 AM, Peter Otten <__pete...@web.de> wrote: No, "python-flight-attendant" ;) http://xkcd.com/353/ Would be nice if that could be made Python 3 compatible. ChrisA Easy. from __past__ import print_statement (untested) -

Re: Switching from nose to unittest2 - how to continue after an error?

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 11:58 AM, Terry Reedy wrote: > If you want to be understood, give a snippet of code, what happens now, and > what you want to happen. Thanks, but not really necessary. I have retreated into nose-land. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Small World Network model random data generation

2014-08-26 Thread Terry Reedy
On 8/26/2014 6:16 AM, lavanya addepalli wrote: How can i generate a random data that is identical to my realworld data i am supposed to refer the attached paper For binary data, give links rather than attachments. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Switching from nose to unittest2 - how to continue after an error?

2014-08-26 Thread Terry Reedy
On 8/26/2014 4:55 AM, Skip Montanaro wrote: On Mon, Aug 25, 2014 at 4:47 PM, Terry Reedy wrote: I know of two ways to collect multiple failures within a test function: Thanks, but I mean multiple test failures. I fully expect a specific test to exit when it hits an assertion failure. I obvi

Re: This formating is really tricky

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 2:28 AM, Peter Otten <__pete...@web.de> wrote: > No, "python-flight-attendant" ;) > > http://xkcd.com/353/ Would be nice if that could be made Python 3 compatible. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: This formating is really tricky

2014-08-26 Thread Peter Otten
MRAB wrote: > On 2014-08-26 06:57, Mark Lawrence wrote: >> On 26/08/2014 02:10, Joel Goldstick wrote: >>> you should try python-tudor mailing list >>> >> >> I'd try python-stewart and please don't top post, you've been around >> long enough and ought to know better :) >> > Should that be "python-s

Re: send keys in windows

2014-08-26 Thread Mark Lawrence
On 26/08/2014 15:14, Filippo Dal Bosco - wrote: I am trying to learn how send keys and mouse click to a background process in windows Where can I find complete documentation and examples ? With Google I looked for books and internet link but I didn't find much. thank Start here http://sta

Re: This formating is really tricky

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 2:09 AM, Mark Lawrence wrote: > On 26/08/2014 12:24, MRAB wrote: >> >> On 2014-08-26 06:57, Mark Lawrence wrote: >>> >>> On 26/08/2014 02:10, Joel Goldstick wrote: you should try python-tudor mailing list >>> >>> I'd try python-stewart and please don't top po

Re: This formating is really tricky

2014-08-26 Thread Mark Lawrence
On 26/08/2014 12:24, MRAB wrote: On 2014-08-26 06:57, Mark Lawrence wrote: On 26/08/2014 02:10, Joel Goldstick wrote: you should try python-tudor mailing list I'd try python-stewart and please don't top post, you've been around long enough and ought to know better :) Should that be "python

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 2:05 AM, Skip Montanaro wrote: > On Tue, Aug 26, 2014 at 10:52 AM, Chris Angelico wrote: >> Most of what Polly hears is fairly general chatter. There are a few >> jargon terms like "metamagic" that are D&D-specific, but apart from >> that, it's straight English. > > I gues

Re: PyPI password rules

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 10:52 AM, Chris Angelico wrote: > Most of what Polly hears is fairly general chatter. There are a few > jargon terms like "metamagic" that are D&D-specific, but apart from > that, it's straight English. I guess I could write a little program that listens to my incoming ema

Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Jon Ribbens
Flask suggests the following file layout: runflaskapp.py flaskapp/ __init__.py runflaskapp.py contains: from flaskapp import app app.run(debug=True) flaskapp/__init__.py contains: from flask import Flask app = Flask(__name__) Running this with 'python3 runflask

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 1:48 AM, Skip Montanaro wrote: > On Tue, Aug 26, 2014 at 9:02 AM, Chris Angelico wrote: >> On my Dungeons & Dragons server, in the common room, I have a parrot >> named Polly. She listens to everything people say,... > > Ah, okay. Nice approach. Not a D&D player, so I'll s

Re: PyPI password rules

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 9:02 AM, Chris Angelico wrote: > On my Dungeons & Dragons server, in the common room, I have a parrot > named Polly. She listens to everything people say,... Ah, okay. Nice approach. Not a D&D player, so I'll stick with my common words for now, until and unless I come up w

Re: help! about pypcap.dispatch

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 8:44 PM, wrote: > Hi, > >I'm using Python 2.7.6 in Centos 6.5. > >I have defined >"p = pcap.pcap(timeout_ms=1000) > def function(timestamp,pkt,*args): >" >and try to run "p.dispatch(-1,function)" > >and I got this: >p.dispatch(-1,function) >

send keys in windows

2014-08-26 Thread Filippo Dal Bosco -
I am trying to learn how send keys and mouse click to a background process in windows Where can I find complete documentation and examples ? With Google I looked for books and internet link but I didn't find much. thank -- Filippo -- https://mail.python.org/mailman/listinfo/python-list

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 11:28 PM, Skip Montanaro wrote: > On Tue, Aug 26, 2014 at 1:16 AM, Chris Angelico wrote: >> Currently, her full dictionary is 12759 words > > Chris, > > How did you come up with that list? I took the New Academic Word > List[1] + the New General Service List[2] (sans dupli

Re: Small World Network model random data generation

2014-08-26 Thread William Ray Wing
On Aug 26, 2014, at 9:23 AM, Dennis Lee Bieber wrote: > On Tue, 26 Aug 2014 12:16:33 +0200, lavanya addepalli > declaimed the following: > >> How can i generate a random data that is identical to my realworld data >> > > By definition, "random data" will be unlikely to ever be "identica

Re: PyPI password rules

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 1:16 AM, Chris Angelico wrote: > Currently, her full dictionary is 12759 words Chris, How did you come up with that list? I took the New Academic Word List[1] + the New General Service List[2] (sans duplicates) and wound up with 1646 words of length four through six. Did

Re: This formating is really tricky

2014-08-26 Thread Joel Goldstick
>>> you should try python-tudor mailing list >>> >> >> I'd try python-stewart and please don't top post, you've been around >> long enough and ought to know better :) >> > Should that be "python-stuart"? > -- > https://mail.python.org/mailman/listinfo/python-list Glad I could add to the discussion

Re: This formating is really tricky

2014-08-26 Thread MRAB
On 2014-08-26 06:57, Mark Lawrence wrote: On 26/08/2014 02:10, Joel Goldstick wrote: you should try python-tudor mailing list I'd try python-stewart and please don't top post, you've been around long enough and ought to know better :) Should that be "python-stuart"? -- https://mail.python.o

Re: error building lxml.etree

2014-08-26 Thread Robin Becker
On 22/08/2014 18:53, Stefan Behnel wrote: Robin Becker schrieb am 22.08.2014 um 17:50: I'm trying to build a bunch of extensions in a 2.7 virtual environment on a . Has anyone else seen this error? It's entirely possible that it might be I don't have enough memory or something Y

help! about pypcap.dispatch

2014-08-26 Thread doit4um
Hi, I'm using Python 2.7.6 in Centos 6.5. I have defined "p = pcap.pcap(timeout_ms=1000) def function(timestamp,pkt,*args): " and try to run "p.dispatch(-1,function)" and I got this: p.dispatch(-1,function) File "pcap.pyx", line 296, in pcap.pcap.dispatch (pcap

Re: This formating is really tricky

2014-08-26 Thread alister
On Tue, 26 Aug 2014 12:32:14 +0300, Marko Rauhamaa wrote: > alister : > >> Oh Wow I didn't know Python was that old - it even pre-dates >> Electricity :-) > > Electricity arose already before the Great Inflation. > > > Marko but it was not in controlled use by mankind at that time -- Whip

Re: This formating is really tricky

2014-08-26 Thread Marko Rauhamaa
alister : > Oh Wow I didn't know Python was that old - it even pre-dates > Electricity :-) Electricity arose already before the Great Inflation. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: This formating is really tricky

2014-08-26 Thread alister
On Mon, 25 Aug 2014 21:10:47 -0400, Joel Goldstick wrote: > you should try python-tudor mailing list > Oh Wow I didn't know Python was that old - it even pre-dates Electricity :-) -- Hand, n.: A singular instrument worn at the end of a human arm and commonly thrust into somebod

Re: Switching from nose to unittest2 - how to continue after an error?

2014-08-26 Thread Skip Montanaro
On Mon, Aug 25, 2014 at 4:47 PM, Terry Reedy wrote: > I know of two ways to collect multiple failures within a test function: Thanks, but I mean multiple test failures. I fully expect a specific test to exit when it hits an assertion failure. I suspect my problem is due to lack of support for th

Re: Python vs C++

2014-08-26 Thread Amirouche Boubekki
2014-08-26 6:02 GMT+02:00 Ian Kelly : > On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki < > amirouche.boube...@gmail.com> wrote: > > - I am a big fan of Final Fantasy games, it seems to be an easy game > experience to code > > Maybe not so easy, if the horrifying number of bugs in the early g

Re: Password strategy [OT] was: PyPI password rules

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 5:45 PM, Andrew Berg wrote: > On 2014.08.26 01:16, Chris Angelico wrote: >> A huge THANK YOU to whoever set the rules for PyPI passwords! You're >> allowed to go with a monocase password, as long as it's at least 16 >> characters in length. Finally, someone who recognizes X

Password strategy [OT] was: PyPI password rules

2014-08-26 Thread Andrew Berg
On 2014.08.26 01:16, Chris Angelico wrote: > A huge THANK YOU to whoever set the rules for PyPI passwords! You're > allowed to go with a monocase password, as long as it's at least 16 > characters in length. Finally, someone who recognizes XKCD 936 > passwords! > > And yes, I generated an XKCD 936

Re: Help improving the future of debugging

2014-08-26 Thread Heinz Schmitz
Mark Lawrence wrote: >>> since 1974 researchers and software developers try to ease software >>> debugging. >> I'm really curious: where did the date 1974 come from? What happened >> then? Hadn't people already been trying to ease software debugging for >> at least 20 years prior to that? :) >