Re: Immutability and Python

2012-11-07 Thread Thomas Rachel
Am 29.10.2012 16:20 schrieb andrea crotti: Now on one hand I would love to use only immutable data in my code, but on the other hand I wonder if it makes so much sense in Python. You can have both. Many mutable types distinguish between them with their operators. To pick up your example,

Re: get weekday as week number in a month

2012-11-07 Thread Ian Kelly
On Thu, Nov 8, 2012 at 12:09 AM, Nikhil Verma wrote: > What i want to know is if i convert it to > > date_object = datetime.strptime(' Friday November 9 2012 11:30PM', '%u %B %d > %Y %I:%M%p' ) > > It is giving me ValueError saying u is unsupported directive ! Use '%A' to match 'Friday', not '%u'

Re: Multi-dimensional list initialization

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 8:13 PM, Andrew Robinson wrote: > OK, and is this a main use case? (I'm not saying it isn't I'm asking.) I have no idea what is a "main" use case. > There is a special keyword which signals the new type of comprehension; A > normal comprehension would say eg: '[ foo for

Re: how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Jean-Pierre Miceli
Thanks, I will try rl. Have a nice day J-P Le 7 nov. 2012 à 14:14, Stefan H. Holek a écrit : > On 07.11.2012, at 11:36, Jean-Pierre Miceli wrote: > >> Hi all, >> >> I'm working on a tool which enable support of tab completion using the >> readline modul. >> And I have a problem with set_comp

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/07/2012 04:00 PM, Steven D'Aprano wrote: Andrew, it appears that your posts are being eaten or rejected by my ISP's news server, because they aren't showing up for me. Possibly a side- effect of your dates being in the distant past? Date has been corrected since two days ago. It will remai

Re: Multi-dimensional list initialization

2012-11-07 Thread Steven D'Aprano
On Wed, 07 Nov 2012 16:24:22 -0800, Andrew Robinson wrote: > On 11/07/2012 01:01 PM, Ian Kelly wrote: [...] >> Anyway, your point was to suggest that people would not be confused by >> having list multiplication copy lists but not other objects, because >> passing lists into functions as parameter

Re: Multi-dimensional list initialization

2012-11-07 Thread Steven D'Aprano
On Thu, 08 Nov 2012 00:30:53 +, Oscar Benjamin wrote: >> Every now and again I come across somebody who tries to distinguish >> between "call by foo" and "pass by foo", but nobody has been able to >> explain the difference (if any) to me. When you CALL a function, you >> PASS values to it. Hen

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/07/2012 03:39 PM, Ian Kelly wrote: Why? Just to get rid of an FAQ? :-) Here's one of the more interesting uses from my own code: OK, and is this a main use case? (I'm not saying it isn't I'm asking.) Replacing the list multiplication in that function with a list comprehension would b

Re: Multi-dimensional list initialization

2012-11-07 Thread Greg Ewing
On 08/11/12 12:06, Oscar Benjamin wrote: On 7 November 2012 22:16, Joshua Landau wrote: That said, losing: [0] * (2, 3) == [0] * [2, 3] would mean losing duck-typing in general. There are precedents for this kind of thing; the string % operator treats tuples specially, for example. I don't t

Re: Multi-dimensional list initialization

2012-11-07 Thread Joshua Landau
On 7 November 2012 23:55, Andrew Robinson wrote: > On 11/07/2012 05:39 AM, Joshua Landau wrote: > > A more modest addition for the limited case described in this thread >> could be to use exponentiation: >> >> >>> [0] ** (2, 3) >> [[0, 0, 0], [0, 0, 0]] >> > I'm against over using the math ope

Re: Right solution to unicode error?

2012-11-07 Thread Oscar Benjamin
On 7 November 2012 23:51, Andrew Berg wrote: > On 2012.11.07 17:27, Oscar Benjamin wrote: >> Are you using cmd.exe (standard Windows terminal)? If so, it does not >> support unicode > Actually, it does. Code page 65001 is UTF-8. I know that doesn't help > the OP since Python versions below 3.3 don

Re: Multi-dimensional list initialization

