On Sat, Apr 2, 2011 at 4:17 PM, harrismh777 wrote:
> Chris Angelico wrote:
>>
>> Why this lengthy discussion on whether Python is object-oriented or
>> not? What difference does it make?
>
> Great question... glad you asked...!
>
>> But bad things sometimes have to happen. And that's why thing
YuyYYyYyUuyuuiaAku. UUuqsuiuiuiui
On 4/1/11, python-list-requ...@python.org
wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via emai
Chris Angelico wrote:
Why this lengthy discussion on whether Python is object-oriented or
not? What difference does it make?
Great question... glad you asked...!
But bad things sometimes have to happen. And that's why things are
versioned.
You didn't read the post... cmp removal i
Terry Reedy wrote:
So why is there a problem with cmp? Because there are people who want
most of the changes that break your rules, but not this particular one.
Sadly, Terry, there may be some truth in there.
Often folks whine about this or that, and they have absolutely no reason
(or konwle
On Sat, Apr 2, 2011 at 3:54 PM, harrismh777 wrote:
> Terry Reedy 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
>>> (
Terry Reedy 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 based but not objec
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
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
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
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
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
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
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..
Steven D'Aprano writes:
> There's always Python 4000 :)
Is that on the boards yet?
--
http://mail.python.org/mailman/listinfo/python-list
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
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 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
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 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
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, 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 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 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 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 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 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 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 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
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
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.
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
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
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 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:
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
vm wrote in news:in4m1u$hsc$1...@news2.carnet.hr 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 =
On Fri, Apr 1, 2011 at 12:52 PM, Karl <8213543ggxnvjx...@kabelmail.de>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
On Fri, Apr 1, 2011 at 12:52 PM, Karl <8213543ggxnvjx...@kabelmail.de> 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 1:52 PM, Karl <8213543ggxnvjx...@kabelmail.de> 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
How to retrieve the list of all characters defined as alphabetic for the
current locale ?
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
-
On Fri, 1 Apr 2011 21:52:24 +0200, Karl
<8213543ggxnvjx...@kabelmail.de> 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
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, 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
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 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 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
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 4/1/2011 9:35 AM, bryan.fodn...@gmail.com 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
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 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
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
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
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
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
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
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
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
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
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 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 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
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 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
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
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 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
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
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
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
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
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 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 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:
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 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
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
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
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
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
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 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
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
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
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
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
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
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
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)
On Apr 1, 9:52 am, Peter Otten <__pete...@web.de> wrote:
> bryan.fodn...@gmail.com 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
bryan.fodn...@gmail.com 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
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.
[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
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
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
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
1 - 100 of 106 matches
Mail list logo