PySide and Shiboken 1.2 released

2013-07-10 Thread John Ehresman
I'm happy to announce that PySide and Shiboken version 1.2 have been released. PySide is a community supported LGPL wrapper for the Qt libraries and Shiboken is a C++ wrapping tool used by PySide. Version 1.2 contains numerous stability fixes, improved Windows installation via easy_install,

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Alain Ketterlin
David T. Ashley dash...@gmail.com writes: We develop embedded software for 32-bit micros using Windows as the development platform. I'll mostly ignore the Windows qualifier. If you're stuck with Windows CE or similar, then ask them what they suggest. If you're developing on Windows and deploy

Babel i18n package has new maintainers

2013-07-10 Thread Stefan Behnel
Hi, I've been looking for a Python package for formatting international dates, numbers and monetary values in a web context for a couple of days now, but the only thing that I could find that looked suitable at first sight was the Babel package, of which the last release dates back two years,

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Christian Gollwitzer
Hi David, you have multi-posted this to comp.lang.tcl. Please don't do that - use crossposting and a proper follow-up (as I did now) Am 10.07.13 03:29, schrieb David T. Ashley: We develop embedded software for 32-bit micros using Windows as the development platform. Robert's answer made me

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Stefan Behnel
Christian Gollwitzer, 10.07.2013 09:03: http://www.lua.org/ Very compact (a static binary is about ~200K), clean synatx, relatively fast. OTOH, the standard library is of course not so extensive as for Tcl or Python. not so extensive is a rather bold understatement. ISTM that most projects

Re: crack a router passcode

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 6:59 AM, Dave Angel da...@davea.name wrote: On 07/09/2013 12:06 PM, Ferrous Cranus wrote: SNIP What is the reason of a spambot? Spam a usenet forum to gain what? Spam is unsolicited advertising. A bot is a robot, or other automated device. So Spambots on a

Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my account has been suspended for 7 days. Such a dickwad. Mats -- Mats

Re: Editor Ergonomics [was: Important features for editors]

2013-07-10 Thread Xue Fuqiao
On Mon, Jul 8, 2013 at 2:54 PM, Giorgos Tzampanakis giorgos.tzampana...@gmail.com wrote: On 2013-07-06, Skip Montanaro wrote: * movement between the mouse and the keyboard Avoid at all costs. Use an editor that never needs the mouse (emacs or vim). I don't use vim often, but for Emacs, I

Re: Help with 'self' and 'set_usage'

2013-07-10 Thread L O'Shea
On Tuesday, 9 July 2013 18:03:41 UTC+1, L O'Shea wrote: Hi all, I'm interning and have been given the job of extending a program that has been written by someone else. I've never used Python before so it's a bit of a struggle but I've got to say I'm loving the language so far. In

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 6:32 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 6:33 PM, Mats Peterson matsp...@aim.com wrote: Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack

Re: Babel i18n package has new maintainers

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 08:55:46 +0200, Stefan Behnel wrote: Hi, I've been looking for a Python package for formatting international dates, numbers and monetary values [...] https://github.com/mitsuhiko/babel Since it took me quite a while to figure this out, I thought I'd post this here to

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely

Re: hex dump w/ or w/out utf-8 chars

2013-07-10 Thread wxjmfauth
For those who are interested. The official proposal request for the encoding of the Latin uppercase letter Sharp S in ISO/IEC 10646; DIN (The German Institute for Standardization) proposal is available on the web. A pdf with the rationale. I do not remember from where I got it, probably from a

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 6:32 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 6:33 PM, Mats Peterson matsp...@aim.com wrote: Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 6:33 PM, Mats Peterson matsp...@aim.com wrote: Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 2:32 AM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. That's by design. We don't

Re: Recursive class | can you modify self directly?

2013-07-10 Thread Russel Walker
I didn't do a good job of explaining it cos I didn't want it to be a TLDR; but I could've added a little more. To clarify: Expr is just a way to represent simple arithmetic expressions for a calculator. Because the expression has to be modified and built over time, and evaluated from left to

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 6:42 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 2:42 AM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my

