On 3/1/2016 9:35 PM, jf...@ms4.hinet.net wrote:
Recently I was puzzled by a tkinter problem. The codes below (from a book) can
display the picture correctly.
gifdir = "../gifs/"
from tkinter import *
win = Tk()
photo = PhotoImage(file=gifdir + "ora-pp.gif")
Button(win,
On Wed, 02 Mar 2016 16:59:24 +1100, Chris Angelico wrote:
> Yep! Google "how to get busted for denial of service attacks".
>
> Why would you want to test that many DNS servers?
I'm from China, and the GFW has blocked many DNS servers. So I must pick
out some good for using.
>
> ChrisA
--
On Wed, Mar 2, 2016 at 4:48 PM, Hongyi Zhao wrote:
> I've a huge number of dns servers, around +5000, and I want to find
> the top 50 fastest ones out of them for my location.
>
> Is it possible for this type of thing using python under my Debian Jessie
> box?
>
Yep! Google "how to get busted for
On Wed, Mar 2, 2016 at 4:41 PM, Marko Rauhamaa wrote:
> Steven D'Aprano :
>
>> On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote:
>>> A python shell would need a well-thought-out default import plus a
>>> way to string together external commands. Maybe JSON or similar could
>>> be the standard I/O
Hi all,
I've a huge number of dns servers, around +5000, and I want to find
the top 50 fastest ones out of them for my location.
Is it possible for this type of thing using python under my Debian Jessie
box?
Regards
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
--
h
Steven D'Aprano :
> On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote:
>> A python shell would need a well-thought-out default import plus a
>> way to string together external commands. Maybe JSON or similar could
>> be the standard I/O framing format (instead of SPC-separated fields
>> and LF-sep
On 03/01/2016 06:08 PM, Dennis Lee Bieber wrote:
On Tue, 01 Mar 2016 08:49:08 -0800, Ethan Furman declaimed the following:
Hmm, looks like that email was sent back in 2009. Sorry for the noise.
I'm still not able to find a dbf module from John, though.
Is it one of:
https://www.g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 03/01/2016 02:03 AM, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 6:58 PM, Anthony Papillion
> wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512
>>
>> On 02/29/2016 11:13 AM, Chris Angelico wrote:
>>> On Tue, Mar 1, 2016 at 4:08 AM, P
On Saturday, February 27, 2016 at 6:19:21 AM UTC-5, wrong.a...@gmail.com wrote:
> I have some VB forms with more than a hundred objects. If I cannot drag and
> drop text boxes, list boxes, labels, etc., it will be too much work to create
> that with several lines of code for each object.
>
> Is
Recently I was puzzled by a tkinter problem. The codes below (from a book) can
display the picture correctly.
gifdir = "../gifs/"
from tkinter import *
win = Tk()
photo = PhotoImage(file=gifdir + "ora-pp.gif")
Button(win, image=photo).pack()
win.mainloop()
And the codes b
On Wed, 2 Mar 2016 05:07 am, Chris Angelico wrote:
> On Wed, Mar 2, 2016 at 3:44 AM, Steven D'Aprano
> wrote:
>> A better analogy is:
>>
>> When I add cocaine to my stew, the result is a appallingly bad for those
>> who eat it. Do you have any idea how rough cocaine is on the human body
>> and b
On Tue, Mar 1, 2016 at 6:19 PM, Steven D'Aprano wrote:
> On Wed, 2 Mar 2016 09:29 am, Ian Kelly wrote:
>
>> There's a big difference between
>> that and clocking a year of uptime just because you can, though.
>
> What other reason is there for having a year of uptime?
>
> It's not like it is diffi
On Wed, Mar 2, 2016 at 12:51 PM, Steven D'Aprano wrote:
> On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote:
>
>> Steven D'Aprano :
>>
>>> On Sun, 28 Feb 2016 11:38 pm, BartC wrote:
It's the GUI users who are the Neanderthals, having to effectively
point at things with sticks. Or have to
On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote:
> Steven D'Aprano :
>
>> On Sun, 28 Feb 2016 11:38 pm, BartC wrote:
>>> It's the GUI users who are the Neanderthals, having to effectively
>>> point at things with sticks. Or have to physically move that rock
>>> themselves (ie. drag a file to a
Hello,
I'm just getting to grips with RDF and rdflib, and I've hit
something I can't figure out.
I have a graph with information on two people. (I haven't shown the
imports below because they're scattered around my interactive session
and I might reconstruct them incorrectly. Anyone familiar
On Wed, 2 Mar 2016 09:29 am, Ian Kelly wrote:
> There's a big difference between
> that and clocking a year of uptime just because you can, though.
What other reason is there for having a year of uptime?
It's not like it is difficult. My laptop doesn't actually go anywhere: for
historical reason
On Wed, Mar 2, 2016 at 9:29 AM, Ian Kelly wrote:
> I certainly understand the value of being able to work on a mudlib
> without having to restart the mud. There's a big difference between
> that and clocking a year of uptime just because you can, though.
Oh, sure. I mentioned the year because I h
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote:
> On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote:
>
>> An exception is raised because you pass the command as a single argument
>
>
>
> I did not realize that how the command was passed would
> make such a difference. I guess I am stu
On Tue, Mar 1, 2016 at 3:02 PM, Chris Angelico wrote:
> On Wed, Mar 2, 2016 at 8:53 AM, Ian Kelly wrote:
>> I have a hard time understanding the appeal of super-long uptimes. I'm not
>> even comfortable running a single kernel version that long. What's so awful
>> about 5 minutes of announced dow
On Wed, Mar 2, 2016 at 8:53 AM, Ian Kelly wrote:
> On Mar 1, 2016 4:41 AM, "Chris Angelico" wrote:
>>
>> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano
> wrote:
>> > I cannot imagine why you would want to reload() in production code. That
>> > would imply that your production code is modifying
On Mar 1, 2016 4:41 AM, "Chris Angelico" wrote:
>
> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano
wrote:
> > I cannot imagine why you would want to reload() in production code. That
> > would imply that your production code is modifying already-imported
> > modules, then wanting to import them
On Tue, Mar 1, 2016 at 2:27 PM, Terry Reedy wrote:
> On 3/1/2016 12:24 PM, ast wrote:
>
>> class Premiere:
>> def __init__(self, price):
>> pass
>> p = Premiere(1000)
>>
>> which is OK.
>
> Premiere is callable because it inherits object.__call__. That function, or
> the implementati
On 3/1/2016 12:24 PM, ast wrote:
Hello
It's not clear to me what arguments are passed to the
__new__ method.
The objects passed to any function are the objects that are passed. The
type and number of objects that *should be* passed depends on the
signature of the function.
If class C defi
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote:
> Am 29.02.16 um 22:51 schrieb Wildman:
>> I want to take an image file, convert it to XBM format and
>> display it. Thanks to Mr. Otten I can open and display the
>> XBM image without any problems. The script first calls an
>> exte
On Tue, Mar 1, 2016 at 11:24 AM, ast wrote:
>
> class Premiere:
>
>def __new__(cls, price):
>return object.__new__(cls, price)
>
>def __init__(self, price):
>pass
>
> p = Premiere(1000)
>
> it fails. It is strange because according to me it is equivalent to:
>
> class Premi
Am 29.02.16 um 22:51 schrieb Wildman:
I want to take an image file, convert it to XBM format and
display it. Thanks to Mr. Otten I can open and display the
XBM image without any problems. The script first calls an
external program for the image conversion then I can open
and display it. Of cou
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote:
> An exception is raised because you pass the command as a single argument
I did not realize that how the command was passed would
make such a difference. I guess I am stuck in my old
VB habits for creating variables. You don't have to
s
On 2/29/2016 6:42 PM, quoc tuong via Python-list wrote:
Hi python stopped working on this error: The debug process never
connected back to Wing IDE: Aborting debug session. See
Trouble-shooting Failure to Debug in the product manual.
Dit you do that -- check the manual? If the 'product manual
Wildman via Python-list wrote:
> On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote:
>> Wildman via Python-list wrote:
>>> convert = "convert " + fileName + " -resize 48x48! -threshold 55% xbm:-"
>>> p = subprocess.Popen([convert], stdout=subprocess.PIPE, shell=True)
>>> xbmFile, err = p.comm
On Wed, Mar 2, 2016 at 2:53 AM, Dan Strohl wrote:
> If you are trying to start an argument, or trolling, I suggest trying
> something more controversial... "Python is the worst language in the world
> because you have to indent everything exactly, that is a really stupid
> design!", that, I sus
Steven D'Aprano :
> On Sun, 28 Feb 2016 11:38 pm, BartC wrote:
>> It's the GUI users who are the Neanderthals, having to effectively
>> point at things with sticks. Or have to physically move that rock
>> themselves (ie. drag a file to a wastebasket).
>
> I haven't physically moved an icon to the
On Wed, Mar 2, 2016 at 3:44 AM, Steven D'Aprano wrote:
> On Mon, 29 Feb 2016 07:33 pm, Chris Angelico wrote:
>
>> On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote:
>>> As for why you should avoid JS/CSS, Web pages open very slowly, jump
>>> around wildly during rendering and have unexpected
On Wed, Mar 2, 2016 at 4:11 AM, Steven D'Aprano wrote:
> On Tue, 1 Mar 2016 10:39 pm, Chris Angelico wrote:
>
>> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano
>> wrote:
>>> I cannot imagine why you would want to reload() in production code. That
>>> would imply that your production code is mod
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote:
> Wildman via Python-list wrote:
>
>> I want to take an image file, convert it to XBM format and
>> display it. Thanks to Mr. Otten I can open and display the
>> XBM image without any problems. The script first calls an
>> external program
On Mar 1, 2016 9:11 AM, "Shamanov" wrote:
>
> I can't work with Python
I'm sorry to hear that. If you want some help you will have to give us more
information.
--
https://mail.python.org/mailman/listinfo/python-list
Hello
It's not clear to me what arguments are passed to the
__new__ method. Here is a piece of code:
class Premiere:
def __new__(cls, price):
return object.__new__(cls)
def __init__(self, price):
pass
p = Premiere(1000)
No errors, so it seems that 2 arguments are pa
On Tue, 1 Mar 2016 10:39 pm, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano
> wrote:
>> I cannot imagine why you would want to reload() in production code. That
>> would imply that your production code is modifying already-imported
>> modules, then wanting to import them
On Tue, 1 Mar 2016 04:08 am, Rustom Mody wrote:
> And who is the last arbiter on that 'reality'?
I'll give you the benefit of the doubt that this is a genuine question, and
not just an attempt to ask a rhetorical question to demonstrate your
profundity.
You should not assume that there is any su
On Tue, 1 Mar 2016 12:25 am, alien2u...@gmail.com wrote:
>> As for need of import in Idle session, I use it to
>> - import sys
>> - sys.append.path('D:\\Where\\Ever\\My\\Modules\\Lie')
>
> Kindly read above as
> sys.path.append()
>
>> - import mymodule
There are better ways to manage your
On Mon, 29 Feb 2016 07:13 pm, Ganesh Pal wrote:
> def run_cmd_and_verify(cmd, timeout=1000):
> try:
> out, err, ret = run(cmd, timeout=timeout)
> assert ret ==0,"ERROR (ret %d): " \
> " \nout: %s\nerr: %s\n" % (ret, out, err)
Do not use assert for error checki
On 01.03.2016 13:13, Steven D'Aprano wrote:
On Tue, 1 Mar 2016 09:38 am, Larry Martell wrote:
But what is reality?
Reality is that which, when you stop believing in it, doesn't go away.
Just like that.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 29 Feb 2016 07:33 pm, Chris Angelico wrote:
> On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote:
>> As for why you should avoid JS/CSS, Web pages open very slowly, jump
>> around wildly during rendering and have unexpected artifacts (not to
>> mention the numerous data collection abus
Il giorno mercoledì 15 luglio 2009 18:30:29 UTC+2, John Machin ha
scritto:
Hmm, looks like that email was sent back in 2009. Sorry for the noise.
I'm still not able to find a dbf module from John, though.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 28 Feb 2016 11:38 pm, BartC wrote:
> On 28/02/2016 06:34, Steven D'Aprano wrote:
>
>> GUI elements are by definition graphical in nature, and like other
>> graphical elements, manipulation by hand is superior to command-based
>> manipulation. Graphical interfaces for manipulating graphics
Il giorno mercoledì 15 luglio 2009 18:30:29 UTC+2, John Machin ha scritto:
If dbfpy can't handle any new-fangled stuff you may have in your
files, drop me a line ... I have a soon-to-be released DBF module that
should be able to read the "new" stuff up to dBase7 and VFP9,
including memo files,
I am sorry, though I have to say that I would find it hard working with a large
snake every day as well. Luckily, there is a programing language (called
Python) that could help in developing a snake removing application pretty
easily.
If, however you are actually talking about the programming
Hi python stopped working on this error: The debug process never connected back
to Wing IDE: Aborting debug session. See Trouble-shooting Failure to Debug in
the product manual.
can you please show me how to fix this issue, thanks.
--
https://mail.python.org/mailman/listinfo/python-list
I can't work with Python
--
https://mail.python.org/mailman/listinfo/python-list
Il giorno mercoledì 15 luglio 2009 18:30:29 UTC+2, John Machin ha scritto:
> On Jul 15, 8:39 pm, David Lyon wrote:
> > On Wed, 15 Jul 2009 11:53:28 +0200, Helmut Jarausch
> >
> > wrote:
> > > Hi,
> >
> > > I have a lot of old Dbase files (.dbf) and I'll like to convert these
> > > to SQLite datab
On Tue, 1 Mar 2016 09:38 am, Larry Martell wrote:
> But what is reality?
Reality is that which, when you stop believing in it, doesn't go away.
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 1 Mar 2016 04:38 am, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 4:34 AM, Ganesh Pal wrote:
>> On Mon, Feb 29, 2016 at 10:10 PM, Dennis Lee Bieber
>> wrote:
>>
>>> Ask yourself: Will my program still work if I remove all the
>>> assert
>>> statements. If the answer is
On Tue, 1 Mar 2016 03:29 am, Ian Kelly wrote:
> On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
>> Iam on python 2.6
>
> Python 2.6 has been unsupported since October 2013. Among other
> things, that means it is no longer receiving security updates like
> more recent versions. Unless you have
On Tue, 1 Mar 2016 12:56 am, jonas.thornv...@gmail.com wrote:
> I mean for for example Javascript
Jonas, this is a Python forum. If we thought Javascript was a beautiful and
well-designed language, we're be on a Javascript forum, complaining about
Python.
> if (typeof array[index] !== 'undefine
On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano wrote:
> I cannot imagine why you would want to reload() in production code. That
> would imply that your production code is modifying already-imported
> modules, then wanting to import them again. Why would anyone in their right
> mind do that? Pos
On Mon, 29 Feb 2016 06:01 pm, Chris Angelico wrote:
> I've never used reload() in any production code, ever. Ever.
reload() isn't intended for production code. It is a convenience for
interactive use.
I cannot imagine why you would want to reload() in production code. That
would imply that your
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian:
> It's not at all clear what the problem is from your description. What
> is it that you expect the code to do? What is it doing instead that
> violates your expectation? Why are you asking for Javascript help on a
> Python mailing list?
>
> On
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian:
> It's not at all clear what the problem is from your description. What
> is it that you expect the code to do? What is it doing instead that
> violates your expectation? Why are you asking for Javascript help on a
> Python mailing list?
>
> On
Wildman via Python-list wrote:
> I want to take an image file, convert it to XBM format and
> display it. Thanks to Mr. Otten I can open and display the
> XBM image without any problems. The script first calls an
> external program for the image conversion then I can open
> and display it. Of c
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian:
> It's not at all clear what the problem is from your description. What
> is it that you expect the code to do? What is it doing instead that
> violates your expectation? Why are you asking for Javascript help on a
> Python mailing list?
>
> On
On Tue, Mar 1, 2016 at 6:58 PM, Anthony Papillion
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On 02/29/2016 11:13 AM, Chris Angelico wrote:
>> On Tue, Mar 1, 2016 at 4:08 AM, Peter Pearson
>> wrote:
>>> try: smtp.sendmail(message['From'], message['To'],
>>> message.as_string())
60 matches
Mail list logo