Re: Missing decimals in the code - some suggestions?

2013-04-17 Thread Steven D'Aprano
On Tue, 16 Apr 2013 12:20:18 -0600, Ian Kelly wrote: This isn't a Python question. If you take a look at the csv file that you download from Yahoo, you will see that it only contains 2 digits of precision. There's no way to make Python print out 4 digits of precision when it is only

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

2013-04-17 Thread Steven D'Aprano
On Tue, 16 Apr 2013 15:38:29 -0700, Mark Janssen wrote: On Mon, Apr 15, 2013 at 3:32 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 16, 2013 at 8:12 AM, Rotwang sg...@hotmail.co.uk wrote: Traceback (most recent call last): File pyshell#2, line 1, in module class C(type(lambda:

Re: Unicode issue with Python v3.3

2013-04-17 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: On 13Apr2013 23:00, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | root@nikos [/home/nikos/public_html/foo-py]# pwd | /home/nikos/public_html/foo-py | root@nikos

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

2013-04-17 Thread Chris Angelico
On Wed, Apr 17, 2013 at 4:40 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 16 Apr 2013 15:38:29 -0700, Mark Janssen wrote: (Note this contrasts starkly with Java(script), which doesn't seem to be based on anything -- can anyone clarify where Java actually comes

Re: Missing decimals in the code - some suggestions?

2013-04-17 Thread Ian Kelly
On Wed, Apr 17, 2013 at 12:23 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 16 Apr 2013 12:20:18 -0600, Ian Kelly wrote: This isn't a Python question. If you take a look at the csv file that you download from Yahoo, you will see that it only contains 2 digits of

Re: Unicode issue with Python v3.3

2013-04-17 Thread Chris Angelico
On Wed, Apr 17, 2013 at 4:56 PM, nagia.rets...@gmail.com wrote: can you help please or tell me what else i need to try? You need to try trimming quoted text in replies, not double-spacing, and paying for help. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

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

2013-04-17 Thread Chris Rebert
On Tue, Apr 16, 2013 at 11:40 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 16 Apr 2013 15:38:29 -0700, Mark Janssen wrote: snip (Note this contrasts starkly with Java(script), which doesn't seem to be based on anything -- can anyone clarify where Java actually

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Ian Kelly
On Tue, Apr 16, 2013 at 8:57 PM, Bruce McGoveran bruce.mcgove...@gmail.com wrote: These are terms that appear in section 5 (Expressions) of the Python online documentation. I'm having some trouble understanding what, precisely, these terms mean. I'd appreciate the forum's thoughts on these

ANN: eGenix mx Base Distribution 3.2.6 (mxDateTime, mxTextTools, etc.)

2013-04-17 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution mxDateTime, mxTextTools, mxProxy, mxURL, mxUID, mxBeeBase, mxStack, mxQueue, mxTools Version 3.2.6

Re: Unicode issue with Python v3.3

2013-04-17 Thread Chris Angelico
On Wed, Apr 17, 2013 at 4:56 PM, nagia.rets...@gmail.com wrote: can you help please or tell me what else i need to try? You need to try trimming quoted text in replies, not double-spacing, and paying for help. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding Boolean Expressions

2013-04-17 Thread Steven D'Aprano
On Tue, 16 Apr 2013 15:19:25 -0700, Bruce McGoveran wrote: Hello. I am new to this group. I've done a search for the topic about which I'm posting, and while I have found some threads that are relevant, I haven't found anything exactly on point that I can understand. So, I'm taking the

Re: Understanding Boolean Expressions

2013-04-17 Thread Jussi Piitulainen
Steven D'Aprano writes: So paradoxically, that means that x or y counts as an and_test (obviously!) but also as an or_test, since every and_test also counts as an or_test. Here's some crappy ASCII art of a Venn diagram I think you mean to say that x and y counts as an and_test and also as an

Re: The node.js Community is Quietly Changing the Face of Open Source

2013-04-17 Thread Antoine Pitrou
rusi rustompmody at gmail.com writes: Just what I said: ecosystem matters. We may or may not argue about more than language, but it surely matters. Some examples: 1. In the link that Roderick originally posted there is a long comment that adds perl to the languages the author discussed.

RGB combine

2013-04-17 Thread m . shemuni
Hi everyone. I have 3 grayscaled picture. These are Red, Green and Blue filtered. I want to colorize it. I'm a GNU/Linux user and I did it with imagemagick using this code: convert r.png g.png b.png -set colorspace RGB -combine -set colorspace sRGB rgb.gif But I want to colorize it with using

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

2013-04-17 Thread Uday S Reddy
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 classes. I like that word storage type, it makes it much clearer what

Re: The node.js Community is Quietly Changing the Face of Open Source

2013-04-17 Thread Steven D'Aprano
On Tue, 16 Apr 2013 12:02:01 -0400, Rodrick Brown wrote: I came across this article which sums up some of the issues I have with modern programming languages. I've never really looked at Javascript for anything serious or Node itself but I found this article really informational. The

Re: Understanding Boolean Expressions

2013-04-17 Thread Steven D'Aprano
On Wed, 17 Apr 2013 11:47:49 +0300, Jussi Piitulainen wrote: Steven D'Aprano writes: So paradoxically, that means that x or y counts as an and_test (obviously!) but also as an or_test, since every and_test also counts as an or_test. Here's some crappy ASCII art of a Venn diagram I think

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

2013-04-17 Thread Uday S Reddy
Mark Janssen writes: From: en.wikipedia.org: Programming_paradigm: A programming paradigm is a fundamental style of computer programming. There are four main paradigms: object-oriented, imperative, functional and declarative. Their foundations are distinct models of computation: Turing

Re: Understanding Boolean Expressions

2013-04-17 Thread Jussi Piitulainen
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 17 Apr 2013 11:47:49 +0300, Jussi Piitulainen wrote: Steven D'Aprano writes: So paradoxically, that means that x or y counts as an and_test (obviously!) but also as an or_test, since every and_test also counts as

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread Serhiy Storchaka
17.04.13 07:57, Larry Hudson написав(ла): So using a list comprehension you can do it in two lines: def get_rule(num): bs = bin(num)[2:] return [0] * (8 - len(bs)) + [int(i) for i in bs] You can do it in one line! def get_rule(num): return list(map(int, '{:08b}'.format(num)))

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread aaB
Hello, Thanks for all your replies, things are getting clearer. - copy/paste vs retyping: Several people have remarked that I had retyped instead of copy/pasting. This is exactly what happened, the fact is I haven't figured out yet how to enable copy/pasting from urxvt to vim. I'll try to get

IV ECCOMAS Thematic Conference VipIMAGE 2013: SUBMISSION DEADLINE EXTENDED

2013-04-17 Thread tava...@fe.up.pt
Dear Colleague, We are pleased to inform you that the submission of abstracts for the International Conference VipIMAGE 2013 - IV ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING (www.fe.up.pt/~vipimage) to be held October 14-16, 2013, in Melia Madeira Mare

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Dave Angel
On 04/16/2013 10:57 PM, Bruce McGoveran wrote: These are terms that appear in section 5 (Expressions) of the Python online documentation. I'm having some trouble understanding what, precisely, these terms mean. I'd appreciate the forum's thoughts on these questions: 3. Section 5.3.1

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread Lele Gaifax
aaB mecagonoisic...@gmail.com writes: - copy/paste vs retyping: Several people have remarked that I had retyped instead of copy/pasting. This is exactly what happened, the fact is I haven't figured out yet how to enable copy/pasting from urxvt to vim. I used to use rxvt, but since a while I

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Steven D'Aprano
On Tue, 16 Apr 2013 19:57:25 -0700, Bruce McGoveran wrote: These are terms that appear in section 5 (Expressions) of the Python online documentation. I'm having some trouble understanding what, precisely, these terms mean. I'd appreciate the forum's thoughts on these questions: 1.

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

2013-04-17 Thread Antoon Pardon
Op 16-04-13 18:49, Terry Jan Reedy schreef: On 4/16/2013 5:07 AM, Antoon Pardon wrote: Op 16-04-13 05:17, Terry Jan Reedy schreef: I will keep the above in mind if I write or review a patch. here are 4 non-subclassable builtin classes. Two are already documented. Bool in one, forget which

Parsing soap result

2013-04-17 Thread Ombongi Moraa Fe
My client.service.gere(ri) method call logs the below soap response in my log file. ?xml version=1.0 encoding=utf-8 ?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;soapenv:Bodyns1:gere

Tornado with cgi form

2013-04-17 Thread Renato Barbosa Pim Pereira
*I installed tornado and he is functional, but when I execute the following script:* import tornado.ioloop import tornado.web import cgi class MainHandler(tornado.web. RequestHandler): form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')

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

2013-04-17 Thread Rishiyur Nikhil
If you have trouble getting hold of The Essence of Algol, ... There seems to be a downloadable copy at: www.cs.cmu.edu/~crary/819-f09/Reynolds81.ps It's in PostScript, which is easily convertible to PDF if you wish. Nikhil On Wed, Apr 17, 2013 at 5:30 AM, Uday S Reddy

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread darnold
On Apr 17, 5:25 am, aaB mecagonoisic...@gmail.com wrote: - the complement thing: I haven't yet tried to reproduce this, but I will, and I will post back if I see this happening again, this time with a real log of python's interactive console, or a complete script which people can use.

Re: Encoding NaN in JSON

2013-04-17 Thread Miki Tebeka
I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit the *string* 'N/A' for every NaN. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tornado with cgi form

2013-04-17 Thread Lele Gaifax
Renato Barbosa Pim Pereira renato.barbosa.pim.pere...@gmail.com writes: *I installed tornado and he is functional, but when I execute the following script:* I think this is the wrong place to ask such a question, more appropriate would be http://groups.google.com/group/python-tornado Anyway,

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

2013-04-17 Thread Andreas Abel
On 17.04.2013 11:30, Uday S Reddy wrote: Mark Janssen writes: From: en.wikipedia.org: Programming_paradigm: A programming paradigm is a fundamental style of computer programming. There are four main paradigms: object-oriented, imperative, functional and declarative. Their foundations are

Re: Encoding NaN in JSON

2013-04-17 Thread John Gordon
In c37a3b9c-6fe8-48aa-b703-9b4f922c3...@googlegroups.com Miki Tebeka miki.teb...@gmail.com writes: I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread 88888 Dihedral
Serhiy Storchaka於 2013年4月17日星期三UTC+8下午5時35分07秒寫道: 17.04.13 07:57, Larry Hudson написав(ла): So using a list comprehension you can do it in two lines: def get_rule(num): bs = bin(num)[2:] return [0] * (8 - len(bs)) + [int(i) for i in bs] You can do it in one

Re: The node.js Community is Quietly Changing the Face of Open Source

2013-04-17 Thread Stefan Behnel
Steven D'Aprano, 17.04.2013 11:16: If you look at the node.js site, the first thing that jumps out at me is that the culture encourages churning out packages rather than encouraging quality packages. The front page offers author recognition for being prolific, but not for writing good code.

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Bruce McGoveran
Thank you all for your thoughtful replies. I appreciate your collective insight. I didn't mean to cast the concept of recursion in a negative light - I'm actually comfortable with the concept, at least to some extent, and I appreciate the need for its use in this documentation. I also

Re: Parsing soap result

2013-04-17 Thread darnold
On Apr 17, 8:50 am, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: how do I use xml.etree.ElementTree to print the parameters address and deliveryStatus? Or is there a better python method? I'm sure there are prettier ways to do this, but you can use XPath syntax to find all of your

Re: Parsing soap result

2013-04-17 Thread Christian Heimes
Am 17.04.2013 19:55, schrieb darnold: On Apr 17, 8:50 am, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: how do I use xml.etree.ElementTree to print the parameters address and deliveryStatus? Or is there a better python method? I'm sure there are prettier ways to do this, but you

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread Ned Batchelder
On 4/17/2013 12:10 PM, 8 Dihedral wrote: Serhiy Storchaka於 2013年4月17日星期三UTC+8下午5時35分07秒寫道: 17.04.13 07:57, Larry Hudson написав(ла): So using a list comprehension you can do it in two lines: def get_rule(num): bs = bin(num)[2:] return [0] * (8 - len(bs)) + [int(i) for i in

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 4:36 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 4/17/2013 12:10 PM, 8 Dihedral wrote: Well, a new object is returned and can be used. Then who is going to clean up the object when required? This is a key thing to understand about Python: memory is

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Steven D'Aprano
Wow, that's some impressive wall of text! Splitting your comments up into a few paragraphs would make it much easier to read :-) My comments below... On Wed, 17 Apr 2013 10:15:02 -0700, Bruce McGoveran wrote: Thank you all for your thoughtful replies. I appreciate your collective insight.

Re: a couple of things I don't understand wrt lists

2013-04-17 Thread Steven D'Aprano
Ned Batchelder wrote: On 4/17/2013 12:10 PM, 8 Dihedral wrote: Well, a new object is returned and can be used. Then who is going to clean up the object when required? This is a key thing to understand about Python: memory is managed automatically, no one has to clean up the object.

Re: Encoding NaN in JSON

2013-04-17 Thread Johann Hibschman
Miki Tebeka miki.teb...@gmail.com writes: I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit the *string* 'N/A' for every NaN. Easiest way is probably to

Re: Parsing soap result

2013-04-17 Thread darnold
On Apr 17, 1:05 pm, Christian Heimes christ...@python.org wrote: Am 17.04.2013 19:55, schrieb darnold: On Apr 17, 8:50 am, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: how do I use xml.etree.ElementTree to print the parameters address and deliveryStatus? Or is there a better

anyone know pandas ? Don't understand error: NotImplementedError...

2013-04-17 Thread someone
Hi, Here's my script (from http://brenda.moon.net.au/category/data-visualisation/: #!/usr/bin/python import pandas import datetime import numpy datesList = [datetime.date(2011,12,1), \ datetime.date(2011,12,2), \

PyCamp Registration Open for Columbus, Toronto, and Oshkosh

2013-04-17 Thread Chris Calloway
Registration is open for three upcoming PyCamps produced by the Triangle Python Users Group: - A five-day PyOhio PyCamp hosted by the Ohio State University Open Source Club, July 22-26, 2013 the week prior to the PyOhio regional Python conference weekend. PyCamp is a training program and

Re: Encoding NaN in JSON

2013-04-17 Thread Miki Tebeka
I'm trying to find a way to have json emit float('NaN') as 'N/A'. Easiest way is probably to transform your object before you try to write Yeah, that's what I ended up doing. Wondered if there's a better way ... Thanks, -- Miki -- http://mail.python.org/mailman/listinfo/python-list

Re: Encoding NaN in JSON

2013-04-17 Thread Dave Angel
On 04/17/2013 03:05 PM, Johann Hibschman wrote: Miki Tebeka miki.teb...@gmail.com writes: I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit the *string*

Re: Parsing soap result

2013-04-17 Thread Burak Arslan
On 04/17/13 16:50, Ombongi Moraa Fe wrote: My client.service.gere(ri) method call logs the below soap response in my log file. ?xml version=1.0 encoding=utf-8 ?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-17 Thread James Jong
I managed to compile sqlite with: CPPFLAGS='-I/path_to_sqlite-3.7.16.2/include -I/path_to_tk8.6.0/include' DFLAGS='-L/path_to_sqlite-3.7.16.2/lib -L/path_to_tk8.6.0/lib/' ./configure --prefix=/path_to_python-2.7.4 --enable-shared However, _tkinter is still failing. I don't know what else to

Re: Encoding NaN in JSON

2013-04-17 Thread Roland Koebler
Hi, Easiest way is probably to transform your object before you try to write Yeah, that's what I ended up doing. Wondered if there's a better way ... yes, there is: subclass+extend the JSON-encoder, see pydoc json. e.g.: class JsonNanEncoder(json.JSONEncoder): def default(self, obj):

Re: Unicode issue with Python v3.3

2013-04-17 Thread Cameron Simpson
On 14Apr2013 04:22, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | | Cameron would it be too much to ask to provide you with root | | access to my VPS server so you can have a look there too? | | i can pay you if you like if you wait a few days to gather some money. | | I really do

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Mark Janssen
On Tue, Apr 16, 2013 at 8:55 PM, rusi rustompm...@gmail.com wrote: On Apr 17, 7:57 am, Bruce McGoveran bruce.mcgove...@gmail.com wrote: 3. Section 5.3.1 offers this definition of an attributeref: attributeref ::= primary . identifier One general comment I will make is regarding your

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread alex23
On Apr 18, 9:40 am, Mark Janssen dreamingforw...@gmail.com wrote: This is what this list (python) has not figured out yet, because they look up to the theoretical C.S. field and it hasn't yet been published. No one here idolises the theoretical C.S. field. They *use* Python to *get things

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Ian Kelly
On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote: Rercursion the bedrock of language-design. I don't think so. From what I know, a well-defined language ends at its symbols. It makes no use of infinities. From what I know, you can't have a Turing-complete

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Mark Janssen
On Wed, Apr 17, 2013 at 5:29 PM, alex23 wuwe...@gmail.com wrote: On Apr 18, 9:40 am, Mark Janssen dreamingforw...@gmail.com wrote: This is what this list (python) has not figured out yet, because they look up to the theoretical C.S. field and it hasn't yet been published. No one here

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Mark Janssen
On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote: Rercursion the bedrock of language-design. I don't think so. From what I know, a well-defined language ends at its symbols. It makes no

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Mark Lawrence
On 18/04/2013 01:41, Mark Janssen wrote: On Wed, Apr 17, 2013 at 5:29 PM, alex23 wuwe...@gmail.com wrote: On Apr 18, 9:40 am, Mark Janssen dreamingforw...@gmail.com wrote: This is what this list (python) has not figured out yet, because they look up to the theoretical C.S. field and it hasn't

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Mark Lawrence
On 18/04/2013 02:04, Mark Janssen wrote: On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote: Rercursion the bedrock of language-design. I don't think so. From what I know, a well-defined

Re: Encoding NaN in JSON

2013-04-17 Thread Miki Tebeka
[Roland] yes, there is: subclass+extend the JSON-encoder, see pydoc json. Please read the original post before answering. What you suggested does not work since NaN is of float type. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encoding NaN in JSON

2013-04-17 Thread Roland Koebler
Hi, yes, there is: subclass+extend the JSON-encoder, see pydoc json. Please read the original post before answering. What you suggested does not work since NaN is of float type. ok, right, default does not work this way. But I would still suggest to extend the JSON-encoder, since that is

Re: Encoding NaN in JSON

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 11:01 AM, Miki Tebeka miki.teb...@gmail.com wrote: [Roland] yes, there is: subclass+extend the JSON-encoder, see pydoc json. Please read the original post before answering. What you suggested does not work since NaN is of float type. You may be able to override a bit

Re: Encoding NaN in JSON

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 11:39 AM, Roland Koebler r.koeb...@yahoo.de wrote: as a quickhack, you could even monkey patch json.encoder.floatstr with a wrapper which returns N/A for NaN. (I've tested it: It works.) Wait... you can do that? It's internal to iterencode, at least in Python 3.3 and

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 9:40 AM, Mark Janssen dreamingforw...@gmail.com wrote: On Tue, Apr 16, 2013 at 8:55 PM, rusi rustompm...@gmail.com wrote: On Apr 17, 7:57 am, Bruce McGoveran bruce.mcgove...@gmail.com wrote: 3. Section 5.3.1 offers this definition of an attributeref: attributeref

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 8:39 AM, James Jong ribonucle...@gmail.com wrote: I managed to compile sqlite with: CPPFLAGS='-I/path_to_sqlite-3.7.16.2/include -I/path_to_tk8.6.0/include' DFLAGS='-L/path_to_sqlite-3.7.16.2/lib -L/path_to_tk8.6.0/lib/' ./configure --prefix=/path_to_python-2.7.4

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Steven D'Aprano
On Wed, 17 Apr 2013 18:33:09 -0600, Ian Kelly wrote: On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote: Rercursion the bedrock of language-design. I don't think so. From what I know, a well-defined language ends at its symbols. It makes no use of infinities.

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Ian Kelly
On Wed, Apr 17, 2013 at 7:04 PM, Mark Janssen dreamingforw...@gmail.com wrote: On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen dreamingforw...@gmail.com wrote: Rercursion the bedrock of language-design. I don't think so.

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Ian Kelly
On Wed, Apr 17, 2013 at 8:14 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Incorrect. Early Fortran, which was definitely Turing complete, was incapable of using recursion. But that doesn't matter, since any recursive algorithm can be re-written as iteration. So long as a

Re: Unicode issue with Python v3.3

2013-04-17 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 18 Απριλίου 2013 2:00:48 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: Reply to this message. I will email you my ssh public key. Please make me an _ordinary_ user account called cameron and send me the ssh details of your VPS. Thank you very much Cameron, i appreciate all your

Novice Issue

2013-04-17 Thread Bradley Wright
Good Day all, currently writing a script that ask the user for three things; 1.Name 2.Number 3.Description I've gotten it to do this hurah! print Type \q\ or \quit\ to quit while raw_input != quit or q: print name = str(raw_input(Name: )) number = str(raw_input(Number: ))

Re: Novice Issue

2013-04-17 Thread Chris Angelico
On Thu, Apr 18, 2013 at 2:06 PM, Bradley Wright bradley.wright@gmail.com wrote: Good Day all, currently writing a script that ask the user for three things; 1.Name 2.Number 3.Description I've gotten it to do this hurah! print Type \q\ or \quit\ to quit while raw_input != quit or q:

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread 88888 Dihedral
Ian於 2013年4月17日星期三UTC+8下午3時21分00秒寫道: On Tue, Apr 16, 2013 at 8:57 PM, Bruce McGoveran wrote: These are terms that appear in section 5 (Expressions) of the Python online documentation. I'm having some trouble understanding what, precisely, these terms mean. I'd appreciate the

[issue16878] argparse: positional args with nargs='*' defaults to []

2013-04-17 Thread paul j3
paul j3 added the comment: In this example: p.add_argument('--foo', nargs='*', default=None) p.parse_args([]) Namespace(foo=None) p.parse_args(['--foo']) Namespace(foo=[]) 'p.parse_args([])' just assigns the default to 'foo' in the Namespace. p.parse_args(['--foo'])

[issue17532] IDLE: Always include Options menu on MacOSX

2013-04-17 Thread Guilherme Simões
Guilherme Simões added the comment: I actually removed something I shouldn't have in the first patch so I'm attaching a new one. -- Added file: http://bugs.python.org/file29899/17532MenuOptions-1.patch ___ Python tracker rep...@bugs.python.org

[issue16694] Add pure Python operator module

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: length_hint() looks ok as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694 ___ ___ Python-bugs-list

[issue17758] test_site fails when the user does not have a home directory

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: As a sidenote, I find it a bit scary that test_site even *tries* to create USER_SITE. The test suite shouldn't touch anything outside of test-specific temp files. -- nosy: +christian.heimes, pitrou type: enhancement - behavior versions: +Python 2.7

[issue17758] test_site fails when the user does not have a home directory

2013-04-17 Thread Christian Heimes
Christian Heimes added the comment: Don't be scared ... :) I'll think about a solution. -- assignee: - christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17758 ___

[issue17772] test_gdb doesn't detect a gdb built with python3.3 (or higher)

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: test_gdb skipped -- gdb not built with embedded python support $ gdb --version GNU gdb (GDB) 7.5.91.20130408 $ ldd /usr/bin/gdb|grep python libpython3.3m.so.1.0 = /usr/lib/libpython3.3m.so.1.0 -- messages: 187151 nosy: dmalcolm, doko

[issue17773] test_pydoc fails with the installed testsuite (2.7)

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: these are failures not seen with 3.x, running with -S doesn't help. test_pydoc test test_pydoc failed -- multiple errors occurred; run in verbose mode for details 1 test failed: test_pydoc Re-running failed tests in verbose mode Re-running test

[issue17750] allow the testsuite to run in the installed location

2013-04-17 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- dependencies: +test_pydoc fails with the installed testsuite (2.7) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17750 ___

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: The tests look good, thanks for writing them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___ ___

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65623d7dc76e by Giampaolo Rodola' in branch '3.3': Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. http://hg.python.org/cpython/rev/65623d7dc76e -- nosy: +python-dev

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87882c96d138 by Giampaolo Rodola' in branch 'default': Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. http://hg.python.org/cpython/rev/87882c96d138 -- ___

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- keywords: +3.2regression, 3.3regression resolution: - fixed status: open - closed versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17707

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: Attached is a qd script to produce the list of extension - mimetype maps for a version of the mimetypes module. -- Added file: http://bugs.python.org/file29900/mt.py ___ Python tracker rep...@bugs.python.org

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: Three outputs produced by mt.py: tip as-is; tip without registry; tip with new approach to registry. The results for 2.7 are near-enough identical. Likewise the results for an elevated prompt. -- Added file: http://bugs.python.org/file29901/mt-tip.txt Added

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: There seems to be a consensus that the current behaviour is undesirable, indeed broken for any meaningful use. The critical argument against the current Registry approach is that it returns unexpected (or outright incorrect) mimetypes for very standard extensions.

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think it's important to stick to established standards for MIME types and to make sure that Python returns the same values on all platforms using the default settings. Apache comes with a mime.types file which includes both the official IANA types and

[issue17774] unable to disable -r in run_tests.py

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: it is not possible to disable -r in run_tests.py. Other options like -u or -j can be overwritten, but not removing -r. -- components: Tests messages: 187160 nosy: doko priority: normal severity: normal stage: needs patch status: open title: unable to

[issue17724] urllib -- add_handler method refactoring for clarity

2013-04-17 Thread Max Mautner
Changes by Max Mautner max.maut...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17724 ___

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread David Walker
New submission from David Walker: I'm brand new to Python (and programming in general) and I'm reading Python for Dummies while trying to learn this. I downloaded 3.3.1 and when I entered the command print Hello, World! it would give the following error: SyntaxError: invalid syntax File

[issue17618] base85 encoding

2013-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After a more careful look of the b85encode code I say that it's implementation is not optimal. For the sake of simplicity the entire volume of data is copied several times. This can affect the processing of a large volume of data. On other hand, this dumb

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Python 3 and Python 2 have different syntax (same code won't work with both versions). You would have to run print(Hello, World) Please close this bug as invalid. -- nosy: +Ramchandra Apte type: compile error - behavior

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread David Walker
Changes by David Walker walka...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17775 ___

[issue17768] _decimal: allow NUL fill character

2013-04-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Yes. -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17768 ___ ___ Python-bugs-list

[issue17776] IDLE Internationalization

2013-04-17 Thread Damien Marié
New submission from Damien Marié: Following the issue 17760 Internationalization should be implemented. I propose to implement it as an optionnal settings first. And with the gettext library. I'm not experienced with the idlelib module but here is a first patch, don't hesitate to comment it.

[issue9849] Argparse needs better error handling for nargs

2013-04-17 Thread Mark Lawrence
Mark Lawrence added the comment: The first error raised is TypeError: 'str' object cannot be interpreted as an integer, followed by ValueError: length of metavar tuple does not match nargs. Therefore the code has already been changed to reflect the title of this issue. If other code changes

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Dave Chambers
Dave Chambers added the comment: Enough with the bikeshedding... it's been 10 months... fix the bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15207 ___

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Brian Curtin
Brian Curtin added the comment: Just an FYI, but if it takes 10 more months to get it right, we'll do that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15207 ___

  1   2   >