Re: [ANN]: Last Chance 2005 IORCC Entries

2005-03-30 Thread Ivan Van Laningham
think of us, and why should we enter a contest where we are dissed by being shoehorned into someone else's categories? Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-1

Re: Using something other than ';' to separate statements

2005-03-30 Thread Ivan Van Laningham
iscourage using it though--it's somewhat obtuse. > Bad Michael. Bad, bad Michael. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu

Re: string goes away

2005-03-31 Thread Ivan Van Laningham
gt; [i.upper() for i in u] ['A', 'B', 'C'] >>> Works pretty well for me. Better'n map() any day. > I am sure there has been lots of discussion on whether or not to remove > the string module. Maybe you can just direct me to the right place.

Re: Stylistic question about inheritance

2005-03-31 Thread Ivan Van Laningham
] those guys were thinking making 200 twelve-line ASP classes. Ya think there's a hard-wired limit past which your brain melts? > Paraphrasing Occam, I would say "don't multiply base classes without > necessity" ;) > +1 QOTW Metta, Ivan -----

Re: string goes away

2005-04-01 Thread Ivan Van Laningham
persuade a boatload of Java programmers that? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Pseudocode in the wikipedia

2005-04-01 Thread Ivan Van Laningham
ble machines from Xerox that might make it hard to make > an ass-based identity system resistant to attacks. http://www.jacquelinestallone.com/rumps.html Metta, Ivan PS: I don't think this is an 0401 page; it's been there a while. -- Ivan Van Laningham

Re: Pseudocode in the wikipedia

2005-04-02 Thread Ivan Van Laningham
nything else. Now that I'm not working I've got time to catch up on what's new in Python. Nice to see a few familiar faces, too. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.c

Re: IronPython 0.7 released!

2005-04-05 Thread Ivan Van Laningham
Hi All-- Tim Peters wrote: > > not-mentioning-that-i-don't-feel-particularly-embraced-yet-ly y'rs - tim > Don't worry, Tim. You will. -ly y'rs, Ivan Meta: <1984-in-what-base-was-that?>-ly y'rs, Ivan ------ I

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
Hi All-- [EMAIL PROTECTED] wrote: > > Windows: textpad > Linux: vim > Windows: gvim Linux: gvim, or vim if I have to. Other unices: gvim, vim, vi SlickEdit doesn't suck. Emacs doesn't suck, either. Metta, Ivan ------ Iv

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
h as I love 'em. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Ivan Van Laningham
re, the language didn't change, just the environment around it--includes, libs, where things lived, etc. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedi

Re: shebang in cross platform scripts

2005-04-06 Thread Ivan Van Laningham
install a link in /usr/bin to whereever python lives, and expect #!/usr/bin/python to work just fine. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html

Re: curious problem with large numbers

2005-04-08 Thread Ivan Van Laningham
or "license" for more information. > > >>> 1e1 > > Inf > > >>> > > > > regards > > Steve > I guess the behavior is also hardware-dependent. FWIW, I tested on an Athlon > XP > box. >

Re: Interpreter problem

2005-04-08 Thread Ivan Van Laningham
rb")] & re-writing [open(foofile,"wb")] a file will do this if you are not excruciatingly careful. If you don't have dos2unix on your win system, but do have cat, you can use cat -d. #!/bin/sh cat -d $1 > snot mv snot $1 (Prone to error, of course.) -ly

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Ivan Van Laningham
pledge $10. > Are there another nine people here who'll do the same? > > Why don't we pay him $100 to re-write the PERL docs? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/pyt

Re: Utah Python Users Group

2005-04-13 Thread Ivan Van Laningham
any groups but I might be interested. > Ditto. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of 

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Ivan Van Laningham
e chromatic scale is base12. > c c# d d# e f f# g g# a a# b > Oooh. Wanta hear it. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: A little request about spam

2005-04-14 Thread Ivan Van Laningham
g as before it was working at near enough > > 100% accuracy. > > And I don't suppose there's much we can do about it? > -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/worksh

Re: A little request about spam

2005-04-14 Thread Ivan Van Laningham
ily do base decisions on the whole subject line, and I think that's perfectly reasonable. There's nothing else to go on without opening the message, and for HTML-based mail there's no surer way to let spammers know they've found a live email addres than to open it. You know tha

