Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages

2013-04-20 Thread 88888 Dihedral
Uday S Reddy於 2013年4月17日星期三UTC+8下午5時10分58秒寫道: > Mark Janssen writes: > > > > > > Having said that, theorists do want to unify concepts wherever possible > > > > and wherever they make sense. Imperative programming types, which I > > > > will call "storage types", are semantically the same as

ask for note keeper tomboy's style

2013-04-20 Thread LordMax
Hi to all. I am new to python and I was asked to implement a system of notes in tomboy's style for my company. As one of the requirements is the ability to synchronize notes between multiple PC (program level or through cloud-folder does not matter) I was wondering if there is something simila

Re: django vs zope vs web2py

2013-04-20 Thread Alok Singh Mahor
I am sorry by mistake I sent incomplete mail here is my mail. Hi everyone, few months back I decided to adopt python for my all sort of work including web programming. and I have wasted long time deciding which to adopt out of django, zope and web2py. I am from php and drupal background. which

django vs zope vs web2py

2013-04-20 Thread Alok Singh Mahor
Hi everyone, few months back I decided to adopt python for my all sort of work including web progra -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Unicode support so hard...

2013-04-20 Thread 88888 Dihedral
jmfauth於 2013年4月21日星期日UTC+8上午1時12分43秒寫道: > In a previous post, > > > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# > > , > > > > Chris “Kwpolska” Warrick wrote: > > > > “Is Unicode support so hard, especially in the 21st century?” > > > > -- >

Re: Is Unicode support so hard...

2013-04-20 Thread Chris Angelico
On Sun, Apr 21, 2013 at 1:36 PM, Steven D'Aprano wrote: > On Sat, 20 Apr 2013 18:37:00 -0700, rusi wrote: > >> According to jmf python sucks up to ASCII (those big bad Americans… of >> whom Steven is the first…) > > Watch who you're calling an American, mate. I think he knows, and that's why he s

Re: Is Unicode support so hard...

2013-04-20 Thread Steven D'Aprano
On Sat, 20 Apr 2013 18:37:00 -0700, rusi wrote: > According to jmf python sucks up to ASCII (those big bad Americans… of > whom Steven is the first…) Watch who you're calling an American, mate. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

clear the screen

2013-04-20 Thread Yuanyuan Li
How to clear the screen? For example, in the two player game. One player sets a number and the second player guesses the number. When the first player enters the number, it should be cleared so that the second number is not able to see it. My question is how to clear the number. Thank you! -- h

Re: Is Unicode support so hard...

2013-04-20 Thread rusi
On Apr 21, 4:03 am, Neil Hodgson wrote: >     Hi jmf, > > > This gives me plenty of ideas to test the "flexible string > > representation" (FSR). I should recognize this FSR is failing > > particulary very well... > >     This is too vague for me. > >     Which string representation should Python

Re: Is Unicode support so hard...

2013-04-20 Thread Ethan Furman
On 04/20/2013 11:14 AM, Chris Angelico wrote: Flash forward to current date, and jmf has hijacked so many threads to moan about PEP 393 that I'm actually happy about this one, simply because he gave it a new subject line and one appropriate to a discussion about Unicode. +1000 -- http://mail.py

Re: There must be a better way

2013-04-20 Thread Terry Jan Reedy
On 4/20/2013 8:34 PM, Tim Chase wrote: In 2.x, the csv.reader() class (and csv.DictReader() class) offered a .next() method that is absent in 3.x In Py 3, .next was renamed to .__next__ for *all* iterators. The intention is that one iterate with for item in iterable or use builtin functions i

Re: Include and lib files for Visual Studio?

2013-04-20 Thread Terry Jan Reedy
On 4/20/2013 4:59 PM, xuc...@gmail.com wrote: I am looking for the Python include and lib files for windows. I have a c++ project that I am importing into Visual Studio 2010 (express) and it links python. I need the include and lib files for windows. Where can I get them? I'd like to use python

Re: There must be a better way

2013-04-20 Thread Tim Chase
On 2013-04-21 00:06, Steven D'Aprano wrote: > On Sat, 20 Apr 2013 19:46:07 -0400, Colin J. Williams wrote: > > > Below is part of a script which shows the changes made to permit > > the script to run on either Python 2.7 or Python 3.2. > > > > I was surprised to see that the CSV next method is no

Re: itertools.groupby

