Re: python response slow when running external DLL

2015-11-27 Thread jfong
Peter Otten at 2015/11/27 UTC+8 8:20:54PM wrote: > Quick-fix example: > def download(): > var.set("Starting download...") > root.update_idletasks() > time.sleep(3) > var.set("... done") Thanks, Peter, The update_idletasks() works. In my trivial program it's easy to apply for ther

Re: Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs)

2015-11-27 Thread INADA Naoki
OrderedDict is now faster and efficient. On Sat, Nov 28, 2015 at 10:42 AM, Ben Finney wrote: > Laura Creighton writes: > > > […] python3.5 which I infinitely prefer over 3.4. > > That's strong language :-) > > Laura – and anyone else – what in your opinion are the best improvements > brought by

Re: Find relative url in mixed text/html

2015-11-27 Thread Grobu
On 28/11/15 03:35, Rob Hills wrote: Hi, For my sins I am migrating a volunteer association forum from one platform (WebWiz) to another (phpBB). I am (I hope) 95% of the way through the process. Posts to our original forum comprise a soup of plain text, HTML and BBCodes. A post */may/* include

Re: Find relative url in mixed text/html

2015-11-27 Thread Paul Rubin
Rob Hills writes: > Note, in the beginning of this project, I looked at using "Beautiful > Soup" but my reading and limited testing lead me to believe that it is > designed for well-formed HTML/XML and therefore was unsuitable for the > text/html soup I have. If that belief is incorrect, I'd be g

Find relative url in mixed text/html

2015-11-27 Thread Rob Hills
Hi, For my sins I am migrating a volunteer association forum from one platform (WebWiz) to another (phpBB). I am (I hope) 95% of the way through the process. Posts to our original forum comprise a soup of plain text, HTML and BBCodes. A post */may/* include links done as either standard HTML li

Re: Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs)

2015-11-27 Thread Laura Creighton
In a message of Sat, 28 Nov 2015 12:42:30 +1100, Ben Finney writes: >Laura Creighton writes: > >> […] python3.5 which I infinitely prefer over 3.4. > >That's strong language :-) > >Laura – and anyone else – what in your opinion are the best improvements >brought by Python 3.5 (over Python 3.4)?

Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs)

2015-11-27 Thread Ben Finney
Laura Creighton writes: > […] python3.5 which I infinitely prefer over 3.4. That's strong language :-) Laura – and anyone else – what in your opinion are the best improvements brought by Python 3.5 (over Python 3.4)? -- \ “DRM doesn't inconvenience [lawbreakers] — indeed, over time it |

Re: Python 3 virtualenvs

2015-11-27 Thread D.M. Procida
Laura Creighton wrote: > In a message of Sat, 28 Nov 2015 00:37:21 +, D.M. Procida writes: > >I have a new installation of Debian Jessie, with Python 2.7 and 3.4 > >installed. > > > >I want to use Python 3.4 by default for most things, so I want > >virtualenv to create Python 3.4 virtualenvs

Re: Python 3 virtualenvs

2015-11-27 Thread Laura Creighton
In a message of Sat, 28 Nov 2015 00:37:21 +, D.M. Procida writes: >I have a new installation of Debian Jessie, with Python 2.7 and 3.4 >installed. > >I want to use Python 3.4 by default for most things, so I want >virtualenv to create Python 3.4 virtualenvs unless I ask it to >otherwise. > >It

Python 3 virtualenvs

2015-11-27 Thread D.M. Procida
I have a new installation of Debian Jessie, with Python 2.7 and 3.4 installed. I want to use Python 3.4 by default for most things, so I want virtualenv to create Python 3.4 virtualenvs unless I ask it to otherwise. It turns out that this seems to be inordinately complex. The best solution I hav

Re: fexit: file transfer of ANY size

2015-11-27 Thread Ulli Horlacher
paul.hermeneu...@gmail.com wrote: > > I am now looking for beta testers. If you are interested, send me a mail. > > Can you tell us a git or svn repository from which the kit is available? Available via email request. > Or, is this a proprietary product? No. -- Ullrich Horlacher

Re: fexit: file transfer of ANY size

2015-11-27 Thread paul.hermeneutic
> And what is F*EX? > ==> Frams' Fast File EXchange, a service for transfering files of ANY size > from any user A to any user B in the internet. > For details see: http://fex.rus.uni-stuttgart.de/ > > I am now looking for beta testers. If you are interested, send me a mail. Can you tell us a git

Re: What is a function parameter =[] for?

2015-11-27 Thread Chris Angelico
On Sat, Nov 28, 2015 at 12:24 AM, Laura Creighton wrote: > I think it's just another instance of Just-In-Time Manufacturing > https://en.wikipedia.org/wiki/Just-in-time_manufacturing > > "As soon as you need a object, we'll have one ready". :) Just-In-Time Quantum Manufacturing: "As soon as you n

Re: What is a function parameter =[] for?

2015-11-27 Thread Laura Creighton
In a message of Fri, 27 Nov 2015 23:57:29 +1100, "Steven D'Aprano" writes: >On Fri, 27 Nov 2015 01:56 pm, MRAB wrote: > >> On 2015-11-27 02:44, Steven D'Aprano wrote: > >>> The PyPy implementation has to take special actions to preserve the ID >>> across object recreations. That is what I mean by "

Re: What is a function parameter =[] for?

2015-11-27 Thread Steven D'Aprano
On Fri, 27 Nov 2015 01:56 pm, MRAB wrote: > On 2015-11-27 02:44, Steven D'Aprano wrote: >> The PyPy implementation has to take special actions to preserve the ID >> across object recreations. That is what I mean by "faked". >> > You could argue that it _does_ continue to exist, it just changes it

Re: python response slow when running external DLL

2015-11-27 Thread Laura Creighton
In a message of Fri, 27 Nov 2015 13:20:03 +0100, Peter Otten writes: >A cleaner solution can indeed involve threads; you might adapt the approach >from (Python 2 code). But it is probably better to use threading http://code.activestate.com/recipes/82

Re: Help with this program???

2015-11-27 Thread Denis McMahon
On Fri, 27 Nov 2015 01:43:53 -0800, justin bloomer wrote: > Your program should contain a function that: > 1. Seeks input from the user (via the keyboard); > 2. To build a list of student exam results; > 3. For each student their name (first and last), student number, and > mark out of 100 should

Re: python response slow when running external DLL

2015-11-27 Thread Peter Otten
jf...@ms4.hinet.net wrote: > Peter Otten at 2015/11/27 UTC+8 5:19:17 PM wrote: > > Hi! Peter, thanks for your prompt reply. > >> What does var_status.set() do? If it writes to stdout you may just need >> to flush(). > >var_status is a StringVar which binds to a lable's textvariable. I use

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-27 Thread Marko Rauhamaa
BartC : > I think [functions] are more first class in Lisp than they are in most > other languages including Python. Functions in Python and Lisp have the same status. I would say that Python is one of the many modern Lisp derivatives. What Python still lacks is: * A way to augment the languag

Re: python response slow when running external DLL

2015-11-27 Thread jfong
Peter Otten at 2015/11/27 UTC+8 5:19:17 PM wrote: Hi! Peter, thanks for your prompt reply. > What does var_status.set() do? If it writes to stdout you may just need to > flush(). var_status is a StringVar which binds to a lable's textvariable. I use this label as the status bar to show mes

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-27 Thread BartC
On 27/11/2015 01:09, Steven D'Aprano wrote: On Thu, 26 Nov 2015 12:23 pm, BartC wrote: [First-class functions] The names are declared, but the names are rarely bound to anything else. Functions are just called the same boring way they are in C. /They might as well be static definitions/. Su

Re: Help with this program???

2015-11-27 Thread Laura Creighton
In a message of Fri, 27 Nov 2015 01:43:53 -0800, justin bloomer via Python-list writes: >Your program should contain a function that: >1. Seeks input from the user (via the keyboard); >2. To build a list of student exam results; >3. For each student their name (first and last), student number, and

Re: Help with this program???

2015-11-27 Thread Ben Finney
justin bloomer via Python-list writes: > Your program should contain a function that: This is a homework assignment, yes? We're not going to write the code for you. If you have a program you already wrote, we can offer feedback on *your* code. You should also collaborate with other classmates

Re: Help with this program???

2015-11-27 Thread Chris Angelico
On Fri, Nov 27, 2015 at 8:43 PM, justin bloomer via Python-list wrote: > Your program should contain a function that: > 1. Seeks input from the user (via the keyboard); > 2. To build a list of student exam results; > 3. For each student their name (first and last), student number, and mark > out o

Help with this program???

2015-11-27 Thread justin bloomer via Python-list
Your program should contain a function that: 1. Seeks input from the user (via the keyboard); 2. To build a list of student exam results; 3. For each student their name (first and last), student number, and mark out of 100 should be captured; 4. For full marks regular expressions or similar mechani

Re: python response slow when running external DLL

2015-11-27 Thread Peter Otten
jf...@ms4.hinet.net wrote: > I am new to Python. As an exercise of it, I try to port a program which > was written more than 10 years ago. This program use the Borland C++ > Builder as its GUI front end and a DLL does the real work(it will takes a > few seconds to complete). I saw a strange phenom