CrabbyPete wrote:
>
>I have a python script that automatically loads wordpress, up to the
>point that it asks for the admin password.
>that is a php function call
>
>function wp_install( $blog_title, $user_name, $user_email, $public,
>$deprecated = '', $user_password = '' )
>
>Is there a way to ca
Chris Angelico writes:
> Provably false. Even a well-designed interface, if it is asked to deal
> with a changing implementation and changing requirements, will
> eventually either acquire cruft, or be found too rigid to be of use.
What happens then is you define a new interface. In Microsoft-sp
On Thursday, March 31, 2011 9:48:27 PM UTC-4, Vincent Ren wrote:
>
> when I run this(from Programming Python 3rd) in ipython, I'll
> get a NameError:
>
>
> /usr/lib/python2.6/profile.pyc in runctx(self, cmd, globals, locals)
> 460 sys.setprofile(self.dispatcher)
> 461
Raymond Hettinger wrote:
On Mar 31, 3:14 pm, Ben Finney wrote:
Howdy all,
I want to inherit from a class, and define aliases for many of its
attributes. How can I refer to “the attribute that will be available by
name ‘spam’ once this class is defined”?
class Foo(object):
def s
On Wednesday 2011 March 30 13:56, Fons Adriaensen wrote:
> [LINK] ???
http://www.fbi.gov/news/stories/2011/march/cryptanalysis_032911/image/gallery
--
I have seen the future and I am not in it.
--
http://mail.python.org/mailman/listinfo/python-list
HI!
The old SF mailing list python-ldap-dev was shut down today.
I'd be happy to see you on the new mailing list for
http://python-ldap.org under the umbrella of python.org.
List info here:
http://mail.python.org/mailman/listinfo/python-ldap
All announcements, discussion and support related to
Is there any way to compile python (3.1.3, in case it matters) without
ssl support? OpenSSL is on my system, and configure finds it, but I
can't find a way to tell configure to explicitly ignore it.
I need a version of python without ssl for trade compliance reasons (I
don't make the dumb rules, I
hi,
Yes, _md5 is enabled but I get a very long list under
Failed to build these modules:
... list of mostly all extension modules ...
This list was empty earlier.
at some point, the compilation failed to detect
needed headers or libraries files.
i suggest you to try something simple in order
On Fri, 01 Apr 2011 11:01:07 +1100, Chris Angelico wrote:
> Microsoft Word is not the best
> tool for... well, anything, probably.
Since I raised the issue of MS Word, I should throw in a defense for it.
After a break from using Word for about five years, when I exclusively
used OpenOffice for
[Austin Bingham]
Is there any way to compile python (3.1.3, in case it matters) without
ssl support? OpenSSL is on my system, and configure finds it, but I
can't find a way to tell configure to explicitly ignore it.
I need a version of python without ssl for trade compliance reasons (I
don't ma
I am loading text into an array and would like to convert the values.
from math import *
from numpy import *
from pylab import *
data=loadtxt('raw.dat')
mincos=degrees(acos(data[:,0]))
minazi=degrees(data[:,1])
minthick=data[:,2]/0.006858
I am not sure why degrees() works, but acos() does not.
On Thu, 31 Mar 2011 18:33:36 -0400, Rouslan Korneychuk wrote:
> I'm aware that PyPy already has a working JIT compiler, but I figure it
> will be a long time before they have a version of Python that is ready
> for everybody to use, so this could be useful in the mean time.
PyPy is ready to use *
I am loading text into an array and would like to convert the values.
from math import *
from numpy import *
from pylab import *
data=loadtxt('raw.dat')
mincos=degrees(acos(data[:,0]))
minazi=degrees(data[:,1])
minthick=data[:,2]/0.006858
I am not sure why degrees() works, but acos() does not.
[email protected] wrote:
> I am loading text into an array and would like to convert the values.
>
> from math import *
> from numpy import *
> from pylab import *
>
> data=loadtxt('raw.dat')
> mincos=degrees(acos(data[:,0]))
> minazi=degrees(data[:,1])
> minthick=data[:,2]/0.006858
>
> I
On Apr 1, 9:52 am, Peter Otten <[email protected]> wrote:
> [email protected] wrote:
> > I am loading text into an array and would like to convert the values.
>
> > from math import *
> > from numpy import *
> > from pylab import *
>
> > data=loadtxt('raw.dat')
> > mincos=degrees(acos(data[:,0
I'm analyzing some data in python. I have stumbled across unusual problem:
I have the function...
def fun1(params_used_below_except_lk_and_lk2):
lk = 0.0
lk2 = 0.0
for raw_data, hist, freq in raw_data_hist_list:
lk2 = lk2 + fun2(some_constants_and_params_from_this_scope)
hi,
I can't seem to find the development version of python2.7.1; maybe
there isn't one any longer, but according to this post, there was a
bug in the configure script that affects freebsd machines; the patch
to fix it was made, but I think I'm not picking that fix up.
http://bugs.python.org/file198
When running nosetests i get error:
test_many_errors.test_value_two ... SKIP: (, ValueError(), )
test_many_errors.test_good_one ... ok
test_many_errors.test_good_two ... ok
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/
nosete
On 01/04/2011 15:25, Tim wrote:
hi,
I can't seem to find the development version of python2.7.1; maybe
there isn't one any longer, but according to this post, there was a
bug in the configure script that affects freebsd machines; the patch
to fix it was made, but I think I'm not picking that fix
haha doh wrote:
On Mar 31, 3:15 pm, Joe Snodgrass wrote:
[...]
As to which crime was being committed, I'm going with numbers running
or loan sharking. There's no reason for any crook to keep any record
of any other crime, except prostitution, where phone books come in
handy.
Thievery is not
All callables (things you can foo(bar)) are really just objects that
implement the __call__ method, as far as I understand. Well then, that
would appear to make methods themselves callable, so let's do a little
playing around...
lavos@lavos ~ $ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:5
On 3/31/11 8:48 PM, Vincent Ren wrote:
Hey, everyone, I'm trying to use ipython recently. It's very nice,
however, when I run this(from Programming Python 3rd) in ipython, I'll
get a NameError:
In [1]: import settime, timer, set
In [2]: import profile
In [3]: profile.run('timer.test(100, sett
On Sat, Apr 2, 2011 at 2:07 AM, Corey Richardson wrote:
> All callables (things you can foo(bar)) are really just objects that
> implement the __call__ method, as far as I understand. Well then, that
> would appear to make methods themselves callable, so let's do a little
> playing around...
Inte
I have unpacked the PyVISA files into the Python/lib/site-packages dir
and from the IDLE GUI I get and error
import visa
Traceback (most recent call last):
File "", line 1, in
import visa
ImportError: No module named visa
There must be more to just putting the files in the correct direc
On 4/1/2011 7:48 AM, kahmed wrote:
line 142 is:
"for test, err, capt in errors:"
Somewhere in "errors" is a value that is not of length 3.
Try this to find out what's wrong:
for errorentry in errors :
try :
(test, err, capt) = errorentry # try to
On Apr 1, 10:55 am, Tim Golden wrote:
> On 01/04/2011 15:25, Tim wrote:
>
> > hi,
> > I can't seem to find the development version of python2.7.1; maybe
> > there isn't one any longer, but according to this post, there was a
> > bug in the configure script that affects freebsd machines; the patch
Hi All,
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
-Brad
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano, 01.04.2011 14:57:
I suggest you check out the competitors:
Shedskin is a Python to C++ compiler;
Psyco is a JIT specialising compiler;
Nuitka claims to be a C++ implementation that compiles to machine code;
Berp claims to be a Haskell implementation that does the same;
Compyler
On 01/04/2011 16:34, Tim wrote:
On Apr 1, 10:55 am, Tim Golden wrote:
On 01/04/2011 15:25, Tim wrote:
hi,
I can't seem to find the development version of python2.7.1; maybe
there isn't one any longer, but according to this post, there was a
bug in the configure script that affects freebsd mac
Hi
Have you installed the module after unzipping it?
python setup.py install
Got it from the README file in the downloaded tar.
Regards
Yashwin Kanchan
On 1 April 2011 16:29, Manatee wrote:
> I have unpacked the PyVISA files into the Python/lib/site-packages dir
> and from the IDLE GUI I get
On Apr 1, 4:38 pm, Brad wrote:
> Hi All,
>
> I've heard of Java CPUs.
And Forth CPUs as well, I suspect ;-)
> Has anyone implemented a Python CPU in VHDL
> or Verilog?
>
I don't think so - certainly not in recent memory. If you look at the
documentation for the python byte code, for example:
On Friday, April 1, 2011 11:29:10 AM UTC-4, Manatee wrote:
> I have unpacked the PyVISA files into the Python/lib/site-packages dir
> and from the IDLE GUI I get and error
>
> import visa
>
> Traceback (most recent call last):
> File "
> ", line 1, in
> import visa
> ImportError: No module
On Fri, 01 Apr 2011 08:38:27 -0700, Brad wrote:
> I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
> or Verilog?
Java is a statically-typed language which makes a distinction between
primitive types (bool, int, double, etc) and objects. Python is a
dynamically-typed language w
On 4/1/2011 3:45 AM, Paul Rubin wrote:
Removing cmp certainly isn't the most disruptive change of Python 3,
That was almost certainly the ascii to unicode switch for strings. It is
still not quite complete in 3.2 but should be pretty well ironed out in 3.3.
but it seems like the one with t
Nobody, 01.04.2011 18:52:
Java is a statically-typed language which makes a distinction between
primitive types (bool, int, double, etc) and objects. Python is a
dynamically-typed language which makes no such distinction. Even something
as simple as "a + b" can be a primitive addition, a bigint a
I tried all your suggestions. No success.
On Apr 1, 8:35 am, nirinA wrote:
> hi,
>
> > Yes, _md5 is enabled but I get a very long list under
> > Failed to build these modules:
> > ... list of mostly all extension modules ...
> > This list was empty earlier.
>
> at some point, the compilation fai
On 4/1/2011 2:13 AM, harrismh777 wrote:
When I speak of implementation vs interface I am speaking from a
strictly object oriented philosophy, as pedigree, from Grady Booch, whom
I consider to be the father of Object Oriented Analysis and Design
(Booch, OO A&D with apps, 1994).
Python is object
On Fri, Apr 1, 2011 at 10:00 AM, Stefan Behnel wrote:
> Nobody, 01.04.2011 18:52:
>>
>> Java is a statically-typed language which makes a distinction between
>> primitive types (bool, int, double, etc) and objects. Python is a
>> dynamically-typed language which makes no such distinction. Even som
On Fri, Apr 1, 2011 at 10:00 AM, Stefan Behnel wrote:
> Nobody, 01.04.2011 18:52:
>
> Java is a statically-typed language which makes a distinction between
>> primitive types (bool, int, double, etc) and objects. Python is a
>> dynamically-typed language which makes no such distinction. Even som
Manatee wrote:
>I have unpacked the PyVISA files into the Python/lib/site-packages dir
>and from the IDLE GUI I get and error
>
>import visa
>
>Traceback (most recent call last):
> File "", line 1, in
>import visa
>ImportError: No module named visa
>
>
>
>There must be more to just putting
On 4/1/2011 8:38 AM Brad said...
Hi All,
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
-Brad
http://code.google.com/p/python-on-a-chip/
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On 4/1/2011 11:28 AM Emile van Sebille said...
On 4/1/2011 8:38 AM Brad said...
Hi All,
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
-Brad
http://code.google.com/p/python-on-a-chip/
Sorry - wrong url in the cut'n paste buffer -
http://tsheffler.com/s
Hi,
I want to include data files with a python package. With distutils it
seems common to specifiy these files in the data_files argument with a
non-portable location (e.g. data_files=[('share/example', 'icon.png')]).
Another approach is to include the file in the Python module of the
package (e.g
On 4/1/2011 3:45 AM, Paul Rubin wrote:
What happens then is you define a new interface.
Like key= versus cmp=
In Microsoft-speak if
the IWhatever interface needs an incompatible extension like new
parameters, they introduce IWhatever2 which supports the new parameters.
They change the imple
On 4/1/2011 2:44 AM, harrismh777 wrote:
Terry Reedy wrote:
Python 3 was announced and as a mildly code breaking version at least 5
years before it came out.
I appreciate the spirit of your arguments overall, and I do not
necessarily disagree with much of what you are saying. I would like to
ch
On Fri, Apr 1, 2011 at 10:06 AM, Terry Reedy wrote:
> On 4/1/2011 2:13 AM, harrismh777 wrote:
>
> When I speak of implementation vs interface I am speaking from a
>> strictly object oriented philosophy, as pedigree, from Grady Booch, whom
>> I consider to be the father of Object Oriented Analysi
On 4/1/2011 11:35 AM, Emile van Sebille wrote:
On 4/1/2011 11:28 AM Emile van Sebille said...
On 4/1/2011 8:38 AM Brad said...
Hi All,
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
-Brad
http://code.google.com/p/python-on-a-chip/
Sorry - wrong url in th
Terry Reedy writes:
>> What happens then is you define a new interface.
> Like key= versus cmp=
Well, in an untyped language like Python, adding a feature to an
interface doesn't require defining a new interface unless you change
something incompatibly. key= is very useful but it can be added wi
Terry Reedy writes:
>> Never change an advertised Class interface.
>
> In Python, class interfaces are no more sacred than module or function
> interfaces. If one takes 'no interface change' literally, then Python
> would have to be frozen. Even bug fixes change a defacto interface.
Oh come on, a
Thanks for all the replies. I wasn't aware of some of these
alternatives. Most of these seem to transform Python code/bytecode into
another language. I was already well aware of Cython. On the Nuitka
blog, I notice it says "Compiling takes a lot [sic] time, ...". Compyler
seems to generate asse
On 4/1/2011 3:45 AM, Paul Rubin wrote:
What happens then is you define a new interface. In Microsoft-speak if
the IWhatever interface needs an incompatible extension like new
parameters, they introduce IWhatever2 which supports the new parameters.
They change the implementation of IWhatever so
On Apr 1, 2:05 pm, "Günther Dietrich" wrote:
> Manatee wrote:
> >I have unpacked the PyVISA files into the Python/lib/site-packages dir
> >and from the IDLE GUI I get and error
>
> >import visa
>
> >Traceback (most recent call last):
> > File "", line 1, in
> > import visa
> >ImportError: No
Thanks, yours responses gave me the opportunity to understand the
"backreference" feature, it was not clear in spite of my intensive study
of the well known RE howto manual.
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy writes:
> But the Perl 6 fiasco
Perl 6 a complete failure? Wow, must be coming from a clueless Python
zealot. If Perl 6 is a fiasco, so is Python 3. Both are not considered
production ready, and both can be downloaded and used today:
http://rakudo.org/
Next release is planned for l
On 4/1/2011 7:36 AM, Austin Bingham wrote:
Is there any way to compile python (3.1.3, in case it matters) without
ssl support? OpenSSL is on my system, and configure finds it,
Can you temporarily disguise (rename) it?
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
On 4/1/2011 8:56 AM, Fodness, Bryan C - GS wrote:
I am loading text into an array and would like to convert the values.
from math import *
from numpy import *
from pylab import *
data=loadtxt('raw.dat')
mincos=degrees(acos(data[:,0]))
minazi=degrees(data[:,1])
minthick=data[:,2]/0.006858
I am no
On 4/1/2011 9:35 AM, [email protected] wrote:
Can anyone tell me what I am doing wrong?
Posting the same question twice is a bad idea, as it splits answers and
may lead to duplication. I answered your first post without seeing
Peter's response to you second post, which is further down
Hello,
one beginner question:
aList = [0, 1, 2, 3, 4]
bList = [2*i for i in aList]
sum = 0
for j in bList:
sum = sum + bList[j]
print j
0
2
4
IndexError: 'list index out of range'
Why is j in the second run 2 and not 1 in the for-loop?? I think j is a
control variable with 0, 1, 2,
On Mon, Mar 28, 2011 at 10:11 PM, Dan Stromberg wrote:
>
> On Mon, Mar 28, 2011 at 6:58 PM, Paul Rubin wrote:
>
>> DSU is a clever and useful design pattern, but comparison
>> sorting is what all the sorting textbooks are written about.
>>
>
> Actually, even though I wrote one program that could
On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> Well, ok, I'll try some of that. But I am running window 7, not Linux.
> The "sudo" command sounds like Linux.
Again, there's a win32 exe installer available here:
http://sourceforge.net/projects/pyvisa/files/PyVISA/1.3/PyVISA-1.3.win
On Apr 1, 4:05 pm, "eryksun ()" wrote:
> On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> > Well, ok, I'll try some of that. But I am running window 7, not Linux.
> > The "sudo" command sounds like Linux.
>
> Again, there's a win32 exe installer available here:
>
> http://sourceforge.
On Fri, Apr 01, 2011 at 08:37:35PM +0200, Matthias-Christian Ott wrote:
> I want to include data files with a python package. With distutils it
> seems common to specifiy these files in the data_files argument with a
> non-portable location (e.g. data_files=[('share/example', 'icon.png')]).
> Anoth
Regarding the format of your post, please use plain text only.
On Friday, April 1, 2011 3:52:24 PM UTC-4, Karl wrote:
>
> aList = [0, 1, 2, 3, 4]
> bList = [2*i for i in aList]
> sum = 0
> for j in bList:
> sum = sum + bList[j]
> print j
>
> 0
> 2
> 4
>
> IndexError: list index out of
On Fri, 1 Apr 2011 21:52:24 +0200, Karl
<[email protected]> wrote:
>Hello,
>
>one beginner question:
>
>aList = [0, 1, 2, 3, 4]
>bList = [2*i for i in aList]
>sum = 0
>for j in bList:
> sum = sum + bList[j]
>print j
>
>0
>2
>4
>IndexError: 'list index out of range'
>Why is j
Another question relative to regular expressions.
How to extract all word duplicates in a given text by use of regular
expression methods ? To make the question concrete, if the text is
--
Now is better than never.
Although never is often better than *right* now.
-
Back again with my study of regular expressions ;) There exists a
special character allowing alphanumeric extraction, the special
character \w (BTW, what the letter 'w' refers to?). But this feature
doesn't permit to extract true words; by "true" I mean word composed
only of _alphabetic_ letter
How to retrieve the list of all characters defined as alphabetic for the
current locale ?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Apr 1, 2011 at 1:52 PM, Karl <[email protected]> wrote:
> Hello,
>
> one beginner question:
>
> aList = [0, 1, 2, 3, 4]
>
> bList = [2*i for i in aList]
>
> sum = 0
>
> for j in bList:
>
> sum = sum + bList[j]
>
> print j
>
> 0
>
> 2
>
> 4
>
> IndexError: 'list index out of
On Fri, Apr 1, 2011 at 12:52 PM, Karl <[email protected]> wrote:
> Hello,
>
> one beginner question:
>
> aList = [0, 1, 2, 3, 4]
>
> bList = [2*i for i in aList]
Equivalently: bList = [0, 2, 4, 6, 8]
> sum = 0
>
> for j in bList:
Note that you're iterating over *b*List here, as oppo
On Fri, Apr 1, 2011 at 12:52 PM, Karl <[email protected]>wrote:
> Hello,
>
>
> one beginner question:
>
>
> aList = [0, 1, 2, 3, 4]
>
> bList = [2*i for i in aList]
>
> sum = 0
>
> for j in bList:
>
This iterates over the values in bList, not its indices.
> sum = sum + bList[j]
>
S
vm wrote in news:[email protected] in
gmane.comp.python.general:
> def fun1(params_used_below_except_lk_and_lk2):
> lk = 0.0
> lk2 = 0.0
> for raw_data, hist, freq in raw_data_hist_list:
> lk2 = lk2 + fun2(some_constants_and_params_from_this_scope)
> q =
Op 2011-04-01 16:04, vm schreef:
> I'm analyzing some data in python. I have stumbled across unusual problem:
>
> I have the function...
>
> def fun1(params_used_below_except_lk_and_lk2):
> lk = 0.0
> lk2 = 0.0
> for raw_data, hist, freq in raw_data_hist_list:
> lk2 = lk2 + fu
On 04/01/2011 12:52 PM, Karl wrote:
Hello,
one beginner question:
aList = [0, 1, 2, 3, 4]
bList = [2*i for i in aList]
sum = 0
for j in bList:
sum = sum + bList[j]
Your j is already an element of bList. You don't need to index bList
again. Instead do
for b in bList:
Ah, all right. Thank you very much, eryksun!
On 2011-04-01 22:48:44 +0200, eryksun () said:
Regarding the format of your post, please use plain text only.
On Friday, April 1, 2011 3:52:24 PM UTC-4, Karl wrote:
aList = [0, 1, 2, 3, 4]
bList = [2*i for i in aList]
sum = 0
for j in bList:
sum
On Wed, Mar 30, 2011 at 7:13 PM, Steven D'Aprano
wrote:
> Or, an alternative approach would be for one of the cmp-supporters to
> take the code for Python's sort routine, and implement your own sort-with-
> cmp (in C, of course, a pure Python solution will likely be unusable) and
> offer it as
On 4/1/2011 11:07 AM, Corey Richardson wrote:
All callables (things you can foo(bar)) are really just objects that
implement the __call__ method, as far as I understand.
> Well then, that would appear to make methods themselves callable,
Method are just function objects that are class attribute
Terry Reedy writes:
>> IWhatever2 setting the new parameters to default values
> Now you have two versions, and eventually many more, to maintain and
> document.
In the case of cmp= there's not two interfaces needed. Python2 does a
perfectly good job supporting cmp and key with one interface.
I discovered this yesterday, and finished watching today. Just an
interesting video.
http://www.youtube.com/watch?v=4R-7ZO4I1pI
It's a brief video on how a programmer has been using Python to manage
his website. I found it interesting that he gradually moved components
of his website from JavaS
On Fri, Apr 1, 2011 at 2:54 PM, candide wrote:
> Another question relative to regular expressions.
>
> How to extract all word duplicates in a given text by use of regular
> expression methods ? To make the question concrete, if the text is
>
> --
> Now is better than never.
> Alt
On Friday, April 1, 2011 4:55:42 PM UTC-4, candide wrote:
>
> How to retrieve the list of all characters defined as alphabetic for the
> current locale ?
Give this a shot:
In [1]: import string
In [2]: print string.letters
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
In [3]: import lo
On Fri, Apr 1, 2011 at 1:55 PM, candide wrote:
> Back again with my study of regular expressions ;) There exists a special
> character allowing alphanumeric extraction, the special character \w (BTW,
> what the letter 'w' refers to?).
"Word" presumably/intuitively; hence the non-standard "[:word:
On 01/04/2011 21:55, candide wrote:
Back again with my study of regular expressions ;) There exists a
special character allowing alphanumeric extraction, the special
character \w (BTW, what the letter 'w' refers to?). But this feature
doesn't permit to extract true words; by "true" I mean word co
On 4/1/2011 1:55 PM candide said...
How to retrieve the list of all characters defined as alphabetic for the
current locale ?
I think this is supposed to work, but not for whatever reason for me
when I try to test after changing my locale (but I think that's a centos
thing)...
import locale
On 04/01/2011 04:34 PM, Westley Martínez wrote:
> I discovered this yesterday, and finished watching today. Just an
> interesting video.
>
>
Thank heavens for flashblock.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 01 Apr 2011 14:31:09 -0700, geremy condra wrote:
> On Wed, Mar 30, 2011 at 7:13 PM, Steven D'Aprano
> wrote:
>
>
>
>> Or, an alternative approach would be for one of the cmp-supporters to
>> take the code for Python's sort routine, and implement your own
>> sort-with- cmp (in C, of cou
On Fri, 01 Apr 2011 14:37:20 -0700, Paul Rubin wrote:
> I actually think Python3 actually didn't go far enough in fixing
> Python2. I'd have frankly preferred delaying it by a few years, to
> allow PyPy to come to maturity and serve as the new main Python
> implementation, and have that drive the
On Fri, 01 Apr 2011 13:42:11 -0600, John Bokma wrote:
> Terry Reedy writes:
>
>> But the Perl 6 fiasco
>
> Perl 6 a complete failure?
"Fiasco" does not mean "complete failure". It is a debacle, an
embarrassing, serious failure, (and also an Italian wine bottle with a
rounded bottom), but no
On Fri, Apr 1, 2011 at 5:41 PM, Steven D'Aprano
wrote:
> On Fri, 01 Apr 2011 14:31:09 -0700, geremy condra wrote:
>
>> On Wed, Mar 30, 2011 at 7:13 PM, Steven D'Aprano
>> wrote:
>>
>>
>>
>>> Or, an alternative approach would be for one of the cmp-supporters to
>>> take the code for Python's sort
Thanks for those explanations! As Corey's original subject says, this
IS digging pretty deep into implementation details. My geekly side
loves that though!
On Sat, Apr 2, 2011 at 8:35 AM, Terry Reedy wrote:
> Every time a method is accessed through an instance, a new wrapper is
> created. Why? 1.
On 4/1/2011 3:22 PM, Paul Rubin wrote:
2to3 could probably gain a fixer to change
.sort(cmp=f) # to
import functools import cmp_to_key
.sort(key=functools.cmp_to_key(f))
I know some would not like this because interface change is not their
real concern.
Looks like a good idea. There is an e
On Apr 1, 4:05 pm, "eryksun ()" wrote:
> On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> > Well, ok, I'll try some of that. But I am running window 7, not Linux.
> > The "sudo" command sounds like Linux.
>
> Again, there's a win32 exe installer available here:
>
> http://sourceforge.
Steven D'Aprano writes:
> What I'm saying is this: cmp is already removed from sorting, and we
> can't change the past. Regardless of whether this was a mistake or
> not,
No it's not already removed, I just tried it (in Python 2.6, which is
called "Python" for short) and it still works. It's n
Steven D'Aprano writes:
> There's always Python 4000 :)
Is that on the boards yet?
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Apr 2, 2011 at 1:29 PM, Paul Rubin wrote:
> If "sorting" is in the stdlib like functools is, then the similarity
> makes sense and the suggestion isn't so bad. But you're proposing a 3rd
> party module, which is not the same thing at all. "Batteries included"
> actually means something..
On Friday, April 1, 2011 10:24:58 PM UTC-4, Manatee wrote:
>
> VisaIOError: VI_ERROR_INTF_NUM_NCONFIG: The interface type is valid
> but the specified interface number is not configured.
>
> My instrument is on GPIB 5 and I can do a *IDN? with another program
> and get a response. So I must still
Paul Rubin nospam.invalid> writes:
>
> I actually think Python3 actually didn't go far enough in fixing
> Python2. I'd have frankly preferred delaying it by a few years, to
> allow PyPy to come to maturity and serve as the new main Python
> implementation, and have that drive the language change
Benjamin Peterson writes:
> Why would having PyPy as the reference implementation have made this design
> decisions turn out better?
A fair amount of Python 2's design was influenced by what was convenient
or efficient to implement in CPython. There's nothing wrong with that
and it's a perfectly
On 4/1/2011 4:10 PM, Chris Rebert wrote:
On Fri, Apr 1, 2011 at 1:55 PM, candide wrote:
Back again with my study of regular expressions ;) There exists a special
character allowing alphanumeric extraction, the special character \w (BTW,
what the letter 'w' refers to?).
"Word" presumably/intui
On Fri, Apr 1, 2011 at 8:43 PM, Paul Rubin wrote:
> Benjamin Peterson writes:
> > Why would having PyPy as the reference implementation have made this
> design
> > decisions turn out better?
>
> A fair amount of Python 2's design was influenced by what was convenient
> or efficient to implement
Can someone please explain why this simple PyQt4 application never exits?
#!/usr/bin/env python
from PyQt4 import QtCore
import sys
class foo(QtCore.QObject):
def __init__(self, parent):
QtCore.QObject.__init__(self, parent)
self.parent = parent
1 - 100 of 106 matches
Mail list logo