Re: Recursive class | can you modify self directly?

2013-07-10 Thread Russel Walker
On Wednesday, July 10, 2013 12:20:47 AM UTC+2, Ian wrote: On Tue, Jul 9, 2013 at 4:18 PM, Ian Kelly ian.g.ke...@gmail.com wrote: If you actually want to modify the current object, you would need to do something like: def expand(self): import copy

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 6:42 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jul 10, 2013 at 2:42 AM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 5:55 PM, Mats Peterson matsp...@aim.com wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 2:46 AM, Mats Peterson matsp...@aim.com wrote: Then they would have full control of this list and what gets pos Ahhh so this is pos, right? Telling the truth? Interesting. I don't know what you mean by that, but since the joke appears to have flown over your head,

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jul 10, 2013 at 2:46 AM, Mats Peterson matsp...@aim.com wrote: Then they would have full control of this list and what gets pos Ahhh so this is pos, right? Telling the truth? Interesting. I don't know what you mean by that, but since the

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 7:01 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: I know what regular expressions are. I've used them in Perl, PHP, JavaScript, Python, C++, Pike, and numerous text editors (which may have been backed by one of the above languages, or

WiFi problems with iPhone 4

2013-07-10 Thread oswaldclem
Hi, I have Been looking into it and I can't find anything. My son's iPhone 4 ( iOS 6), according to him, is on and off from our wifi all by itself. Basically, when hé goes on YouTube before 8 am it is on 3G, even if we have wifi on. And the signal is strong enough. Is there a setting That he

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 6:50 PM, Mats Peterson matsp...@aim.com wrote: Have you ever compared the regular expression performance between Perl and Python? If not, keep quiet. I think I can see why you were suspended. You and jmf should have a lot of fun together, I think. ChrisA --

Buying a used iPhone 5

2013-07-10 Thread oswaldclem
I'm planning on buying a used ATT iPhone 5 off of craigslist, and i've been reading on how some people sell their iPhones to people and later on blacklisting it, screwing the buyer over, or how people are mistakenly buying already blacklisted iPhones. I was wondering if there's a way I can prevent

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 10:12, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jul 10, 2013 at 2:46 AM, Mats Peterson matsp...@aim.com wrote: Then they would have full control of this list and what gets pos Ahhh so this is pos, right? Telling the truth? Interesting. I don't know what you mean by

iTunes not detecting iPhone

