On 26 April 2015 at 04:02, Steven D'Aprano wrote:
> for kind in (int, float):
> try:
> return kind(astring)
>
That puzzled me for a moment until I remembered you can toss functions
around in Python. Something to play with on a Sunday afternoon ;')
But aren't most langua
On 26Apr2015 22:07, Ben Finney wrote:
Jim Mooney writes:
On 25 April 2015 at 18:03, Ben Finney wrote:
> Digest mode should only ever be used if you know for certain you will
> never be responding to any message.
That brings up a great shortcut if you use gmail. If you select some
text before
On 26Apr2015 15:20, Dave Angel wrote:
On 04/26/2015 08:07 AM, Ben Finney wrote:
That doesn't reply to the original message. So it lacks the threading
provided by the “In-Reply-To” field, since you're not replying to the
original message. [...]
When I used to subscribe here using digest, and r
On 04/26/2015 08:07 AM, Ben Finney wrote:
Jim Mooney writes:
On 25 April 2015 at 18:03, Ben Finney wrote:
Digest mode should only ever be used if you know for certain you will
never be responding to any message.
That brings up a great shortcut if you use gmail. If you select some
text bef
On 26/04/15 04:23, Spencer For Friends wrote:
I'm using a tkinter window with a button on it to open another Python
script. When the button is clicked and the new script loads it opens up
it's own window over top of my tkinter window. The problem is, when I
switch back to my tkinter window, none
Jim Mooney writes:
> On 25 April 2015 at 18:03, Ben Finney wrote:
>
> > Digest mode should only ever be used if you know for certain you will
> > never be responding to any message.
>
> That brings up a great shortcut if you use gmail. If you select some
> text before reply that's All that is se
On Sun, Apr 26, 2015 at 12:57:57PM +0100, Alan Gauld wrote:
> On 26/04/15 02:28, Jim Mooney wrote:
>
> >Another question - why does the first assignment work but not the second. I
> >can see it's a syntax error but if Py can unpack in the first case why
> >can't it unpack the same thing in the sec
On 26/04/15 02:28, Jim Mooney wrote:
Another question - why does the first assignment work but not the second. I
can see it's a syntax error but if Py can unpack in the first case why
can't it unpack the same thing in the second?
I'm not sure what you expect it to unpack. Its already a variabl
On Sat, Apr 25, 2015 at 11:23:44PM -0400, Spencer For Friends wrote:
> Hi all. I'm new to Python and I'm trying my best to learn, but I'm really
> struggling with some problems.
You've picked a *very* hard problem to solve. I can tell you what's
wrong, but I can't tell you how to fix it. I know i
Hi Juanald, or Jon if you prefer,
You're still replying to the digest, which means we're still getting six
or eight pages of messages we've already seen.
My answer to your question is below:
On Sat, Apr 25, 2015 at 11:02:56PM -0400, Juanald Reagan wrote:
> Sorry for not providing all the relev
On Sat, Apr 25, 2015 at 09:18:53PM -0700, Jim Mooney Py3winXP wrote:
> It seems odd to me that there are three tests to see if user input is
> digits - isdecimal, isdigit, isnumeric, but nothing to test for a float
> unless you use a try - except. Or did I miss something?
Yes -- the string tests d
Hi all. I'm new to Python and I'm trying my best to learn, but I'm really
struggling with some problems.
I'm using a tkinter window with a button on it to open another Python
script. When the button is clicked and the new script loads it opens up
it's own window over top of my tkinter window. The
On 25 April 2015 at 21:28, Steven D'Aprano wrote:
> What REPL are you using? I can't reproduce what you are
> reporting in the standard Python 3.3 interactive interpreter. When I
> print the transit_info I get a single block of text:
>
Ah, found the problem. I was looking at PyScripter output. W
It seems odd to me that there are three tests to see if user input is
digits - isdecimal, isdigit, isnumeric, but nothing to test for a float
unless you use a try - except. Or did I miss something? Anyway, I tried a
try - except, but I don't see why my output is all integer when I only
convert to i
Sorry for not providing all the relevant info, let me provide some
additional details:
When I run this code:
from ipwhois import IPWhois
file=open('ip.txt', 'r')
ipaddy=file.read()
obj = IPWhois(ipaddy)
results = [obj.lookup()]
print results [0]
I receive this output:
Jo
On 25 April 2015 at 17:43, Alan Gauld wrote:
> know what's going on. I seem to recall you are using Python 3,
> is that correct?
>
>
I guess I should specify from now on py3 on win xp
Another question - why does the first assignment work but not the second. I
can see it's a syntax error but if
On 25 April 2015 at 18:03, Ben Finney wrote:
> Digest mode should only ever be used if you know for certain you will
> never be responding to any message.
>
That brings up a great shortcut if you use gmail. If you select some text
before reply that's All that is sent. Cuts way down on huge reply
On Sat, Apr 25, 2015 at 05:38:58PM -0700, Danny Yoo wrote:
> On Sat, Apr 25, 2015 at 4:38 PM, Jim Mooney wrote:
> > I'm curious why, when I read and decode a binary file from the net in one
> > fell swoop, the REPL prints it between parentheses, line by line but with
> > no commas, like a defectiv
18 matches
Mail list logo