2012-11-07 Thread Oscar Benjamin
On 8 November 2012 00:00, Steven D'Aprano wrote: > Andrew, it appears that your posts are being eaten or rejected by my > ISP's news server, because they aren't showing up for me. Possibly a side- > effect of your dates being in the distant past? So if you have replied to > any of my posts, I have

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/07/2012 01:01 PM, Ian Kelly wrote: On Wed, Nov 7, 2012 at 12:51 PM, Andrew Robinson wrote: Interesting, you avoided the main point "lists are copied with list multiplication". It seems that each post is longer than the last. If we each responded to every point made, this thread would f

Issues with python/libtcod

2012-11-07 Thread Graham Fielding
Hey, all. I'm trying to program a roguelike, using the wonderful tutorials written by João F. Henriques (a.k.a. Jotaf), but I've stumbled onto a bit of a problem setting up the game's inventory system, and I was hoping someone could help me out. Here's a code snippet, including the affected

Re: Multi-dimensional list initialization

2012-11-07 Thread Steven D'Aprano
Andrew, it appears that your posts are being eaten or rejected by my ISP's news server, because they aren't showing up for me. Possibly a side- effect of your dates being in the distant past? So if you have replied to any of my posts, I haven't seen them. In any case, I wanted to ask a question:

Re: Invalid syntax

2012-11-07 Thread Smaran Harihar
Thanks a lot guys. Seriously when u get stuck on such issues it really drives u nuts and that is when this awesome comes to the rescue. This python mailing list rocks. On Wed, Nov 7, 2012 at 4:31 PM, Roy Smith wrote: > In article , > Demian Brecht wrote: > > > On 2012-11-07, at 3:17 PM, Smara

Re: [Python-ideas] sys.py3k

2012-11-07 Thread Chris Angelico
On Thu, Nov 8, 2012 at 10:56 AM, Steven D'Aprano wrote: > On Thu, 08 Nov 2012 10:14:35 +1100, Chris Angelico wrote: > >> On Thu, Nov 8, 2012 at 5:35 AM, anatoly techtonik >> wrote: >>> I thought of sys.py3k check ... > > Chris, you regularly reply to the wrong mailing list, and you've just > done

Re: [Python-ideas] sys.py3k

