Dear All,
I am having a problem with saving the output of an animation as a file. I
provide here two listing, first the small program which otherwise works
well, except while executing the last few lines to save the output produces
error which I also provide:
1. the program test.py :
from mat
On Sat, Oct 11, 2014 at 7:39 AM, Simmo wrote:
> On 10/10/2014 20:31, Zachary Ware wrote:
>> In that case (if I'm remembering correctly, I'm not on Windows at the
>> moment), you could probably back up C:\Python33\DLLs\sqlite3.dll
>> somewhere (just in case) and copy the sqlite3.dll you got with th
So, I'm already familiar with Flask and I fell comfortable using it, but I
see that no one uses it in "real business", everywhere I look regarding
jobs and web dev, people always talk about Django, no one mentions Flask,
no one uses Flask.
I'm coding a personal tool using Flask but I feel the need
On Fri, Oct 10, 2014 at 3:39 PM, Simmo wrote:
> On 10/10/2014 20:31, Zachary Ware wrote:
>>
>> On Fri, Oct 10, 2014 at 2:18 PM, Simmo wrote:
>>>
>>> For the record, I'm on Windows 7
>>
>>
>> In that case (if I'm remembering correctly, I'm not on Windows at the
>> moment), you could probably back
On 10/10/2014 20:31, Zachary Ware wrote:
On Fri, Oct 10, 2014 at 2:18 PM, Simmo wrote:
For the record, I'm on Windows 7
In that case (if I'm remembering correctly, I'm not on Windows at the
moment), you could probably back up C:\Python33\DLLs\sqlite3.dll
somewhere (just in case) and copy the
On Fri, 10 Oct 2014 22:01:58 +0300, Marko Rauhamaa wrote:
> alister :
>
>> On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote:
>>
>>> "-ize" is standard everywhere in the English-speaking world.
>>
>> Not in England!
>
> http://www.oxforddictionaries.com/definition/english/realize>
>
> Bo
> Telling us what platform you're on, your OS, Python version and the
>
> actual GUI helps in cases like this.
>
>
>
> --
>
> My fellow Pythonistas, ask not what our language can do for you, ask
>
> what you can do for our language.
>
>
>
> Mark Lawrence
Hello again. I forgot to tell yo
Hi,
I would like to announce the initial release of Atomos, a library that provides
atomic primitives a la java.util.concurrent.atomic as well as a Python
implementation of Clojure’s atoms.
Atomos targets applications which benefit from threads and wish to eliminate
race conditions between the
On Fri, Oct 10, 2014, at 03:53, Mark H Harris wrote:
> The apple mouse has only one click in the hardware... but, through the
> software (settings) the apple hardware 'know' which side of the mouse
> you are pushing over.
It only has one physical switch (I'm not sure the latest ones have any
at
On Fri, Oct 10, 2014 at 2:18 PM, Simmo wrote:
> For the record, I'm on Windows 7
In that case (if I'm remembering correctly, I'm not on Windows at the
moment), you could probably back up C:\Python33\DLLs\sqlite3.dll
somewhere (just in case) and copy the sqlite3.dll you got with the
sqlite3 distri
On 10/10/2014 19:51, cru...@gmail.com wrote:
Hello. I'm trying to make a colour blink when an event occurs.
But the program is displaying only the last colour:
self.bttn.bind('',blink)
def blink(self, event=None):
lbl['background'] = 'red'
sleep(0.5)
lbl.['background'] = 'SystemB
On 2014-10-10 19:51, cru...@gmail.com wrote:
Hello. I'm trying to make a colour blink when an event occurs.
But the program is displaying only the last colour:
self.bttn.bind('',blink)
def blink(self, event=None):
lbl['background'] = 'red'
sleep(0.5)
lbl.['background'] = 'SystemB
On 10/10/2014 20:02, Zachary Ware wrote:
Hi Steve,
On Fri, Oct 10, 2014 at 1:13 PM, Simmo wrote:
First off, this is my first attempt to post via Thunderbird newsgroup, so
apologies (and please let me know) if it doesn't arrive in good shape.
Looks fine to me :)
Thank you ;-)
I'm just sta
alister :
> On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote:
>
>> "-ize" is standard everywhere in the English-speaking world.
>
> Not in England!
http://www.oxforddictionaries.com/definition/english/realize>
Both -ize and -ise are valid in England.
>> why wouldn't you use American Eng
Hi Steve,
On Fri, Oct 10, 2014 at 1:13 PM, Simmo wrote:
> First off, this is my first attempt to post via Thunderbird newsgroup, so
> apologies (and please let me know) if it doesn't arrive in good shape.
Looks fine to me :)
> I'm just starting to get to grips with using a database (sqlite) and
Hello. I'm trying to make a colour blink when an event occurs.
But the program is displaying only the last colour:
self.bttn.bind('',blink)
def blink(self, event=None):
lbl['background'] = 'red'
sleep(0.5)
lbl.['background'] = 'SystemButtonFace'
Can you help?
--
https://mail.python.
First off, this is my first attempt to post via Thunderbird newsgroup,
so apologies (and please let me know) if it doesn't arrive in good shape.
I'm just starting to get to grips with using a database (sqlite) and
I've run into some confusion as to how Python 'ties in' to sqlite.
First step i
On 10/10/2014 15:46, Neil D. Cerutti wrote:
On 10/9/2014 3:53 PM, Tim Delaney wrote:
That would be a theatre programme vs a computer program.
I try to stick with the current spelling style when modifying existing
code - esp. for APIs. It's very annoying to have some methods use "z"
and others "
On 09/10/2014 23:53, Terry Reedy wrote:
Like it or not, Python uses American English.
It is my understanding that this has been agreed to by a Dutch born
dictator. The traitor should be shot, selling out his fellow Europeans
to the North Americans indeed :)
--
My fellow Pythonistas, ask
On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote:
> Tim Delaney :
>
>> It's very annoying to have some methods use "z" and others "s" in the
>> same package.
>
> "-ize" is standard everywhere in the English-speaking world.
Not in England!
>
> Americans insist on "analyze," "paralyze" a
On Sat, Oct 11, 2014 at 2:44 AM, Peter Pearson
wrote:
> On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote:
>> On 10-10-2014 6:21, Igor Korot wrote:
>
>>> When I am on Windows, I can write something like this:
>>>
>>> sys.path.append('C:\Users\Igor\Documents\MyLib')
>>
>> While this might wor
On Fri, Oct 10, 2014 at 12:31 AM, Irmen de Jong wrote:
> - you need to escape the backslashes (or just use forward slashes, they work
> on windows too)
Or use a raw string. There is usually no reason to have escape
sequences at all in a file system path.
--
https://mail.python.org/mailman/listi
On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote:
> On 10-10-2014 6:21, Igor Korot wrote:
>> When I am on Windows, I can write something like this:
>>
>> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> While this might work on your system, it may not work on others.
>
> - you need to
On 10/9/2014 3:53 PM, Tim Delaney wrote:
That would be a theatre programme vs a computer program.
I try to stick with the current spelling style when modifying existing
code - esp. for APIs. It's very annoying to have some methods use "z"
and others "s" in the same package. So since I'm currentl
On Sat, Oct 11, 2014 at 1:28 AM, Rustom Mody wrote:
>> If you dont find all this confusing, I am reminded of Schrödinger (or
>> one of his ilk):
>
>> If you dont find Quantum physics confusing you've not begun to understand it
>
> Ok: Not Schrödinger but John Wheeler:
> http://www.colorado.edu/phy
On Friday, October 10, 2014 7:54:33 PM UTC+5:30, Rustom Mody wrote:
> More telling comments from Alex (same SO post)
> 1. Both have mostly useless default implementations
> 2. if you override __repr__, that's ALSO used for __str__, but not vice versa
> 3. despite the words on the subject found in t
On Friday, October 10, 2014 12:48:20 PM UTC+5:30, Steven D'Aprano wrote:
> Rustom Mody wrote:
> > On Thursday, October 9, 2014 10:26:41 AM UTC+5:30, Steven D'Aprano wrote:
> >> On Wed, 08 Oct 2014 19:34:30 -0700, Rustom Mody wrote:
> >> Color.Red
> >> print (Color.Red)
> >> > Color.Red
>
On Friday, October 10, 2014 8:21:17 AM UTC-4, Peter Otten wrote:
> David Jobes wrote:
>
>
>
> > I was given a badly or poor formatted xml file that i need to convert to
>
> > csv file:
>
>
>
> There are no "badly formatted" XML files, only valid and invalid ones.
>
> Fortunately following
David Jobes wrote:
> I was given a badly or poor formatted xml file that i need to convert to
> csv file:
There are no "badly formatted" XML files, only valid and invalid ones.
Fortunately following looks like the beginning of a valid one.
>
> http://exslt.org/dynamic";>
>
>
>
>
On 10/10/2014 10:43 AM, Rustom Mody wrote:
On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote:
For calling commands in a slightly nicer way than os.system /
sybprocess.Popen you might look at sh or plumbum
https://pypi.python.org/pypi/sh
https://pypi.python.org/pypi/plumbum
- Original Message -
> From: vijna...@gmail.com
>
> Hi,
>
> I need to develop a python CLI framework.
>
[snip]
> 3. There are other such commands for which i will be using python
> scripts. I came across pyCLI, but it doesn't have much
> documentation, so couldn't figure out how to move
Op 09-10-14 om 03:42 schreef Ben Finney:
> Seymore4Head writes:
>
>> I want to toggle between color="Red" and color="Blue"
> It's good to cultivate ongoing familiarity with the standard library
> https://docs.python.org/3/library/itertools.html#itertools.cycle>
> so that you can make use of wheels
On Fri, Oct 10, 2014 at 9:51 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> If Python ever grows a 'color' statement or keyword, then sure.
>> Otherwise, it's just identifiers and data, which are international.
>
> Do you mean that the Python syntax should use American spellings, but
> the Pyth
I was given a badly or poor formatted xml file that i need to convert to csv
file:
http://exslt.org/dynamic";>
On 10/09/2014 04:14 PM, Ian Kelly wrote:
I have a use case where I would like to add a custom importer *AFTER* all other
import methods have failed.
On Oct 9, 2014 6:53 AM, "Gelonida N" mailto:gelon...@gmail.com>> wrote:
> I'm using Puthon 2.7 for the given project and there sys.meta_path is
- Original Message -
> From: "Gelonida N"
> To: python-list@python.org
> Sent: Thursday, 9 October, 2014 5:55:44 PM
> Subject: Re: virtualenv question: include just a few site packages
> > You could build a virtual machine, installing only your VIP
> > modules, and create virtual environme
Chris Angelico :
> If Python ever grows a 'color' statement or keyword, then sure.
> Otherwise, it's just identifiers and data, which are international.
Do you mean that the Python syntax should use American spellings, but
the Python standard library could use words like "colour", "Farbe",
"väri"
On Fri, Oct 10, 2014 at 9:08 PM, Marko Rauhamaa wrote:
> Steven D'Aprano :
>
>> Python is an international product, not American.
>
> And American English is the international software engineering language,
> minority or not.
>
> The rest of us are using it; why should you not follow suit?
If Pyt
Steven D'Aprano :
> Python is an international product, not American.
And American English is the international software engineering language,
minority or not.
The rest of us are using it; why should you not follow suit?
Marko
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to create a program who'll catch the mac address connections. For
this, I take the /var/log/arpalert.log and create a dict. with the results in
JSON. I'm a beginner in Python.
For now, I have the arpalert log to a file.txt. I take this file and create a
dictionary in an other
On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote:
> For calling commands in a slightly nicer way than os.system /
> sybprocess.Popen you might look at sh or plumbum
> https://pypi.python.org/pypi/sh
> https://pypi.python.org/pypi/plumbum
Both of these look quite nice!
[Im looki
On 10/9/14 1:52 AM, Rustom Mody wrote:
> Been using emacs for over 20 years and teaching python for 10.
> And getting fed up that my audience looks at me like Rip van Winkle
> each time I start up emacs...
(sigh)
> So trying out Idle...
Good for you! ... and even better for your students.
On 10/9/14 7:21 AM, wxjmfa...@gmail.com wrote:
My audience consists of people having linux and windows and macbooks.
Does Idle run on all these?
---
No.
Huh?
--
https://mail.python.org/mailman/listinfo/python-list
On 10/9/14 7:47 AM, random...@fastmail.us wrote:
I believe control-click, but Macs users could say better.
Control-click was the canonical way to do it when right click menus were
introduced in Mac OS itself. Some programs (notably Netscape) supported
them via click-hold before that. And it's
On 10-10-2014 8:58, Chris Angelico wrote:
> AIUI you can use os.path.expanduser() on Windows as well, and it'll
> take care of USERPROFILE.
Nice, didn't know that!
I've been using the appdirs module (https://pypi.python.org/pypi/appdirs/) as
well to
avoid constructing paths manually altogether.
Rustom Mody wrote:
> On Thursday, October 9, 2014 10:26:41 AM UTC+5:30, Steven D'Aprano wrote:
>> On Wed, 08 Oct 2014 19:34:30 -0700, Rustom Mody wrote:
>
>> Color.Red
>> print (Color.Red)
>> > Color.Red
>> > # Not sure what to make of that distinction...
>
>> That's because the intera
Rustom Mody wrote:
> In fact this:
>> >>> Color.blue.toggle()
>>
>> >>> Color.blue.toggle().toggle()
>>
>
> is a nice example of a pattern that is rarely seen:
> OO syntax, functional (ie non-state-changing) semantics.
You don't write much Python code, do you? *wink*
It is not "rarely seen" i
Terry Reedy wrote:
> On 10/9/2014 1:43 PM, mm0fmf wrote:
>> On 09/10/2014 02:29, Steven D'Aprano wrote:
>>> Apart from the horrible spelling of colour :-)
>>
>> I've always spelt colour as "color" when programming and as "colour"
>> when writing language including documentation about software.
>
On Fri, Oct 10, 2014 at 5:52 PM, Steven D'Aprano
wrote:
> "Normal" programmers spell words the same in code as they do outside of
> code, e.g.:
>
> age
> address
> length
There's a difference between identifiers and commands, though. I would
expect, for instance, that a customer's add
On Fri, Oct 10, 2014 at 5:31 PM, Irmen de Jong wrote:
> On 10-10-2014 6:21, Igor Korot wrote:
>> Hi, ALL,
>> When I am on Windows, I can write something like this:
>>
>> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> While this might work on your system, it may not work on others.
>
> - you
50 matches
Mail list logo