On Fri, Nov 6, 2015 at 5:13 PM, wrote:
> On Thursday, July 9, 2015 at 8:10:16 PM UTC-4, Matt Sundquist wrote:
>> For more background, refer to our Python docs: https://plot.ly/python/, our
>> Python framework for making dashboards: https://github.com/plotly/dash, our
>> data science blog: http:
Hi,
The number of elements returned by the function f() needs to match the
number of elements in the initial condition y0.
The problem seems to be in this part of the code,
```
for j in range(0,3*N/2+3):
return ydot[j]
```
It is returning the first element instead of the list. I mod
Hello,
I'm trying to use argparse in a program that gets some options and
positional arguments. I want to collect all the positional arguments
in a single argument using the REMAINDER option to add_argument() as
shown bellow:
parser = argparse.ArgumentParser(description='Test argparse')
pa
Je vais essayer de programmer en python. On verra bien !
--
https://mail.python.org/mailman/listinfo/python-list
Well... I still can't get this to work. I guess I'll just uninstall it.
It's a bummer that there's no help on basic startup like this.
Wendy Robinson
Audit Analyst
(916) 566-4994 phone
NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended
recipient and may contain material
Hmmm... fair enough. I sent the traceback though, on Monday.
I'll give the intro a read again. I've probably missed something basic.
Wendy Robinson
Audit Analyst
(916) 566-4994 phone
NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended
recipient and may contain material
Hello, python-list guys:
I am a newbie of python from Beijing. China.
I have a question about "math.pi".
As you can see in the attachment, why i can modify "math.pi"?
(in "mathmodule.c" "pi" is a "static const double")
Thank you in advance!
Best Wishes!
--
https://mail.pyt
On Fri, Nov 6, 2015 at 1:33 PM, wa...@travelsky.com wrote:
> Hello, python-list guys:
>
> I am a newbie of python from Beijing. China.
> I have a question about "math.pi".
> As you can see in the attachment, why i can modify "math.pi"?
> (in "mathmodule.c" "pi" is a "static const d
On Fri, Nov 6, 2015 at 2:24 AM, olivier wrote:
> Je vais essayer de programmer en python. On verra bien !
Hello Olivier!
This is a mostly English language mailing list/newsgroup, and there
aren't many people who are fluent in French. There is, however, a
corresponding French newsgroup, fr.c
On Nov 6, 2015 3:20 AM, "wa...@travelsky.com" wrote:
>
> Hello, python-list guys:
>
> I am a newbie of python from Beijing. China.
> I have a question about "math.pi".
> As you can see in the attachment, why i can modify "math.pi"?
> (in "mathmodule.c" "pi" is a "static const doubl
Amit Ramon wrote:
> Hello,
>
> I'm trying to use argparse in a program that gets some options and
> positional arguments. I want to collect all the positional arguments
> in a single argument using the REMAINDER option to add_argument() as
> shown bellow:
>
> parser = argparse.ArgumentParser
Peter Otten <__pete...@web.de> [2015-11-06 11:57 +0100]:
For example, with the above code
my_prog -v hello world
works well, but
my_prog -v -x hello world
Fails with an error message 'error: unrecognized arguments: -x'.
This looks like a bug to me. Please report it on bug.python.
Hi,
I tried to define SEQUENCE with:
The script is working now, exept that I do'nt get a menu in terminal for "s" to
stop.
-
def SEQUENCE():
while notDone:
if mindist > us_dist(15):
for (dir
Here is snippet of Python (vers. 2.7.10) code that bothers me.
import cPickle as pickle
print "Pickle lists:"
dogs = ['Rover','King','Spot','Rufus']
cats = ['Mimi','Misty','Sasha']
with open('pickle.dat', 'wb') as pfile:
pickle.dump(dogs, pfile)
pickle.dump(cats,pfile)
del(dogs); del(c
On 06/11/2015 02:33, wa...@travelsky.com wrote:
Hello, python-list guys:
I am a newbie of python from Beijing. China.
I have a question about "math.pi".
As you can see in the attachment, why i can modify "math.pi"?
(in "mathmodule.c" "pi" is a "static const double")
Python
Chris Angelico :
> Simply because, in Python, virtually everything can be changed. You're
> welcome to go in and say "math.pi = 3" if you like... and then you
> accept the consequences of that.
How far cosmology would have evolved by now if Albert Einstein had had
Python at his disposal. He could
On Thursday 05 November 2015 19:04:35 Robinson, Wendy wrote:
> Hmmm... fair enough. I sent the traceback though, on Monday.
If you sent a traceback on Monday, it wasn't seen by this list.
Do not 'attach' it to the message, but include it as the list server
might have stripped an attachment.
>
On Mon, Nov 2, 2015 at 1:22 PM, Steven D'Aprano
wrote:
>
> So how come Python 3 has line buffered stderr? And more importantly, how can
> I turn buffering off?
>
> I don't want to use the -u unbuffered command line switch, because that
> effects stdout as well. I'm happy for stdout to remain buffe
Wendy said:
I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic
programs successfully.
This morning I rebooted my computer and can't get a single one to work. The interpreter
seems to be fine and the environment variables look correct. But every py file I try to
run at
On 2015-11-06, Dennis Lee Bieber wrote:
> On Thu, 5 Nov 2015 20:19:39 + (UTC), Grant Edwards
> declaimed the following:
>
>>Though I used a line-editor for a while on VMS, I was never very good
>>at it, and abanded it for a full-screen editor at he first
>>opportunity. But, if you ever get a
> On Nov 5, 2015, at 10:36 PM, Larry Hudson via Python-list
> wrote:
>
> On 11/05/2015 05:18 PM, Dennis Lee Bieber wrote:
>> On Thu, 5 Nov 2015 20:19:39 + (UTC), Grant Edwards
>> declaimed the following:
>>
>>> Though I used a line-editor for a while on VMS, I was never very good
>>> at i
Amit Ramon wrote:
> Peter Otten <__pete...@web.de> [2015-11-06 11:57 +0100]:
>
>
>>>
>>> For example, with the above code
>>>
>>> my_prog -v hello world
>>>
>>> works well, but
>>>
>>> my_prog -v -x hello world
>>>
>>> Fails with an error message 'error: unrecognized arguments: -x'.
>>
>
Wanted to pass along a case study of some work being done to improve the look
and feel of IDLE. This is a work-in-progress, gradually being integrated into
the Python codebase. Given that, it's a great opportunity to get involved,
provide some feedback, and make it even better!
http://www.t
On 06/11/2015 13:30, Bartc wrote:
On 06/11/2015 02:33, wa...@travelsky.com wrote:
Hello, python-list guys:
I am a newbie of python from Beijing. China.
I have a question about "math.pi".
As you can see in the attachment, why i can modify "math.pi"?
(in "mathmodule.c" "pi"
On 6 November 2015 at 12:53, Virgil Stokes wrote:
> Here is snippet of Python (vers. 2.7.10) code that bothers me.
>
> [snip bad code]
>
> 1) Which (the pickle or shelve code) takes less total RAM, if dogs and cats
> were very large?
> 2) When the last shelve.open is given, is the entire content
Virgil Stokes wrote:
> Here is snippet of Python (vers. 2.7.10) code that bothers me.
>
> import cPickle as pickle
>
> print "Pickle lists:"
> dogs = ['Rover','King','Spot','Rufus']
> cats = ['Mimi','Misty','Sasha']
>
> with open('pickle.dat', 'wb') as pfile:
> pickle.dump(dogs, pfile)
>
On 06/11/2015 16:12, Lorenzo Sutton wrote:
On 06/11/2015 13:30, Bartc wrote:
On 06/11/2015 02:33, wa...@travelsky.com wrote:
Hello, python-list guys:
I am a newbie of python from Beijing. China.
I have a question about "math.pi".
As you can see in the attachment, why i can mod
On Sat, Nov 7, 2015 at 6:30 AM, Bartc wrote:
> Is there no way then in Python to declare:
>
>pi = 3.141519 # etc
>
> and make it impossible to override?
Nope. Even in C++, where classes can define certain things as const,
private, and other such restrictions, you can always get around the
On 11/05/2015 01:18 AM, Christian Gollwitzer wrote:
> Am 05.11.15 um 06:59 schrieb rurpy:
>>> Can you call yourself a well-rounded programmer without at least
>>> a basic understanding of some regex library? Well, probably not.
>>> But that's part of the problem with regexes. They have, to some
>>>
Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ?
I found for 32 bit Python 2.7 only and the installation ended with an error
that the
Python 2.7 was not found in registers.
Thank you
---
This email has been checked for viruses by Avast antivirus software.
https:
Am 06.11.15 um 20:40 schrieb Chris Angelico:
On Sat, Nov 7, 2015 at 6:30 AM, Bartc wrote:
Is there no way then in Python to declare:
pi = 3.141519 # etc
and make it impossible to override?
Nope. Even in C++, where classes can define certain things as const,
private, and other such r
You can install Pillow, the API is the same.
and normally will compile for your architecture.
On 6 Nov 2015, at 14:55, Jahn wrote:
> Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ?
> I found for 32 bit Python 2.7 only and the installation ended with an error
> tha
On 06/11/2015 11:34, Chris Angelico wrote:
On Fri, Nov 6, 2015 at 2:24 AM, olivier wrote:
Je vais essayer de programmer en python. On verra bien !
Hello Olivier!
This is a mostly English language mailing list/newsgroup, and there
aren't many people who are fluent in French. There is,
Am 06.11.15 um 20:52 schrieb ru...@yahoo.com:
I have always thought lexing
and parsing solutions for Python were a weak spot in the Python eco-
system and I was about to write that I would love to see a PEG parser
for python when I saw this:
http://fdik.org/pyPEG/
Unfortunately it suffers from
On Fri, Nov 6, 2015 at 3:36 PM, Christian Gollwitzer wrote:
> Am 06.11.15 um 20:52 schrieb ru...@yahoo.com:
>>
>> I have always thought lexing
>> and parsing solutions for Python were a weak spot in the Python eco-
>> system and I was about to write that I would love to see a PEG parser
>> for pyt
On Thursday, November 5, 2015 at 8:12:22 AM UTC-7, Seymore4Head wrote:
> On Thu, 05 Nov 2015 11:54:20 +1100, Steven D'Aprano
> wrote:
> >On Thu, 5 Nov 2015 10:02 am, Seymore4Head wrote:
> >> So far the only use I have for regex is to replace slicing, but I
> >> think it is an improvement.
> >
> >
In a message of Fri, 06 Nov 2015 20:55:34 +0100, "Jahn" writes:
>Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ?
> I found for 32 bit Python 2.7 only and the installation ended with an error
> that the
>Python 2.7 was not found in registers.
>Thank you
The Modern
Really strange, I have sent the same answer, there is one hour. Did you receive
it ?
I am not but maybe I have a problem with my email.
On 6 Nov 2015, at 16:37, Laura Creighton wrote:
> In a message of Fri, 06 Nov 2015 20:55:34 +0100, "Jahn" writes:
>> Can anyone lat me know where I can download
Peter Otten <__pete...@web.de> writes:
> I'm not sure about this one; one purpose of REMAINDER is to pass on the
> unprocessed arguments to another program/script, and this might follow the
> same convention. Should
>
> parser.add_argument('-v', '--verbose', action='store_true')
> parser.add_arg
I have code that runs perfectly well in MATLAB (using ode15s or ode23s) but
falters with Scipy odeint. The MATLAB code is for a specific case of the
generalized Python code. Here I have tried to reproduce the specific case in
Python. The logic in the code is airtight and the algorithm is sound.
Chris Angelico wrote:
> On Sat, Nov 7, 2015 at 6:30 AM, Bartc wrote:
>> Is there no way then in Python to declare:
>>
>>pi = 3.141519 # etc
>>
>> and make it impossible to override?
>
> Nope. Even in C++, where classes can define certain things as const,
> private, and other such restric
Bartc wrote:
^
Please fix.
> On 06/11/2015 02:33, wa...@travelsky.com wrote:
>> As you can see in the attachment, why i can modify "math.pi"?
>> (in "mathmodule.c" "pi" is a "static const double")
>
> Python isn't C.
>
> Your attachment isn't visible, but it can be demonstrated eas
On Tuesday, September 25, 2007 at 1:41:56 PM UTC-4, brad wrote:
> I have a very crude Python script that extracts text from some (and I
> emphasize some) PDF documents. On many PDF docs, I cannot extract text,
> but this is because I'm doing something wrong. The PDF spec is large and
> complex a
Thomas 'PointedEars' Lahn wrote:
> In theory, it should be possible to substitute “math” with a reference to
> an object that acts as a proxy for the original “math” module object but
> whose base class declares the attributes for all the constants read-only.
#!/usr/bin/env python3
#-
On 11/6/2015 5:26 PM, Thomas 'PointedEars' Lahn wrote:
Bartc wrote:
import math
math.pi=0
print (math.pi)
In Python, presumably 'pi' is just another variable, and variables can
be written to.
“pi” is the name of an attribute of the module object referred to by “math”.
(Perhaps math.pi w
On Sat, 7 Nov 2015 09:26 am, Thomas 'PointedEars' Lahn wrote:
^
> Bartc wrote:
> ^
> Please fix.
Why? There's nothing wrong with somebody signing their posts "Bartc". It is
no more silly than somebody calling themselves "PointedEars". Please sto
On Sat, 7 Nov 2015 09:19 am, Thomas 'PointedEars' Lahn wrote:
> It is certainly possible for attributes of (instances of) new-style
> classes (starting with Python 3.2 at the latest) to be read-only by
> declaring them a property that does not have a setter, or one that has a
> setter that throws
On 11/06/2015 05:25 AM, William Ray Wing wrote:
On Nov 5, 2015, at 10:36 PM, Larry Hudson via Python-list
wrote:
[snip]
You’re not REALLY an old timer unless you’ve used TECO.
-Bill
Agreed. I'm not really and old-timer, just old (I'm 78).
My first exposure to computers was the MITS Al
Bartc writes:
> Is there no way then in Python to declare:
>
>pi = 3.141519 # etc
>
> and make it impossible to override?
No, and it would be a bad thing if that were something a library author
could forbid.
Python assumes the programmers using it are consenting adults. Doing
harmful th
The version 1.1 of the tco module is released. It is much more owerful since
it now allows nested systems of continuations. The most important is probably
rather that I took the time to write a very detailed presentation of the
module on my blog: http://baruchel.github.io/
Regards, tb.
--
https:/
Am 06.11.15 um 23:01 schrieb Abhishek:
I have code that runs perfectly well in MATLAB (using ode15s or
ode23s) but falters with Scipy odeint. The MATLAB code is for a
specific case of the generalized Python code. Here I have tried to
reproduce the specific case in Python. The logic in the code is
51 matches
Mail list logo