google sheet and google app engine(GAE) python

2016-06-09 Thread lee
how do connect my google sheet and my GAE application made in python so that i can read , update and delete cells , any step by instruction for newbie? -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-27 Thread lee
> >Instead, your function should examine the "kind" parameter and decide > >what to do. So it would reasonably look like this (untested): > > > > def manipulate_data(kind, data): > > if kind == 'list': > > ... do stuff with data using it as a list ... > > elif kind == 'set': > > ...

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-27 Thread lee
> > After you've called the function, anything you do to the result is not > done BY the function and will therefore not be done when called by other > code. > > The unit test that calls the function will not do those things. It > expects them to already be done. > > So ... what changes to yo

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-27 Thread lee
On Sunday, December 27, 2015 at 9:32:24 PM UTC+1, Prince Udoka wrote: > thanks mr cameron simpson, finally at i got the solution, God bless you: > def manipulate_data(kind, data): > if kind == 'list': > for data in [1, 2, 3, 4, 5]: > return data.reverse() > elif kind ==

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-28 Thread lee
I'm still stuck on this, any Rescuer? -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-28 Thread lee
On Monday, December 28, 2015 at 10:38:47 AM UTC+1, Ben Finney wrote: > lee writes: > > > I'm still stuck on this, any Rescuer? > > You appear to be yet another different person asking about this homework > assignment. > > Please: > > * This forum is not su

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Monday, December 28, 2015 at 11:30:18 PM UTC+1, Cameron Simpson wrote: > On 28Dec2015 01:34, Prince Udoka wrote: > >bu i have come up with a solution, that will work but encounter a problem in > >the set, giving set not manipulated correctly: > > > >def manipulate_data(kind, data): > >if k

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Tuesday, December 29, 2015 at 11:48:42 AM UTC+1, Cameron Simpson wrote: > On 29Dec2015 00:49, lee wrote: > >thumbs up Cameron , you and others here are really wonderful > >https://mail.python.org/mailman/listinfo/python-list > > Hi Lee, > > While we'r

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-12 Thread lee
You're still struggling with this question because you didn't take your time to read the previous comments here , the solution to this and other question has being posted long ago before new year here , just read previous comments. Remember don't use print , instead use return . -- https://ma

which book to read next??

2014-04-21 Thread lee
Hi, I have read the book 'a byte of python' and now I want to read another book. But I just get confused about which one to read next. There is a book list below: 1, pro python 2, python algorithms 3, python cookbook 4, the python standard library by examples which one is suitable for me?? Or I ne

which book to read next??

2014-04-21 Thread lee
Thanks for all of the respones, Writing a game in pygame is a good idea. Thank you! -- 发自 Android 网易邮箱-- https://mail.python.org/mailman/listinfo/python-list

Exception Handling (C - extending python)

2011-10-22 Thread Lee
Hi all, Where does PyExc_TypeError (and alike) points to? I can see its declaration - PyAPI_DATA(PyObject *) PyExc_TypeError; - in pyerrors.h but I cannot figure out what it is its value, where it is initialized. Any help is greatly appreciated. Lee -- http://mail.python.org/mailman/listinfo

Re: Exception Handling (C - extending python)

2011-10-23 Thread Lee
Thanks Stefan, I am just interested to understand the mechanism inside python. If it points to an object that means I can defered it (through ob_type). >From there, how a function like PyErr_SetString knows what exception is? Where its value is kept? Lee On Oct 23, 10:06 pm, Stefan Beh

Re: Exception Handling (C - extending python)

2011-10-23 Thread Lee
es by without raising an exception. Any explanations?... Lee -- http://mail.python.org/mailman/listinfo/python-list

newbieee

2007-01-08 Thread lee
I getting familiarised with python...can any one suggest me a good editor available for python which runs on windows xpone more request guys...can nyone tell me a good reference manual for python.. -- http://mail.python.org/mailman/listinfo/python-list

Subprocess Not Working on Solaris

2007-06-15 Thread Lee
is a select.so module. This does not exist on the Solaris box, only subprocess exists. Within subprocess.py on the Solaris box, exists the following: " else: import select import errno import fcntl import pickle " Any ideas? I'd like to get the subprocess module working... -Lee -- http://mail.python.org/mailman/listinfo/python-list