2012-11-07 Thread Steven D'Aprano
On Thu, 08 Nov 2012 10:14:35 +1100, Chris Angelico wrote: > On Thu, Nov 8, 2012 at 5:35 AM, anatoly techtonik > wrote: >> I thought of sys.py3k check ... Chris, you regularly reply to the wrong mailing list, and you've just done it again. This is not python-ideas. -- Steven -- http://mail.

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/07/2012 05:39 AM, Joshua Landau wrote: On 7 November 2012 11:11, Oscar Benjamin wrote: On Nov 7, 2012 5:41 AM, "Gregory Ewing" wrote: > > If anything is to be done in this area, it would be better > as an extension of list comprehensions, e.g. > > [[None times

Re: Right solution to unicode error?

2012-11-07 Thread Steven D'Aprano
On Wed, 07 Nov 2012 14:17:42 -0800, Anders wrote: > I've run into a Unicode error, and despite doing some googling, I can't > figure out the right way to fix it. I have a Python 2.6 script that > reads my Outlook 2010 task list. I'm able to read the tasks from Outlook > and store them as a list of

Re: Right solution to unicode error?

2012-11-07 Thread Andrew Berg
On 2012.11.07 17:27, Oscar Benjamin wrote: > Are you using cmd.exe (standard Windows terminal)? If so, it does not > support unicode Actually, it does. Code page 65001 is UTF-8. I know that doesn't help the OP since Python versions below 3.3 don't support cp65001, but I think it's important to poin

Re: Multi-dimensional list initialization

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 3:02 PM, Andrew Robinson wrote: > Draw up some use cases for the multiplication operator (I'm calling on your > experience, let's not trust mine, right?); What are all the Typical ways > people *Do* to use it now? > > If those use cases do not *primarily* center around *wan

Re: Invalid syntax

2012-11-07 Thread Roy Smith
In article , Demian Brecht wrote: > On 2012-11-07, at 3:17 PM, Smaran Harihar wrote: > > Any idea where am I going wrong? > > Looks like you're missing a closing parenthesis: What I find is useful in situations like this is to just let emacs auto-indent the code. When it starts indenting (o

Re: Right solution to unicode error?

2012-11-07 Thread Oscar Benjamin
On 7 November 2012 22:17, Anders wrote: > > Traceback (most recent call last): > File "outlook_tasks.py", line 66, in > my_tasks.dump_today_tasks() > File "C:\Users\Anders\code\Task List\tasks.py", line 29, in > dump_today_tasks > print task.subject > UnicodeEncodeError: 'ascii' codec

Re: Invalid syntax

2012-11-07 Thread R. Michael Weylandt
On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar wrote: > Hi guys, > > I am stuck in one of those non identifiable error location in the code. The > code keeps giving invalid syntax. This is my code. > > I am using the same code for another code and not sure why this is not > working. This is the t

Re: Invalid syntax

2012-11-07 Thread Demian Brecht
On 2012-11-07, at 3:17 PM, Smaran Harihar wrote: > Any idea where am I going wrong? Looks like you're missing a closing parenthesis: w.record(collection[i][0], MAT[0], TSD[0], AnnTMin[0], ANNPREC[0], float(collection[i][2]), float(collection[i][1]) should be w.record(collection[i][0], MAT[0]

Re: creating size-limited tar files

2012-11-07 Thread Oscar Benjamin
On 7 November 2012 21:52, Andrea Crotti wrote: > On 11/07/2012 08:32 PM, Roy Smith wrote: >> >> In article <509ab0fa$0$6636$9b4e6...@newsspool2.arcor-online.net>, >> Alexander Blinne wrote: >> >>> I don't know the best way to find the current size, I only have a >>> general remark. >>> This sol

Invalid syntax

2012-11-07 Thread Smaran Harihar
Hi guys, I am stuck in one of those non identifiable error location in the code. The code keeps giving invalid syntax. This is my code . I am using the same code for another code and not sure why this is not working. This is the traceback tha

Re: [Python-ideas] sys.py3k

2012-11-07 Thread Chris Angelico
On Thu, Nov 8, 2012 at 5:35 AM, anatoly techtonik wrote: > I thought of sys.py3k check as an explicit way to guard the code that should > be maintained extra carefully for Python 3 compatibility, so that you can > grep the source for this constant and remove all the hacks (such as bytes to > strin

RE: Right solution to unicode error?

2012-11-07 Thread Prasad, Ramit
Anders wrote: > > I've run into a Unicode error, and despite doing some googling, I > can't figure out the right way to fix it. I have a Python 2.6 script > that reads my Outlook 2010 task list. I'm able to read the tasks from > Outlook and store them as a list of objects without a hitch. But whe

Re: Multi-dimensional list initialization

2012-11-07 Thread Oscar Benjamin
On 7 November 2012 22:16, Joshua Landau wrote: > On 7 November 2012 14:00, Oscar Benjamin wrote: >> On 7 November 2012 13:39, Joshua Landau >> wrote: >> > On 7 November 2012 11:11, Oscar Benjamin >> > wrote: >> >> A more modest addition for the limited case described in this thread >> >> could

Re: Multi-dimensional list initialization

2012-11-07 Thread Steven D'Aprano
On Wed, 07 Nov 2012 17:17:02 +, MRAB wrote: > The disadvantage of calling it "call by ..." is that it suggests that > you're just talking about calling functions. *shrug* There are already two synonyms for this, "call by ..." and "pass by ...". They are old, venerable terms dating back to A

Re: Read number of CSV files

2012-11-07 Thread Adnan Sadzak
Maybe os.listdir() can help You, and then go through files and do whatever You want. On Wed, Nov 7, 2012 at 11:11 PM, Smaran Harihar wrote: > Hi Guys, > > I am able to read through a CSV File and fetch the data inside the CSV > file but I have a really big list of CSV files and I wish to do the

Re: Multi-dimensional list initialization

2012-11-07 Thread Mark Lawrence
On 07/11/2012 22:02, Andrew Robinson wrote: You're doing extremely well, you've overtaken Xah Lee as the biggest waste of space on this list. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Right solution to unicode error?

2012-11-07 Thread Anders
I've run into a Unicode error, and despite doing some googling, I can't figure out the right way to fix it. I have a Python 2.6 script that reads my Outlook 2010 task list. I'm able to read the tasks from Outlook and store them as a list of objects without a hitch. But when I try to print the task

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/06/2012 10:56 PM, Demian Brecht wrote: My question was *not* based on what I perceive to be intuitive (although most of this thread has now seemed to devolve into that and become more of a philosophical debate), but was based on what I thought may have been inconsistent behaviour (which w

Re: Multi-dimensional list initialization

2012-11-07 Thread Joshua Landau
*Spoiler:* You've convinced me. On 7 November 2012 14:00, Oscar Benjamin wrote: > On 7 November 2012 13:39, Joshua Landau > wrote: > > On 7 November 2012 11:11, Oscar Benjamin > wrote: > >> A more modest addition for the limited case described in this thread > could > >> be to use exponentiati

Read number of CSV files

2012-11-07 Thread Smaran Harihar
Hi Guys, I am able to read through a CSV File and fetch the data inside the CSV file but I have a really big list of CSV files and I wish to do the same particular code in all the CSV files. Is there some way that I can loops through all these files, which are in a single folder, and get my code

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
On 11/06/2012 05:55 PM, Steven D'Aprano wrote: On Tue, 06 Nov 2012 14:41:24 -0800, Andrew Robinson wrote: Yes. But this isn't going to cost any more time than figuring out whether or not the list multiplication is going to cause quirks, itself. Human psychology *tends* (it's a FAQ!) to autom

Re: creating size-limited tar files

2012-11-07 Thread Andrea Crotti
On 11/07/2012 08:32 PM, Roy Smith wrote: In article <509ab0fa$0$6636$9b4e6...@newsspool2.arcor-online.net>, Alexander Blinne wrote: I don't know the best way to find the current size, I only have a general remark. This solution is not so good if you have to impose a hard limit on the resulti

Re: Multi-dimensional list initialization

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 12:51 PM, Andrew Robinson wrote: > Interesting, you avoided the main point "lists are copied with list > multiplication". It seems that each post is longer than the last. If we each responded to every point made, this thread would fill a book. Anyway, your point was to su

Re: creating size-limited tar files

2012-11-07 Thread Roy Smith
In article <509ab0fa$0$6636$9b4e6...@newsspool2.arcor-online.net>, Alexander Blinne wrote: > I don't know the best way to find the current size, I only have a > general remark. > This solution is not so good if you have to impose a hard limit on the > resulting file size. You could end up having

Re: Multi-dimensional list initialization

2012-11-07 Thread Andrew Robinson
Hi IAN! On 11/06/2012 03:52 PM, Ian Kelly wrote: On Tue, Nov 6, 2012 at 3:41 PM, Andrew Robinson The objection is not nonsense; you've merely misconstrued it. If [[1,2,3]] * 4 is expected to create a mutable matrix of 1s, 2s, and 3s, then one would expect [[{}]] * 4 to create a mutable matrix

Re: creating size-limited tar files

2012-11-07 Thread Alexander Blinne
I don't know the best way to find the current size, I only have a general remark. This solution is not so good if you have to impose a hard limit on the resulting file size. You could end up having a tar file of size "limit + size of biggest file - 1 + overhead" in the worst case if the tar is at l

Re: creating size-limited tar files

2012-11-07 Thread Neil Cerutti
On 2012-11-07, andrea crotti wrote: > Simple problem, given a lot of data in many files/directories, I > should create a tar file splitted in chunks <= a given size. > > The simplest way would be to compress the whole thing and then split. > > At the moment the actual script which I'm replacing is

Re: Printing a text over an image

2012-11-07 Thread Laurent Pointal
Martha Morrigan wrote: > > 3) Any more simple approach or module to deals with printers (paper > and/or pdf) will be welcome. For pdf, you can take a look at ReportLab's Toolkit. I used it to build a "trombinoscope" (ie an employee directory with each member's photo on top of his name and room

Re: Pickling a dictionary

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 10:40 AM, Devashish Tyagi wrote: > Here is the code > > from code import InteractiveInterpreter > import StringIO > import pickle > > src = StringIO.StringIO() > inter = InteractiveInterpreter() > inter.runcode('a = 5') > local = inter.locals > > pickle.dump(local,open('obj.

Re: Pickling a dictionary

2012-11-07 Thread Devashish Tyagi
On Wednesday, 7 November 2012 21:57:05 UTC+5:30, Peter Otten wrote: > Devashish Tyagi wrote: > > > > > So I want to store the current state of a InteractiveInterpreter Object in > > > database. In order to achieve this I tried this > > > > > > obj = InteractiveInterpreter() > > > local = o

Re: Multi-dimensional list initialization

2012-11-07 Thread MRAB
On 2012-11-07 05:05, Steven D'Aprano wrote: On Wed, 07 Nov 2012 00:23:44 +, MRAB wrote: Incorrect. Python uses what is commonly known as call-by-object, not call-by-value or call-by-reference. Passing the list by value would imply that the list is copied, and that appends or removes to th

Printing a text over an image

2012-11-07 Thread Martha Morrigan
Hi guys, Using python, wxpython and sqlite in a windows system, Im trying to print some certificates/diplomas/cards with a image at background with the name of person/text over it. I know the basic steps to print the text using win32print from Pywin32 but...: 1) I dont know how to add an image a

Re: Pickling a dictionary

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 9:16 AM, Ian Kelly wrote: > On Wed, Nov 7, 2012 at 9:07 AM, Devashish Tyagi > wrote: >> So I want to store the current state of a InteractiveInterpreter Object in >> database. In order to achieve this I tried this >> >> obj = InteractiveInterpreter() >> local = obj.locals(

Re: Pickling a dictionary

2012-11-07 Thread Peter Otten
Devashish Tyagi wrote: > So I want to store the current state of a InteractiveInterpreter Object in > database. In order to achieve this I tried this > > obj = InteractiveInterpreter() > local = obj.locals() > pickle.dump(local, open('obj.dump','rw')) Assuming InteractiveInterpreter is imported

Re: Pickling a dictionary

2012-11-07 Thread Ian Kelly
On Wed, Nov 7, 2012 at 9:07 AM, Devashish Tyagi wrote: > So I want to store the current state of a InteractiveInterpreter Object in > database. In order to achieve this I tried this > > obj = InteractiveInterpreter() > local = obj.locals() > pickle.dump(local, open('obj.dump','rw')) > > But I rec

Re: Multi-dimensional list initialization

2012-11-07 Thread Oscar Benjamin
On Nov 7, 2012 3:55 PM, "Ethan Furman" wrote: > > Oscar Benjamin wrote: >> >> A more modest addition for the limited case described in this thread could be to use exponentiation: >> >> >>> [0] ** (2, 3) >> [[0, 0, 0], [0, 0, 0]] > > > What would happen with > > --> [{}] ** (2, 3) The list being

Pickling a dictionary

2012-11-07 Thread Devashish Tyagi
So I want to store the current state of a InteractiveInterpreter Object in database. In order to achieve this I tried this obj = InteractiveInterpreter() local = obj.locals() pickle.dump(local, open('obj.dump','rw')) But I received an error say TypeError: can't pickle ellipsis objects >From wh

RE: Multi-dimensional list initialization

2012-11-07 Thread Prasad, Ramit
Gregory Ewing wrote: > > Roy Smith wrote: > > Call by social network? The called function likes the object. > > Depending on how it feels, it can also comment on some of the object's > > attributes. > > And then finds that it has inadvertently shared all its > private data with other functions a

Re: Multi-dimensional list initialization

2012-11-07 Thread Ethan Furman
Oscar Benjamin wrote: On Nov 7, 2012 5:41 AM, "Gregory Ewing" > wrote: > > If anything is to be done in this area, it would be better > as an extension of list comprehensions, e.g. > > [[None times 5] times 10] > > which would be equivalent to > >

Re: Multi-dimensional list initialization

2012-11-07 Thread Ethan Furman
After this post the only credibility you have left (with me, anyway) is that you seem to be willing to learn. So learn the way Python works before you try to reimplement it. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: Obnoxious postings from Google Groups

2012-11-07 Thread Grant Edwards
On 2012-11-06, Steven D'Aprano wrote: > On Tue, 06 Nov 2012 11:51:03 -0500, GangGreene wrote: > >> I have just finished a 251 line bash shell script that builds my linux >> distro from scratch. > > "From scratch"? So if you run it on bare metal with no OS, it works? > >:-P > > But seriously -- bas

Re: Multi-dimensional list initialization

2012-11-07 Thread Oscar Benjamin
On 7 November 2012 13:39, Joshua Landau wrote: > > On 7 November 2012 11:11, Oscar Benjamin wrote: >> >> A more modest addition for the limited case described in this thread could >> be to use exponentiation: >> >> >>> [0] ** (2, 3) >> [[0, 0, 0], [0, 0, 0]] > > Hold on: why not just use multipli

Re: Multi-dimensional list initialization

2012-11-07 Thread Joshua Landau
On 7 November 2012 11:11, Oscar Benjamin wrote: > On Nov 7, 2012 5:41 AM, "Gregory Ewing" > wrote: > > > > If anything is to be done in this area, it would be better > > as an extension of list comprehensions, e.g. > > > > [[None times 5] times 10] > > > > which would be equivalent to > > > >

Re: how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Stefan H. Holek
On 07.11.2012, at 11:36, Jean-Pierre Miceli wrote: > Hi all, > > I'm working on a tool which enable support of tab completion using the > readline modul. > And I have a problem with set_completion_display_matches_hook function > > I've created a display hook function and registered it. It is cal

Re: clicking on turtle

2012-11-07 Thread Peter Otten
Nicolas Graner wrote: > I have a problem with the standard "turtle" module. When a turtle has > a custom shape of type "compound", it doesn't seem to respond to click > events. No problem with polygon shapes. > > Running python 3.2.3, turtle version 1.1b on Windows XP. > > Here is my test file:

Re: multiprocessing help (Terry Reedy)

2012-11-07 Thread Apprentice3D
Sent from my iPad On 2012-11-07, at 12:15 AM, python-list-requ...@python.org wrote: > Re: multiprocessing help (Terry Reedy) -- http://mail.python.org/mailman/listinfo/python-list

how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Jean-Pierre Miceli
Hi all, I'm working on a tool which enable support of tab completion using the readline modul. And I have a problem with set_completion_display_matches_hook function I've created a display hook function and registered it. It is called and it prints the desire messages. But once it has completed,

Re: Multi-dimensional list initialization

2012-11-07 Thread Oscar Benjamin
On Nov 7, 2012 5:41 AM, "Gregory Ewing" wrote: > > If anything is to be done in this area, it would be better > as an extension of list comprehensions, e.g. > > [[None times 5] times 10] > > which would be equivalent to > > [[None for _i in xrange(5)] for _j in xrange(10)] I think you're righ

RE: Obnoxious postings from Google Groups

2012-11-07 Thread Kushal Kumaran
"Prasad, Ramit" writes: > Steven D'Aprano wrote: >> >> On Tue, 06 Nov 2012 17:16:44 +, Prasad, Ramit wrote: >> >> >> To enter the newline, I typed Ctrl-Q to tell bash to treat the next >> >> character as a literal, and then typed Ctrl-J to get a newline. >> > >> > That sounds complicated, m

Re: Multi-dimensional list initialization

2012-11-07 Thread wxjmfauth
Le mercredi 7 novembre 2012 02:55:10 UTC+1, Steven D'Aprano a écrit : > > > > > > > Two-dimensional arrays in Python using lists are quite rare. Anyone who > > is doing serious numeric work where they need 2D arrays is using numpy, > > not lists. There are millions of people using Python

Re: Multi-dimensional list initialization

2012-11-07 Thread Jussi Piitulainen
Steven D'Aprano writes: > On Wed, 07 Nov 2012 00:23:44 +, MRAB wrote: > > I prefer the term "reference semantics". > > Oh good, because what the world needs is yet another name for the > same behaviour. > > - call by sharing > - call by object sharing > - call by object reference > - call by

chocolate moonpies

2012-11-07 Thread Constantine
chocolate moonpies http://www.google.com/search?hl=en&q=chocolate+moonpies+site:vandaydiigkij.blogspot.com&btnI=I%27m+Feeling+Lucky -- http://mail.python.org/mailman/listinfo/python-list

Re: Obnoxious postings from Google Groups

2012-11-07 Thread Steven D'Aprano
On Wed, 07 Nov 2012 18:52:16 +1300, Gregory Ewing wrote: > Steven D'Aprano wrote: >> The downside is that if spaces are not argument separators, then you >> need something else to be an argument separator. Or you need argument >> delimiters. Or strings need to be quoted. Programming languages do >