Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-15 Thread John Nagle
On 10/10/2013 6:27 PM, Steven D'Aprano wrote: > For what it's worth, there is no three-dimensional extension to complex > numbers, but there is a four-dimensional one, the quaternions or > hypercomplex numbers. They look like 1 + 2i + 3j + 4k, where i, j and k > are all distinct but i**2 == j**2

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 3:31:06 AM UTC+5:30, Rhodri James wrote: > On Tue, 15 Oct 2013 21:26:27 +0100, Mark Janssen > wrote: > > >> = Rusi, attribution missing from original. Yes. It would help to keep your quotes bound (firstclassly?) to their respective quoters -- Mark Janssen also an

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > > Objects in programming languages (or 'values' if one is more functional > > programming oriented) correspond to things in the world. > > > One of the things you're saying there is that "values correspond to > things in the wor

Re: Python was designed

2013-10-15 Thread Piet van Oostrum
Mark Janssen writes: > Yeah, well 40 years ago they didn't have parsers. The purpose of > having a field of computer science worthy of the name, is to advance > the science not let this riff-raff dominate the practice. Hah! 40 years ago I wrote a parser generator (similar to yacc, that I did n

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Peter Cacioppi
> only I'm focusing on the importance of design rather than deifying > the person who designed it. I'm cool with deification here. I'll happily get on my knees and bow towards Holland while chanting "Guido ... I'm not worthy" 5 times a day, if that's part of the cult. Want an odd and ranty th

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 21:26, Mark Janssen wrote: Yeah, well 40 years ago they didn't have parsers. I'm very pleased to see that (presumably) some Americans do have a sense of humour. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.

Re: PID tuning.

2013-10-15 Thread John Nagle
On 10/14/2013 2:03 PM, Ben Finney wrote: > Renato Barbosa Pim Pereira > writes: > >> I am looking for some software for PID tuning that would take the >> result of a step response, and calculates Td, Ti, Kp, any suggestion >> or hint of where to start?, thanks. > > Is this related to Python? Wha

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Rhodri James
On Tue, 15 Oct 2013 21:26:27 +0100, Mark Janssen wrote: = Rusi, attribution missing from original. Objects in programming languages (or 'values' if one is more functional programming oriented) correspond to things in the world. One of the things you're saying there is that "values corre

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Grant Edwards
On 2013-10-15, Mark Janssen wrote: > Yeah, well 40 years ago they didn't have parsers. That seems an odd thing to say. People were assembling and compiling computer programs long before 1973. How did they do that without parsers? -- Grant Edwards grant.b.edwardsYow! Of c

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Tim Chase
On 2013-10-16 06:09, Chris Angelico wrote: > > "xyz" - "abc"; > (1) Result: "xyz" > > "cba" - "abc"; > (2) Result: "cba" > > "abcdabc" - "abc"; > (3) Result: "d" > > Every instance of the subtracted-out string is removed. It's > something like x.remove(y) in many other languages. Or as one

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 21:11, wxjmfa...@gmail.com wrote: Le lundi 14 octobre 2013 21:18:59 UTC+2, John Nagle a écrit : [...] No, Python went through the usual design screwups. Look at how painful the slow transition to Unicode was, from just "str" to Unicode strings, ASCII strings, byte s

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Janssen
> Objects in programming languages (or 'values' if one is more functional > programming oriented) correspond to things in the world. One of the things you're saying there is that "values correspond to things in the world". But you will not get agreement in computer science on that anymore than s

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread wxjmfauth
Le lundi 14 octobre 2013 21:18:59 UTC+2, John Nagle a écrit : [...] > > No, Python went through the usual design screwups. Look at how > > painful the slow transition to Unicode was, from just "str" to > > Unicode strings, ASCII strings, byte strings, byte arrays, > > 16 and 31 bit

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Chris Angelico
On Wed, Oct 16, 2013 at 2:01 AM, Steven D'Aprano wrote: > On Tue, 15 Oct 2013 19:57:50 +1100, Chris Angelico wrote: >> Python doesn't happen to implement str-str or str/str, but some >> languages do: > > Which languages are you talking about? > > For the record, if PHP is one of them, I consider t