modules...n methods

2007-01-12 Thread lee
First of all thnx guys for ur cover on ma questionsOk some more then...whats the way to read the sourcecode of methods and built in functions? -- http://mail.python.org/mailman/listinfo/python-list

indentation in python

2007-01-13 Thread lee
Can anyone tell me the basics about indentation in python..how we use it in loops and constructs..etc -- http://mail.python.org/mailman/listinfo/python-list

running applications in python

2007-01-25 Thread lee
how can i run or open a windows application from the python prompt?for e.g.mediaplayer opening,folder acess etc -- http://mail.python.org/mailman/listinfo/python-list

import from future

2007-01-27 Thread lee
what are the things that we can do with import from future usage.i heard its very interesting..thanks -- http://mail.python.org/mailman/listinfo/python-list

from future module!!!!!!!

2007-01-28 Thread lee
Guys whats the from future module in python?thanks -- http://mail.python.org/mailman/listinfo/python-list

electronics and python

2007-02-06 Thread lee
Hi guys.Is there any software written using python for electronics.i mean any simulation software or something?? -- http://mail.python.org/mailman/listinfo/python-list

RE: How to get all the variables in a python shell

2008-05-30 Thread Lee
Hi, thank your for your reply. I will try iPython. I did try sage for a while, but I found it quite heavy, and I'm not sure whether it's easy to expand like python or not. New libraries can be easily imported in python, and those libraries could be build in almost any popular computer language. C

help needed with dictionary

2008-08-29 Thread lee
hi all, i am a newbie in python. i was trying to work with dictionaries. i wanted to input values through command line and store the values in a dictionary. i mean for the same key , multiple values. can any1 suggest me how can i do it.thank you i tried this, but the old value is repl

Re: help needed with dictionary

2008-08-29 Thread lee
hi, thank you, ur code was helpful :) On Aug 29, 2:18 pm, Bruno Desthuilliers wrote: > lee a écrit : > > > > > hi all, > > i am a newbie in python. i was trying to work with dictionaries. i > > wanted to input values through command line and store the

how to find position of dictionary values

2008-09-01 Thread lee
hi, i have a dictionary as follows : kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', 'sgsd', 'sdfsdf', 'gdf'], 'name': ['ds', 'dsg', 'dsfds', 'fgdf'], 'address': ['sdg', 'dsgsdg', 'sdf', 'dfg']} if user is enters the 3rd item of key phno, ie "dfsdf" in my dict, how can i find it is

Re: how to find position of dictionary values

2008-09-01 Thread lee
u only want one result > > You can also skip the 'if' verification in which case you need to catch > ValueError exception in case there is no such entry in the current list. > > Hope it helps. > > lee wrote: > > hi, > > i have a dictionary as follows :

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 1:45 pm, Bruno Desthuilliers wrote: > lee a écrit : > > > hi, > > i have a dictionary as follows : > > kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', > > 'sgsd

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 1:45 pm, Bruno Desthuilliers wrote: > lee a écrit : > > > hi, > > i have a dictionary as follows : > > kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', > > 'sgsd

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 1:45 pm, Bruno Desthuilliers wrote: > lee a écrit : > > > hi, > > i have a dictionary as follows : > > kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', > > 'sgsd

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 1:45 pm, Bruno Desthuilliers wrote: > lee a écrit : > > > hi, > > i have a dictionary as follows : > > kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', > > 'sgsd

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 2:37 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > lee wrote: > > On Sep 1, 1:45 pm, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > >> lee a écrit : > > >> > hi, > >> > i have a dictionary as follows : &

Re: how to find position of dictionary values

2008-09-01 Thread lee
On Sep 1, 3:59 pm, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > On Mon, 1 Sep 2008 03:51:13 -0700 (PDT), lee wrote: > > i am soory for that keystrokes. can anyone tell me how can i change > > the value of key. > > suppose i have a dictionary > > > kev = {

Dictionary used to build a Triple Store

2010-01-07 Thread Lee
Definitely a newbie question, so please bear with me. I'm reading "Programming the Semantic Web" by Segaran, Evans, and Tayor. It's about the Semantic Web BUT it uses python to build a "toy" triple store claimed to have good performance in the "tens of thousands" of triples. Just in case an

Re: Dictionary used to build a Triple Store

2010-01-07 Thread Lee
Lee wrote: Definitely a newbie question, so please bear with me. I'm reading "Programming the Semantic Web" by Segaran, Evans, and Tayor. It's about the Semantic Web BUT it uses python to build a "toy" triple store claimed to have good performance in the &

getlocals and getargs

2009-10-27 Thread Lee
Yes, It's actually quite easy to implement getlocals = lambda fn: fn.func_code.co_varnames[:] getargs = lambda fn: getlocals()[:fn.func_code.co_argcount] Of course, this doesn't take into account *args and **kwargs. To figure out if a function have args and kwargs, do a binary and (&) between fun

Re: How to read source code of python?

2010-06-11 Thread Lee
On Jun 10, 7:53 am, Floris Bruynooghe wrote: > On Jun 10, 8:55 am, Thomas Jollans wrote: > > > On 06/10/2010 07:25 AM, Qijing Li wrote: > > > > Thanks for your reply. > > > I'm trying to understand python language deeply and  use it efficiently. > > > For example: How the operator "in" works on l

Re: How to read source code of python?

2010-06-11 Thread Lee
On Jun 10, 10:26 am, Giampaolo Rodolà wrote: > 2010/6/10 Leon : > > > Hi, there, > > I'm trying to read the source code of python. > > I read around, and am kind of lost, so where to start? > > > Any comments are welcomed, thanks in advance. > > -- > >http://mail.python.org/mailman/listinfo/python

ValueError: invalid literal for int():

2010-07-26 Thread lee
Hi, I have a value, partintid = int(Screw plugg (91_10 -> untitled)) but i get ValueError: invalid literal for int(): Screw plugg (91_10 - > untitled) any help? - Sunny -- http://mail.python.org/mailman/listinfo/python-list

Re: ValueError: invalid literal for int():

2010-07-26 Thread lee
On Jul 26, 4:30 pm, Steven D'Aprano wrote: > On Mon, 26 Jul 2010 04:12:33 -0700, Chris Rebert wrote: > > On Mon, Jul 26, 2010 at 4:03 AM, Sunny chilgod > > wrote: > >> Hi Chris, > >> Thanks for your help. but i need to to convert the whole string to int. > >> heres my full code, > >> ptid = 'item

obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
explain the details at http://lee-phillips.org/scripttag/ and am writing here as a heads-up to anyone who might be using a workflow similar to mine: writing documents in xml and using python and elementtree to transform those into xhtml webpages, and using the standard kludge of serving them as text

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
I went with a space, but a comment is a better idea. I only mention the

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
I went with a space, but a comment is a better idea. I only mention the

Re: Cutting a deck of cards

2013-05-31 Thread Lee Crocker
Why on Earth would you want to? "Cutting" a deck makes no sense in software. Randomize the deck properly (Google "Fisher-Yates") and start dealing. Cutting the deck will not make it any more random, and in fact will probably make it worse depending on how you choose the cutpoint. The purpose of

Re: Cutting a deck of cards

2013-06-01 Thread Lee Crocker
>> and in fact will probably make it worse depending on how you choose >> the cutpoint. > I'm pretty sure it won't. Otherwise you'd be lowering entropy by doing > a random thing to a random thing. Doing a random thing to a random thing usually *does* lower entropy when the "random" things are a

[ANNC] pynguin-0.15 python turtle graphics application

2013-06-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release ma

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Cucole Lee
Why Thinter? You can try wxpython. -- http://mail.python.org/mailman/listinfo/python-list

Re: Has anyone gotten Pyglet to work

2013-07-29 Thread Lee Harr
> $ ./pyglet.py > Traceback (most recent call last): >    File "./pyglet.py", line 2, in >      import pyglet >    File "/home/collier/pyglet.py", line 3, in >      song = pyglet.media.load('./boot.ogg') > AttributeError: 'module' object has no attribute 'media' Name your program something othe

can someone teach me this?

2012-07-20 Thread Menghsiu Lee
Hi, I have tried 1000 times to compile this python file to be an exe file by using py2exe and gui2exe But, it does not work out. I am thinking if there can be some genius teaching me how to make this happen. The link in below is the complete code with all sources. Everything is open to everyon

[ANNC] pybotwar-0.8

2012-08-15 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is making all functionality available from the PyQt interface and making PyQt the default interface. pybotwar uses pybox2d for the

QThread.terminate in Python 3

2012-09-23 Thread Lee Harr
Hi; I have asked this on the PyQt list, but have not seen any response yet. Hoping someone will be able to test this on their system to see if they see the same problem. The problem I am seeing is that terminating a QThread running certain code will freeze the program, requiring it to be kill'd.

Re: QThread.terminate in Python 3

2012-09-28 Thread Lee Harr
>> I understand that use of QThread.terminate is discouraged, >> but it has worked well previously and I would like to continue >> this use if possible. >> >       And now you've encountered the reason it is discouraged. Ok. Point taken. What I hear you saying is that once I use .terminate anyth

python wiki gone?

2013-01-05 Thread Lee Harr
Have I just happened across wiki.python.org at a bad time, or is the wiki gone? When I go to wiki.python.org I get redirected to http://wiki.python.org/moin/ which is 404 Not Found. -- http://mail.python.org/mailman/listinfo/python-list

Ubuntu Python -dbg packages

2013-01-06 Thread Lee Harr
I am using: Ubuntu 12.10 Python 3.2.3 Qt 4.8.2 PyQt 4.9.3 I also have the ubuntu -dbg packages: python3-dbg python3-pyqt4-dbg I don't understand why python3-dbg cannot import the PyQt4 modules... $ python3 Python 3.2.3 (default, Oct 19 2012, 19:53:57) [GCC 4.7.2] on linux2 Type "help", "

Re: Ubuntu Python -dbg packages

2013-01-06 Thread Lee Harr
> On 1/6/2013 8:42 AM, Lee Harr wrote: >> >> I am using: >> Ubuntu 12.10 >> Python 3.2.3 > > import has been considerably redone, and hopefully upgraded, in 3.3. Ok, so now I tried python3.3-dbg but I don't think the pyqt modules are compiled for 3.3 and t

Re: Ubuntu Python -dbg packages

2013-01-07 Thread Lee Harr
>> Ok, so now I tried python3.3-dbg but I don't think the pyqt >> modules are compiled for 3.3 and that may be preventing >> the import there. >> >> Those extension modules would need to be compiled for >> an exactly matching python interpreter, right? > > For Windows visual C compiler, that is tr

object aware of others

2012-01-28 Thread Lee Chaplin
ns (a000), but it doesn't work if they are called from a different module, say: import a000 a = a000.A() b = a000.B() c = a000.A() c.update() I presume there is something that need to replace the globals() call, but I cannot find what. Any help is greatly appreciated. Thanks, Lee -- http://mail.python.org/mailman/listinfo/python-list

New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread Xah Lee
New Science Discovery: Perl Idiots Remain Idiots After A Decade! A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 on “Operators”. Quote: «The associativity of an operator governs whether it evaluates from left to right or right to left. Addition is left associative, such that

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread Xah Lee
y bad written. Becha ass! Xah On Feb 29, 4:08 am, Kiuhnm wrote: > On 2/29/2012 9:09, Xah Lee wrote: > > > > New Science Discovery: Perl Idiots Remain Idiots After A Decade! > > > A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 > > on “Operator

lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-02-29 Thread Xah Lee
fun example. in-place algorithm for reversing a list in Perl, Python, Lisp http://xahlee.org/comp/in-place_algorithm.html plain text follows What's “In-place Algorithm”? Xah Lee, 2012-02-29 This page tells you what's “In-place algorithm”, usi

Re: lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-02-29 Thread Xah Lee
On Feb 29, 9:01 pm, Steven D'Aprano wrote: > You don't need a temporary variable to swap two values in > Python. A better way to reverse a list using more Pythonic idioms is: > > for i in range(len(list_a)//2): >     list_a[i], list_a[-i-1] = list_a[-i-1], list_a[i] forgive me sir, but i haven't

Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp

2012-03-01 Thread Xah Lee
On Mar 1, 7:04 am, Kaz Kylheku wrote: lisp: (floor (/ x y)) --[rewrite]--> (floor x y) Thanks for this interesting point. I don't think it's a good lang design, more of a lang quirk. similarly, in Python 2.x, x/y will work when both x and y are integers. Also, x//y works too, but that // is j

Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp

2012-03-02 Thread Xah Lee
Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote: «Neither the behavior of ints nor the behavior of IEEE floating point is a "quirk" or an "idiosyncracy

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-02 Thread Xah Lee
n when 2 operators are adjacent e.g. 「3 △ 6 ▲ 5 」? do you happen to know some site that shows the relevant page i can have a look? thanks. Xah On Mar 1, 3:00 am, Kiuhnm wrote: > On 3/1/2012 1:02, Xah Lee wrote: > > > i missed a point in my original post. That is, when the same

are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
On Mar 5, 9:26 pm, Tim Roberts wrote: > Xah Lee wrote: > > >some additional info i thought is relevant. > > >are int, float, long, double, side-effects of computer engineering? > > Of course they are.  Such concepts violate the purity of a computer > language&#

a interesting Parallel Programing Problem: asciify-string

2012-03-06 Thread Xah Lee
here's a interesting problem that we are discussing at comp.lang.lisp. 〈Parallel Programing Problem: asciify-string〉 http://xahlee.org/comp/parallel_programing_exercise_asciify-string.html here's the plain text. Code example is emacs lisp, but the problem is general. for a bit python relevancy…

Daemonization / Popen / pipe issue

2012-03-16 Thread Lee Clemens
- I understand a lot of pieces included here are not necessary in this case. Any assistance/advice would be greatly appreciated. Thanks, Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemonization / Popen / pipe issue

2012-03-17 Thread Lee Clemens
On 03/16/2012 11:37 PM, John O'Hagan wrote: > On Fri, 16 Mar 2012 22:12:14 -0400 > Lee Clemens wrote: > >> I have a multi-threaded application >> >> I have provided a test-case here: https://gist.github.com/2054194 > I haven't looked at your test case ye

ANN: cmd2, an extenstion of cmd that parses its argument line

2012-03-18 Thread anntzer . lee
ither using Python 3's function annotation syntax, or with an ad-hoc ``annotate`` decorator, allowing the dispatcher to parse the argument list for them. Antony Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemonization / Popen / pipe issue

2012-03-21 Thread Lee Clemens
On 03/18/2012 12:15 AM, Cameron Simpson wrote: > BTW, Lee, there is an external module for daemonising things in the UNIX > sense: > http://pypi.python.org/pypi/python-daemon > I recommend you use it. > > Cheers, I haven't updated the gist yet, but I did try it with the

perldoc: the key to perl

2012-03-26 Thread Xah Lee
〈Perl Documentation: The Key to Perl〉 http://xahlee.org/perl-python/key_to_perl.html plain text follows - So, i wanted to know what the option perl -C does. So, here's perldoc perlrun. Excerpt: -C [*number/list*] The -C flag controls some

Is Programing Art or Science?

2012-04-02 Thread Xah Lee
the refreshen of the blood, from Xah's Entertainment Enterprise, i bring you: 〈Is Programing Art or Science〉 http://xahlee.org/UnixResource_dir/writ/art_or_science.html penned in the year of our lord two thousand and two, plain text version follows. Is Progra

Google Tech Talk: lisp at JPL

2012-04-02 Thread Xah Lee
Dearly beloved lisperati, I present you, Ron Garret (aka Erann Gat — aka Naggum hater and enemy of Kenny Tilton), at Google Tech Talk 〈The Remote Agent Experiment: Debugging Code from 60 Million Miles Away〉 Google Tech Talk, (2012-02-14) Presented by Ron Garret. @ http://www.youtube.com/watch?v=_

Re: Is Programing Art or Science?

2012-04-03 Thread Xah Lee
On Apr 3, 8:22 am, Rainer Weikusat wrote: > Xah Lee writes: > > [...] > > > For example, “Is mathematics science or art?”, is the same type of > > question that has been broached by dabblers now and then. > http://en.wikipedia.org/wiki/Liberal_arts this is the best

how i loved lisp cons and UML and Agile and Design Patterns and Pythonic and KISS and YMMV and stopped worrying

2012-04-07 Thread Xah Lee
format follows, as a amenity for tech geekers. --- World Multiconference on Systemics, Cybernetics and Informatics ??? Xah Lee, 2010-04-04 Starting in 2004, i regularly receive email asking me to participate a conference, called “World Multiconference

f python?

2012-04-08 Thread Xah Lee
hi guys, sorry am feeling a bit prolifit lately. today's show, is: 〈Fuck Python〉 http://xahlee.org/comp/fuck_python.html Fuck Python By Xah Lee, 2012-04-08 fuck Python. just fucking spend 2 hours and still going. here's the short story. so

Re: f python?

2012-04-08 Thread Xah Lee
On Apr 8, 4:34 am, Steven D'Aprano wrote: > On Sun, 08 Apr 2012 04:11:20 -0700, Xah Lee wrote: > > [...] > > I have read Xah Lee's post so that you don't have to. > > Shorter Xah Lee: > >     "I don't know Python very well, and rather than adm

Re: f python?

2012-04-08 Thread Xah Lee
Xah Lee wrote: « http://xahlee.org/comp/fuck_python.html » David Canzi wrote «When Microsoft created MS-DOS, they decided to use '\' as the separator in file names.  This was at a time when several previously existing interactive operating systems were using '/' as the

Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread Xah Lee
〈Emacs Lisp vs Perl: Validate Local File Links〉 http://xahlee.org/emacs/elisp_vs_perl_validate_links.html a comparison of 2 scripts. lots code, so i won't paste plain text version here. i have some comments at the bottom. Excerpt: -- «One thing interesting is to compare the app

sort by column a csv file case insensitive

2012-04-15 Thread Lee Chaplin
thedata = list(readit) thedata = sorted(thedata, key = lambda x: (operator.itemgetter(columnnumber) ,x[0].lower())) #!!! with open(csvfilename, 'wb') as f: writeit = csv.writer(f) writeit.writerows(thedata) The line marked is the culprit. Any help is greatly appreciated.

sort by column a csv file case insensitive

2012-04-16 Thread Lee Chaplin
file for clarity.) >From the previous email I would like to call: sortcsvbyfield('e.txt', 4) I am on python 2.6 on Win. Thanks, Lee -- http://mail.python.org/mailman/listinfo/python-list

A Design Pattern Question for Functional Programers

2012-04-18 Thread Xah Lee
Functional programing is getting the presses in mainstream. I ran across this dialogue where a imperative coder was trying to get into functional programing: A: What are the design patterns that help structure functional systems? B: Design patterns? Hey everyone, look at the muggle try to get

Re: ANN: cmd2, an extenstion of cmd that parses its argument line

2012-04-26 Thread anntzer . lee
I have renamed the project to parsedcmd, which is also a better description of what the module does. https://github.com/anntzer/parsedcmd On Monday, March 19, 2012 6:14:44 AM UTC-7, xDog Walker wrote: > On Sunday 2012 March 18 22:11, anntzer@gmail.com wrote: > > I would like to announce the f

Re: cmd2, an extenstion of cmd that parses its argument list

2012-04-26 Thread anntzer . lee
ods are type-annotated, either using Python 3's > function annotation syntax, or with an ad-hoc ``annotate`` decorator, allowing > the dispatcher to parse the argument list for them. > > Antony Lee -- http://mail.python.org/mailman/listinfo/python-list

John Carmack glorifying functional programing in 3k words

2012-04-26 Thread Xah Lee
John Carmack glorifying functional programing in 3k words http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/ where was he ten years ago? O, and btw, i heard that Common Lispers don't do functional programing, is that right? Fuck Common Lispers. Yeah, fuck them. One bunch of F

Learn Technical Writing from Unix Man in 10 Days

2012-04-28 Thread Xah Lee
Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation: kicking kicking is identical to kissing except that receiver is kicked inste

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Xah Lee
On Apr 29, 7:43 pm, Jason Earl wrote: > On Sat, Apr 28 2012, Steven D'Aprano wrote: > > On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote: > > >> Learn Technical Writing from Unix Man in 10 Days > > >> Quote from man apt-get: > > >>     remove

issubclass(C, Mapping) not behaving as expected

2012-05-30 Thread anntzer . lee
from collections import * class C(object): def __iter__(self): pass def __contains__(self, i): pass def __len__(self): pass def __getitem__(self, i): pass issubclass(C, Mapping) => False [issubclass(C, cls) for cls in Mapping.__mro__] => [False, True, True, True, True] i.e. C does

Re: cmd2, an extenstion of cmd that parses its argument list

2012-05-31 Thread Antony Lee
I am already using shlex.split() (this is a customizable hook). On Thu, May 31, 2012 at 03:42:19PM -0400, Adam Tauno Williams wrote: > On Thu, 2012-05-31 at 15:21 -0400, Adam Tauno Williams wrote: > > On Thu, 2012-04-26 at 12:16 -0700, anntzer@gmail.com wrote: > > > On Sunday, March 18, 2012

Career related question

2012-06-07 Thread Stanley Lee
Hey all, Can I only post jobs on Python's official website, or can I also direct the message to the appropriate mailing list in http://mail.python.org/ ? Btw, do I have to be a subscriber of a given list in order to submit messages? Thanks in advance, Stanley -- http://mail.python.org/mailman/l

[ANNC] vbot-0.3

2012-06-17 Thread Lee Harr
vBot is a visual programming game.     Use a small set of command tiles to build a program.     The program must control the vBot and make it activate     every target using the limited command set. It is meant to be an easy environment for introducing     some programming concepts to beginning p

uhmm... your chance to spit on me

2011-06-10 Thread Xah Lee
Dear lisp comrades, it's Friday! Dear Xah, your writing is: • Full of bad grammar. River of Hiccups. • Stilted. Chocked under useless structure and logic. • WRONG — Filled with uncouth advices. • Needlessly insulting. You have problems. • Simply stinks. Worthless. • M

Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-11 Thread Xah Lee
(a lil weekend distraction from comp lang!) in recent years, there came this Colemak layout. The guy who created it, Colemak, has a site, and aggressively market his layout. It's in linuxes distro by default, and has become somewhat popular. I remember first discovering it perhaps in 2007. Me, be

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-13 Thread Xah Lee
On Jun 13, 6:45 pm, Gregory Ewing wrote: > Chris Angelico wrote: > > And did any of the studies take into account the fact that a lot of > > computer users - in all but the purest data entry tasks - will use a > > mouse as well as a keyboard? > > What I think's really stupid is designing keyboard

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
On Jun 13, 6:19 am, Steven D'Aprano 〔steve +comp.lang.pyt...@pearwood.info〕 wrote: │ I don't know if there are any studies that indicate how much of a │ programmer's work is actual mechanical typing but I'd be surprised if it │ were as much as 20% of the work day. The rest of the time being thinki

Re: Keyboard Layout: Dvorak vs. Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
Ba Wha 13, 7:23 nz, Ehfgbz Zbql 〔ehfgbzcz...@tznvy.pbz〕 jebgr: │ Qibenx -- yvxr djregl naq nal bgure xrlobneq ynlbhg -- nffhzrf gur │ pbzchgre vf n glcrjevgre. │ Guvf zrnaf va rssrpg ng yrnfg gjb pbafgenvagf, arprffnel sbe gur │ glcrjevgre ohg abg sbe gur pbzchgre: │ │ n. Gur glcvfg pna glcr bayl

Re: Keyboard Layout: Dvorak vs. Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
for some reason, was unable to post the previous message. (but can post others) So, the message is rot13'd and it works. Not sure what's up with Google groups. (this happened a few years back once. Apparantly, the message content might have something to do with it because rot13 clearly works. Yet,

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-17 Thread Xah Lee
On Jun 14, 7:50 am, Dotan Cohen wrote: > On Mon, Jun 13, 2011 at 10:21, Elena wrote: > > On 13 Giu, 06:30, Tim Roberts wrote: > >> Studies have shown that even a > >> strictly alphabetical layout works perfectly well, once the typist is > >> acclimated. > > > Once the user is acclimated to move

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-17 Thread Xah Lee
On Jun 15, 5:43 am, rusi wrote: > On Jun 15, 5:32 pm, Dotan Cohen wrote: > > > Thanks. From testing small movements with my fingers I see that the > > fourth finger is in fact a bit weaker than the last finger, but more > > importantly, it is much less dexterous. Good to know! > > Most of the pia

  1   2   3   4   5   6   7   8   9   10   >