2013-07-10 Thread oswaldclem
I just received a used iPhone I purchased on Amazon. I took the phone out of the box and turned it on. The Apple logo appeared, then a connect to iTunes screen appeared, with the text No SIM card installed over the connect to iTunes graphic. I installed my SIM (which I know works, as I just

Iphone 3gs Problem

2013-07-10 Thread oswaldclem
I have a problem with my iPhone 3gs, It was Jailbreaked with cydia and then one day it stoped working, all it says is connect to itunes, and when I connect it to Itunes it say restore iphone, when I do that it get stuck on waiting for iphone, it have been stuck on that for 6 hours without doing

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Robert Kern
On 2013-07-10 10:52, Joshua Landau wrote: On 10 July 2013 10:12, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jul 10, 2013 at 2:46 AM, Mats Peterson matsp...@aim.com wrote: Then they would have full control of this list and what gets pos Ahhh so this is pos, right? Telling the truth?

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 08:55, Mats Peterson matsp...@aim.com wrote: Unjustified Insult. [anumuson from Stack Overflow] has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my account has been suspended for 7 days. Unjustified

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Antoon Pardon
Op 10-07-13 11:03, Mats Peterson schreef: Not a troll. It's just hard to convince Python users that their beloved language would have inferior regular expression performance to Perl. All right, you have convinced me. Now what? Why should I care? -- Antoon Pardon --

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
Google Groups is writing about your recently sent mail to Joshua Landau. Unfortunately this address has been discontinued from usage for the foreseeable future. The sent message is displayed below: On 10 July 2013 12:08, Robert Kern robert.k...@gmail.com wrote: On 2013-07-10 10:52, Joshua

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Steve Simmons
Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Skip Montanaro
... meant to be the word posted, before his sentence got cut off by the Python Secret Underground. Argh! That which shall not be named! Please, for the sake of all that is right, please only use the initials, PS -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Benedict Verheyen
Op Wed, 10 Jul 2013 12:12:10 +0100, schreef Joshua Landau: snip Do you have any non-trivial, properly benchmarked real-world examples that this affects, remembering to use full Unicode support in Perl (as Python has it by default)? Indeed, as Joshua says, instead of going through all the

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 10-07-13 11:03, Mats Peterson schreef: Not a troll. It's just hard to convince Python users that their beloved language would have inferior regular expression performance to Perl. All right, you have convinced me. Now what? Why should I

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 13:01, Mats Peterson matsp...@aim.com wrote: Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 10-07-13 11:03, Mats Peterson schreef: Not a troll. It's just hard to convince Python users that their beloved language would have inferior regular expression performance to Perl.

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Joshua Landau jos...@landau.ws wrote: On 10 July 2013 08:55, Mats Peterson matsp...@aim.com wrote: Unjustified Insult. [anumuson from Stack Overflow] has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my account has been

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Chris Angelico
On Wed, Jul 10, 2013 at 10:13 PM, Mats Peterson matsp...@aim.com wrote: Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings

Turn off Genius on iPhone

2013-07-10 Thread oswaldclem
How do I turn off the genius button on the iPhone ? I keep hitting it whenever I want to scrub to the middle of through a song. It's pretty annoying. - used iphone -- View this message in context: http://python.6.x6.nabble.com/Turn-off-Genius-on-iPhone-tp5024341.html Sent from the Python

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 12:14, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 10-07-13 11:03, Mats Peterson schreef: Not a troll. It's just hard to convince Python users that their beloved language would have inferior regular expression performance to Perl. All right, you have convinced me. Now

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Mats Peterson
Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 7:01 PM, Mats Peterson matsp...@aim.com wrote: Chris Angelico ros...@gmail.com wrote: I know what regular expressions are. I've used them in Perl, PHP, JavaScript, Python, C++, Pike, and numerous text editors (which may have been

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Skip Montanaro
Either that or it's funny only to other Australians. Or the Dutch. S -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Paul Scott
On 10/07/2013 14:22, Chris Angelico wrote: Either that or it's funny only to other Australians. ChrisA As a South African, I found it funny too, but then again, we often get confused. -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 13:35, Skip Montanaro s...@pobox.com wrote: Either that or it's funny only to other Australians. Or the Dutch. Or us Brits. -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Skip Montanaro
On Wed, Jul 10, 2013 at 7:39 AM, Joshua Landau jos...@landau.ws wrote: On 10 July 2013 13:35, Skip Montanaro s...@pobox.com wrote: Either that or it's funny only to other Australians. Or the Dutch. Or us Brits. Hells bells... It appears everyone found it funny except the trolls. S --

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Benedict Verheyen
Op Wed, 10 Jul 2013 12:06:06 +, schreef Mats Peterson: I haven't provided a real-world example, since I expect you Python Einsteins to be able do an A/B test between Python and Perl yourselves (provided you know Perl, of course, which I'm afraid is not always the case). I don't know

Prime number generator

2013-07-10 Thread Chris Angelico
And now for something completely different. I knocked together a prime number generator, just for the fun of it, that works like a Sieve of Eratosthenes but unbounded. It keeps track of all known primes and the next composite that it will produce - for instance, after yielding 13, the prime map

Re: Buying a used iPhone 5

2013-07-10 Thread Rodrick Brown
Die On Wed, Jul 10, 2013 at 6:49 AM, oswaldclem oswaldc...@gmail.com wrote: I'm planning on buying a used ATT iPhone 5 off of craigslist, and i've been reading on how some people sell their iPhones to people and later on blacklisting it, screwing the buyer over, or how people are mistakenly

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Grant Edwards
On 2013-07-10, David T Ashley dash...@gmail.com wrote: We develop embedded software for 32-bit micros using Windows as the development platform. We are seeking a general purpose scripting language to automate certain tasks, like cleaning out certain directories of certain types of files in

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread memilanuk
On 07/10/2013 05:39 AM, Joshua Landau wrote: On 10 July 2013 13:35, Skip Montanaro s...@pobox.com wrote: Either that or it's funny only to other Australians. Or the Dutch. Or us Brits. Or the Yanks... Normally I kill-file threads like this pretty early on, but I have to admit - I'm

Re: Prime number generator

2013-07-10 Thread Bas
On Wednesday, July 10, 2013 4:00:59 PM UTC+2, Chris Angelico wrote: [...] So, a few questions. Firstly, is there a stdlib way to find the key with the lowest corresponding value? In the above map, it would return 3, because 18 is the lowest value in the list. I want to do this with a single

Re: Stack Overflow moder ator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 08:46:44 +, Mats Peterson wrote: Chris Angelico ros...@gmail.com wrote: On Wed, Jul 10, 2013 at 6:33 PM, Mats Peterson matsp...@aim.com wrote: Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 18:26:19 +1000, Chris Angelico wrote: [...] And this

Re: Prime number generator

2013-07-10 Thread Chris Angelico
On Thu, Jul 11, 2013 at 12:35 AM, Bas wegw...@gmail.com wrote: On Wednesday, July 10, 2013 4:00:59 PM UTC+2, Chris Angelico wrote: [...] So, a few questions. Firstly, is there a stdlib way to find the key with the lowest corresponding value? In the above map, it would return 3, because 18 is

Re: Default scope of variables

2013-07-10 Thread Ian Kelly
On Tue, Jul 9, 2013 at 11:54 PM, Frank Millman fr...@chagford.com wrote: You had me worried there for a moment, as that is obviously an error. Then I checked my actual code, and I find that I mis-transcribed it. It actually looks like this - with db_session as conn:

Re: Prime number generator

2013-07-10 Thread Joshua Landau
On 10 July 2013 15:00, Chris Angelico ros...@gmail.com wrote: And now for something completely different. I knocked together a prime number generator, just for the fun of it, that works like a Sieve of Eratosthenes but unbounded. It keeps track of all known primes and the next composite that

Re: Prime number generator

2013-07-10 Thread bas
On Wednesday, July 10, 2013 5:12:19 PM UTC+2, Chris Angelico wrote: Well, that does answer the question. Unfortunately the use of lambda there has a severe performance cost [ ...] If you care about speed, you might want to check the heapq module. Removing the smallest item and inserting a new

ANN: psutil 1.0.0 released

2013-07-10 Thread Giampaolo Rodola'
Hi there folks, I'm pleased to announce the 1.0.0 release of psutil: http://code.google.com/p/psutil/ === About === psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching

Re: Default scope of variables

2013-07-10 Thread Ethan Furman
On 07/09/2013 10:54 PM, Frank Millman wrote: Ian Kelly ian.g.ke...@gmail.com wrote in message news:calwzidnf3obe0enf3xthlj5a40k8hxvthveipecq8+34zxy...@mail.gmail.com... On Tue, Jul 9, 2013 at 10:07 AM, Ethan Furman et...@stoneleaf.us wrote: You could also do it like this: def

Re: Prime number generator

2013-07-10 Thread Chris Angelico
On Thu, Jul 11, 2013 at 1:43 AM, Joshua Landau jos...@landau.ws wrote: So, a few questions. Firstly, is there... Of course there is. Secondly, can the... Of course it can. Thirdly, is there... Of course there is. I have no clue what, though. Heh, I guess I was asking for that kind of

Re: Prime number generator