Re: Problem calling script with arguments

2013-10-15 Thread Florian Lindner
Am Dienstag, 15. Oktober 2013, 13:18:17 schrieb Michael Speer: > > "/usr/sbin/ftpasswd" "--hash" > > You're missing a comma, and python automatically concatenates adjacent > strings. Damn! Thanks! > > On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner wrote: > > Hello, > > > > I have a 3rd par

Re: Problem calling script with arguments

2013-10-15 Thread Michael Speer
> "/usr/sbin/ftpasswd" "--hash" You're missing a comma, and python automatically concatenates adjacent strings. On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner wrote: > Hello, > > I have a 3rd party perl script: > > head -n 1 /usr/sbin/ftpasswd > #!/usr/bin/perl > > I want to write data to s

Problem calling script with arguments

2013-10-15 Thread Florian Lindner
Hello, I have a 3rd party perl script: head -n 1 /usr/sbin/ftpasswd #!/usr/bin/perl I want to write data to stdin and read from stdout: proc = Popen( ["/usr/bin/perl", "/usr/sbin/ftpasswd" "--hash", "--stdin"], stdout=PIPE, stdin=PIPE) output, input = proc.communicate(pwd) return output.stri

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread rusi
On Tuesday, October 15, 2013 2:20:10 PM UTC+5:30, Steven D'Aprano wrote: > If you read the whole python-history blog on blogspot, you'll see that > Python's had it's share of mistakes, design failures and other "oops!" > moments. I think that it is a testament to GvR's over-all design that the >

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Steven D'Aprano
On Tue, 15 Oct 2013 19:57:50 +1100, Chris Angelico wrote: > On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon > wrote: >> That doesn't matter. Adding and concating are different operations and >> their are types in which both occur rather naturally. So as a designer >> of such a class you have to c

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Antoon Pardon
Op 15-10-13 10:57, Chris Angelico schreef: > On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon > wrote: >> Op 15-10-13 01:11, Chris Angelico schreef: >>> On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: >> >>> Operator "+" as concatenation for built-in arrays but addition for NumPy array

Mailing list contained posts with acute accent for apostrophe.

2013-10-15 Thread Tae Wong
The acute accent (´) is a special apostrophe if the user has no experience or can't type in the apostrophe (or the grave accent: `). You don't use Python but you aren't subscribed to this list (so non-subscribers can post). Example of special quotes: `xxx´ An example of a post on the python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Chris Angelico
On Tue, Oct 15, 2013 at 6:48 PM, Antoon Pardon wrote: > Op 15-10-13 01:11, Chris Angelico schreef: >> On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: > >> >>> Operator "+" as concatenation for built-in arrays but addition >>> for NumPy arrays. >> >> ... NumPy definitely isn't part of the langu

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Steven D'Aprano
On Tue, 15 Oct 2013 10:11:53 +1100, Chris Angelico wrote: > On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: >> Old-style classes vs. new-style classes. > > By the time I started using Python, new-style classes existed and were > the recommended way to do things, so I never got the "feel" for

Re: How to manage Git or Mercurial repositories

2013-10-15 Thread Michael Ströder
Andriy Kornatskyy wrote: > Managing version control repositories can be a challenge in multi-user > environment especially when simplification of user collaboration is your > goal. There are usually two primary concerns while considering enterprise > deployment for version control repositories:

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Antoon Pardon
Op 15-10-13 01:11, Chris Angelico schreef: > On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: > >> Operator "+" as concatenation for built-in arrays but addition >> for NumPy arrays. > > ... NumPy definitely isn't part of the language. It's not even part of > the standard library, it's fully

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 02:50, Roy Smith wrote: In article , Terry Reedy wrote: The first versions of Python and unicode were developed and released about the same time. No one knew that either would be as successful as they have become over two decades. Much the same can be said for IPv6 :-) My