Re: (unknown)

2018-03-27 Thread Grant Edwards
On 2018-03-27, kevon harris wrote: > Unable to pull up IDLE after downloading Python 3.6.4 Ah. What happens when you push down instead of pull up? > Sent from Mail for Windows 10 Sent from mutt for Gentoo Linux -- https://mail.python.org/mailman/listinfo/python-list

Re: (unknown)

2018-03-27 Thread Terry Reedy
On 3/27/2018 3:27 AM, kevon harris wrote: Unable to pull up IDLE after downloading Python 3.6.4 What did you download? How did you install after downloading? Can you run 3.6 after installing? How did you try to run IDLE? Can you use Command Prompt? -- Terry Jan Reedy -- https://mail.python.or

Re: 0 equals False, was Re: (unknown)

2016-03-23 Thread Terry Reedy
On 3/23/2016 4:51 AM, Peter Otten wrote: The pythonic solution is "don't do this". The == operator cannot discriminate between 0, 0.0, and False, and 0j and Fraction(0, 1) and Decimal(0) or 1, 1.0, and True and 1+0j, Fraction(1, 1) and Decimal(1) Sets and dicts are based both based on (tr

Re: 0 equals False, was Re: (unknown)

2016-03-23 Thread gst
Le mercredi 23 mars 2016 04:52:02 UTC-4, Peter Otten a écrit : > Nick Eubank wrote: > > > Hello All, > > > > > > Found an odd behavior I'd never known about today, not sure if it's a bug > > or known. Python 3.4.4 (anaconda). > > True, False, 0, 1 can all be used as dictionary keys. > > > > Bu

Re: 0 equals False, was Re: (unknown)

2016-03-23 Thread INADA Naoki
Tips: Since True == 1, sum() can count Trues. >>> def count_even(seq): ... return sum(i%2 == 0 for i in seq) >>> count_even(range(100)) 50 -- https://mail.python.org/mailman/listinfo/python-list

0 equals False, was Re: (unknown)

2016-03-23 Thread Peter Otten
Nick Eubank wrote: > Hello All, > > > Found an odd behavior I'd never known about today, not sure if it's a bug > or known. Python 3.4.4 (anaconda). This is a feature. Old versions of Python did not have True and False, so they were added in a compatible way. > True, False, 0, 1 can all be us

Re: (unknown)

2016-03-11 Thread Mark Lawrence
On 11/03/2016 11:10, Swetha Reddy wrote: Hi, i just downloaded the python software. when i search for it in my downloads, a folder called python 3.5.1 ( 32 bit ) Setup is seen. But when i try to open it, it has only three options : Modify, Repair and uninstall. there are no other files of python

Re: (unknown)

2016-02-13 Thread Oscar Benjamin
On 12 February 2016 at 21:39, Mark Lawrence wrote: > On 12/02/2016 20:16, Manas Soni wrote: >> >> >> I have downloaded python and when I click on it, it asks me to repair >> which I do, it then says successful however when I click on it again it >> won’t let me on it >> Sent from Mail for Windows

Re: (unknown)

2016-02-12 Thread Mark Lawrence
On 12/02/2016 20:16, Manas Soni wrote: I have downloaded python and when I click on it, it asks me to repair which I do, it then says successful however when I click on it again it won’t let me on it Sent from Mail for Windows 10 Please search the archives as this has been asked and answere

Re: (unknown)

2015-06-20 Thread Ned Deily
In article <6264c933-0ed4-4055-baad-01b322bb6dd4@Calculus-Fantasticus-2.local>, Scott wrote: > We've been using a simple container implementation of a mathematical relation > (https://simple.wikipedia.org/wiki/Relation_(mathematics)) (i.e. an > invertible M:M mapping) for some time. [...] > Be

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread small Pox
On Dec 4, 11:37 pm, Madhu wrote: > * jvt <5e1f79ab-5432-4f18-b896-362b7406c...@i18g2000yqn.googlegroups.com> : > Wrote on Sat, 4 Dec 2010 19:34:53 -0800 (PST): > > | > | I think this is correct: > | > | > | (defun unknown-function (sym0) > |   (let (sym1 sym2) > |       (while (or sym2 sym0) > |  

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread small Pox
On Dec 5, 9:13 am, "rupertlssm...@googlemail.com" wrote: > On Dec 5, 3:34 am, jvt wrote: > > > I think this is correct: > > > (defun unknown-function (sym0) > >   (let (sym1 sym2) > >         (while (or sym2 sym0) > >           (if sym0 > >                   (if (consp sym0) > >                

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread rupertlssm...@googlemail.com
On Dec 5, 3:34 am, jvt wrote: > On Dec 4, 4:49 pm, Barb Knox wrote: > > > > > > > In article > > <46365e1d-42d8-4b3b-8e69-941472467...@u25g2000pra.googlegroups.com>, > >  small Pox wrote: > > > > Rules : > > > No need to add any additional hurdles -- the code as presented is > > thoroughly unrea

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-04 Thread jvt
On Dec 4, 4:49 pm, Barb Knox wrote: > In article > <46365e1d-42d8-4b3b-8e69-941472467...@u25g2000pra.googlegroups.com>, >  small Pox wrote: > > > Rules : > > No need to add any additional hurdles -- the code as presented is > thoroughly unreadable by humans. > > > @1@  No execution of the functio

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-04 Thread Barb Knox
In article <46365e1d-42d8-4b3b-8e69-941472467...@u25g2000pra.googlegroups.com>, small Pox wrote: > Rules : No need to add any additional hurdles -- the code as presented is thoroughly unreadable by humans. > @1@ No execution of the function, only checking syntax What about "desk checking"

Re: (unknown)

2009-12-21 Thread GilJohnson
brc.hu> writes: > > petro, I think you need to use e-mail, not IMP Gil -- http://mail.python.org/mailman/listinfo/python-list

Re: (unknown)

2009-11-16 Thread Gabriel Genellina
En Mon, 16 Nov 2009 11:11:20 -0300, Tommy Grav escribió: On Nov 15, 2009, at 11:08 AM, Gabriel Genellina wrote: En Fri, 13 Nov 2009 16:05:26 -0300, Ronn Ross escribió: I'm attempting to convert latitude and longitude coordinates from degrees minutes and second to decimal form. I would

Re: (unknown)

2009-11-16 Thread Tommy Grav
On Nov 15, 2009, at 11:08 AM, Gabriel Genellina wrote: > En Fri, 13 Nov 2009 16:05:26 -0300, Ronn Ross escribió: > >> I'm attempting to convert latitude and longitude coordinates from degrees >> minutes and second to decimal form. I would like to go from: >>N39 42 36.3 W77 42 51.5 >> to: >>

Re: (unknown)

2009-11-15 Thread Gabriel Genellina
En Fri, 13 Nov 2009 16:05:26 -0300, Ronn Ross escribió: I'm attempting to convert latitude and longitude coordinates from degrees minutes and second to decimal form. I would like to go from: N39 42 36.3 W77 42 51.5 to: -77.739855,39.70 Does anyone know of a library or some existing

Re: (unknown)

2009-11-15 Thread Gabriel Genellina
En Fri, 13 Nov 2009 16:05:26 -0300, Ronn Ross escribió: I'm attempting to convert latitude and longitude coordinates from degrees minutes and second to decimal form. I would like to go from: N39 42 36.3 W77 42 51.5 to: -77.739855,39.70 Does anyone know of a library or some existing

Re: Unknown Visual C++ error

2009-04-28 Thread Stef Mientki
Gabriel Genellina wrote: En Tue, 28 Apr 2009 08:56:34 -0300, Stef Mientki escribió: Anyone knows what this error message means ? Python 2.5.2 Either Python itself or a third-party library called the abort() function, usually due to a critical error. Try looking into any log files, or the

Re: Unknown Visual C++ error

2009-04-28 Thread Gabriel Genellina
En Tue, 28 Apr 2009 08:56:34 -0300, Stef Mientki escribió: Anyone knows what this error message means ? Python 2.5.2 Either Python itself or a third-party library called the abort() function, usually due to a critical error. Try looking into any log files, or the Windows event log, for a

Re: (unknown)

2008-04-11 Thread Steve Holden
ha bo wrote: > hi i use this programme in my application django: > import struct > MASK_CCITT = 0x1021 # CRC-CCITT mask (ISO 3309, used in X25, HDLC) > MASK_CRC16 = 0xA001 # CRC16 mask (used in ARC files) > > def updcrc(crc, data, mask=MASK_CRC16): > > data_length = len(data) >

Re: Unknown locale error for Malayalam language in Python

2008-02-26 Thread Terry Reedy
"maxinbjohn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Dear friends, | | I am a Python programmer from Kerala, India. When I tried to run a | simple python program which uses the Malayalam language (ml), | | import os | import locale | os.environ['LANG']='ml' | print locale.ge

Re: Unknown locale error for Malayalam language in Python

2008-02-26 Thread Jeroen Ruigrok van der Werven
-On [20080227 06:03], maxinbjohn ([EMAIL PROTECTED]) wrote: >ValueError: unknown locale: ml This is highly dependent on the operating system you are on. Last I remember Debian, for example, required a locale package. FreeBSD already has all locales installed, your mileage may vary. Try ls /usr/sh

Re: Unknown cause to error (new to python)

2008-01-16 Thread Bruno Desthuilliers
Brandon Perry a écrit : (top-post corrected) >> >> On Wed, 2008-01-16 at 15:12 +0100, Bruno Desthuilliers wrote: >>> Brandon Perry a écrit : (snip context) but I am getting some weird errors. File "/home/vminds/public_html/torrents/python/lib/python2.2/socket.py", line 41, in ?

Re: Unknown cause to error (new to python)

2008-01-16 Thread Brandon Perry
Sorry, this is all I can get. :-( This isn't my webserver, so the only error logs I get are what they give me. I guess I will just have to keep working at it. Thanks for looking at it though, Brandon On Wed, 2008-01-16 at 15:12 +0100, Bruno Desthuilliers wrote: > Brandon Perry a écrit : > > Hi,

Re: Unknown cause to error (new to python)

2008-01-16 Thread Bruno Desthuilliers
Brandon Perry a écrit : > Hi, I am having to compile a standalone version of python for the web > server I use (they don't allow access to /usr/bin/python). I posted > earlier about a GLib error, but I have fixed that now. I am very close > to getting this to work, but I am getting some weird error

Re: Unknown cause to error (new to python)

2008-01-16 Thread Diez B. Roggisch
Brandon Perry wrote: > Hi, I am having to compile a standalone version of python for the web > server I use (they don't allow access to /usr/bin/python). I posted > earlier about a GLib error, but I have fixed that now. I am very close > to getting this to work, but I am getting some weird errors.

Re: unknown host

2007-06-01 Thread Steve Holden
abcd wrote: > I have a linux machine (ip = 10.10.10.8), which can ping other > machines on the same subnet...such as > > 10.10.10.1 > 10.10.10.2 > 10.10.10.5 > 10.10.10.6 > 10.10.10.254 > > If I use socket.gethostbyaddr() I get back results when ip is > 10.10.10.1 and 10.10.10.254 but for the oth

Re: unknown host

2007-06-01 Thread Sion Arrowsmith
abcd <[EMAIL PROTECTED]> wrote: >I have a linux machine (ip = 10.10.10.8), which can ping other >machines on the same subnet...such as > [ ... ] >If I use socket.gethostbyaddr() I get back results when ip is >10.10.10.1 and 10.10.10.254 but for the other IP addresses >(10.10.10.5, .6, etc) I get b

Re: unknown host

2007-06-01 Thread Michael Bentley
On Jun 1, 2007, at 8:09 AM, abcd wrote: > I have a linux machine (ip = 10.10.10.8), which can ping other > machines on the same subnet...such as > > 10.10.10.1 > 10.10.10.2 > 10.10.10.5 > 10.10.10.6 > 10.10.10.254 > > If I use socket.gethostbyaddr() I get back results when ip is > 10.10.10.1 and

Re: (unknown)

2007-03-17 Thread Gabriel Genellina
En Sat, 17 Mar 2007 03:54:22 -0300, Milton Segura <[EMAIL PROTECTED]> escribió: > Hello, I'm trying to exclude files from a list using the following code: > for item in dirs:if item.find('Software') > -1: > dirs.remove(item)elif item.find('Images') > -1: > dirs.remove(i

Re: unknown encoding problem

2005-04-08 Thread John Machin
On Fri, 08 Apr 2005 15:45:35 +0200, Uwe Mayer <[EMAIL PROTECTED]> wrote: >Hi, > >I need to read in a text file which seems to be stored in some unknown >encoding. Opening and reading the files content returns: > f.read() >'\x00 \x00 \x00<\x00l\x00o\x00g\x00E\x00n\x00t\x00r\x00y\x00... > >Each

Re: unknown encoding problem

2005-04-08 Thread Leif K-Brooks
Uwe Mayer wrote: Hi, I need to read in a text file which seems to be stored in some unknown encoding. Opening and reading the files content returns: f.read() '\x00 \x00 \x00<\x00l\x00o\x00g\x00E\x00n\x00t\x00r\x00y\x00... Each character has a \x00 prepended to it. I suspect its some kind of unicod

Re: unknown encoding problem

2005-04-08 Thread Peter Otten
Uwe Mayer wrote: > I need to read in a text file which seems to be stored in some unknown > encoding. Opening and reading the files content returns: > f.read() > '\x00 \x00 \x00<\x00l\x00o\x00g\x00E\x00n\x00t\x00r\x00y\x00... > > Each character has a \x00 prepended to it. I suspect its some

Re: Unknown locale nb_NO ?

2004-12-08 Thread StasZ
On Wed, 08 Dec 2004 10:31:31 +0300, Denis S. Otkidach wrote: > On Tue, 07 Dec 2004 17:06:12 +0100 > Stas Z <[EMAIL PROTECTED]> wrote: > >> When I 'googled' for it, I saw that no_NO has become nn_NO/nb_NO. >> However it strikes me as odd, that Python2.3.4 raises an exception when >> querying for a

Re: Unknown locale nb_NO ?

2004-12-07 Thread Denis S. Otkidach
On Tue, 07 Dec 2004 17:06:12 +0100 Stas Z <[EMAIL PROTECTED]> wrote: > When I 'googled' for it, I saw that no_NO has become nn_NO/nb_NO. > However it strikes me as odd, that Python2.3.4 raises an exception when > querying for a valid locale. I tend to call it a bug :-( Is it valid? Have you trie

Re: Unknown locale nb_NO ?

2004-12-07 Thread StasZ
On Tue, 07 Dec 2004 19:19:42 +, Richard Brodie wrote: > > "Stas Z" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> However it strikes me as odd, that Python2.3.4 raises an exception when >> querying for a valid locale. I tend to call it a bug :-( > > File one in the bug tra

Re: Unknown locale nb_NO ?

2004-12-07 Thread Richard Brodie
"Stas Z" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > However it strikes me as odd, that Python2.3.4 raises an exception when > querying for a valid locale. I tend to call it a bug :-( File one in the bug tracker, then, and it might get fixed. -- http://mail.python.org/mailma

Re: Unknown locale nb_NO ?

2004-12-07 Thread Stas Z
On Tue, 07 Dec 2004 15:22:00 +0100, Ola Natvig wrote: > Stas Z wrote: >> Hello, >> >> Just noticed that the locale 'nb_NO' is not supported in Python?! >> [...] > I believe the standard locale for "Norsk bokmål" is 'no_NO'. You could > try that. When I 'googled' for it, I saw that no_NO has bec

Re: Unknown locale nb_NO ?

2004-12-07 Thread Ola Natvig
Stas Z wrote: Hello, Just noticed that the locale 'nb_NO' is not supported in Python?! [EMAIL PROTECTED]:~$ locale LANG=nb_NO [...] [EMAIL PROTECTED]:~$ python Python 2.3.4 (#2, Sep 24 2004, 08:39:09) [GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2 Type "help", "copyright", "credits" or "license" for mo