2013-07-10 Thread Steven D'Aprano
On Thu, 11 Jul 2013 00:00:59 +1000, Chris Angelico wrote: And now for something completely different. I knocked together a prime number generator, just for the fun of it, that works like a Sieve of Eratosthenes but unbounded. [...] So, a few questions. Firstly, is there a stdlib way to find

Re: ANN: psutil 1.0.0 released

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 17:46:13 +0200, Giampaolo Rodola' wrote: Hi there folks, I'm pleased to announce the 1.0.0 release of psutil: http://code.google.com/p/psutil/ Congratulations on the 1.0.0 release! -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 6:06 AM, Mats Peterson matsp...@aim.com wrote: Joshua Landau jos...@landau.ws wrote: If you actually can satisfy these basic standards for a comparison (as I'm sure any competent person with so much bravo could) I'd be willing to converse with you. I'd like to see these

Re: ANN: psutil 1.0.0 released

2013-07-10 Thread Jurko Gospodnetić
Hi. I'm pleased to announce the 1.0.0 release of psutil: http://code.google.com/p/psutil/ Great! :-) Btw. any change you can put up a prebuilt installer for a 64-bit built with Python 3.3? You have one for Python 3.2 (http://code.google.com/p/psutil/downloads/list), but the version

Re: StackOverflowmoderator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 09:03:24 +, Mats Peterson wrote: Not a troll. It's just hard to convince Python users that their beloved language would have inferior regular expression performance to Perl. I can't speak for others, but I've known for many years that Python's regex implementation was

Re: Prime number generator

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 8:00 AM, Chris Angelico ros...@gmail.com wrote: And now for something completely different. I knocked together a prime number generator, just for the fun of it, that works like a Sieve of Eratosthenes but unbounded. It keeps track of all known primes and the next

Re: Prime number generator

2013-07-10 Thread Chris Angelico
On Thu, Jul 11, 2013 at 1:47 AM, bas blswink...@gmail.com wrote: On Wednesday, July 10, 2013 5:12:19 PM UTC+2, Chris Angelico wrote: Well, that does answer the question. Unfortunately the use of lambda there has a severe performance cost [ ...] If you care about speed, you might want to check

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Ethan Furman
On 07/10/2013 08:54 AM, Joshua Landau wrote: On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joel Goldstick
call your mom On Wed, Jul 10, 2013 at 12:18 PM, Ethan Furman et...@stoneleaf.us wrote: On 07/10/2013 08:54 AM, Joshua Landau wrote: On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself

Re: Prime number generator

2013-07-10 Thread Chris Angelico
On Thu, Jul 11, 2013 at 2:01 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 11 Jul 2013 00:00:59 +1000, Chris Angelico wrote: Thirdly, is there any sort of half-sane benchmark that I can compare this code to? And finally, whose wheel did I reinvent here? What name

Re: Prime number generator

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 10:16 AM, Ian Kelly ian.g.ke...@gmail.com wrote: The other interesting thing about my sieve is that it's a recursive generator. I'll dig it up later and share it. As promised. Apologies for the excessive commenting. As noted, this implementation is a recursive

Re: Prime number generator

2013-07-10 Thread Chris Angelico
On Thu, Jul 11, 2013 at 2:54 AM, Ian Kelly ian.g.ke...@gmail.com wrote: As promised. Apologies for the excessive commenting. As noted, this implementation is a recursive generator, which is done so that the primes in the sieve can go only up to the square root of the current prime, rather

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 16:54:02 +0100, Joshua Landau wrote: On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my

Re: Prime number generator

2013-07-10 Thread Joshua Landau
On 10 July 2013 17:15, Chris Angelico ros...@gmail.com wrote: On Thu, Jul 11, 2013 at 1:47 AM, bas blswink...@gmail.com wrote: On Wednesday, July 10, 2013 5:12:19 PM UTC+2, Chris Angelico wrote: Well, that does answer the question. Unfortunately the use of lambda there has a severe performance

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 18:15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 10 Jul 2013 16:54:02 +0100, Joshua Landau wrote: On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Joshua Landau
On 10 July 2013 17:18, Ethan Furman et...@stoneleaf.us wrote: On 07/10/2013 08:54 AM, Joshua Landau wrote: On 10 July 2013 10:00, Steven D'Aprano st...@pearwood.info wrote: On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow

Re: Stack Overflow bans Mats Peterson (was Re: ....)

2013-07-10 Thread Terry Reedy
On 7/10/2013 3:55 AM, Mats Peterson wrote: A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my account has been suspended for

Re: Prime number generator

2013-07-10 Thread Ian Kelly
On Wed, Jul 10, 2013 at 11:47 AM, Joshua Landau jos...@landau.ws wrote: If you care about speed, you might want to check the heapq module. Removing the smallest item and inserting a new item in a heap both cost O(log(N)) time, while finding the minimum in a dictionary requires iterating over

Re: Prime number generator

2013-07-10 Thread Joshua Landau
On 10 July 2013 19:56, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jul 10, 2013 at 11:47 AM, Joshua Landau jos...@landau.ws wrote: If you care about speed, you might want to check the heapq module. Removing the smallest item and inserting a new item in a heap both cost O(log(N)) time,

Re: Recursive class | can you modify self directly?

2013-07-10 Thread Terry Reedy
On 7/10/2013 4:58 AM, Russel Walker wrote: There is the name x and the class instance (the object) which exists somewhere in memory that x points to. self is just another name that points to the same object (not self in general but the argument passed to the self parameter when a method is

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Johann Hibschman
David T. Ashley dash...@gmail.com writes: We develop embedded software for 32-bit micros using Windows as the development platform. ... I know that Tcl/Tk would do all of the above, but what about Python? Any other alternatives? Given that list, I'd say just use Tcl and be done. You could

Re: Recursive class | can you modify self directly?

2013-07-10 Thread Russel Walker
On Wednesday, July 10, 2013 9:33:25 PM UTC+2, Terry Reedy wrote: On 7/10/2013 4:58 AM, Russel Walker wrote: There is the name x and the class instance (the object) which exists somewhere in memory that x points to. self is just another name that points to the same object (not self

Twisted and argparse

2013-07-10 Thread writeson
Hi all, I'm trying to write an Twisted program that uses the Application object (and will run with twistd) and I'd like to parse command line arguments. The Twisted documentation shows how to use a Twisted thing called usage.Options. However to me this looks a lot like the older Python module

Re: the general development using Python

2013-07-10 Thread Ian Kelly
On Tue, Jul 9, 2013 at 10:49 PM, CM cmpyt...@gmail.com wrote: Can all the installation of the runtimes be done with an installer that is itself an .exe, like with PyInstaller? If so, that's probably fine. It should be noted that PyInstaller is confusingly named. It actually creates

Re: Buying a used iPhone 5

2013-07-10 Thread Fábio Santos
On 10 Jul 2013 15:15, Rodrick Brown rodrick.br...@gmail.com wrote: Die On Wed, Jul 10, 2013 at 6:49 AM, oswaldclem oswaldc...@gmail.com wrote: I'm planning on buying a used ATT iPhone 5 off of craigslist, and i've been reading on how some people sell their iPhones to people and later on

Re: Recursive class | can you modify self directly?

2013-07-10 Thread Russel Walker
I've been mucking around with this silly class pretty much the whole day and my eyes are about closing now so this is the solution for now I think. Please feel free to drop any suggestions. I think I mostly just ended up shaving off allot of extraneous responsibility for the class, that and

Re: the general development using Python

2013-07-10 Thread CM
I was mainly talking in the context of the original post, where it seems something slightly different was meant. If you're deploying to customers, you'd want to offer them an installer. At least, I think you would. That's different from packing Python into a .exe file and pretending it's

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Steven D'Aprano
On Wed, 10 Jul 2013 18:53:34 +0100, Joshua Landau wrote: I might be misattributing posts then. Or... YOU'RE IN DENIAL! Ranting Rick? Is that you? :-) Who wins? You decide! Ah, definitely not RR :-) -- Steven -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >