On Fri, Sep 14, 2012 at 12:09 AM, alex23 wrote:
> On Sep 14, 3:44 pm, Dwight Hutto wrote:
>> CEO:http://www.hitwebdevelopment.com
>
> I don't know what gives more of a negative impression of your
> business, your acting like a tedious douchebag or the website itself.
Holy cow, that's the website
On Fri, Sep 14, 2012 at 2:09 AM, alex23 wrote:
> On Sep 14, 3:44 pm, Dwight Hutto wrote:
>> CEO:http://www.hitwebdevelopment.com
>
> I don't know what gives more of a negative impression of your
> business, your acting like a tedious douchebag or the website itself.
> --
> http://mail.python.org/
On Fri, Sep 14, 2012 at 11:14 AM, Dwight Hutto wrote:
> [over a hundred quoted lines snipped]
> And if you look at the above in gmail, you can see the ...'s that when
> not clicked, won't show some of the responses I leave just above, and
> it clips my signature line as well.
That's a Gmail featu
On Fri, Sep 14, 2012 at 3:08 AM, Ian Kelly wrote:
> On Fri, Sep 14, 2012 at 12:09 AM, alex23 wrote:
>> On Sep 14, 3:44 pm, Dwight Hutto wrote:
>>> CEO:http://www.hitwebdevelopment.com
>>
>> I don't know what gives more of a negative impression of your
>> business, your acting like a tedious douc
2012/9/14 Tim Chase :
> On 09/13/12 16:44, Vlastimil Brom wrote:
>> >>> import unicodedata
>> >>> unicodedata.normalize("NFD", u"serviço móvil").encode("ascii",
>> >>> "ignore").decode("ascii")
>> u'servico movil'
>
> Works well for all the test-cases I threw at it. Thanks!
>
> -tkc
>
>
Hi,
I am
> honest. How do you feel? Interesting...
>
Um, I guess like an inconsiderate bandwidth hog, but from now on I'll
trim more text.
First it was too little, and now it's too much.
I just tend to cut out some or all depending on the scope of the conversation.
If I just hit reply all, and send it ou
Great to meet you, thank you for your advise
2012/9/14 Dwight Hutto
> > You'll love it here. It's always amusing.
> > But remember to hit reply all
>
> Unless you might want to contact someone personally. Some don't mind,
> and some may complain. Me I don't care either way.
>
> Great to meet yo
>> I think you're referring to a play on words(ramit).
>
> Using foreign names derogatively is a common tactic of the racist.
Not really. But nice spin on my pun to make me look bad.
Keep trying, and maybe you'll come up with an insult/ propaganda
that's less obvious to the viewer that you're a l
On Fri, Sep 14, 2012 at 5:49 PM, Dwight Hutto wrote:
>> honest. How do you feel? Interesting...
>>
> Um, I guess like an inconsiderate bandwidth hog, but from now on I'll
> trim more text.
What you may have missed was that that was a quote from Princess
Bride. Don't take it personally :)
> First
On Sep 14, 5:22 pm, Dwight Hutto wrote:
> Completely OT for this discussion.
My apologies, I'll leave you to your thrashing around like a giant
child then.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 14, 6:04 pm, Dwight Hutto wrote:
> > Using foreign names derogatively is a common tactic of the racist.
>
> Not really. But nice spin on my pun to make me look bad.
It actually *is* common behaviour of racists.
> It's similar to if I said, this is real 'queer' of you to do ya big
> pansy,
On Fri, Sep 14, 2012 at 4:20 AM, alex23 wrote:
> On Sep 14, 6:04 pm, Dwight Hutto wrote:
>> > Using foreign names derogatively is a common tactic of the racist.
>>
>> Not really. But nice spin on my pun to make me look bad.
>
> It actually *is* common behaviour of racists.
>
Not if there name is
On 13/09/12 19:24:46, woo...@gmail.com wrote:
> It possibly requires a "shell=True",
That's almost always a bad idea, and wouldn't affect waiting anyway.
> but without any code or any way to test, we can not say.
That's very true.
-- HansM
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Sep 14, 2012 at 4:16 AM, alex23 wrote:
> On Sep 14, 5:22 pm, Dwight Hutto wrote:
>> Completely OT for this discussion.
>
> My apologies, I'll leave you to your thrashing around like a giant
> child then.
Please explain that one. I usually keep the thrashing for inside the
house, unlike y
- Original Message -
> On Sep 14, 3:54 am, Jean-Michel Pichavant
> wrote:
> > I don't like decorators, I think they're not worth the mental
> > effort.
>
> Because passing a function to a function is a huge cognitive burden?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
I
On 14/09/2012 03:31, Cameron Simpson wrote:
On 13Sep2012 19:34, Chicken McNuggets wrote:
| I'm writing a simple library that communicates with a web service and am
| wondering if there are any generally well regarded methods for batching
| HTTP requests?
|
| The problem with most web services is
Hi,
I've noticed that my Soappy calls get converted to URLFetch calls on Google
AppEngine. There seems to be documentation that UrlFetch can do
Asynchronous operations [1] but I'm not really sure how to make the soap
operations asynchronous. Tried looking at the Soapproxy class and see if I
can
On Fri, 14 Sep 2012 01:20:53 -0700, alex23 wrote:
> On Sep 14, 6:04 pm, Dwight Hutto wrote:
[snip]
Please don't feed the trolls.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 14, 6:53 pm, Dwight Hutto wrote:
> Not if there name is ramit. What if your name was john? I'd say I'll
> be right back, I have to go take a crap on the john. It's a joke about
> a name, not where it originates.
I'd recommend reading up on white privilege but I'm pretty sure it'd
be a wast
I do some math with python:
import math as m
m.degrees(m.atan(2))
>>> 63.43494882292201
but when i lookup tg in a paper table (last decade math book) i've got these
values:
tg(63'10'') = 1.9768
tg(63'20'') = 1.9912
tg(63'30'') = 2.0057
For me python should return something more like 63'2x'' th
On Fri, Sep 14, 2012 at 8:49 PM, xliiv wrote:
> I do some math with python:
>
> import math as m
> m.degrees(m.atan(2))
63.43494882292201
>
> but when i lookup tg in a paper table (last decade math book) i've got these
> values:
>
> tg(63'10'') = 1.9768
> tg(63'20'') = 1.9912
> tg(63'30'') =
but when i lookup tg in a paper table (last decade math book) i've got these
values:
tg(63'10'') = 1.9768
tg(63'20'') = 1.9912
tg(63'30'') = 2.0057
For me python should return something more like 63'2x'' than 63'4x''(becasue
63'30'' is higher than 2.0)
what's wrong?
63° 30" is 63.5°. So n
>> | The problem with most web services is that they require a list of
>> | sequential commands to be executed in a certain order to complete a
>> | given task (or at least the one I am using does) so having to manually
>> | call each command is a bit of a pain. How would you go about the design
>>
On Friday, September 14, 2012 12:55:06 PM UTC+2, Laszlo Nagy wrote:
> > but when i lookup tg in a paper table (last decade math book) i've got
> > these values:
>
> >
>
> > tg(63'10'') = 1.9768
>
> > tg(63'20'') = 1.9912
>
> > tg(63'30'') = 2.0057
>
> >
>
> > For me python should return some
Jean-Michel Pichavant wrote:
> I wrote the following one, used to decorate any function that access
> an equipment, it raises an exception when the timeout expires. The
> timeout is adapted to the platform, ASIC of FPGA so people don't need
> to specify everytime one timeout per platform.
>
> I
> I'd recommend reading up on white privilege but I'm pretty sure it'd
> be a wasted suggestion.
Not really, I tend to like interdisciplinary study. But I'm a little
of everything if you like Darwin.
>
>> >> It's similar to if I said, this is real 'queer' of you to do ya big
>> >> pansy, and next
[snip]
> Please don't feed the trolls.
You're down here under the bridge with the rest of us trolls too, Steven. 24/7
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
--
http://mail.python.org/mailman/listinfo/python-list
On 14.09.2012 00:38, Chris Angelico wrote:
> On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne wrote:
>> def powerlist(x,n):
>> if n==1:
>> return [1]
>> p = powerlist(x,n-1)
>> return p + [p[-1]*x]
>
> Eh, much simpler.
>
> def powerlist(x,n):
> return [x*i for i in xrange
On Fri, 14 Sep 2012 11:28:22 +0200, Jean-Michel Pichavant wrote:
> PS : Here's the decorator, just to give you an idea about how it looks.
> Small piece of code, but took me more than 2 hours to write it. I
> removed some sensible parts so I don't expect it to run.
[snip timeout class]
Holy over
On Fri, Sep 14, 2012 at 9:47 PM, Alexander Blinne wrote:
> On 14.09.2012 00:38, Chris Angelico wrote:
>> On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne wrote:
>>> def powerlist(x,n):
>>> if n==1:
>>> return [1]
>>> p = powerlist(x,n-1)
>>> return p + [p[-1]*x]
>>
>> Eh, muc
Am 14.09.2012 11:28, schrieb Jean-Michel Pichavant:
Decorators are very popular so I kinda already know that the
fault is mine. Now to the reason why I have troubles writing
them, I don't know. Every time I did use decorators, I spent
way too much time writing it (and debugging it).
I wrote the
os.system worked fine, and I found something in another section of code that
was causing the "Too many open errors." (I was fooled, because output from
subprocess call didn't seem to be coming out until the open files error.
I'll go back and play with subprocess.call more, since os.system works.
On 09/14/12 07:01, Steven D'Aprano wrote:
> [snip timeout class]
>
> Holy over-engineering Batman!!!
>
> No wonder you don't think much of decorators,
[snip]
> Most of my decorator functions are under a dozen lines. And that's the
> complicated ones!
As are mine, and a sizable chunk of those
On 14/09/2012 11:54, Chris Angelico wrote:
On Fri, Sep 14, 2012 at 8:49 PM, xliiv wrote:
I do some math with python:
import math as m
m.degrees(m.atan(2))
63.43494882292201
but when i lookup tg in a paper table (last decade math book) i've got these
values:
tg(63'10'') = 1.9768
tg(63'20''
On Fri, Sep 14, 2012 at 11:13 PM, Mark Lawrence wrote:
> Somebody or something has a length, height or width of 63 feet 30 inches? :)
Sounds like the height of a building with a barometer. The thirty
inches, of course, being the height of the barometer.
ChrisA
(big, big barometer)
--
http://mai
- Original Message -
> Jean-Michel Pichavant wrote:
>
> > I wrote the following one, used to decorate any function that
> > access
> > an equipment, it raises an exception when the timeout expires. The
> > timeout is adapted to the platform, ASIC of FPGA so people don't
> > need
> > to
I think one very nice and simple example of how decorators can be used is this:
def memoize(f, cache={}, *args, **kwargs):
def _memoize(*args, **kwargs):
key = (args, str(kwargs))
if not key in cache:
cache[key] = f(*args, **kwargs)
return cache[key]
r
On Sat, Sep 15, 2012 at 12:12 AM, andrea crotti
wrote:
> def fib(n):
> if n <= 1:
> return 1
> return fib(n-1) + fib(n-2)
>
> @memoize
> def fib_memoized(n):
> if n <= 1:
> return 1
> return fib_memoized(n-1) + fib_memoized(n-2)
>
>
> The second fibonacci looks exac
On Fri, 14 Sep 2012 16:36:58 +1000, Chris Angelico wrote:
> Actually I haven't used Postgres with Python yet. Should probably do
> that at some point. But the MySQL bindings for Python aren't so awesome
> they can't be matched by any other.
I have found psycopg2 excellent in every respect.
--
ht
Thanks. By the way, do we have a list of explanations of error message? If so,
whenever we come across error message, we can refer to it and solve the problem
accordingly.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Sep 15, 2012 at 1:01 AM, Token Type wrote:
> Thanks. By the way, do we have a list of explanations of error message? If
> so, whenever we come across error message, we can refer to it and solve the
> problem accordingly.
Not really, but if you paste the message into Google or DuckDuckGo
On Fri, 14 Sep 2012 15:22:26 +0200, Jean-Michel Pichavant wrote:
> Here's Steven example:
>
> # Untested!
> def timeout(t=15):
> # Decorator factory. Return a decorator to actually do the work. if
> FPGA:
> t *= 3
> def decorator(func):
> @functools.wraps(func)
>
On Fri, 14 Sep 2012 08:01:11 -0700, Token Type wrote:
> Thanks. By the way, do we have a list of explanations of error message?
> If so, whenever we come across error message, we can refer to it and
> solve the problem accordingly.
Forget about a "list of explanations of error message[s]". There
- Original Message -
> On Fri, 14 Sep 2012 15:22:26 +0200, Jean-Michel Pichavant wrote:
>
> > Here's Steven example:
> >
> > # Untested!
> > def timeout(t=15):
> > # Decorator factory. Return a decorator to actually do the
> > work. if
> > FPGA:
> > t *= 3
> > def
2012/9/14 Chris Angelico :
>
> Trouble is, you're starting with a pretty poor algorithm. It's easy to
> improve on what's poor. Memoization can still help, but I would start
> with a better algorithm, such as:
>
> def fib(n):
> if n<=1: return 1
> a,b=1,1
> for i in range(1,
Le jeudi 13 septembre 2012 23:25:27 UTC+2, Tim Chase a écrit :
> I've got a bunch of text in Portuguese and to transmit them, need to
>
> have them in us-ascii (7-bit). I'd like to keep as much information
>
> as possible, just stripping accents, cedillas, tildes, etc. So
>
> "serviço móvil" b
Hello!
PyConUK 2012, the UK Python Conference, is taking place in Coventry from
Friday 28th September to Monday 1st October.
That is only two weeks away!
Everyone is welcome from complete beginners through to experienced
experts. The core is on Saturday and Sunday so if you cannot get time
Chris Angelico於 2012年9月14日星期五UTC+8下午10時41分06秒寫道:
> On Sat, Sep 15, 2012 at 12:12 AM, andrea crotti
>
> wrote:
>
> > def fib(n):
>
> > if n <= 1:
>
> > return 1
>
> > return fib(n-1) + fib(n-2)
>
> >
>
> > @memoize
>
> > def fib_memoized(n):
>
> > if n <= 1:
>
> >
On Sat, Sep 15, 2012 at 2:15 AM, andrea crotti
wrote:
> The poor algorithm is much more close to the mathematical definition
> than the smarter iterative one.. And in your second version you
> include some ugly caching logic inside it, so why not using a
> decorator then?
I learned Fibonacci as
On Friday, September 14, 2012 8:22:44 AM UTC-4, pauls...@gmail.com wrote:
> os.system worked fine, and I found something in another section of code that
> was causing the "Too many open errors." (I was fooled, because output from
> subprocess call didn't seem to be coming out until the open files
On 9/13/2012 10:12 PM, Cameron Simpson wrote:
On 13Sep2012 18:58, alex23 wrote:
| On Sep 14, 3:54 am, Jean-Michel Pichavant
| wrote:
| > I don't like decorators, I think they're not worth the mental effort.
|
| Because passing a function to a function is a huge cognitive burden?
For parameter
On 9/14/2012 5:28 AM, Jean-Michel Pichavant wrote:
Decorators are very popular so I kinda already know that the fault is mine. Now
to the reason why I have troubles writing them, I don't know. Every time I did
use decorators, I spent way too much time writing it (and debugging it).
--
Terry
2nd try, hit send button by mistake before
On 9/14/2012 5:28 AM, Jean-Michel Pichavant wrote:
Decorators are very popular so I kinda already know that the fault is
mine. Now to the reason why I have troubles writing them, I don't
know. Every time I did use decorators, I spent way too much time
On 9/14/2012 12:15 PM, wxjmfa...@gmail.com wrote:
PS Avoid Py3.3 :-)
pps Start using 3.3 as soon as possible. It has Python's first fully
portable non-buggy Unicode implementation. The second release candidate
is already out.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/
On 9/14/2012 4:29 PM, Terry Reedy wrote:
On 9/13/2012 10:12 PM, Cameron Simpson wrote:
On 13Sep2012 18:58, alex23 wrote:
| On Sep 14, 3:54 am, Jean-Michel Pichavant
| wrote:
| > I don't like decorators, I think they're not worth the mental effort.
|
| Because passing a function to a function i
On 9/13/2012 10:09 PM, Mark Tolonen wrote:
On Thursday, September 13, 2012 4:53:13 PM UTC-7, Tim Chase wrote:
On 09/13/12 18:36, Terry Reedy wrote:
'keep as much information as possible' would mean an effectively
lossless transliteration, which you could do with a dict.
{: 'o', : 'c,' (or pic
On Fri, Sep 14, 2012 at 2:29 PM, Terry Reedy wrote:
> For a simple, unparameterized wrapper, the difficulty is entirely in the
> wrapper maker. It must define the final wrapper as a nested function and
> return it*. It is irrelevant whether the wrapper maker is used with pre-def
> decorator syntax
On 14 September 2012 18:30, Chris Angelico wrote:
> On Sat, Sep 15, 2012 at 2:15 AM, andrea crotti
> wrote:
> > The poor algorithm is much more close to the mathematical definition
> > than the smarter iterative one.. And in your second version you
> > include some ugly caching logic inside it,
Dwight Hutto wrote:
> On Thu, Sep 13, 2012 at 5:17 PM, Mark Lawrence
> wrote:
> > On 13/09/2012 21:34, Joshua Landau wrote:
> >>
> >> On 13 September 2012 20:53, Mark Lawrence
> wrote:acci sequence
> >>
> >>> On 13/09/2012 19:39, Prasad, Ramit wrote:
> >>>
> Dwight Hutto wrote:
>
>
Dwight Hutto wrote:
> Chris Angelico wrote:
> > honest. How do you feel? Interesting...
> >
> Um, I guess like an inconsiderate bandwidth hog, but from now on I'll
> trim more text.
>
> First it was too little, and now it's too much.
It is a fine line to walk and nobody does it perfectly all the
Dwight Hutto wrote:
> On Fri, Sep 14, 2012 at 4:20 AM, alex23 wrote:
> > On Sep 14, 6:04 pm, Dwight Hutto wrote:
> >> > Using foreign names derogatively is a common tactic of the racist.
> >>
> >> Not really. But nice spin on my pun to make me look bad.
> >
> > It actually *is* common behaviour o
Jean-Michel Pichavant wrote:
[snip]
> Ultimately, the goal is to have something like
>
> @timeout(2)
> def doAction1
>
> @timeout(4)
> def doAction2
[snip]
> Here's Steven example:
>
> # Untested!
> def timeout(t=15):
> # Decorator factory. Return a decorator to actually do the work.
>
On Fri, 14 Sep 2012 15:16:47 -0600, Ian Kelly wrote:
> If only there were a conceptually simpler way to do this. Actually,
> there is. I give you: metadecorators!
[code snipped but shown below]
> Which I think is certainly easier to understand than the nested
> functions approach.
Maybe for you
On Sep 6, 4:04 am, Oscar Benjamin wrote:
> On Thu, 06 Sep 2012 06:07:38 -0400, Dave Angel wrote:
> > For random strings (as defined below), the average compare time is
> > effectively unrelated to the size of the string, once the size
> passes
> > some point.
> > Define random string as being a s
On Sep 14, 6:05 am, Tim Chase wrote:
> On 09/14/12 07:01, Steven D'Aprano wrote:> [snip timeout class]
>
> > Holy over-engineering Batman!!!
>
> > No wonder you don't think much of decorators,
>
> [snip]
>
> > Most of my decorator functions are under a dozen lines. And that's the
> > complicated o
Hello,
I've developing a test script. There's a lot of repetition. I want to
introduce a strategy for approaching it, but I don't want the program to be
discredited because of the test script. Therefore, I'd like to know what
people's reactions to and thoughts about it are.
The first strate
On Fri, Sep 14, 2012 at 6:43 PM, Prasad, Ramit
wrote:
> Dwight Hutto wrote:
>> On Fri, Sep 14, 2012 at 4:20 AM, alex2find-work-home/3
>> wrote:
>> > On Sep 14, 6:04 pm, Dwight Hutto wrote:
>> >> > Using foreign names derogatively is a common tactic of the racist.
>> >>
>> >> Not really. But nic
On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote:
> Hello,
>
> I've developing a test script. There's a lot of repetition. I want to
> introduce a strategy for approaching it, but I don't want the program to be
> discredited because of the test script. Therefore, I'd like to know what
> p
On Fri, Sep 14, 2012 at 11:26 PM, Dwight Hutto wrote:
> On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote:
>> Hello,
>>
>> I've developing a test script. There's a lot of repetition. I want to
>> introduce a strategy for approaching it, but I don't want the program to be
>> discredited beca
On Fri, Sep 14, 2012 at 2:40 AM, Dieter Maurer wrote:
>> On Sep 14, 3:54 am, Jean-Michel Pichavant
>> wrote:
>>> I don't like decorators, I think they're not worth the mental effort.
>
> Fine.
>
> I like them because they can vastly improve reusability and drastically
> reduce redundancies (which
On Fri, Sep 14, 2012 at 6:51 PM, Prasad, Ramit
wrote:
> Dwight Hutto wrote:
>> Chris Angelico wrote:
>> > honest. How do you feel? Interesting...
>> >
>> Um, I guess like an inconsiderate bandwidth hog, but from now on I'll
>> trim more text.
>>
>> First it was too little, and now it's too much.
>
On Sat, Sep 15, 2012 at 1:47 PM, Dwight Hutto wrote:
> That's no problem, But some suported ad some opposed, it's a
> democracy, but a dictatorship by the moderators. How much did I err in
> their opinion of stating my opinion, in relation to the statistical
> whole?
Actually, I've not seen any m
On Fri, Sep 14, 2012 at 5:22 AM, wrote:
> os.system worked fine, and I found something in another section of code that
> was causing the "Too many open errors." (I was fooled, because output from
> subprocess call didn't seem to be coming out until the open files error.
>
> I'll go back and pla
Hello,
I am working in both OS X Snow Leopard and Lion (10.6.8 and 10.7.4).
I'm simply wanting to move folders (with their content) from various
servers to the hard drive and then back to different directories on the
servers.
I want to be careful not to remove any metadata or resource forks f
On Fri, Sep 14, 2012 at 11:53 PM, Chris Angelico wrote:
> On Sat, Sep 15, 2012 at 1:47 PM, Dwight Hutto wrote:
>> That's no problem, But some suported ad some opposed, it's a
>> democracy, but a dictatorship by the moderators. How much did I err in
>> their opinion of stating my opinion, in relat
Shawn McElroy writes:
> ...
> Although you are correct in the aspect of having 'real' OS level integration.
> Being able to communicate with other apps as well as contextual menus.
> Although, could I not still implement those features from python, into the
> host system from python? There are
76 matches
Mail list logo