2013-04-20 Thread Steven D'Aprano
On Sat, 20 Apr 2013 11:09:42 -0600, Jason Friedman wrote: > I have a file such as: > > $ cat my_data > Starting a new group > a > b > c > Starting a new group > 1 > 2 > 3 > 4 > Starting a new group > X > Y > Z > Starting a new group > > I am wanting a list of lists: > ['a', 'b', 'c'] > ['1', '2'

Re: There must be a better way

2013-04-20 Thread Steven D'Aprano
On Sat, 20 Apr 2013 19:46:07 -0400, Colin J. Williams wrote: > Below is part of a script which shows the changes made to permit the > script to run on either Python 2.7 or Python 3.2. > > I was surprised to see that the CSV next method is no longer available. This makes no sense. What's "the CSV

Re: There must be a better way

2013-04-20 Thread Chris Rebert
On Sat, Apr 20, 2013 at 4:46 PM, Colin J. Williams wrote: > Below is part of a script which shows the changes made to permit the script > to run on either Python 2.7 or Python 3.2. > > I was surprised to see that the CSV next method is no longer available. > > Suggestions welcome. > if ver ==

There must be a better way

2013-04-20 Thread Colin J. Williams
Below is part of a script which shows the changes made to permit the script to run on either Python 2.7 or Python 3.2. I was surprised to see that the CSV next method is no longer available. Suggestions welcome. Colin W. def main(): global inData, inFile if ver == '2': headerL

Re: Is Unicode support so hard...

2013-04-20 Thread Neil Hodgson
Hi jmf, This gives me plenty of ideas to test the "flexible string representation" (FSR). I should recognize this FSR is failing particulary very well... This is too vague for me. Which string representation should Python use? 1) UTF-32 2) UTF-8 3) Python 3.3 -- 1, 2, or 4 bytes per

Re: Cross-compiling Python for ARM?

2013-04-20 Thread Gilles
On Tue, 16 Apr 2013 17:22:55 +0300, Anssi Saari wrote: >In any case, cross compiling Python shouldn't be that hard. I >just recently built 2.7.3 for my OpenWRT router since the packaged >Python didn't have readline support (some long standing linking issue >with readline and ncurses and uClibc).

Re: Include and lib files for Visual Studio?

2013-04-20 Thread David Robinow
On Sat, Apr 20, 2013 at 4:59 PM, wrote: > I am looking for the Python include and lib files for windows. I have a > c++ project that I am importing into Visual Studio 2010 (express) and it > links python. I need the include and lib files for windows. Where can I get > them? > I'd like to use pyth

Re: Include and lib files for Visual Studio?

2013-04-20 Thread Andrew Berg
On 2013.04.20 15:59, xuc...@gmail.com wrote: > I am looking for the Python include and lib files for windows. I have a c++ > project that I am importing into Visual Studio 2010 (express) and it links > python. I need the include and lib files for windows. Where can I get them? > I'd like to use p

Re: itertools.groupby

2013-04-20 Thread Wolfgang Maier
Jason Friedman gmail.com> writes: > > I have a file such as: > > $ cat my_data  > Starting a new group > > a > b > c > Starting a new group > 1 > 2 > 3 > > 4 > Starting a new group > X > Y > Z > Starting a new group > > > I am wanting a list of lists: > ['a', 'b', 'c'] > > ['1', '2', '3',

Include and lib files for Visual Studio?

2013-04-20 Thread xucaen
I am looking for the Python include and lib files for windows. I have a c++ project that I am importing into Visual Studio 2010 (express) and it links python. I need the include and lib files for windows. Where can I get them? I'd like to use python 3.3.1 if possible. I found the msi on python.o

Dear Human !!!!!!!!!!!!!!

2013-04-20 Thread BV BV
Dear Human! The lecturer says at the beginning of the video, "I am talking to you as a human; it does not matter whether you are Christian, Jew, Buddhist or Hindu. It does not matter whether you are a worshipper of idols, atheist, religious, secularist, a man or woman. I talk and address you as a

Re: Is Unicode support so hard...

2013-04-20 Thread Mark Lawrence
On 20/04/2013 19:02, Benjamin Kaplan wrote: On Sat, Apr 20, 2013 at 10:22 AM, Ned Batchelder wrote: On 4/20/2013 1:12 PM, jmfauth wrote: In a previous post, http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# , Chris “Kwpolska” Warrick wrote: “Is Unicode

Re: Is Unicode support so hard...

2013-04-20 Thread Chris “Kwpolska” Warrick
On Sat, Apr 20, 2013 at 8:02 PM, Benjamin Kaplan wrote: > On Sat, Apr 20, 2013 at 10:22 AM, Ned Batchelder > wrote: >> On 4/20/2013 1:12 PM, jmfauth wrote: >>> >>> In a previous post, >>> >>> >>> http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# >>> , >>> >>>

Re: Is Unicode support so hard...

2013-04-20 Thread Chris Angelico
On Sun, Apr 21, 2013 at 3:22 AM, Ned Batchelder wrote: > I'm totally confused about what you are saying. What does "make a better > Unicode than Unicode" mean? Are you saying that Python is guilty of this? > In what way? Can you provide specifics? Or are you saying that you like > how Python h

Re: Is Unicode support so hard...

2013-04-20 Thread Benjamin Kaplan
On Sat, Apr 20, 2013 at 10:22 AM, Ned Batchelder wrote: > On 4/20/2013 1:12 PM, jmfauth wrote: >> >> In a previous post, >> >> >> http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# >> , >> >> Chris “Kwpolska” Warrick wrote: >> >> “Is Unicode support so hard, esp

Re: itertools.groupby

2013-04-20 Thread Ned Batchelder
On 4/20/2013 1:09 PM, Jason Friedman wrote: I have a file such as: $ cat my_data Starting a new group a b c Starting a new group 1 2 3 4 Starting a new group X Y Z Starting a new group I am wanting a list of lists: ['a', 'b', 'c'] ['1', '2', '3', '4'] ['X', 'Y', 'Z'] [] I wrote this: -

Re: Is Unicode support so hard...

2013-04-20 Thread Ned Batchelder
On 4/20/2013 1:12 PM, jmfauth wrote: In a previous post, http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# , Chris “Kwpolska” Warrick wrote: “Is Unicode support so hard, especially in the 21st century?” -- Unicode is not really complicate and it works ver

Is Unicode support so hard...

2013-04-20 Thread jmfauth
In a previous post, http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# , Chris “Kwpolska” Warrick wrote: “Is Unicode support so hard, especially in the 21st century?” -- Unicode is not really complicate and it works very well (more than two decades of develo

itertools.groupby

2013-04-20 Thread Jason Friedman
I have a file such as: $ cat my_data Starting a new group a b c Starting a new group 1 2 3 4 Starting a new group X Y Z Starting a new group I am wanting a list of lists: ['a', 'b', 'c'] ['1', '2', '3', '4'] ['X', 'Y', 'Z'] [] I wrote this: #!/usr/bin/python3

Re: Ubuntu package "python3" does not include tkinter

2013-04-20 Thread Sibylle Koczian
Am 19.04.2013 19:42, schrieb lcrocker: I understand that for something like a server distribution, but Ubuntu is a user-focused desktop distribution. It has a GUI, always. The purpose of a distro like that is to give users a good experience. If I install Python on Windows, I get to use Python. On

Re: unzipping a zipx file

2013-04-20 Thread Serhiy Storchaka
19.04.13 20:59, b_erickson1 написав(ла): I have python 2.6.2 and I trying to get it to unzip a file made with winzip pro. The file extension is zipx. This is on a windows machine where I have to send them all that files necessary to run. I am packaging this with py2exe. I can open the file

Re: Different cache filename

2013-04-20 Thread Dave Angel
On 04/20/2013 01:37 AM, Fabian PyDEV wrote: Hi, when load a module "mymodule.py" with importlib.machinery.SourceFileLoader a bytecode file is created as mymodule.cpython-33.pyc. If I load a module "mymodule.ext.py" the same way the same bytecode file is created as mymodule.cpython-33.pyc. Is

Re: Free book, "Hacking Secret Ciphers with Python"

2013-04-20 Thread Karim
On 20/04/2013 08:37, asweig...@gmail.com wrote: I've released my third book, "Hacking Secret Ciphers with Python" for free under a Creative Commons license. This book is aimed at people who have no experience programming or with cryptography. The book goes through writing Python programs that n

Re: Encoding NaN in JSON

2013-04-20 Thread Chris “Kwpolska” Warrick
On Fri, Apr 19, 2013 at 9:42 PM, Grant Edwards wrote: > The OP asked for a string, and I thought you were proposing the string > 'null'. If one is to use a string, then 'NaN' makes the most sense, > since it can be converted back into a floating point NaN object. > > I infer that you were proposi

Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages

2013-04-20 Thread 88888 Dihedral
Ned Batchelder於 2013年4月20日星期六UTC+8上午12時41分03秒寫道: > On 4/19/2013 12:16 PM, Steven D'Aprano wrote: > > > On Fri, 19 Apr 2013 12:02:00 -0400, Roy Smith wrote: > > > > > >> PS: a great C++ interview question is, "What's the difference between a > > >> class and a struct?" Amazing how few self-prof