Re: Converting a perl module to a python module would it be worthit?

2005-04-14 Thread Ivan Van Laningham
sion of CPAN, but it's taking a long time. I think they started in 1998 or so? Haven't kept up, so I have no idea what's taking so long. I'm sure someone more knowledgeable than me will come along and set us straight. Metta, Ivan

Slight discrepancy with filecmp.cmp

2005-04-17 Thread Ivan Van Laningham
e's a line going through the picture above which it's normal, and below it either the color has changed (usually to pinkish) or the remaining raster lines are all shifted either right or left? Any ideas? Metta, Ivan ------ Ivan Van Laningham God N L

ANN: Python Training In South Africa

2005-04-18 Thread Gerrit van Dyk
AgileWorks (Pty) Ltd will be presenting an "Introduction to Python" training course at "The Innovation Hub" from the 4-6th of May 2005. For more detail visit our website: (http://www.agileworks.net/AgileWorks/Training/Python/) -- http://mail.python.org/mailman/listinfo/python-list

Re: Slight discrepancy with filecmp.cmp

2005-04-18 Thread Ivan Van Laningham
Hi All-- John Machin wrote: > > On Sun, 17 Apr 2005 22:06:04 -0600, Ivan Van Laningham > <[EMAIL PROTECTED]> wrote: > [snip] > > So I wrote a set of > >programs to both index the disk versions with the cd versions, and to > >compare, using filecmp.cmp(),

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
;letter:\\" or GetVolumeInformation() doesn't always work. There are probably better ways to do these things, but they do work; I've been using them constantly the last few days. Metta, Ivan -- Ivan Van Laningham God N Locomotive Wor

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
ng a long converted to a hex repr string, while win32api is returning an int (type(sn) is ), & converting to hex bears no resemblance to what WMI shows. What am I missing? Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.an

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
more information. >>> hex (-793919769) '-0x2f524119' >>> Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Variables variable

2005-04-19 Thread Ivan Van Laningham
tionary turned out to be a Spectacularly Bad Idea(tm);-), so I guess that's one case. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Ivan Van Laningham
be a good language for him, don't you? Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach

Re: trying to read from dying disk

2005-04-23 Thread Ivan Van Laningham
ers trying to interrupt (with ^C) a process that is waiting for a hardware interrupt. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps:

embedding python onto a fox-board

2005-04-23 Thread Floris van Manen
Is there anyone who already ported python onto a acme-systems linux fox-board? http://www.acmesystems.it/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Rudeness on this list [Re: rudeness was: Python licence again]

2005-04-24 Thread Ivan Van Laningham
tty nice list then, it's a pretty nice list now, so I'm afraid I must disagree with François. Oh, and Gordon. Don't see Gordon around. Where's he? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ htt

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Hi All-- "R. C. James Harlow" wrote: > > or just: > > for a,b,c in (tup1, tup2, tup3): > print a > print b > print c > And this works in Python version??? Metta, Ivan ------ Ivan Van Laningham God

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Hi All-- "R. C. James Harlow" wrote: > > On Monday 25 April 2005 14:34, Ivan Van Laningham wrote: > > Hi All-- > > > > "R. C. James Harlow" wrote: > > > or just: > > > > > > for a,b,c in (tup1, tup2, tup3): > > >

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
> > It's a valid interpretation of the OP's > ambiguously stated requirements, though probably > not the right one. > I can see that now. I had three hours sleep last night and my brain hurts, so I don't get it. I seek enlightenment. Metta, Ivan ---

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Peter Hansen wrote: > > Ivan Van Laningham wrote: > > I can see that now. I had three hours sleep last night and my brain > > hurts, so I don't get it. I seek enlightenment. > > So do I: did you mean you don't even "get" what > my code is doing

Re: Python documentation moronicities (continued)

2005-04-26 Thread Ivan Van Laningham
t;rewrote" documentation. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Pyt

Re: Fwd: how to find the drive in python/cygwin?

2005-04-26 Thread Ivan Van Laningham
;ll still get the drive letter, but inf will be None Drives.append([dr,inf]) return Drives if __name__=="__main__": drives=findAllDrives() for i in drives: print i[0],i[1] cut here Metta, Ivan ------ I

