[ANN] Pylint 1.3.1 / Astroid 1.2.1 released

2014-08-26 Thread Claudiu Popa
Hello! I'm happy to announce that Pylint 1.3.1 and Astroid 1.2.1 were released. These releases include some bugfixes with the new string formatting checker and a couple of crash fixes. Please note that Pylint 1.3.X is the last version of Pylint which supports Python 2.5 and 2.6. Enjoy! --

CaptureMock 1.1 - true record/replay mocking for Python

2014-08-26 Thread Geoff Bache
Hi all, Version 1.1 adds support for Python3.3, and also directly intercepting classes as well as modules or functions. Regards, Geoff Bache More detail: CaptureMock is a tool for creating mocks via a true capture-replay style approach. It records interactions to a separate file which can then

matplotlib v1.4.0 released

2014-08-26 Thread Thomas Caswell
We are pleased to announce the release of matplotlib 1.4.0! This release has contributions from ~170 authors (http://matplotlib.org/users/github_stats.html). This release contains many bug fixes as will as a number of new features. For the full list see

PyPI password rules

2014-08-26 Thread Chris Angelico
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 password for the job. My parrot is good at that...

Re: This formating is really tricky

2014-08-26 Thread Gregory Ewing
Joel Goldstick wrote: you should try python-tudor mailing list ^ Hmmm. I wonder what version of Python Henry VIII used? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: This formating is really tricky

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 4:17 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Joel Goldstick wrote: you should try python-tudor mailing list ^ Hmmm. I wonder what version of Python Henry VIII used? Version 8.0, in a modern numbering scheme. See, those letters

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? :) It's a typo,

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: Password strategy [OT] was: PyPI password rules

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 5:45 PM, Andrew Berg aberg...@my.hennepintech.edu 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,

Re: Python vs C++

2014-08-26 Thread Amirouche Boubekki
2014-08-26 6:02 GMT+02:00 Ian Kelly ian.g.ke...@gmail.com: 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

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 tjre...@udel.edu 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

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

Re: This formating is really tricky

2014-08-26 Thread Marko Rauhamaa
alister alister.nospam.w...@ntlworld.com: 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 Tue, 26 Aug 2014 12:32:14 +0300, Marko Rauhamaa wrote: alister alister.nospam.w...@ntlworld.com: 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

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

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

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? --

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 -- Joel

Re: PyPI password rules

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 1:16 AM, Chris Angelico ros...@gmail.com 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

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 wlfr...@ix.netcom.com wrote: On Tue, 26 Aug 2014 12:16:33 +0200, lavanya addepalli phani@gmail.com declaimed the following: How can i generate a random data that is identical to my realworld data By definition, random data will be

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 11:28 PM, Skip Montanaro s...@pobox.com wrote: On Tue, Aug 26, 2014 at 1:16 AM, Chris Angelico ros...@gmail.com 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

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: help! about pypcap.dispatch

2014-08-26 Thread Chris Angelico
On Tue, Aug 26, 2014 at 8:44 PM, doit...@gmail.com 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)

Re: PyPI password rules

2014-08-26 Thread Skip Montanaro
On Tue, Aug 26, 2014 at 9:02 AM, Chris Angelico ros...@gmail.com 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 DD player, so I'll stick with my common words for now, until and

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 1:48 AM, Skip Montanaro s...@pobox.com wrote: On Tue, Aug 26, 2014 at 9:02 AM, Chris Angelico ros...@gmail.com 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

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

Re: PyPI password rules

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

Re: PyPI password rules

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 2:05 AM, Skip Montanaro s...@pobox.com wrote: On Tue, Aug 26, 2014 at 10:52 AM, Chris Angelico ros...@gmail.com wrote: Most of what Polly hears is fairly general chatter. There are a few jargon terms like metamagic that are DD-specific, but apart from that, it's

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

Re: This formating is really tricky

2014-08-26 Thread Chris Angelico
On Wed, Aug 27, 2014 at 2:09 AM, Mark Lawrence breamore...@yahoo.co.uk 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 post,

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

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-stuart? No,

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: 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 tjre...@udel.edu 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

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 Skip Montanaro
On Tue, Aug 26, 2014 at 11:58 AM, Terry Reedy tjre...@udel.edu 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 --

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: 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.

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 =

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

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

2014-08-26 Thread Jon Ribbens
On 2014-08-26, Terry Reedy tjre...@udel.edu 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)

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

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 breamore...@yahoo.co.uk 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

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 ahr...@googlemail.com 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

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 second instance

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. (I

Re: This formating is really tricky

2014-08-26 Thread Seymore4Head
On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy tjre...@udel.edu 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 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, and

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 ahr...@googlemail.com 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

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. --

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

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: 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: 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 --

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 was doing

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 ahr...@googlemail.com 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,

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

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 ahr...@googlemail.com 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

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 Chris Angelico
On Wed, Aug 27, 2014 at 9:25 AM, Twirlip2 ahr...@googlemail.com 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

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

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

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 something like

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 time,

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 steve+comp.lang.pyt...@pearwood.info 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

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 ahr...@googlemail.com 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

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

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 programmes reliably

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 that

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 recent

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 ahr...@googlemail.com 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

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, I

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.) If

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

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, I

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 rustompm...@gmail.com 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

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: Reading from sys.stdin reads the whole file in

2014-08-26 Thread Marko Rauhamaa
Steven D'Aprano st...@pearwood.info: 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 --

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

2014-08-26 Thread Marko Rauhamaa
Marko Rauhamaa ma...@pacujo.net: Try flushing after each print. URL: 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)

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 ian.g.ke...@gmail.com 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

[issue22263] Add a resource for CLI tests

2014-08-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks reasonable. On other hand, there is the subprocess resource which currently is not used in any test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22263

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-26 Thread A. Libotean
A. Libotean added the comment: I'm not sure that it's a leak because it doesn't depend on the number of queries nor the number of run of the test. It's maybe an internal sqlite cache. You're right, the leak does not increase past ~300 queries executed. --

[issue21965] Add support for Memory BIO to _ssl

2014-08-26 Thread Geert Jansen
Geert Jansen added the comment: Updated patch. Contains: * An owner attribute on a _ssl.SSLSocket that is used as the first argument to the SNI servername callback (implemented as a weakref). * Documentation I think this covers all outstanding issues that were identified. Antoine, please

[issue22240] argparse support for python -m module in help

2014-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: If you have: curdir /subdir __main__.py Then in 3.3+, both of the following will work: python3 subdir python3 -m subdir They do slightly different things, though. In the first case, subdir will be added to sys.path, and then python will

[issue22200] Remove distutils checks for Python version

2014-08-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: I spotted a few others as well. When I get a bit less busy in a couple of weeks time, I intend to go through and make a bigger patch to clean things up. -- ___ Python tracker rep...@bugs.python.org

[issue22240] argparse support for python -m module in help

2014-08-26 Thread Miki Tebeka
Miki Tebeka added the comment: Support for directory invocation as well. -- Added file: http://bugs.python.org/file36476/prog3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___

[issue22276] pathlib glob issues

2014-08-26 Thread João Guerra
New submission from João Guerra: Both fnmatch and glob support the */ glob. However, pathlib does not seem to handle this kind of globs correctly. dir = Path(/a/directory/) file = Path(/a/file) print(dir.match(*/)) # True print(file.match(*/)) # True The / is being discarded by the match,

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
New submission from Cristian Consonni: Hello, I would like to propose a patch for the webbrowser module to actively suppress any output (both on stdout and stderr) from the module itself. At the moment, doing a quick internet search, the best approximation to obtain this kind of behavior

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2014-08-26 Thread Nikolay Bogoychev
Nikolay Bogoychev added the comment: Hey, Just a friendly reminder that the patch is pending for review and there has been no activity for 3 months (: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16099

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread R. David Murray
R. David Murray added the comment: This seems like a good idea, based on the use case presented in the stackoverflow question. This would be an enhancement, so it can only go in 3.5. Please submit a patch without the pep 8 changes, so we can easily see what the patch is actually changing.

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. Do we have 64-bit integers on all architectures? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 26.08.14 15:32, schrieb Antoine Pitrou: Antoine Pitrou added the comment: Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. Do we have 64-bit integers on all architectures? On all supported

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread STINNER Victor
STINNER Victor added the comment: Do we have 64-bit integers on all architectures? That's a good question! Visual Studio provides __int64. GCC provides long long (64 bit on 32 bit platform). I guess that ICC also supports int64_t. It would be a shame to not support 64-bit integers in 2014,

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
Cristian Consonni added the comment: Hi David, thanks for your feedback. The parameters' name are indeed stdout and stderr as the one used by subprocess.Popen(). Here's the patch file without the pep 8 modifications. Thanks, Cristian -- Added file:

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread R. David Murray
R. David Murray added the comment: What I meant was the any *other* value follows the subprocess documentation part. I think it would be better to have *all* the values follow the subprocess documentation. -- ___ Python tracker

[issue22276] pathlib glob issues

2014-08-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22276 ___

[issue22278] urljoin duplicate slashes

2014-08-26 Thread Demian Brecht
New submission from Demian Brecht: Reported by Stefan Behnel in issue22118: I'm now getting duplicated slashes in URLs, e.g.: https://new//foo.html http://my.little.server/url//logo.gif In both cases, the base URL that gets joined with the postfix had a trailing slash, e.g.

[issue22278] urljoin duplicate slashes

2014-08-26 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36479/issue22278.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22278 ___

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Jack O'Connor
New submission from Jack O'Connor: BufferedIOBase and related classes have a read(n) and read1(n). The first will wait until n bytes are available (or EOF), while the second will return as soon as any bytes are available. In asyncio.StreamReader, there is no read1 method, but the read method

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: Good point. I think I had forgotten how BufferedIOBase worked... :-( I believe we should just change this -- Victor, what do you think? -- ___ Python tracker rep...@bugs.python.org

  1   2   >