Re: ANN: Python training "text movies"

2013-01-12 Thread Mitya Sirenef
On 01/13/2013 02:28 AM, Terry Reedy wrote: On 1/13/2013 2:08 AM, Mitya Sirenef wrote: >> On 01/13/2013 01:35 AM, Steven D'Aprano wrote: >>> On Sun, 13 Jan 2013 00:11:53 -0500, AK wrote: >> > >> >> I don't know what to call these, so for now I'll call them "training >> >> text movies" until I co

Re: ANN: Python training "text movies"

2013-01-12 Thread Terry Reedy
On 1/13/2013 2:08 AM, Mitya Sirenef wrote: On 01/13/2013 01:35 AM, Steven D'Aprano wrote: On Sun, 13 Jan 2013 00:11:53 -0500, AK wrote: > >> I don't know what to call these, so for now I'll call them "training >> text movies" until I come up with a better name.. >> >> I hope these will be

Re: ANN: Python training "text movies"

2013-01-12 Thread Mitya Sirenef
On 01/13/2013 01:35 AM, Steven D'Aprano wrote: On Sun, 13 Jan 2013 00:11:53 -0500, AK wrote: > >> I don't know what to call these, so for now I'll call them "training >> text movies" until I come up with a better name.. >> >> I hope these will be helpful, especially to new students of Python. >

Re: ANN: Python training "text movies"

2013-01-12 Thread Steven D'Aprano
On Sun, 13 Jan 2013 00:11:53 -0500, AK wrote: > I don't know what to call these, so for now I'll call them "training > text movies" until I come up with a better name.. > > I hope these will be helpful, especially to new students of Python. > > http://lightbird.net/larks/tmovies.html For the b

Re: Query windows event log with python

2013-01-12 Thread robey . lawrence
On Saturday, January 12, 2013 8:34:01 PM UTC+11, Tim Golden wrote: > On 12/01/2013 06:09, email.addr...@gmail.com wrote: > > > I am looking to write a short program to query the windows event > > > log. > > > > > > It needs to ask the user for input for The event type (Critical, > > > Error, a

ANN: Python training "text movies"

2013-01-12 Thread AK
I don't know what to call these, so for now I'll call them "training text movies" until I come up with a better name.. I hope these will be helpful, especially to new students of Python. http://lightbird.net/larks/tmovies.html I'll be adding more in the next few days... - mitya -- http://

Re: PyWart: Import resolution order

2013-01-12 Thread 88888 Dihedral
Ian於 2013年1月12日星期六UTC+8下午3時36分43秒寫道: > On Fri, Jan 11, 2013 at 10:28 PM, Rick Johnson > > wrote: > > > On Friday, January 11, 2013 12:30:27 AM UTC-6, Chris Angelico wrote: > > >> Why is it better to import from the current directory first? > > > > > > Opps. I was not explicit enough with my e

Re: PyWart: Import resolution order

2013-01-12 Thread alex23
On Jan 12, 3:28 pm, Rick Johnson wrote: > I am working on it. Stay tuned. Rick is going to rock your little programming > world /very/ soon. I am so confidant that this will never happen that if you _do_ ever produce _anything_ that even remotely resembles your claims, I pledge to provide you wi

Re: PyWart: Module access syntax

2013-01-12 Thread 88888 Dihedral
Chris Angelico於 2013年1月12日星期六UTC+8下午12時40分36秒寫道: > On Sat, Jan 12, 2013 at 3:34 PM, Rick Johnson > > wrote: > > > *The problem:* > > > ... is readability. The current dot syntax used ubiquitously in paths is > > not conveying the proper information to the reader, and in-fact obfuscating > > t

Python 3.3 can't find PySide

2013-01-12 Thread Tyson Moore
Hi everybody, I'm just starting to dabble in Python development after spending years with C# and Java, but there's one small thing holding me back: I can't seem to get PySide working for the life of me. Let me explain: I'm on OS X 10.6.8 and have installed Python 3.3.0 and Qt 4.8.4 with Home

Introduction to Mathematical Statistics (6th Ed., Hogg, Craig & McKean)

2013-01-12 Thread reganrexman
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: reganrexman(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. SOLUTIONS MANUAL TO Industrial Organization Theory & Applicati

Re: Probabilistic unit tests?

2013-01-12 Thread duncan smith
On 12/01/13 08:07, alex23 wrote: On 11 Jan, 13:34, Steven D'Aprano wrote: Well, that's not really a task for unit testing. Unit tests, like most tests, are well suited to deterministic tests, but not really to probabilistic testing. As far as I know, there aren't really any good frameworks for

Re: async fuction

2013-01-12 Thread MRAB
On 2013-01-12 04:43, alek...@silk.bz wrote: Hello. Can someone help me to resolv error. code: [snip] @Async def fnc(pi, pp): print "fnc-" i=pi while ( i < 1000 ) : i=i+1 print "fnc+" pass @Async def fnc1(pp): print "fnc1-",pp @Async def fnc2():

Re: String concatenation benchmarking weirdness

2013-01-12 Thread Ian Kelly
On Sat, Jan 12, 2013 at 1:38 AM, wrote: > The difference between a correct (coherent) unicode handling and ... This thread was about byte string concatenation, not unicode, so your rant is not even on-topic here. -- http://mail.python.org/mailman/listinfo/python-list

Re: problems importing from /usr/lib/pyshared/

2013-01-12 Thread Harold
Thank you Dieter, > Ubuntu 12 has introduced important changes with respect to "glib" (and > depending packages). In fact, there are now two quite incompatible > implementations - the old "static" one and a new "dynamic" one. > It looks as if in your case, old and new implementations were mixed. >

Re: Compiling native extensions with Visual Studio 2012?

2013-01-12 Thread Alec Taylor
On Sun, Jan 13, 2013 at 1:34 AM, Christian Heimes wrote: > Am 12.01.2013 08:45, schrieb Alec Taylor: >> There have been various threads for MSVC 2010[1][2], but the most >> recent thing I found for MSVC 2012 was [3]… from 6 months ago. >> >> Basically I want to be able to compile bcrypt—and yes I

Re: average time calculation??

2013-01-12 Thread Chris Angelico
On Sun, Jan 13, 2013 at 2:32 AM, Thomas Boell wrote: > This is how I would probably go about it: > Convert your strings to floating point values which describe the time > in seconds. Either floats or integers (which would be milliseconds, or whatever your smallest unit is). I tend to prefer in

Re: average time calculation??

2013-01-12 Thread Thomas Boell
On Thu, 10 Jan 2013 09:50:37 -0800 (PST) pmec wrote: > Hi there guys i've got a script that's suppose to find the average of two > times as strings. The times are in minutes:seconds:milliseconds > i'm doing ok in printing the right minutes and seconds my problem is with the > milliseconds. > >

Re: Compiling native extensions with Visual Studio 2012?

2013-01-12 Thread Christian Heimes
Am 12.01.2013 08:45, schrieb Alec Taylor: > There have been various threads for MSVC 2010[1][2], but the most > recent thing I found for MSVC 2012 was [3]… from 6 months ago. > > Basically I want to be able to compile bcrypt—and yes I should be > using Keccak—x64 binaries on Windows x64. > > Ther

Re: stringbench (was Re: String concatenation benchmarking weirdness)

2013-01-12 Thread Chris Angelico
On Sun, Jan 13, 2013 at 1:27 AM, Terry Reedy wrote: > On 1/12/2013 6:42 AM, Chris Angelico wrote: >> >> On Sat, Jan 12, 2013 at 10:31 PM, Terry Reedy wrote: >>> >>> 0.410.4395.2("WHERE IN THE WORLD IS CARMEN SAN >>> DEIGO?"*10).lower() >> >> >> Why does stringbench misspell the name C

Re: stringbench (was Re: String concatenation benchmarking weirdness)

2013-01-12 Thread Terry Reedy
On 1/12/2013 6:42 AM, Chris Angelico wrote: On Sat, Jan 12, 2013 at 10:31 PM, Terry Reedy wrote: 0.410.4395.2("WHERE IN THE WORLD IS CARMEN SAN DEIGO?"*10).lower() Why does stringbench misspell the name Carmen Sandiego? Copyright avoidance? Or ignorance. Perhaps I will fix it so

Re: Probabilistic unit tests?

2013-01-12 Thread Roy Smith
In article <693d4bb1-8e1e-4de0-9d4d-8a136ea70...@pp8g2000pbb.googlegroups.com>, alex23 wrote: > On 11 Jan, 13:34, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: > > Well, that's not really a task for unit testing. Unit tests, like most > > tests, are well suited to deterministic tests

Re: proposal: Ellipsis in argument list

2013-01-12 Thread Stefan Behnel
Szabolcs Blága, 12.01.2013 14:30: > I have an idea that the Ellipsis object could be used in function calls. > The "..." syntax should automagically turn into an Ellipsis positional > argument. > > def f(*args): > ext_args = [] > for i, a in enumerate(args): > if a is Ellipsis: > ext

proposal: Ellipsis in argument list

2013-01-12 Thread Szabolcs Blága
Dear All, I have an idea that the Ellipsis object could be used in function calls. The "..." syntax should automagically turn into an Ellipsis positional argument. def f(*args): ext_args = [] for i, a in enumerate(args): if a is Ellipsis: ext_args.extend([x for x in range(args[i-1]-

Re: Dependency management in Python?

2013-01-12 Thread Thomas Bach
On Fri, Jan 11, 2013 at 06:42:18PM -0800, Adelbert Chang wrote: > Another question - how do we then get PIP to the latest version? Or > is it relatively easy to uninstall/reinstall PIP? Simply do a $ pip install -U distribute $ pip install -U pip from time to time in your virtual environment.

Re: PyWart: Module access syntax

2013-01-12 Thread Nicholas Cole
On Fri, Jan 11, 2013 at 6:01 AM, Rick Johnson wrote: > > Python's module/package access uses dot notation. > > mod1.mod2.mod3.modN > > Like many warts of the language, this wart is not so apparent when first > learning the language. The dot seems innocently sufficient, however, in > truth it is

stringbench (was Re: String concatenation benchmarking weirdness)

2013-01-12 Thread Chris Angelico
On Sat, Jan 12, 2013 at 10:31 PM, Terry Reedy wrote: > 0.410.4395.2("WHERE IN THE WORLD IS CARMEN SAN > DEIGO?"*10).lower() Why does stringbench misspell the name Carmen Sandiego? Copyright avoidance? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: String concatenation benchmarking weirdness

2013-01-12 Thread Terry Reedy
On 1/12/2013 3:38 AM, wxjmfa...@gmail.com wrote: from timeit import timeit, repeat size = 1000 r = repeat("y = x + 'a'", setup = "x = 'a' * %i" % size) print('1:', r) r = repeat("y = x + 'é'", setup = "x = 'a' * %i" % size) print('2:', r) r = repeat("y = x + 'œ'", setup = "x = 'a' * %i" % size)

Re: Query windows event log with python

2013-01-12 Thread Tim Golden
On 12/01/2013 06:09, robey.lawre...@gmail.com wrote: I am looking to write a short program to query the windows event log. It needs to ask the user for input for The event type (Critical, Error, and Information), and the user needs to be able to specify a date since when they want to view result

Re: String concatenation benchmarking weirdness

2013-01-12 Thread wxjmfauth
from timeit import timeit, repeat size = 1000 r = repeat("y = x + 'a'", setup = "x = 'a' * %i" % size) print('1:', r) r = repeat("y = x + 'é'", setup = "x = 'a' * %i" % size) print('2:', r) r = repeat("y = x + 'œ'", setup = "x = 'a' * %i" % size) print('3:', r) r = repeat("y = x + '€'", setup = "

Re: Query windows event log with python

2013-01-12 Thread alex23
On 12 Jan, 16:09, robey.lawre...@gmail.com wrote: > Hi, > > I am looking to write a short program to query the windows event log. > > It needs to ask the user for input for The event type (Critical, Error, and > Information), and the user needs to be able to specify a date since when they > want

Re: Compiling native extensions with Visual Studio 2012?

2013-01-12 Thread Alec Taylor
Okay, got all extensions I require to compile successfully with MSVC 2012. Trick was using this fork: https://github.com/wcdolphin/py-bcrypt (See their issue log for traceback) =] On Sat, Jan 12, 2013 at 6:45 PM, Alec Taylor wrote: > There have been various threads for MSVC 2010[1][2], but the

Re: Probabilistic unit tests?

2013-01-12 Thread alex23
On 11 Jan, 13:34, Steven D'Aprano wrote: > Well, that's not really a task for unit testing. Unit tests, like most > tests, are well suited to deterministic tests, but not really to > probabilistic testing. As far as I know, there aren't really any good > frameworks for probabilistic testing, so yo