Re: PDF Printing support from Python

2005-04-27 Thread Piet van Oostrum
dnowism. >DBR> It could be that he means that creating PDFs on windows is done using >DBR> a fake printer that will produce the pdf when being printed to - and >DBR> that fake printer is implemented as a driver. But that is about creating a PDF file, whereas the OP was speaking abou

Re: Fwd: how to find the drive in python/cygwin?

2005-04-30 Thread Ivan Van Laningham
Hi All-- Jason Tishler wrote: > > Ivan, > > On Tue, Apr 26, 2005 at 07:02:48PM -0600, Ivan Van Laningham wrote: > > Use win32api to find drives: > > > > cut here > > #!/usr/bin/python > > # -*- coding: utf-8 -*- > > > > impo

Re: Fwd: how to find the drive in python/cygwin?

2005-04-30 Thread Ivan Van Laningham
, and so on--rather than anything substantive. I try to use os.path.sep() and os.path.join(), etc. What else could bite me? ;-) Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/199

Re: Program Translation - Nov. 14, 2013

2013-11-17 Thread James Van Buskirk
"E.D.G." wrote in message news:[email protected]... > For one thing, the input and output routines need to be changed. > And we want it to be able to generate charts or graphs. The existing > program will generate only text data. You can generate charts and

Re: Oh look, another language (ceylon)

2013-11-18 Thread Piet van Oostrum
ge reference manual rather than reading in detail.) So, yes, > they're O(n) operations. Thanks for hunting that down. > > ChrisA It would be so much better to use the Flexible String Representation. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: If you continue being rude i will continue doing this

2013-11-18 Thread Piet van Oostrum
t helped a bit these would have been done in a couple of hours. How could anyone have known that this was the problem? AFIAK you didn't even tell about the VPS. And moreover this wasn't a Python problem, so off topic here. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: python socket query

2013-12-23 Thread Piet van Oostrum
of 1 sec s.settimeout() call after the send call but it > doesnot help. > > I tried by commenting s.close() still it did not work. > > Any idea what is the problem? Length(reply) == 0 means that the other side closed the socket without sending anything back. -- Piet van Oostr

Re: Python mange with liste

2013-12-29 Thread Piet van Oostrum
";"+r1 > > f=open("test.txt","r") > conten = f.read() > print conten > f.close() > > #f=open("test.txt","a") > #f.write(infos) > #f.write('\n') > #f.close() > > > thank you =) -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: Python/Django Extract and append only new links

2014-01-01 Thread Piet van Oostrum
r information with it also (and then it would be partly a Django problem because you would get the user id from Django). -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: "More About Unicode in Python 2 and 3"

2014-01-05 Thread Emile van Sebille
On 01/05/2014 02:32 PM, Serhiy Storchaka wrote: I wonder why nobody complains about the absent of implicit conversion between int and str. In PHP you can write 2 + "3" and got 5, but in Python this is an error. So sad! I'd want my implicit conversion of 2 + '3' to get '23' That's why it's not

class inheritance python2.7 vs python3.3

2014-01-06 Thread jwe . van . dijk
I have problems with these two classes: class LPU1(): def __init__(self, formula): """ formula is a string that is parsed into a SymPy function and several derived functions """ self.formula = formula ... ... class LPU3(LPU1): def __new_

Re: informal #python2.8 channel on freenode

2014-01-06 Thread Emile van Sebille
Why not contribute to the planned Stackless 2.8? As I understand their direction, they'll be backporting certain v3.x features and will be prepping both SLP and nonSLP versions. Emile On 01/06/2014 04:45 AM, Martijn Faassen wrote: Fellow Pythoneers, I've started an informal channel "#pytho

Re: class inheritance python2.7 vs python3.3

