I added a section on "basic data" to ch 2 of my writings, an introduction to
programming (with Python as main language).
The intended reader is someone who is intelligent and wants to learn programming
but knows little or nothing about it.
As before it would be nice with feedback on this.
* markolopa:
On 18 Sep, 10:36, "markol...@gmail.com" wrote:
On Sep 11, 7:36 pm, Johan Grönqvist wrote:
I find several places in my code where I would like tohavea variable
scope that is smaller than the enclosing function/class/module definition.
This is one of the single major frustrations
* Esmail:
Ok, this is somewhat unexpected:
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> -3**2
-9
>>> x = -3
>>> x**2
9
>>>
I would have expected the same result in both cases.
Init
* Jean-Michel Pichavant:
Steven D'Aprano wrote:
On Mon, 30 Nov 2009 02:11:12 +0100, Alf P. Steinbach wrote:
I think if one could somehow declare names as const (final, readonly,
whatever) then that would cover the above plus much more.
Having real constants is one feature that I
* Alf P. Steinbach:
I added a section on "basic data" to ch 2 of my writings, an
introduction to programming (with Python as main language).
The intended reader is someone who is intelligent and wants to learn
programming but knows little or nothing about it.
As before it would be
* Edward Cherlin:
On Sun, Nov 29, 2009 at 11:34, Brian Blais wrote:
After a bit of playing, I realized that I couldn't think of many exaples
which use turtle with conditional structures (if- and while- statements),
Repeat is used much more often. but of course we can provide examples
of any
Hi.
I discovered with tkinter the registration of widgets with layout managers
(tkinter "geometry" managers, e.g. calls to pack()) needs to be done very
hierarchically.
And this leads to hierarchical code, which would be nice to indicate by
indenting, but oops, indenting in Python is syntact
Is this guaranteed to work in Python 3.x?
>>> def foo(): pass
...
>>> foo.blah = 222
>>> foo.blah
222
>>> _
Cheers,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
* Marco Mariani:
Alf P. Steinbach wrote:
Is this guaranteed to work in Python 3.x?
>>> def foo(): pass
>>> foo.blah = 222
>>> foo.blah
222
>>> _
I don't see why it shouldn't work.
For example,
(42).blah = 666
The question is w
* Raymond Hettinger:
On Dec 4, 2:03 am, "Alf P. Steinbach" wrote:
Is this guaranteed to work in Python 3.x?
>>> def foo(): pass
...
>>> foo.blah = 222
>>> foo.blah
222
Yes, function attributes are guaranteed to be writable:
http://www.python.o
* Lie Ryan:
On 12/5/2009 2:57 PM, Gnarlodious wrote:
On Dec 1, 3:06 pm, Terry Reedy wrote:
def print(s): return sys.stdout.buffer.write(s.encode('utf-8'))
Here is a better solution that lets me send any string to the
function:
def print(html): return sys.stdout.buffer.write(("Content-type:te
* Steven D'Aprano:
On Sat, 05 Dec 2009 11:26:34 +0100, Alf P. Steinbach wrote:
Regarding my terminology, "routine" instead "function" that everybody
except you remarked on, it is of course intentional. [...]
I think you failed to realise that your use of the term
* Dennis Lee Bieber:
On Sat, 05 Dec 2009 11:26:34 +0100, "Alf P. Steinbach"
declaimed the following in gmane.comp.python.general:
The devolution of terminology has been so severe that now even the Wikipedia
article on this subject confounds the general concept of "routine"
* MRAB:
Alf P. Steinbach wrote:
> * Dennis Lee Bieber:
>> On Sat, 05 Dec 2009 11:26:34 +0100, "Alf P. Steinbach"
>> declaimed the following in
>> gmane.comp.python.general:
>>
>>> The devolution of terminology has been so severe that now e
Format: PDF
http://preview.tinyurl.com/ProgrammingBookP3>
The new stuff, section 2.7, is about programs as simulations and handling data,
focusing on modeling things. It includes some Python GUI programming. The plan
is to discuss containers like lists and dictionaries in perhaps two more
* rm:
Here is a new tutorial that may be a good starting point for learning
Python.
http://www.themaemo.com/python-for-newbies/
Looks nice.
I have two comments: (1) what is "the N900"?, and (2) the naming convention,
using 'Num' for a variable and 'clsAddress' for a class, is opposite of the
* rm:
On Dec 9, 9:46 pm, "Alf P. Steinbach" wrote:
* rm:
Here is a new tutorial that may be a good starting point for learning
Python.
http://www.themaemo.com/python-for-newbies/
Looks nice.
I have two comments: (1) what is "the N900"?, and (2) the naming conventio
* mattia:
How can I insert non-duplicate data in a list? I mean, is there a
particular option in the creation of a list that permit me not to use
something like:
def append_unique(l, val):
if val not in l:
l.append(val)
How about using a set instead?
>>> a = {1, 2, 3}
>>> a
* Alf P. Steinbach:
Format: PDF
http://preview.tinyurl.com/ProgrammingBookP3>
The new stuff, section 2.7, is about programs as simulations and
handling data, focusing on modeling things. It includes some Python GUI
programming. The plan is to discuss containers like lists
* Alf P. Steinbach:
* Alf P. Steinbach:
Format: PDF
http://preview.tinyurl.com/ProgrammingBookP3>
The new stuff, section 2.7, is about programs as simulations and
handling data, focusing on modeling things. It includes some Python
GUI programming. The plan is to discuss containers l
* Mensanator:
On Dec 16, 4:41 pm, Mensanator wrote:
On Dec 14, 1:23 am, "Alf P. Steinbach" wrote:
* Alf P. Steinbach:
Format: PDF
http://preview.tinyurl.com/ProgrammingBookP3>
The new stuff, section 2.7, is about programs as simulations and
handling data, focusin
* Mensanator:
On Dec 16, 5:45 pm, "Alf P. Steinbach" wrote:
* Mensanator:
On Dec 16, 4:41 pm, Mensanator wrote:
On Dec 14, 1:23 am, "Alf P. Steinbach" wrote:
* Alf P. Steinbach:
Format: PDF
http://preview.tinyurl.com/ProgrammingBookP3>
The new stuff
* W. eWatson:
See Subject msg from Python 2.5 Win XP. It is preceded by a "Socket
Error". It happened while I had a simple program displayed, and I wanted
to see the shell. The msg occurred when I pressed Shell on Run from the
menu. I played around for awhile, but got nowhere. Same msg. I did
* Carlos Grohmann:
Hello all
I am testing my code with list comprehensions against for loops.
the loop:
dipList=[float(val[1]) for val in datalist]
dip1=[]
for dp in dipList:
if dp == 90:
dip1.append(dp - 0.01)
else:
dip1.append(dp)
listcomp
I finally finished (draft), I believe!, chapter 2...
Chapter 1 gets the reader up & running, i.e. it's "Hello, world!", basic tool
usage, without discussing anything about programming really. One reaction to
this chapter, based on the two example programs in it, was that it wasn't
gradual and
* Carl Banks:
On Dec 17, 10:00 pm, Brendan Miller wrote:
On Thu, Dec 17, 2009 at 6:44 PM, Steven D'Aprano
wrote:
On Thu, 17 Dec 2009 12:07:59 -0800, Brendan Miller wrote:
I was thinking it would be cool to make python more usable in
programming competitions by giving it its own port of the
* Carl Banks:
On Dec 18, 11:08 am, "Alf P. Steinbach" wrote:
* Carl Banks:
On Dec 17, 10:00 pm, Brendan Miller wrote:
On Thu, Dec 17, 2009 at 6:44 PM, Steven D'Aprano
wrote:
On Thu, 17 Dec 2009 12:07:59 -0800, Brendan Miller wrote:
I was thinking it would be cool to m
* Mensanator:
The second deviation is that since most names are constants,
Really? Does that mean you don't use literals, to save the time
required to convert them to integers? Isn't that done at compile
time?
So, instead of doing the Collatz Conjecture as
while a>1:
f = gmpy.scan1(a,0)
i
* Steven D'Aprano:
On Fri, 18 Dec 2009 19:00:48 +0100, Alf P. Steinbach wrote:
In fact almost no Python
code does, but then it seems that people are not aware of how many of
their names are constants and think that they're uppercasing constants
when in fact they're not. E.g. ro
* Steven D'Aprano:
On Sat, 19 Dec 2009 01:25:48 +0100, Alf P. Steinbach wrote:
That said, and a bit off-tangent to your comment's main thrust, the time
spent on coding that repeated-division-by-2 optimization would, I think,
be better spent googling "Collatz Conjecture"
* Dave Angel -> seafoid:
One other point: you should always derive a class from some other
class, or 'object' by default. So you should being the class definition
by:
class Seq(object):
Why? It mainly has to do with super(). But in any case if you omit the
'object' it's an "old style"
* Mensanator:
That said, and a bit off-tangent to your comment's main thrust, the time spent
on coding that repeated-division-by-2 optimization would, I think, be better
spent googling "Collatz Conjecture" -- avoiding writing /any/ code. ;-)
Ha! I know more about Collatz than you can ever fi
* Steven D'Aprano:
On Sat, 19 Dec 2009 04:04:51 +0100, Alf P. Steinbach wrote:
* Steven D'Aprano:
On Fri, 18 Dec 2009 19:00:48 +0100, Alf P. Steinbach wrote:
In fact almost no Python
code does, but then it seems that people are not aware of how many of
their names are constants
* Steven D'Aprano:
On Sat, 19 Dec 2009 04:29:22 +0100, Alf P. Steinbach wrote:
* Steven D'Aprano:
On Sat, 19 Dec 2009 01:25:48 +0100, Alf P. Steinbach wrote:
That said, and a bit off-tangent to your comment's main thrust, the
time spent on coding that repeated-division-by
* John Posner:
On Fri, 18 Dec 2009 13:00:48 -0500, Alf P. Steinbach
wrote:
Chapter 2 is about Basic Concepts (of programming). It's the usual:
variables, ...
1. Overall suggestion
You have a tendency to include non-pertinent asides [1]. But then,
rambling a bit endows a manuscript
Hi, 10 details I forgot in my first response...
* John Posner:
[...] Chapter 2, which current runs 98 pages!
The chapter 2 PDF I posted on
http://tinyurl.com/programmingbookP3>
was and is (it's not been updated) 101 pages, with an "-EOT-" at page 102.
I suspect you may have read the previ
* W. eWatson:
When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words
without reasonable line breaks.
"\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary
homogeneous items\n 2. Fast mathematical operations over arrays\n 3.
Linear Algebra, Fourier Transforms, Random N
* Alf P. Steinbach:
* W. eWatson:
When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words
without reasonable line breaks.
"\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary
homogeneous items\n 2. Fast mathematical operations over arrays\n 3.
Linear Al
Tentatively titled "Foundations".
Also, these first 2/3 sections may be moved to some later point, i.e. even the
structure is tentative, but I'd value comments!
http://tinyurl.com/programmingbookP3>
Table of contents:
3 Foundations 1
3.1 Some necessary math notation & terminology. 2
3.1.
* Denis Doria:
I thought in something like:
class A:
def __init__(self, foo = None, bar = None):
set_foo(foo)
self._bar = bar
def set_foo(self, foo):
if len(foo) > 5:
raise
_foo = foo
foo = property(setter = set_foo)
But looks too much
doubt that there are many errors etc., all mine!).
* Alf P. Steinbach, in [comp.lang.python]:
Tentatively titled "Foundations".
Also, these first 2/3 sections may be moved to some later point, i.e.
even the structure is tentative, but I'd value comments!
http://tinyurl.c
* Steven D'Aprano:
[snip]
The obvious follow-up is to ask how to make an immutable class.
http://northernplanets.blogspot.com/2007/01/immutable-instances-in-python.html
Thanks, I've been wondering about that.
By the way, the link at the bottom in the article you linked to, referring to an
* Mensanator:
...because there's no [Options] menu on the shell window?
Or at least give me a clue to how to use Courier New font?
For some inscrutable reason, depite the plethora of formatting tools,
someone decided that proportional spaced fonts ought to be the
default for IDLE.
Why not jus
* Lie Ryan:
On 1/9/2010 8:43 AM, suresh.amritapuri wrote:
Hi,
In PIL, how to display multiple images in say m rows and n colums when
I have m*n images.
suresh
Tkinter has PhotoImage widget and PIL has support for this widget:
http://www.pythonware.com/library/pil/handbook/imagetk.htm
Maybe
* Paul Rudin:
Sebastian writes:
I have an array x=[1,2,3]
In python such an object is called a "list".
(In cpython it's implemented as an automatically resizable array.)
I don't think the OP's terminology needs correction.
A Python "list" is an array functionality-wise.
If one isn't ob
* Steven D'Aprano:
On Mon, 11 Jan 2010 08:56:36 +0100, Alf P. Steinbach wrote:
* Paul Rudin:
Sebastian writes:
I have an array x=[1,2,3]
In python such an object is called a "list".
(In cpython it's implemented as an automatically resizable array.)
I don't t
* Chris Rebert:
On Mon, Jan 11, 2010 at 1:03 AM, Alf P. Steinbach wrote:
* Steven D'Aprano:
On Mon, 11 Jan 2010 08:56:36 +0100, Alf P. Steinbach wrote:
* Paul Rudin:
Sebastian writes:
I have an array x=[1,2,3]
In python such an object is called a "list".
(In cpython i
* Chris Rebert:
On Mon, Jan 11, 2010 at 2:20 AM, Alf P. Steinbach wrote:
* Chris Rebert:
On Mon, Jan 11, 2010 at 1:03 AM, Alf P. Steinbach wrote:
* Steven D'Aprano:
On Mon, 11 Jan 2010 08:56:36 +0100, Alf P. Steinbach wrote:
* Paul Rudin:
Sebastian writes:
Using the term &
* suresh.amritapuri:
On Jan 9, 9:51 pm, "Alf P. Steinbach" wrote:
* Lie Ryan:
On 1/9/2010 8:43 AM, suresh.amritapuri wrote:
Hi,
In PIL, how to display multiple images in say m rows and n colums when
I have m*n images.
suresh
Tkinter has PhotoImage widget and PIL has support for t
* W. eWatson:
Ben Finney wrote:
"W. eWatson" writes:
See my post about the datetime controversy about 3-4 posts up from
yours.
This forum is distributed, and there's no “up” or “3-4 messages” that is
common for all readers.
Could you give the Message-ID for that message?
Sort of like oute
* Steve Holden:
Alf P. Steinbach wrote:
* W. eWatson:
Ben Finney wrote:
"W. eWatson" writes:
See my post about the datetime controversy about 3-4 posts up from
yours.
This forum is distributed, and there's no “up” or “3-4 messages” that is
common for all readers.
Cou
Argh! This was really annoying! Much time wasted (one naturally thinks that
silly error must be one's own).
But, anyway:
Lines:
244 nitems = (chunk.chunksize - chunk.size_read) / self._sampwidth
464 self._nframes = initlength / (self._nchannels * self._sampwidth)
Need to use Python 3.x
* Steve Holden:
Alf P. Steinbach wrote:
[...]
PS: It would be nice if someone(TM) could describe here in detail how to
properly report errors like this. Of course I'm not going to do it if it
involves establishing Yet Another Account somewhere. But hopefully it
doesn't?
That's
* Alf P. Steinbach:
* Steve Holden:
Alf P. Steinbach wrote:
[...]
PS: It would be nice if someone(TM) could describe here in detail how to
properly report errors like this. Of course I'm not going to do it if it
involves establishing Yet Another Account somewhere. But hopefully it
do
* Stefan Behnel:
Alf P. Steinbach, 12.01.2010 12:51:
Well how f*g darn patient do they expect me to be?
I've decided: I'm not.
Oh sh**, just as I typed the period above the mail finally arrived.
It's been, let's see, about 20+ minutes!
And still some miles to go.
* Stefan Behnel:
Alf P. Steinbach, 12.01.2010 13:10:
* Stefan Behnel:
Maybe you should just stop using the module. Writing the code
yourself is certainly going to be faster than reporting that bug,
don't you think?
It's part of the standard Python distribution.
Don't you th
* André:
On Jan 12, 9:33 am, "Alf P. Steinbach" wrote:
Well, this is for my Python (actually, beginning programmer) writings, at
http://tinyurl.com/programmingbookP3
Thanks for writing this book. I just had a quick look at the
beginning of it where you write:
===
As of th
* Steve Holden:
Alf P. Steinbach wrote:
* Stefan Behnel:
Alf P. Steinbach, 12.01.2010 12:51:
Well how f*g darn patient do they expect me to be?
I've decided: I'm not.
Oh sh**, just as I typed the period above the mail finally arrived.
It's been, let's see, about 20+
* Steve Holden:
Alf P. Steinbach wrote:
If you have any suggestions for improving things (and the same goes for
any other readers) I will be happy to listen to them. I do agree that
the bug tracker is a rather high hurdle for people to have to jump over
just to offer feedback on software faults
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
[...]
FYI there is already some feedback in the tracker.
Yeah, someone who had the bright idea that maybe there isn't a bug,
thinking instead that maybe a "wrong" name in *a comment* might be the
culprit -- of all
* Steven D'Aprano:
On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote:
* André:
On Jan 12, 9:33 am, "Alf P. Steinbach" wrote:
Well, this is for my Python (actually, beginning programmer) writings,
at
http://tinyurl.com/programmingbookP3
Thanks for writing thi
* Steven D'Aprano:
On Tue, 12 Jan 2010 23:47:31 +0100, Alf P. Steinbach wrote:
PS: Next time it would have helped to include a URL to the issue.
http://bugs.python.org/issue7681
FYI there is already some feedback in the tracker.
Yeah, someone who had the bright idea that maybe
* Terry Reedy:
On 1/12/2010 6:31 PM, Alf P. Steinbach wrote:
Perhaps change to CAPTCHA instead of mail confirmation.
I disagree. The point of mail confirmation is not just to assure that a
human is registering, but that we have a valid email for responses to be
sent to. Many issues are
* Stefan Behnel:
Alf P. Steinbach, 13.01.2010 06:39:
* Steven D'Aprano:
On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote:
It is hopeless, especially for a newbie, to create correct Python
2.x+3.x compatible code, except totally trivial stuff of course.
So you allege, but
* Stefan Behnel:
Alf P. Steinbach, 13.01.2010 06:55:
* Steven D'Aprano:
I think you need to chill out and stop treating a simple bug report
as a personal slight on you.
I'm sorry but you're again trying to make people believe something
that you know is false, which is common
* Steven D'Aprano:
Nobody is trying to understate the complexity of writing a large
application that supports both 2.6 and 3.x, or of taking an existing
library written for 2.5 and upgrading it to support 3.1. But the
magnitude of these tasks is no greater (and potentially smaller) than
supp
* Steven D'Aprano:
On Wed, 13 Jan 2010 06:55:27 +0100, Alf P. Steinbach wrote:
* Steven D'Aprano:
On Tue, 12 Jan 2010 23:47:31 +0100, Alf P. Steinbach wrote:
PS: Next time it would have helped to include a URL to the issue.
http://bugs.python.org/issue7681
FYI there
Referring to http://tinyurl.com/programmingbookP3>
Due to especially Steven D'Aprano's comments I've replaced "hopeless" with "very
hard" in paragraph 1 of section 1.1 -- I know he'll disagree with that also
but I think any more downplaying of the difficulties would be misleading.
According
* Steve Holden:
Alf P. Steinbach wrote:
* Steven D'Aprano:
Nobody is trying to understate the complexity of writing a large
application that supports both 2.6 and 3.x, or of taking an existing
library written for 2.5 and upgrading it to support 3.1. But the
magnitude of these tasks
* Alf P. Steinbach:
* Steve Holden:
Alf P. Steinbach wrote:
* Steven D'Aprano:
Nobody is trying to understate the complexity of writing a large
application that supports both 2.6 and 3.x, or of taking an existing
library written for 2.5 and upgrading it to support 3.1. But the
magnitu
* Daniel Fetchinson:
Nobody is deliberately trying to keep people from porting! I think you
misunderstand what is being said, these two statements are very
different: (1) single code base working on both python versions (2)
creating a second code from a code so that the second code works with
py
Just as a contribution, since someone hinted that I haven't really contributed
much to the Python community.
The [simple_sound] code will probably go into my ch 3 at http://tinyurl.com/programmingbookP3>, but sans sine wave generation since I
haven't yet discussed trig functions, and maybe /wit
* luis:
Hi
I am not an expert in programming and using Python for its simplicity
I have 2 versions of python installed on my computer (windos xp) to
begin the transition from version 2.4 to 2.6 or 3. maintaining the
operability of my old scripts
Is there any way to indicate the version of the
* Steve Holden:
Alf P. Steinbach wrote:
Just as a contribution, since someone hinted that I haven't really
contributed much to the Python community.
The [simple_sound] code will probably go into my ch 3 at http://tinyurl.com/programmingbookP3>, but sans sine wave generation
since I hav
* Paweł Banyś:
Hello,
Please forgive me if I repeat the subject anyhow. I am trying to write a
simple program in Python which scans a config file in search for
"include" lines. If those lines are found, the files included there are
followed and scanned and if any further "include" lines are foun
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
Alf P. Steinbach wrote:
Just as a contribution, since someone hinted that I haven't really
contributed much to the Python community.
The [simple_sound] code will probably go into my ch 3 at http://tinyurl.com/programmingbookP3&
* Lie Ryan -> Alf P. Steinbach:
why do you think it is "impossible" to write a complex and portable
python script?
I don't. You're not quoting me.
Though keeping everything in one code base may often be difficult and
only of little practical benefit, it is not imp
* Mel:
Alf P. Steinbach wrote:
* Steve Holden:
It's not clear to me that you can approximate any waveform with a
suitable combination of square waves,
Oh. It's simple to prove. At least conceptually! :-)
Consider first that you need an infinite number of sine waves to create
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
[...]
With the goal of just a rough approximation you can go about it like this:
1. Divide a full cycle of the sine wave into n intervals. With
sine wave frequency f this corresponds to n*f sample rate for digital
* Peter Otten:
Alf P. Steinbach wrote:
Just as a contribution, since someone hinted that I haven't really
contributed much to the Python community.
The [simple_sound] code will probably go into my ch 3 at http://tinyurl.com/programmingbookP3>, but sans sine wave generation since
I hav
* Grant Edwards:
On 2010-01-14, Alf P. Steinbach wrote:
It's not clear to me that you can approximate any waveform
with a suitable combination of square waves,
Oh. It's simple to prove. At least conceptually! :-)
[...]
With the goal of just a rough approximation you can go abo
* Steve Holden:
Grant Edwards wrote:
On 2010-01-14, Alf P. Steinbach wrote:
[bogus hand-waving]
After all, it's the basis of digital representation of sound!
Huh? I've only studied basic DSP, but I've never heard/seen
that as the basis of digital represention of sound.
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
Grant Edwards wrote:
On 2010-01-14, Alf P. Steinbach wrote:
[bogus hand-waving]
After all, it's the basis of digital representation of sound!
Huh? I've only studied basic DSP, but I've never heard/seen
that as the b
* Lie Ryan:
On 01/15/10 05:42, Alf P. Steinbach wrote:
I'm beginning to believe that you maybe didn't grok that simple procedure.
It's very very very trivial, so maybe you were looking for something
more intricate -- they used to say, in the old days, "hold on, this
proof
* Lie Ryan:
On 01/15/10 05:42, Alf P. Steinbach wrote:
I'm beginning to believe that you maybe didn't grok that simple procedure.
It's very very very trivial, so maybe you were looking for something
more intricate -- they used to say, in the old days, "hold on, this
proof
* Steve Holden:
Alf P. Steinbach wrote:
* Lie Ryan:
On 01/15/10 05:42, Alf P. Steinbach wrote:
I'm beginning to believe that you maybe didn't grok that simple
procedure.
It's very very very trivial, so maybe you were looking for something
more intricate -- they used to say,
* Steve Holden:
Alf P. Steinbach wrote:
[...]
Perhaps you'd also admit to being wrong, and retract your innuoendo etc.?
Disregarding any matters of right or wrong (for this post, at least), I
herebe retract anything I have said about you that you consider
innuendo.
OK.
Feel fr
* Steven D'Aprano:
On Fri, 15 Jan 2010 05:23:48 +0100, Alf P. Steinbach wrote:
You're again into innuendo, misleading statements and so forth.
[...]
[Steve Holden] prefers to spout innuendu, personal attacks and
misleading statements.
Your constant and repeated accusation
* Ben Finney:
"Alf P. Steinbach" writes:
You did lie, that's established. In addition as I recall in the same
post you went on about my motivations for doing the Terrible Deed that
you invented.
None of that matches my (largely disinterested) observations. This is
pure fan
* Steve Holden:
Alf P. Steinbach wrote:
* Ben Finney:
"Alf P. Steinbach" writes:
You did lie, that's established. In addition as I recall in the same
post you went on about my motivations for doing the Terrible Deed that
you invented.
None of that matches my (largel
* Steve Holden:
For the record, yes, summing any waveforms that can be represented as
Fourier Series will necessarily result in another Fourier series, since
any linear combination of Fourier series must itself, be a Fourier
series, and therefore the representation of the sum of the summed wavef
* Grant Edwards:
On 2010-01-15, Steve Holden wrote:
I will, however, observe that your definition of a square wave is what I
would have to call a "'square' wave" (and would prefer to call a "pulse
train"), as I envisage a square wave as a waveform having a 50% duty
cycle, as in
___ ___
|
* D'Arcy J.M. Cain:
Damn! I missed the @invalid.com in the address. I'm not sure why I
just didn't do this before but @invalid.com just went into my
blacklist.
Does anyone else think that that behaviour is just rude, not to mention
in violation of the RFCs?
In RFC violation yes.
To saf
be quoted.
// Note: in order to handle Unicode paths needs to use Windows API command line.
//
// If this code works then it was written (but not tested) by Alf P. Steinbach.
// Otherwise it's someone impersonating me.
#include// std::wstring
#include// std::vector
* Steve Holden:
Alf P. Steinbach wrote:
* Grant Edwards:
On 2010-01-15, Steve Holden wrote:
I will, however, observe that your definition of a square wave is what I
would have to call a "'square' wave" (and would prefer to call a "pulse
train"), as I envisa
* Alf P. Steinbach:
* Steve Holden:
Though for what it's worth I wasn't impressed by the results of running
the posted program, since it yielded an AIFF file of mostly zeroes that
produced no audible sound.
$ od -bc sinewave.aiff
000 106 117 122 115 000 002 261 076 101 111 1
* Gertjan Klein:
Alf P. Steinbach wrote:
* Gertjan Klein:
What I've been thinking about is to write a single [Windows] executable that
gets associated with .py and .pyw (instead of python.exe itself).
Well, you need two: one for console subsystem, and one for GUI subsystem.
Why? I
* Gertjan Klein:
Alf P. Steinbach wrote:
* Gertjan Klein:
Alf P. Steinbach wrote:
Thinking about it some more, perhaps that way I can't get at return
codes a python script might provide. I haven't used those, but they may
be useful at some point.
Return codes work OK no matter wha
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
Alf P. Steinbach wrote:
* Grant Edwards:
On 2010-01-15, Steve Holden wrote:
I will, however, observe that your definition of a square wave is
what I
would have to call a "'square' wave" (and would prefer to call
* Alf P. Steinbach:
* Steve Holden:
Alf P. Steinbach wrote:
* Steve Holden:
Alf P. Steinbach wrote:
* Grant Edwards:
On 2010-01-15, Steve Holden wrote:
I will, however, observe that your definition of a square wave is
what I
would have to call a "'square' wave" (and
1 - 100 of 565 matches
Mail list logo