http://porn-extreme.2304310.n4.nabble.com/
--
View this message in context:
http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4975250.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 20, 2012 at 5:44 AM, pete McEvoy wrote:
> I am confused by some of the dictionary setdefault behaviour, I think
> I am probably missing the obvious here.
>
> def someOtherFunct():
> print "in someOtherFunct"
> return 42
>
> x = myDict.setdefault(1, someOtherFunct()) # <
What do you want the contents of the file to look like? Why are you
parsing the XML in the first place? (What do you want to happen if the
data on `sys.stdin` isn't actually valid XML?)
On Thu, May 17, 2012 at 9:52 AM, Nibin V M wrote:
> Hello,
>
> I have the following code, which will assign XM
On 19/05/2012 02:59, Steven D'Aprano wrote:
I have matplotlib and iPython, and want to plot a function over an
equally-spaced range of points.
That is to say, I want to say something like this:
plot(func, start, end)
rather than generating the X and Y values by hand, and plotting a scatter
gra
Ah - I have checked some previous posts (sorry, should
have done this first) and I now can see that the
lazy style evaluation approach would not be good.
I can see the reasons it behaves this way.
many thanks anyway.
--
http://mail.python.org/mailman/listinfo/python-list
On 19/05/2012 20:44, pete McEvoy wrote:
I am confused by some of the dictionary setdefault behaviour, I think
I am probably missing the obvious here.
def someOtherFunct():
print "in someOtherFunct"
return 42
def someFunct():
myDict = {1: 2}
if myDict.has_key(1):
pri
I am confused by some of the dictionary setdefault behaviour, I think
I am probably missing the obvious here.
def someOtherFunct():
print "in someOtherFunct"
return 42
def someFunct():
myDict = {1: 2}
if myDict.has_key(1):
print "myDict has key 1"
x = myDict.setdefault
Hi all,
I'm currently working on 1.0.0 release of pyftpdlib module.
This new release will introduce some backward incompatible changes in
that certain APIs will no longer accept bytes but unicode.
While I'm at it, as part of this breackage I was contemplating the
possibility to rewrite my logging f
On Sat, 19 May 2012 04:21:35 -0400
Zero Piraeus wrote:
> :
>
> On 19 May 2012 01:23, John O'Hagan wrote:
> > How to generate only the distinct permutations of a sequence which are not
> > rotationally equivalent to any others? More precisely, to generate only the
> > most "left-packed" of each
On 05/19/2012 06:39 AM, Adam Tauno Williams wrote:
On Fri, 2012-05-18 at 09:53 -0700, Charles Hixson wrote:
Does __slots__ make access to variables more efficient?
Absolutely, yes.
If one uses property() to create a few read-only pseudo-variables, does
that negate the efficiency
Congrats Frank!
I reposted this on my G+ account and got some interesting comments.
https://plus.google.com/u/0/115212051037621986145/posts/ifyqW3JBd3a
There's got to be a way for you to make money off the Oracle connection!
(PS: It would have been nice if there was an announcement page on the
J
On Sat, 19 May 2012 09:15:39 +0100
Arnaud Delobelle wrote:
> On 19 May 2012 06:23, John O'Hagan wrote:
[...]
> >
> > How to generate only the distinct permutations of a sequence which are not
> > rotationally equivalent to any others? More precisely, to generate only the
> > most "left-packed" o
On 19/05/12 13:20:24, Nobody wrote:
> On Sat, 19 May 2012 11:30:46 +0200, Johannes Bauer wrote:
>
>> import ctypes
>> libc = ctypes.cdll.LoadLibrary("/lib64/libc-2.14.1.so")
>> print(libc.strchr("abcdef", ord("d")))
>
> In 3.x, a string will be passed as a wchar_t*, not a char*. IOW, the
> memory
On 05/16/2012 08:16 PM, Rita wrote:
> I currently build a lot of interfaces/wrappers to other applications
> using bash/shell. One short coming for it is it lacks a good method
> to handle arguments so I switched to python a while ago to use
> 'argparse' module.
Actually there is a great way of pa
> I'm looking for an interface closer to
> what my HP graphing calculator would use, i.e. something like this:
>
>
> plot(lambda x: sin(x*pi), # function or expression to plot,
> start=0.0,
> end=2.0,
> )
>
> and have step size taken either from some default, or better still,
> a
On Thu, 2012-05-17 at 11:13 +1000, Chris Angelico wrote:
> On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote:
> > A record is an interesting critter -- it is given life either from the user
> > or from the disk-bound data; its fields can then change, but those changes
> > are not reflected on
On Sat, 19 May 2012 01:59:59 +, Steven D'Aprano wrote:
> I have matplotlib and iPython, and want to plot a function over an
> equally-spaced range of points.
>
> That is to say, I want to say something like this:
>
> plot(func, start, end)
>
> rather than generating the X and Y values by ha
On Fri, 2012-05-18 at 09:53 -0700, Charles Hixson wrote:
> Does __slots__ make access to variables more efficient?
Absolutely, yes.
> If one uses property() to create a few read-only pseudo-variables, does
> that negate the efficiency advantages of using __slots__?
> (Somehow I feel the documen
Hi all,
i dont understand, how sqlalchemy deletes from m:n relationships.
Maybe, someone can explain to me, how to delete in the following program:
(pyhton3, sqlalchemy 0.7.0)
=
> #!/usr/bin/env python3
> # -*- coding: utf-8 -*
On 18/05/2012 7:20 PM, Tony the Tiger wrote:
On Sun, 13 May 2012 23:36:02 +0200, Irmen de Jong wrote:
Why do you care anyway?
Wanna hide his code...?
/Grrr
Curiosity. Perhaps there are stack-based processors out there which
could use the .pyc code more directly.
Colin W.
--
http://mail
2012/5/19 Steven D'Aprano :
> I have matplotlib and iPython, and want to plot a function over an
> equally-spaced range of points.
>
> That is to say, I want to say something like this:
>
> plot(func, start, end)
>
> rather than generating the X and Y values by hand, and plotting a scatter
> graph.
On 19/05/2012 10:30, Johannes Bauer wrote:
Even the example in the standard library fails:
import ctypes
libc = ctypes.cdll.LoadLibrary("/lib64/libc-2.14.1.so")
print(libc.strchr("abcdef", ord("d")))
Always returns "0".
I think there may be two problems with this code:
(1) You are using a 64
On Sat, 19 May 2012 11:30:46 +0200, Johannes Bauer wrote:
> import ctypes
> libc = ctypes.cdll.LoadLibrary("/lib64/libc-2.14.1.so")
> print(libc.strchr("abcdef", ord("d")))
In 3.x, a string will be passed as a wchar_t*, not a char*. IOW, the
memory pointed to by the first argument to strchr() wil
Hi group,
I'm playing with ctypes and using it to do regressions on some C code
that I compile as a shared library. Python is the testing framework.
This works nicely as long as I do not need the return value (i.e.
calling works as expected and parameters are passed correctly). The
return value o
:
On 19 May 2012 01:23, John O'Hagan wrote:
> How to generate only the distinct permutations of a sequence which are not
> rotationally equivalent to any others? More precisely, to generate only the
> most
> "left-packed" of each group of rotationally equivalent permutations, such that
> for eac
On 19 May 2012 06:23, John O'Hagan wrote:
> To revisit a question which I'm sure none of you remember from when I posted
> it
> a year or so ago - there were no takers at the time - I'd like to try again
> with
> a more concise statement of the problem:
>
> How to generate only the distinct perm
26 matches
Mail list logo