2014-01-06 Thread jwe . van . dijk
On Monday, 6 January 2014 18:14:08 UTC+1, [email protected] wrote: > I have problems with these two classes: > > > > class LPU1(): > > def __init__(self, formula): > > """ > > formula is a string that is parsed into a SymPy function > > and several derived func

Re: Editor for Python

2014-01-08 Thread Emile van Sebille
On 1/8/2014 12:47 PM, Terry Reedy wrote: For a Python editor, as opposed to a general code editor, the Idle editor works pretty well and has some advantages with respect to integration with the interpreter. While true, ISTM in the past there have been 'leakage' related issues with idle -- are

Re: Editor for Python

2014-01-08 Thread Emile van Sebille
On 1/8/2014 3:46 PM, Terry Reedy wrote: On 1/8/2014 3:56 PM, Emile van Sebille wrote: On 1/8/2014 12:47 PM, Terry Reedy wrote: For a Python editor, as opposed to a general code editor, the Idle editor works pretty well and has some advantages with respect to integration with the interpreter

Re: the Gravity of Python 2

2014-01-09 Thread Piet van Oostrum
utc from the doc and use that: from datetime import tzinfo, timedelta, datetime ZERO = timedelta(0) class UTC(tzinfo): """UTC""" def utcoffset(self, dt): return ZERO def tzname(self, dt): return "UTC" def dst(self, dt):

Re: the Gravity of Python 2

2014-01-09 Thread Piet van Oostrum
; elegant solution (for text: Unicode; for time zones: twelve simple, >> static zones that never change) > > Twelve or twenty-four? Or are you thinking we should all be an even > number of hours away from UTC, which would also work? Even 24 doesn't take into account DST. -- Pie

Re: the Gravity of Python 2

2014-01-09 Thread Piet van Oostrum
Chris Angelico writes: > On Fri, Jan 10, 2014 at 1:06 AM, Piet van Oostrum wrote: >> Chris Angelico writes: >> >>> On Thu, Jan 9, 2014 at 2:34 PM, Ben Finney >>> wrote: >>>> With time zones, as with text encodings, there is a single technically

Re: Bytes indexing returns an int

2014-01-09 Thread Piet van Oostrum
narrow-minded and Unicode > illiterate. They are neither of these things. > > Continuing to post these comments with no interest in learning is rude. > Other recent threads have contained details rebuttals of your views, > which you have ignored. This is rude. Please stop. Please ign

Re: Monkeypatching a staticmethod?

2014-01-10 Thread Piet van Oostrum
Ian Kelly writes: > I suggest defining x as a normal function and writing the assignment > as "Foo.x = staticmethod(x)" to keep x callable from the global > namespace. Or just del it after doing the monkey patch. You can use Foo.x = staticmethod(lambda: 2) -- Piet van

Re: python first project

2014-01-12 Thread Emile van Sebille
On 01/11/2014 09:14 PM, ngangsia akumbo wrote: From all indication it is a very huge project. Yep -- I built such a system in the late 70's with a team of seven over two-three years. Then modifications and improvements continued over the next 20 years keeping about 2-4 programmers busy ful

Re: Python example source code

2014-01-12 Thread Emile van Sebille
On 01/12/2014 06:37 AM, ngangsia akumbo wrote: where can i find example source code by topic? I'd recommend http://effbot.org/librarybook/ even though it's v2 specific and somewhat dated. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem writing some strings (UnicodeEncodeError)

2014-01-12 Thread Emile van Sebille
On 01/12/2014 07:36 AM, Paulo da Silva wrote: Hi! I am using a python3 script to produce a bash script from lots of filenames got using os.walk. I have a template string for each bash command in which I replace a special string with the filename and then write the command to the bash script fil

Re: setup.py issue - some files are included as intended, but one is not

2014-01-15 Thread Piet van Oostrum
t. m4_treap.m4 contains this instruction twice: ifdef(/*pyx*/,cp)if current is None: ifdef(/*pyx*/,cp)raise KeyError Which when generating pyx_treap.pyx (with *pyx* defined) expands to the syntactically incorrect cpif current is None: cpraise KeyError -- P

Re: Python 3.x adoption

2014-01-16 Thread Piet van Oostrum
Travis Griggs writes: > Personally, I wish they’d start python4, sure would take the heat out of > the 3 vs 2 debates. And maybe there’d be a program called twentyfour as > a result. twelve would be sufficient, I would think. -- Piet van Oostrum WWW: http://pietvanoostrum.com

How to write this as a list comprehension?

2014-01-17 Thread Piet van Oostrum
_, mn, dy, _, _, _, wd, _, _ in [localtime(then)]] Python misses a 'where' or 'let'-like construction as in Haskell. Anybody has a more elegant solution? -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: How to write this as a list comprehension?

2014-01-18 Thread Piet van Oostrum
Rustom Mody writes: > On Saturday, January 18, 2014 4:49:55 AM UTC+5:30, Piet van Oostrum wrote: [...] > >> Python misses a 'where' or 'let'-like construction as in Haskell. > > +1 > Yes Ive often been bitten by the lack of a 'comprehension-let

Re: How to write this as a list comprehension?

2014-01-18 Thread Piet van Oostrum
Alain Ketterlin writes: > Piet van Oostrum writes: > [...] >> Python misses a 'where' or 'let'-like construction as in Haskell. > > "let x = v in e" really is (lambda x:e)(v) > You are right, but it is a lot less readable IMHO. -- Piet v

Re: question about input() and/or raw_input()

2014-01-18 Thread Emile van Sebille
On 01/18/2014 10:30 AM, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Yes - routinely. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: How to write this as a list comprehension?

2014-01-19 Thread Piet van Oostrum
where (sic!) the last part means as much as where _, mn, dy, _, _, _, wd, _, _ = localtime(then) I find the list comprehension preferable because it makes it more clear that a new list is constructed from an existing list, something that is not as immediately clear with the append construction.

Re: How to write this as a list comprehension?

2014-01-20 Thread Piet van Oostrum
of a sequence/iterator. There is no way to bind the name(s) to a single object other than putting that object in a one element sequence. I was just looking for a way to avoid that. Functional programming languages have a way to do this with the 'let' or 'where' construction

Re: Diving in to Python - Best resources?

2014-01-20 Thread Emile van Sebille
On 1/20/2014 11:34 AM, Matt Watson wrote: My question to you guys is... for someone like me, what route would you take to learning Python? I'd work my way through the tutorial [1] then pick a work based project and start right in. Ask questions along the way. Emile [1] http://docs.pytho

Re: Early retirement project?

2014-01-22 Thread Piet van Oostrum
[email protected] writes: > In fact, Python just becomes the last tool I (would) > recommend, especially for non-ascii users. > > jmf In fact, Python 3 is one of the best programming tools for non-ASCII users. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE

Re: Can post a code but afraid of plagiarism

2014-01-23 Thread Emile van Sebille
On 1/23/2014 1:15 PM, indar kumar wrote: On Saturday, January 18, 2014 3:21:42 PM UTC-7, indar kumar wrote: Hi, I want to show a code for review but afraid of plagiarism issues. Kindly, suggest how can I post it for review here without masking it visible for public hosts={'PC2':['02:02:02:

Re: Can post a code but afraid of plagiarism

2014-01-23 Thread Emile van Sebille
On 1/23/2014 1:34 PM, indar kumar wrote: On Saturday, January 18, 2014 3:21:42 PM UTC-7, indar kumar wrote: Hi, I want to show a code for review but afraid of plagiarism issues. Kindly, suggest how can I post it for review here without masking it visible for public Just the value e.g.01:01

Re: Can post a code but afraid of plagiarism

2014-01-24 Thread Piet van Oostrum
xtract an element of a list use indexing, like mylist[0]. If you don't know these things or can't find this out yourself, you have a serious lack of knowledge about Python, or maybe about programming, and it is time to learn that first. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: Highlighting program variables instead of keywords?

2014-01-29 Thread Piet van Oostrum
der.com > I seriously think jmf has a mental disorder. So these reactions won't do anything useful. Just ignore. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: A new version (0.3.6) of python-gnupg has been released.

2014-02-06 Thread Piet van Oostrum
Vinay Sajip writes: > A new version of the Python module which wraps GnuPG has been > released. > There seem to be 2 gnupg modules for Python. The other one has version number 1.2.5. Very confusing! -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4]

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

2015-11-25 Thread Arie van Wingerden
>and even then, familiar to who? High school algebra students will at >first be baffled by "x = x + 1", an equation which is clearly >unsatisfiable. Some languages are "better" in that specific case in my opinion (mind te double quotes :-) - Ada and Pascal use := instead of = which is simpler t

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

2015-11-25 Thread Emile van Sebille
On 11/25/2015 4:25 AM, Antoon Pardon wrote: I think there are reasons to find the above behaviour bizarre. I personnaly don't find it bizarre, but that is because I'm familiar with what is going on. Which I suspect is necessary. >but if someone expects the compilor to take a snapshot of L and

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

2015-11-25 Thread Emile van Sebille
On 11/25/2015 5:20 AM, BartC wrote: it seems to be more lucrative to write thicker user manuals, and provide longer training courses, than to make software simpler. If that were true, certainly by now the sufficiently thick manual would provide crystal clear explanations. :) I-don't-think-

Re: "Downloading"

2015-12-02 Thread Emile van Sebille
On 12/2/2015 8:37 AM, Marko Rauhamaa wrote: Grant Edwards : On 2015-12-01, Chris Angelico wrote: download is initiated by the recipient; an upload is initiated by the sender. Nope. It doesn't depend on who initiated the transfer, up/down is a direction. I upload things to the Host on the I

Re: Stop writing Python 4 incompatible code

2016-01-15 Thread Emile van Sebille
On 1/14/2016 3:55 PM, Rick Johnson wrote: But, when you have almost infinitely deep pockets, like Google, you don't need to create *everything* yourself, no, you simply wait for someone else to build it, then wait a little longer for them to market it successfully, and when it's jt starti

Re: How to resize an animated gif to fit the window

2016-02-05 Thread Emile van Sebille
Googling that finds https://cloud.google.com/appengine/docs/python/images/ which may be of some help. Emile On 1/29/2016 5:50 PM, [email protected] wrote: Hi, I am able to display animated gif using pyglet using below code, but I would like the image to stretch and fit the window as i resize

Re: There has to be a better way to split this string!

2016-02-15 Thread Emile van Sebille
On 2/9/2016 10:50 PM, Cameron Simpson wrote: On 10Feb2016 07:34, srinivas devaki wrote: PS: trying to read mailing list when you are half woke, is a bad idea and trying reply to it is even bad idea. Regrettably, when one is half awake one is unable to realise what a bad idea it may be:-)

PyQt5 not found from Python

2016-02-21 Thread Arie van Wingerden
Python 3.5.1 installed in default Windows folder here: C:\Users\Arie\AppData\Local\Programs\Python\Python35-32 PyQt5 installed - it creates a folder c:\Python34 In the Python REPL i try: from PyQt5 import QtCore Traceback (most recent call last): File "", line 1, in ImportError: No module

Re: PyQt5 not found from Python

2016-02-21 Thread Arie van Wingerden
Thx. Didn't realize that! -- https://mail.python.org/mailman/listinfo/python-list

Re: child.before taking almost 1 minute to execute

2016-02-24 Thread Emile van Sebille
On 2/24/2016 7:42 AM, pyfreek wrote: The following snippet alone is taking 1 minute to execute. is there any best way to find 'No such file' other than using child.before if not scrutinFile.startswith('/') : scrutinFile = '/'+ scrutinFile

Re: subprocess startup error

2016-02-26 Thread Emile van Sebille
On 2/26/2016 6:49 AM, Oscar Benjamin wrote: On 26 February 2016 at 13:30, Peter Otten <[email protected]> wrote: Shweta Dinnimani wrote: i saved my file as string.py since than i'm facing this error Rename that file to something that does not clash with the module names in the standard library

Re: Loading error message

2016-03-14 Thread Arie van Wingerden
I saw similar errors when using PyInstaller. It has something to do with Windows 10 afaik. 2016-03-13 14:17 GMT+01:00 BobFtz--- via Python-list : > Hello > > I have just downloaded and installed a copy of the 3.5.1 programme but when > I come to run the programme I get an error message that say

Re: Loading error message

2016-03-14 Thread Arie van Wingerden
Hi Oscar, that is weird. I am using Windows 10 and get exactly the same "warnings" when I run PyInstaller. But the update you mention is only available for up to Windows 8.1. What about Windows 10 then?? Best, Arie 2016-03-13 19:52 GMT+01:00 Oscar Benjamin : > On 13 Mar 2016 17:06, "BobFtz-

Re: Loading error message

2016-03-14 Thread Arie van Wingerden
Hi, I could solve the problem on Windows 10 this way: - install Windows 10 stand alone sdk https://dev.windows.com/en-us/downloads/windows-10-sdk - add this dir to PATH: C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86 HTH, Arie 2016-03-14 13:07 GMT+01:00 Arie van Wingerden

Re: Loading error message

2016-03-14 Thread Arie van Wingerden
Benjamin : > On 14 March 2016 at 12:07, Arie van Wingerden wrote: > > that is weird. I am using Windows 10 and get exactly the same "warnings" > > when I run PyInstaller. > > But the update you mention is only available for up to Windows 8.1. > > > > What ab

Re[2]: Loading error message

2016-03-14 Thread Arie van Wingerden
maandag, 14 maart 2016, 06:04PM +0100 van Oscar Benjamin : >I've fixed the quoting below. Can you not top-post please Arie? >On 14 March 2016 at 16:59, Arie van Wingerden < [email protected] > wrote: >> 2016-03-14 15:59 GMT+01:00 Oscar Benjamin < oscar.j.benja...@gmail.

Re[3]: Re[2]: Loading error message

2016-03-14 Thread Arie van Wingerden
maandag, 14 maart 2016, 06:21PM +0100 van Oscar Benjamin : >On 14 March 2016 at 17:15, Arie van Wingerden < [email protected] > wrote: >> I've fixed the quoting below. Can you not top-post please Arie? >> On 14 March 2016 at 16:59, Arie van Wingerden <  xapw...@gmai

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-04 Thread Theo van Werkhoven
You could go to and get the Altair 8800 or IMSAI 8080 emulator. Run the program and toggle in binary code for these easy to use 8 bit processors. There's a short manual for the IMSAI on the same page and the manual plus instruction s

Re: Reg: scrappring error

2015-01-12 Thread Emile van Sebille
On 1/11/2015 9:27 PM, Sushanth wrote: urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. Looks like the server has a link on this page pointing back to itself or somesuch. Does this help? Emile -- https://mail.python.org/mai

Re: How to "wow" someone new to Python

2015-01-16 Thread Emile van Sebille
On 1/16/2015 9:44 AM, Chris Angelico wrote: > exact line of code that would show off Python's awesomeness. a,b = b,a Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is DOOMED! Again!

2015-01-22 Thread Emile van Sebille
On 1/21/2015 8:30 PM, Steven D'Aprano wrote: Here's an example from PEP 484: def greeting(name: str) -> str: return 'Hello ' + name I've been lightly scanning and following the PEP 484 discussion, and one point I don't think I've seen mentioned is how you might hint a function that a

Re: Python is DOOMED! Again!

2015-01-22 Thread Emile van Sebille
On 1/22/2015 5:00 PM, Chris Angelico wrote: On Fri, Jan 23, 2015 at 11:40 AM, Sturla Molden wrote: Type hinting will be mandatory because of bad managers. But then someone is going to ask what benefit Python has to offer: Type hinting will never be mandatory, I'm sure it will be in some pla

Re: What killed Smalltalk could kill Python

2015-01-23 Thread Emile van Sebille
On 1/23/2015 2:48 PM, [email protected] wrote: On Thursday, January 22, 2015 at 9:39:53 PM UTC-8, alex23 wrote: I seem to recall an interview with someone from Blizzard Entertainment mentioning that the first Warcraft game (Released in 1994) was developed by passing around floppy disks w

Re: Is there a more elegant way to spell this?

2015-01-27 Thread Emile van Sebille
On 1/27/2015 9:49 AM, Rob Gaddi wrote: Or the somewhat less indenty for x in seq: if not some_predicate: continue do_something_to(x) ... or shorter and equally less indenty for x in seq: if some_predicate: do_something_to(x) -- https://mail.python.org/mailman/listinfo/python

Re: CSV and number formats

2015-02-01 Thread Emile van Sebille
On 1/31/2015 10:45 PM, Frank Millman wrote: If the opening balance is positive, it appears as '+0021.45' If it is negative, it appears as '+0-21.45' My advise is to get cash in payment. :) Emile -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >