In a message of Sat, 14 Nov 2015 00:38:41 -0500, Terry Reedy writes:
>On 11/13/2015 10:58 PM, Ian Kelly wrote:
>> On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote:
>>>
>>> Today's scientists often turn to Python to run analysis, simulation, and
>> other sciency tasks.
>>>
>>> That makes us wonder:
On Sat, 14 Nov 2015 02:58 pm, Ian Kelly wrote:
> FYI, the depsy.org site is completely unusable on my Android phone.
On Firefox under Linux, the page comes up blank.
If I use the NoScript plugin to allow Javascript from the despy.org site,
the page now takes twice as long to load, and still come
On Sat, 14 Nov 2015 02:01 pm, Chris Angelico wrote:
> On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano
> wrote:
>> On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote:
>>
>>> However, this is a reasonable call for the abolition of unary plus...
>>
>> The only way you'll take unary plus out of Pyth
On 11/13/2015 10:58 PM, Ian Kelly wrote:
On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote:
Today's scientists often turn to Python to run analysis, simulation, and
other sciency tasks.
That makes us wonder: which Python libraries are most influential in
scientific research?
Numpy, scipy,
On Sat, Nov 14, 2015 at 2:48 PM, Ian Kelly wrote:
>> Yes, unary minus has the same issue - but it's a lot more important
>> than unary plus is. In ECMAScript, unary plus means "force this to be
>> a number"; what's its purpose in Python?
>
> I'm not sure "force this to be a number" is really a jus
On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote:
>
> Today's scientists often turn to Python to run analysis, simulation, and
other sciency tasks.
>
> That makes us wonder: which Python libraries are most influential in
scientific research?
>
> We just released a tool (built in Python, of course)
On Sat, Nov 14, 2015 at 2:45 PM, Ian Kelly wrote:
>> Yes, unary minus has the same issue - but it's a lot more important
>> than unary plus is. In ECMAScript, unary plus means "force this to be
>> a number"; what's its purpose in Python?
>
> It forces a Counter to contain only positive counts?
Di
On Nov 13, 2015 8:03 PM, "Chris Angelico" wrote:
>
> On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano
wrote:
> > On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote:
> >
> >> However, this is a reasonable call for the abolition of unary plus...
> >
> > The only way you'll take unary plus out of Py
On Nov 13, 2015 8:03 PM, "Chris Angelico" wrote:
>
> On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano
wrote:
> > On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote:
> >
> >> However, this is a reasonable call for the abolition of unary plus...
> >
> > The only way you'll take unary plus out of Py
On 11/10/2015 03:03 AM, Antoon Pardon wrote:
> Op 10-11-15 om 00:29 schreef Ben Finney:
>>
>> Who is doing what to whom? The user of the library isn't doing anything
>> to the library author, so what is it the library author would consent
>> to? Instead, you seem to be trying to assert a *power* of
On Sat, Nov 14, 2015 at 1:40 PM, Steven D'Aprano wrote:
> On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote:
>
>> However, this is a reasonable call for the abolition of unary plus...
>
> The only way you'll take unary plus out of Python is by prying it from my
> cold, dead hands.
>
>
> BTW, unar
On Sat, 14 Nov 2015 09:42 am, Chris Angelico wrote:
> However, this is a reasonable call for the abolition of unary plus...
The only way you'll take unary plus out of Python is by prying it from my
cold, dead hands.
BTW, unary minus suffers from the same "problem":
x =- y # oops, meant x -= y
On Sat, 14 Nov 2015 12:35 pm, vjp2...@at.biostrategist.dot.dot.com wrote:
> I click jython.org standalone jar and it just does a wait cycle.
I'm afraid I can't completely understand the problem you are having, since
you haven't really described it with sufficient detail. But my *guess* (and
this
On 11/13/2015 01:19 AM, Denis McMahon wrote:
On Fri, 13 Nov 2015 09:04:54 +1100, Steven D'Aprano wrote:
On Fri, 13 Nov 2015 07:40 am, Thomas 'PointedEars' Lahn wrote:
[crap I expect]
And you should consider the irony, and hypocrisy, of somebody who signs
his posts "PointedEars" bitching a
I click jython.org standalone jar and it just does a wait cycle.
What does it need to give me a prompt?
- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.panix.com/~vjp2/vasos.htm
---{Nothing her
Dave Farrance wrote:
Yep, he's evidently used to the Matlab/Octave way of defining "vectors"
which is somewhat easier for a math-oriented interactive environment.
It's just a *bit* more laborious to append columns in numpy.
Yes, that's probably the main reason to do things that way.
A collecti
On 11/13/2015 05:14 PM, Chris Angelico wrote:
> On Sat, Nov 14, 2015 at 10:04 AM, fl wrote:
>> I read the following code snippet. A question is here about '@'.
>> I don't find the answer online yet.
>>
>> What function is it here?
>>
>>
>> @pymc.deterministic
>> def theta(a=alpha, b=beta):
>>
On 11/13/2015 6:04 PM, fl wrote:
I read the following code snippet. A question is here about '@'.
I don't find the answer online yet.
Start with the index of the fine docs, which includes symbols.
https://docs.python.org/3/genindex-Symbols.html
'@' is near the end of the page.
@pymc.determin
On Sat, Nov 14, 2015 at 10:04 AM, fl wrote:
> I read the following code snippet. A question is here about '@'.
> I don't find the answer online yet.
>
> What function is it here?
>
>
> @pymc.deterministic
> def theta(a=alpha, b=beta):
> """theta = logit^{-1}(a+b)"""
> return pymc.invlogit(
Hi,
I read the following code snippet. A question is here about '@'.
I don't find the answer online yet.
What function is it here?
BTW, below is for printing out?
"""theta = logit^{-1}(a+b)"""
but I don't see it is printed when the following could have been called.
Are you sure it would be
On Sat, Nov 14, 2015 at 6:45 AM, Ian Kelly wrote:
> This sets RegisterAX to 2. Specifically, positive 2. If you want to
> *add* 2, you probably meant to write:
>
> RegisterAX += 2
>
> This also points out a good reason for using spaces around operators,
> as "RegisterAX =+ 2" would have caused
On 11/13/2015 01:56 PM, Laura Creighton wrote:
> In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes:
>> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
>>> Apfelkiste:Sources chris$
>>
>> Well, I get window and when I do this:
>>
>> pack [button .b -text Hello -command exit]
>
On 11/13/2015 03:30 PM, Christian Gollwitzer wrote:
> Am 13.11.15 um 20:14 schrieb Tim Daneliuk:
>> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
>>> Apfelkiste:Sources chris$
>>
>> Well, I get window and when I do this:
>>
>> pack [button .b -text Hello -command exit]
>>
>> Nothing appears.
On 11/13/2015 01:58 PM, Michael Torrie wrote:
> On 11/13/2015 12:14 PM, Tim Daneliuk wrote:
>> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
>>> Apfelkiste:Sources chris$
>>
>> Well, I get window and when I do this:
>>
>> pack [button .b -text Hello -command exit]
>>
>> Nothing appears.
>>
>>
On 2015-11-13, kent nyberg wrote:
> Though, as many times before, the problem was due to misunderstanding
> of how python works. I assumed file.read()[xx:yy] was to be
> understood as, in the file, read from index xx to place yy.
Nope.
First, the 'file.read()' part is evaluated. That return
Am 13.11.15 um 20:14 schrieb Tim Daneliuk:
On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
Apfelkiste:Sources chris$
Well, I get window and when I do this:
pack [button .b -text Hello -command exit]
Nothing appears.
No error, nothing? Just to be sure, you haven't closed the empty windo
The main problem was that I forgot to do seek(0). Thanks alot people.
Though, as many times before, the problem was due to misunderstanding of how
python works.
I assumed file.read()[xx:yy] was to be understood as, in the file, read from
index xx to place yy.
That is, [10:20] was the same a
On 2015-11-13, Ian Kelly wrote:
> Either retain the read data between calls, or call seek(0) before
> reading it again.
It has always saddened me that Python files don't have a rewind()
method. On Unix, calling rewind() is the same as calling seek(0), so
it's utterly pointless except as an amus
Le 13/11/2015 21:10, Cecil Westerhof a écrit :
Purge log fired. Analysing...
Purge finished!
[INFO ] [Logger ] Record log in
/home/cecil/.kivy/logs/kivy_15-11-13_28.txt
[INFO ] [Kivy] v1.9.0
[INFO ] [Python ] v3.4.1 (default, May 23 2014,
On Fri, Nov 13, 2015 at 1:15 PM, kent nyberg wrote:
> What bothers me, is the error that says
> unpack requires a string argument of 4 bytes.
> Im thinking in the line of arguments? Does unpack look at the 4 bytes it has
> read, and tell for some
> reason say that unpacking needs an argument of 4
On Fri, Nov 13, 2015 at 1:15 PM, kent nyberg wrote:
> Even with that, it still gets wrong.
> I also tried .read()[RegisterAX:RegisterAX+4]
When you call read for the second time, are you just reading the same
file again without closing or seeking it in the interim? If that's the
case, then you wo
I forgot to add. You get this wretched error message if your data
is shorter than expected, and you ask struct to read more than you
have, as well. most annoying.
Laura
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Nov 13, 2015 at 12:36:22PM -0700, Ian Kelly wrote:
> On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote:
> > def LoadCommandAndReact(place_to_read):
> > global RegisterAX
> >
> > tmp = place_to_read.read()[RegisterAX:calcsize('HH')]
>
> It looks like you're trying to get a slice
In a message of Fri, 13 Nov 2015 14:20:45 -0500, kent nyberg writes:
>Hi there,
>Im deeply sorry for yet another question to this list. I have come across a
>problem to which google seems not
>to eager to supply the anwser.
>
>The problem is the following.
>First I do this:
>
>def setup_drive():
On Friday 13 Nov 2015 20:53 CET, Michael Torrie wrote:
> On 11/13/2015 11:30 AM, Cecil Westerhof wrote:
>> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
>>
>>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
I tried to install pygame and PIL with pip3, but that did not
find anyth
On 11/13/2015 12:14 PM, Tim Daneliuk wrote:
> On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
>> Apfelkiste:Sources chris$
>
> Well, I get window and when I do this:
>
> pack [button .b -text Hello -command exit]
>
> Nothing appears.
>
> tkinter appears borked
>
> I have reinstalled once a
In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes:
>On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
>> Apfelkiste:Sources chris$
>
>Well, I get window and when I do this:
>
>pack [button .b -text Hello -command exit]
>
>Nothing appears.
>
>tkinter appears borked
>
>I have rei
On 11/13/2015 11:30 AM, Cecil Westerhof wrote:
> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
>
>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
>>> I tried to install pygame and PIL with pip3, but that did not find
>>> anything.
>>
>> The replacement for PIL is called Pillow. I'm not
As long as I'm replying to this, I see a few more issues to comment on:
On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote:
> if place_to_read.closed:
>print("Drive error. Drive closed.")
You probably also want to break or return here. Even better: raise an
exception instead of prin
On Fri, Nov 13, 2015 at 12:20 PM, kent nyberg wrote:
> def LoadCommandAndReact(place_to_read):
> global RegisterAX
>
> tmp = place_to_read.read()[RegisterAX:calcsize('HH')]
It looks like you're trying to get a slice of length 4 here, starting
at the value of RegisterAX. What you're actual
Hi there,
Im deeply sorry for yet another question to this list. I have come across a
problem to which google seems not
to eager to supply the anwser.
The problem is the following.
First I do this:
def setup_drive():
test = pack('>HH', 0b1000, 0b10010001)
file = op
On 11/13/2015 12:32 AM, Christian Gollwitzer wrote:
> Apfelkiste:Sources chris$
Well, I get window and when I do this:
pack [button .b -text Hello -command exit]
Nothing appears.
tkinter appears borked
I have reinstalled once already, will try again
--
https://mail.python.org/mailman/listin
On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
>> I tried to install pygame and PIL with pip3, but that did not find
>> anything.
>
> The replacement for PIL is called Pillow. I'm not sure if it's a
> drop-in replacement or not. If it's not
Le 13/11/2015 18:23, Terry Reedy a écrit :
On 11/13/2015 11:33 AM, Cecil Westerhof wrote:
I tried out the ‘standard’ Kivy application:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self
On 11/13/2015 11:33 AM, Cecil Westerhof wrote:
I tried out the ‘standard’ Kivy application:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World'
On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
> I tried to install pygame and PIL with pip3, but that did not find
> anything.
The replacement for PIL is called Pillow. I'm not sure if it's a
drop-in replacement or not. If it's not, then you'd have to modify Kivy
to import from Pillow. Pillow
On Fri, Nov 13, 2015 at 8:37 AM, PythonDude wrote:
> Hi all,
>
> Just a quick question about this code-piece (it works, I've tested it):
>
> means, stds = np.column_stack([
> getMuSigma_from_PF(return_vec)
> for _ in xrange(n_portfolios) ])
>
>
> 1) I understand column_stack does this (ass
I tried out the ‘standard’ Kivy application:
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
PythonDude wrote:
>On Thursday, 12 November 2015 22:57:21 UTC+1, Robert Kern wrote:
>> He simply instantiated the two vectors as row-vectors instead of
>> column-vectors,
>> which he could have easily done, so he had to flip the matrix expression.
>
>Thank you very much Robert - I just had to
In a message of Fri, 13 Nov 2015 14:04:01 +, Oscar Benjamin writes:
>On 13 November 2015 at 08:34, Laura Creighton wrote:
>> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>>>I am trying to run some Python code for the last few hours. How can I
>>>achieve the effect of "dot
In a message of Fri, 13 Nov 2015 14:47:12 +0530, Animesh Srivastava writes:
>Whenever i install python 3.5.0 compiler
>It gives me error 0x07b
>Can u please resolve it
>--
>https://mail.python.org/mailman/listinfo/python-list
Maybe this is your problem
http://www.bitdefender.com/support/how-t
Hi all,
Just a quick question about this code-piece (it works, I've tested it):
means, stds = np.column_stack([
getMuSigma_from_PF(return_vec)
for _ in xrange(n_portfolios) ])
1) I understand column_stack does this (assembles vectors vertically,
side-by-side):
>>> a = np.array((1,2,3
On 13 November 2015 at 03:08, Xiang Zhang <18518281...@126.com> wrote:
> I think the meaning of Py_INCREF a static type object is to prevent it from
> being deallocated when it is Py_DECREFed somehow later. Just as you said, it
> may be somehow deallocated when using.
>
> NoddyType is a static stru
On Thu, 12 Nov 2015 21:27:58 -0800, Karthik Sharma wrote:
> I have some csv data in the following format. ..
Does the following idea help?
Create a key from the key fields, remove the key fields from the row dic
(so now it's a dic of just the data fields), and save that in the
plotdata dic
On 13 November 2015 at 08:34, Laura Creighton wrote:
> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>>I am trying to run some Python code for the last few hours. How can I achieve
>>the effect of "dot divide" from Matlab, in the following code? I am having
>>trouble working
I am using Canopy Express (Free) version. I want to install PyBayes package,
but I don't see it in Package Manager of Canopy. Can I install PyBayes to
Canopy?
Now, Canopy is the default Python on my Windows 7 PC. If Canopy does not allow
to install PyBayes into it, can I install PyBayes to the
On Fri, Nov 13, 2015 at 8:17 PM, Animesh Srivastava wrote:
> Whenever i install python 3.5.0 compiler
> It gives me error 0x07b
> Can u please resolve it
Is this Windows XP? You have three options:
1) Install Python 3.4 instead
2) Upgrade to a newer Windows
3) Upgrade to a better operating s
On Thu, Nov 12, 2015 at 6:59 PM, Larry Hudson via Python-list <
python-list@python.org> wrote:
Nothing to do with your original question, just a trivial suggestion which
> you are free to ignore. You can shorten this tick() method by using the
> divmod() function. It does a division and returns
Whenever i install python 3.5.0 compiler
It gives me error 0x07b
Can u please resolve it
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for your reply jason. Your reply does give me hints and then I
read more code and find maybe you are wrong in some points.
I think the meaning of Py_INCREF a static type object is to prevent it
from being deallocated when it is Py_DECREFed somehow later. Just as you
said, it may be some
On Thursday, 5 November 2015 13:06:13 UTC+5:30, Akshat Tripathi wrote:
> I have written a basic tcp server factory, server client and a service using
> twisted. The tcp server acts as the middleware between a django server and an
> another program (let's call it client program).
>
> What I want
On 11/13/2015 06:27 AM, Karthik Sharma wrote:
How do I extract all the values in columns
Have a look at pandas:
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I have a problem with using the (otherwise nice) Python launcher. How
can I get it to run the highest 32-bit Python on my 64-bit system? This
is on Windows, but I think it applies to other OSes as well.
My application runs (unmodified) with Python 3.[345], but only with the
32-bit ver
On Fri, 13 Nov 2015 09:04:54 +1100, Steven D'Aprano wrote:
> On Fri, 13 Nov 2015 07:40 am, Thomas 'PointedEars' Lahn wrote:
> > [crap I expect]
> And you should consider the irony, and hypocrisy, of somebody who signs
> his posts "PointedEars" bitching about supposed "real names".
TPEL has been
On Thursday, 12 November 2015 22:57:21 UTC+1, Robert Kern wrote:
> On 2015-11-12 15:57, PythonDude wrote:
> > Hi all,
> >
> > I've come around a webpage with python-tutorial/description for obtaining
> > something and I'll solve this:
> >
> > R = p^T w
> >
> > where R is a vector and p^T is the t
On Thursday, 12 November 2015 17:35:39 UTC+1, Ian wrote:
> On Thu, Nov 12, 2015 at 8:57 AM, PythonDude wrote:
> > Hi all,
> > Anyone could please explain or elaborate on exactly this (quote): "Keep in
> > mind that Python has a reversed definition of rows and columns"???
> >
> > That I don't und
In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>I am trying to run some Python code for the last few hours. How can I achieve
>the effect of "dot divide" from Matlab, in the following code? I am having
>trouble working with list comprehension and numpy arrays and getting the
>
67 matches
Mail list logo