Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson
έγραψε:
> On 13Apr2013 23:00, nagia.rets...@gmail.com wrote:
>
> | root@nikos [/home/nikos/public_html/foo-py]# pwd
>
> | /home/nikos/public_html/foo-py
>
> | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py
>
On Wed, Apr 17, 2013 at 4:40 PM, Steven D'Aprano
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
>> from?)
>
> C.
offee.
ChrisA
--
On Wed, Apr 17, 2013 at 12:23 AM, Steven D'Aprano
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
>> precision. There's no way to ma
On Wed, Apr 17, 2013 at 4:56 PM, 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
On Tue, Apr 16, 2013 at 11:40 PM, Steven D'Aprano
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
> > from?)
>
> C.
"Influenced by
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 forum's thoughts on these questions:
>
> 1. Sect
ANNOUNCING
eGenix.com mx Base Distribution
mxDateTime, mxTextTools, mxProxy, mxURL, mxUID,
mxBeeBase, mxStack, mxQueue, mxTools
Version 3.2.6
On Wed, Apr 17, 2013 at 4:56 PM, 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
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
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
rusi 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. As a la
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 c
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 clea
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
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
>
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: Tur
Steven D'Aprano 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 an or_test. Here's so
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)))
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 th
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 Hotel
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 offers
aaB 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 switched to roxterm fo
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.
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, fo
My
client.service.gere(ri)
method call logs the below soap response in my log file.
http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>http://www.csapi.org/schema/parlayx/sms/send/v2_2/local
">254727DeliveredToNetwork
If I assign the client.serv
*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')#
>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 wrote:
> [ T
On Apr 17, 5:25 am, aaB 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.
>
That was happenin
>> 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
Renato Barbosa Pim Pereira
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, you defined a MainHandler class *wi
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 dis
In Miki Tebeka
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.
import math
x = possibly_NaN()
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
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 co
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 appreci
On Apr 17, 8:50 am, Ombongi Moraa Fe
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 ns1:result nodes and loop th
Am 17.04.2013 19:55, schrieb darnold:
> On Apr 17, 8:50 am, Ombongi Moraa Fe
> 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
>
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 bs]
On Thu, Apr 18, 2013 at 4:36 AM, 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
> automatica
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.
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 obj
Miki Tebeka 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 transform your
On Apr 17, 1:05 pm, Christian Heimes wrote:
> Am 17.04.2013 19:55, schrieb darnold:
>
> > On Apr 17, 8:50 am, Ombongi Moraa Fe
> > 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
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), \
datetime.date(2011,12,3)
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 spons
> >>> 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
On 04/17/2013 03:05 PM, Johann Hibschman wrote:
Miki Tebeka 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.
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.
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>xmlns:ns1="http://www.csapi.org/schema/parlayx/sms/s
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 try.
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):
On 14Apr2013 04:22, 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 not recommend that
On Tue, Apr 16, 2013 at 8:55 PM, rusi wrote:
> On Apr 17, 7:57 am, Bruce McGoveran wrote:
>> 3. Section 5.3.1 offers this definition of an attributeref:
>> attributeref ::= primary "." identifier
>>
>
> One general comment I will make is regarding your distress at what you
> call 'circular'
On Apr 18, 9:40 am, Mark Janssen 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 done*, not to engage in p
On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen 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 language without
some fo
On Wed, Apr 17, 2013 at 5:29 PM, alex23 wrote:
> On Apr 18, 9:40 am, Mark Janssen 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". Th
On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly wrote:
> On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen
> 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 kn
On 18/04/2013 01:41, Mark Janssen wrote:
On Wed, Apr 17, 2013 at 5:29 PM, alex23 wrote:
On Apr 18, 9:40 am, Mark Janssen 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
On 18/04/2013 02:04, Mark Janssen wrote:
On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly wrote:
On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen 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 "
[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
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
On Thu, Apr 18, 2013 at 11:01 AM, Miki Tebeka 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 more of the code,
On Thu, Apr 18, 2013 at 11:39 AM, Roland Koebler 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 2.7 that I'm loo
On Thu, Apr 18, 2013 at 9:40 AM, Mark Janssen wrote:
> On Tue, Apr 16, 2013 at 8:55 PM, rusi wrote:
>> On Apr 17, 7:57 am, Bruce McGoveran wrote:
>>> 3. Section 5.3.1 offers this definition of an attributeref:
>>> attributeref ::= primary "." identifier
>>>
>>
>> One general comment I will
On Thu, Apr 18, 2013 at 8:39 AM, James Jong 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 --enable-shared
>
>
On Wed, 17 Apr 2013 18:33:09 -0600, Ian Kelly wrote:
> On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen
> 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
On Wed, Apr 17, 2013 at 7:04 PM, Mark Janssen wrote:
> On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly wrote:
>> On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen
>> wrote:
>>> Rercursion the "bedrock" of language-design. I don't think so. From
>>> what I know, a well-defined language ends at its symb
On Wed, Apr 17, 2013 at 8:14 PM, Steven D'Aprano
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 language
> can iterate an indefinite n
Τη Πέμπτη, 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 yo
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("Num
On Thu, Apr 18, 2013 at 2:06 PM, Bradley Wright
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":
You'll want t
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
71 matches
Mail list logo