* Gabriel Genellina:
En Wed, 28 Oct 2009 19:30:13 -0300, Alf P. Steinbach
escribió:
Hm, the installer forgot to clean up, leaving lots of files, so
contrary to the dialog's final message the system had been modified.
If those files are third-party libraries, this confirms my previous
* Gabriel Genellina:
En Wed, 28 Oct 2009 19:18:48 -0300, Alf P. Steinbach
escribió:
I thought it would be prudent to install 3.1.1 for Windows from
scratch, so I uninstalled everything (CPython, ActivePython), and then
installed Python 3.1.1.
In the "Advanced" option I told the
* Mark Hammond:
On 29/10/2009 11:06 AM, Alf P. Steinbach wrote:
So I suggest switching to some other more light-weight installer
technology.
Thanks for the suggestion, but I expect we will stick with MSI even with
its shortcomings. Using MSI files has significant other advantages
* David Robinow:
On Wed, Oct 28, 2009 at 8:06 PM, Alf P. Steinbach wrote:
PS: This was not unexpected. It was exactly why I earlier didn't even look
at CPython (umpteen bad experiences with *nix ports) but used ActivePython.
It's not a *nix port. It's multiplatform and it wor
* John Machin:
On Oct 29, 11:06 am, "Alf P. Steinbach" wrote:
(3) Tkinter not bundled, misleading & incomplete documentation.
With the file associations in place (the installer managed to do that) running
console programs works fine.
However, running Tkinter based programs d
* Gabriel Genellina:
En Wed, 28 Oct 2009 21:06:03 -0300, Alf P. Steinbach
escribió:
The installer did manage to do the rest of that part correctly: file
associations and PATHEXT variable.
The Python installer from python.org does NOT add .py and .pyw to
PATHEXT; the ActivePython one does
VYAS ASHISH M-NTB837 wrote:
You might want to start a thread with a continues loop that primarily
sleeps (time.sleep) but wakes up at regular intervals and executes what
needs to be.
--
MPH
http://blog.dcuktec.com
'If consumed, best digested with added seasoning to own preference.'
--
http://
Chris Rebert wrote:
On Thu, Oct 29, 2009 at 3:25 AM, Rüdiger Ranft <_r...@web.de> wrote:
klausfpga schrieb:
Hi,
I have a Python script which wants to start a subprocess and wait for
it to finish.
However I would like to have NO command window popping up during
execution.
You need to specify
Chris Rebert wrote:
Except for here:
http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx
I was referring to the following bits of the subprocess module used in
the above code:
Me too actually :-)
subprocess.mswindows
subprocess.STARTUPINFO()
subprocess.STARTF_USESHOWWINDOW
sub
* Martin P. Hellwig:
Alf P. Steinbach wrote:
* tm:
On 28 Okt., 07:52, "Alf P. Steinbach" wrote:
[Cross-posted comp.programming and comp.lang.python]
Looking at your topic '(Python in Windows)', without taking a
glimpse at your actual introduction, I have the following t
* James Harris:
On 28 Oct, 08:58, "Alf P. Steinbach" wrote:
* tm:
On 28 Okt., 07:52, "Alf P. Steinbach" wrote:
[Cross-posted comp.programming and comp.lang.python]
Looking at your topic '(Python in Windows)', without taking a
glimpse at your actual introdu
Alf P. Steinbach wrote:
In an environment with other folks that the student can seek
help from it works well, but in a book it's rather off-putting: "hey,
it's page 90!, when are we getting to do real programming?".
Well, in the college where I used to train my pupils I h
* Ethan Furman:
Alf P. Steinbach wrote:
* James Harris:
You get way too deep into Python in places (for a beginner's course in
programming). For example, "from now on I’ll always use from
__future__ in any program that uses print."
Sorry, but I think that hiding such con
* Richard Heathfield:
The best way is the simplest technology that will do the job properly.
If that truly is PDF, okay, use PDF. But it is hard for me to
envisage circumstances where Web content is best presented in that
way.
Google docs sharing. It made a mess of my *Word* documents.
Ch
* Benjamin Kaplan:
On Thu, Oct 29, 2009 at 1:24 PM, Alf P. Steinbach wrote:
ActiveState is simplest to install.
However, given what I've now learned about the current situation wrt.
versions of Python, where Python 3.x is effectively a new language, and
where apparently ActiveState h
* bartc:
"Alf P. Steinbach" wrote in message
news:hc8pn3$dd...@news.eternal-september.org...
[Cross-posted comp.programming and comp.lang.python]
I may finally have found the perfect language for a practically
oriented introductory book on programming, namely Python.
C++ w
* Rhodri James:
On Thu, 29 Oct 2009 16:53:05 -, Alf P. Steinbach
wrote:
There's rather a lot to know about the environment that a program
executes in if one is going to create robust, dependable, generally
usable programs, not just toy examples.
I'd say this was at best an
* Ethan Furman:
Alf P. Steinbach wrote:
* Ethan Furman:
Alf P. Steinbach wrote:
* James Harris:
You get way too deep into Python in places (for a beginner's course in
programming). For example, "from now on I’ll always use from
__future__ in any program that uses print."
* alex23:
"Alf P. Steinbach" wrote:
However, given what I've now learned about the current situation wrt. versions
of Python, where Python 3.x is effectively a new language, and where apparently
ActiveState has no installer for that, I'm rewriting to use the "officia
* bartc:
python.org seems to be the main site. Google "python download" and that
is the first hit.
Their windows download seems to be 13MB against the 32MB of activestate,
and the IDE provided seems more advanced that the 'console window' you
have in your tutorial. I'm just asking why your
* Alf P. Steinbach:
* bartc:
python.org seems to be the main site. Google "python download" and
that is the first hit.
Their windows download seems to be 13MB against the 32MB of
activestate, and the IDE provided seems more advanced that the
'console window' you have i
* bartc:
Python has a lot of baggage which is OK if that's what's going to be
used, but otherwise is unnecessary confusion: where to put the program
code (typed in live or in a file, or some combination); whether to call
the file .py or .pyw; the difference between console and graphical
prog
* Mensanator:
On Oct 30, 2:07 pm, "Alf P. Steinbach" wrote:
* bartc:
Python has a lot of baggage which is OK if that's what's going to be
used, but otherwise is unnecessary confusion: where to put the program
code (typed in live or in a file, or some combination); whet
* alex23:
"Alf P. Steinbach" wrote:
And no, I didn't do any research on that. If it mattered more (e.g. appearing as
statement in the text) I'd have done that. The nice thing about Usenet is that
people rush in to correct things. ;-) http://xkcd.com/386/>
Unfortunately
Hi all!
After my earlier feedback request a lot of you responded with constructive
criticism and suggestions.
As a result of that I've changed the text to be based on *Python 3.x* instead of
2.6+, and chapter 1 "Getting started" has grown from 9 pages to a whopping 11 pages!
I would particu
sk wrote:
What would be your answer if this question is asked to you in an
interview?
a modified version might be:
"Where would you use python over C/C++/Java?"
(because my resume says I know C/C++/Java)?
I would say where I can, where 'can' is depending on the problem,
already implementatio
* sk:
[title "Why do you use python?]
What would be your answer if this question is asked to you in an
interview?
a modified version might be:
"Where would you use python over C/C++/Java?"
(because my resume says I know C/C++/Java)?
The C++ FAQ addresses this question here:
http://www.parashi
* Zeynel:
Hello,
I've been studying the official tutorial, so far it's been fun, but
today I ran into a problem with the write(). So, I open the file pw
and write "hello" and read:
f = open("pw", "r+")
f.write("hello")
f.read()
But read() returns a bunch of what looks like meta code:
"ont': 1
* Zeynel:
On Oct 31, 9:23 am, "Alf P. Steinbach" wrote:
* Zeynel:
Hello,
I've been studying the official tutorial, so far it's been fun, but
today I ran into a problem with the write(). So, I open the file pw
and write "hello" and read:
f = open("pw&qu
* Zeynel:
On Oct 31, 9:55 am, "Alf P. Steinbach" wrote:
* Zeynel:
On Oct 31, 9:23 am, "Alf P. Steinbach" wrote:
* Zeynel:
Hello,
I've been studying the official tutorial, so far it's been fun, but
today I ran into a problem with the write(). So, I ope
* Gertjan Klein:
Alf P. Steinbach wrote:
So with 'w+' the only way to get garbage is if 'read' reads beyond the end of
file, or 'open' doesn't conform to the documentation.
It does read beyond the end of file. This is perhaps the way the
underlying C
* Rhodri James:
On Fri, 30 Oct 2009 03:26:45 -, Alf P. Steinbach
wrote:
* Rhodri James:
On Thu, 29 Oct 2009 16:53:05 -, Alf P. Steinbach
wrote:
with the best knowledge of the program's environment, is unable to
handle (such as delete) files or folders with paths greater than
* Rhodri James:
Before we start, can I just say that I find Google Docs loathsome?
On Sat, 31 Oct 2009 07:40:36 -, Alf P. Steinbach
wrote:
I hope this new version of ch 1 is, well, better, addresses some of
the concerns raised?
Section 1.1 needs serious work.
Could you please
* MRAB:
Lord Eldritch wrote:
Hi
Maybe this is maybe something it has been answered somewhere but I
haven't been able to make it work. I wanna pass one variable to a
callback function and I've read the proper way is:
Button(.., command=lambda: function(x))
So with
def function(a): prin
* Rhodri James:
On Sun, 01 Nov 2009 21:20:20 -, Alf P. Steinbach
wrote:
* Rhodri James:
This is a weird attribution style, by the way. I don't think it helps.
That's a pretty weird thing to comment on.
And as far as I can see the comment doesn't make sense except a
* Peter Otten:
Alf P. Steinbach wrote:
for x in range(0,3):
Button(.., command=lambda x=x: function(x))
An alternative reusable alternative is to create a button-with-id class.
This is my very first Python class so I'm guessing that there are all
sorts of issue
* Peter Otten:
Alf P. Steinbach wrote:
* Peter Otten:
Alf P. Steinbach wrote:
for x in range(0,3):
Button(.., command=lambda x=x: function(x))
An alternative reusable alternative is to create a button-with-id class.
This is my very first Python class so I'm guessing
* Diez B. Roggisch:
Alf P. Steinbach wrote:
* Peter Otten:
Alf P. Steinbach wrote:
for x in range(0,3):
Button(.., command=lambda x=x: function(x))
An alternative reusable alternative is to create a button-with-id class.
This is my very first Python class so I'm gue
* Diez B. Roggisch:
Your comment about "computed" makes it more clear what that's all about.
Also Bertrand Meyer (Eiffel language creator) had idea like that, he
called it "referential transparency". But I think when Python has this
nice property mechanism, why do people change direct data attrib
* Peter Otten:
* Alf P. Steinbach wrote:
* Peter Otten:
Every time someone has to read the code he will read, hesitate, read
again, and then hopefully come to the conclusion that the code does
nothing, consider not using it, or if it is not tied into a larger
project removing it.
I don
* Rhodri James:
On Mon, 02 Nov 2009 00:49:50 -, Alf P. Steinbach
wrote:
* Rhodri James:
On Sun, 01 Nov 2009 21:20:20 -, Alf P. Steinbach
wrote:
* Rhodri James:
This is a weird attribution style, by the way. I don't think it helps.
That's a pretty weird thing to
* Diez B. Roggisch:
Alf P. Steinbach schrieb:
* Diez B. Roggisch:
Your comment about "computed" makes it more clear what that's all
about.
Also Bertrand Meyer (Eiffel language creator) had idea like that, he
called it "referential transparency". But I think when Pyth
* Steven D'Aprano:
On Wed, 04 Nov 2009 02:29:21 +0100, Alf P. Steinbach wrote:
For example, consider two rectangle classes R1 and R2, where R2 might
be a successor to R1, at some point in system evolution replacing R1.
R1 has logical data members left, top, width and height, and R2 has
lo
* Gabriel Genellina:
I don't understand either. R1 and R2 have *different* semantics.
Assume that they have the very exact same semantics -- like two TV sets that
look the same and work the same except when you open 'em up and poke around in
there, oh holy cow, in this one there's stuff th
* Gabriel Genellina:
En Wed, 04 Nov 2009 04:50:42 -0300, Alf P. Steinbach
escribió:
* Gabriel Genellina:
I don't understand either. R1 and R2 have *different* semantics.
Assume that they have the very exact same semantics -- like two TV
sets that look the same and work the same e
* Terry Reedy:
Alf P. Steinbach wrote:
However, the natural semantics is that various logical properties,
such as left, top, right, bottom, width and height, can be varied
independently.
But they *CANNOT* be varied independently. A rectangle with side
parallel to the axes has exactly 4
* Steven D'Aprano:
On Wed, 04 Nov 2009 08:50:42 +0100, Alf P. Steinbach wrote:
* Gabriel Genellina:
I don't understand either. R1 and R2 have *different* semantics.
Assume that they have the very exact same semantics
Why would we assume that when you have explicitly told us
* Alf P. Steinbach:
* Steven D'Aprano:
On Wed, 04 Nov 2009 08:50:42 +0100, Alf P. Steinbach wrote:
* Gabriel Genellina:
I don't understand either. R1 and R2 have *different* semantics.
Assume that they have the very exact same semantics
Why would we assume that when you have
* Steven D'Aprano:
On Thu, 05 Nov 2009 13:27:09 +1100, Ben Finney wrote:
Steven D'Aprano writes:
On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
Steven D'Aprano writes:
Why would I want to use an already existing library that is fast,
well- written and well-supported, when I can to
* Jon Clements:
I read the OP as homework (I'm thinking Scott did as well),
Sorry. Need to recalibrate that neural network. Back-propagation initiated...
Done! :-)
however,
your code would be much nicer re-written using collections.defaultdict
(int)... which I don't think is giving anythi
* Gabriel Genellina:
En Thu, 05 Nov 2009 21:23:27 -0300, Alf P. Steinbach
escribió:
[snip]
From the docs for the operator module: "Many operations have an
“in-place” version. The following functions provide a more primitive
access to in-place operators than the usual syntax does
* Hrvoje Niksic:
"Alf P. Steinbach" writes:
Speedup would likely be more realistic with normal implementation (not
fiddling with bit-fields and stuff)
I'm not sure I understand this. How would you implement tagged integers
without encoding type information in bits of the poi
vsoler wrote:
As mentioned in the other answers, your problem is best solved by a long
overdue organisational decision instead of a technical one.
Most popular solutions are:
- All invoices are essential a single credit amount, money coming in is
taken of from the big pile.
- Invoices are spli
* Hrvoje Niksic:
"Alf P. Steinbach" writes:
* Hrvoje Niksic:
"Alf P. Steinbach" writes:
Speedup would likely be more realistic with normal implementation (not
fiddling with bit-fields and stuff)
I'm not sure I understand this. How would you implement tagged
Chapter 2 "Basic Concepts" is about 0.666 completed and 30 pages so far.
It's now Python 3.x, and reworked with lots of graphical examples and more
explanatory text, plus limited in scope to Basic Concepts (which I previously
just had as a first ch 2 section -- but there's rather a lot of con
* Jon Clements:
On Nov 9, 4:10 pm, "Alf P. Steinbach" wrote:
Chapter 2 "Basic Concepts" is about 0.666 completed and 30 pages so far.
It's now Python 3.x, and reworked with lots of graphical examples and more
explanatory text, plus limited in scope to Basic Concepts
* sstein...@gmail.com:
On Nov 9, 2009, at 11:54 AM, Jon Clements wrote:
On Nov 9, 4:10 pm, "Alf P. Steinbach" wrote:
First, because as opposed to ch 1 there is quite a bit of code here,
and since I'm a
Python newbie I may be using non-idiomatic constructs,
Welp, there goes
* Alf P. Steinbach:
Chapter 2 "Basic Concepts" is about 0.666 completed and 30 pages so far.
It's now Python 3.x, and reworked with lots of graphical examples and
more explanatory text, plus limited in scope to Basic Concepts (which I
previously just had as a first ch 2 s
One reaction to http://preview.tinyurl.com/ProgrammingBookP3> has
been that turtle graphics may be off-putting to some readers because it is
associated with children's learning.
What do you think?
Cheers,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
* Steven D'Aprano:
On Thu, 12 Nov 2009 08:35:23 -0800, Joel Davis wrote:
obviously the GIL is a major reason it's so slow.
http://en.wikipedia.org/wiki/Global_Interpreter_Lock
Uh oh...
No such "obviously" about it.
There have been attempts to remove the GIL, and they lead to CPython
be
* Rami Chowdhury:
On Thu, 12 Nov 2009 09:32:28 -0800, Alf P. Steinbach
wrote:
This also seems religious. It's like in Norway it became illegal to
market lemon soda, since umpteen years ago it's soda with lemon
flavoring. This has to do with the *origin* of the citric acid,
wheth
* Rami Chowdhury:
On Thu, 12 Nov 2009 11:24:18 -0800, Alf P. Steinbach
wrote:
* Rami Chowdhury:
On Thu, 12 Nov 2009 09:32:28 -0800, Alf P. Steinbach
wrote:
This also seems religious. It's like in Norway it became illegal to
market lemon soda, since umpteen years ago it's soda
* Raymond Hettinger:
On Nov 11, 10:21 pm, "Alf P. Steinbach" wrote:
One reaction to http://preview.tinyurl.com/ProgrammingBookP3> has
been that turtle graphics may be off-putting to some readers because it is
associated with children's learning.
What do you think?
Ho
* Peter Nilsson:
"Alf P. Steinbach" wrote:
One reaction to http://preview.tinyurl.com/ProgrammingBookP3> has
been that turtle graphics may be off-putting to some
readers because it is associated with children's learning.
[I'll be honest and say that I merely glanc
Jonathan Hartley wrote:
While examining py2exe et al of late, my thoughts keep returning to
the idea of writing, in C or similar, a compiled stand-alone
executable 'bootstrapper', which:
1) downloads and install a Python interpreter if none exists
2) runs the application's Python source code usin
* Rami Chowdhury:
On Thu, 12 Nov 2009 12:02:11 -0800, Alf P. Steinbach
wrote:
I think that was in the part you *snipped* here. Just fill in the
mentioned qualifications and weasel words.
OK, sure. I don't think they're weasel words, because I find them
useful, but I think I see wh
* Vincent Manis:
On 2009-11-13, at 22:51, Alf P. Steinbach wrote:
It's sort of hilarious.
It really is, see below.
So no, it's not a language that is slow, it's of course only concrete
implementations that may have slowness flavoring. And no, not really, they
don'
* sturlamolden:
On 12 Nov, 18:32, "Alf P. Steinbach" wrote:
Of course Python is slow: if you want speed, pay for it by complexity.
Python is slow is really a misconception.
Sorry, no, I don't think so.
But we can't know that without ESP powers.
Which seem t
* Vincent Manis:
On 2009-11-14, at 00:22, Alf P. Steinbach wrote, in response to my earlier post.
Anyways, it's a good example of focusing on irrelevant and meaningless
precision plus at the same time utilizing imprecision, higgedly-piggedly
as it suits one's argument. Mixing ha
* sturlamolden:
On 12 Nov, 18:32, "Alf P. Steinbach" wrote:
Hm, this seems religious.
Of course Python is slow: if you want speed, pay for it by complexity.
Not really. The speed problems of Python can to a large extent be
attributed to a sub-optimal VM.
Perl tends to be much f
* Vincent Manis:
On 2009-11-14, at 01:11, Alf P. Steinbach wrote:
OK, now we've reached a total breakdown in communication, Alf. You appear
to take exception to distinguishing between a language and its implementation.
Not at all.
But that doesn't mean that making that distinction
* gil_johnson:
On Nov 13, 5:29 pm, kj wrote:
[...]
Or it could be set up so that at least n > 1 "delete" votes and no
"keep" votes are required to get something nixed. Etc.
This seems simpler than all-out moderation.
("all-out moderation"? now, there's an oxymoron for ya!)
How about using
Ben Finney wrote:
Chris Rebert writes:
2009/11/16 Yasser Almeida Hernández :
How is the sintaxis for set the TODO and FIXME tags...?
There is no special syntax for those. Some people use them in
comments, but it's just a convention.
This is true. However, the convention is fairly well esta
The CPython 3.1.1 language reference §4.1 says
"Each command typed interactively is a block."
It also says
"If a name is bound in a block, it is a local variable of that block, unless
declared as nonlocal"
Even with a non-literal try-for-best-meaning reading I can't get this to mesh
wi
* Steven D'Aprano:
On Thu, 19 Nov 2009 21:37:17 +0100, Alf P. Steinbach wrote:
The CPython 3.1.1 language reference §4.1 says
"Each command typed interactively is a block."
It also says
"If a name is bound in a block, it is a local variable of that block,
un
* Benjamin Kaplan:
On Thu, Nov 19, 2009 at 4:42 PM, Alf P. Steinbach wrote:
* Steven D'Aprano:
I feel that there's still something lacking in my understanding though, like
how/where the "really actually just pure local not also global" is defined
for function definition,
This is the tragic story of this evening:
1. Aspirins to lessen the pain somewhat.
2. Over in [comp.programming] someone mentions paper on Quicksort.
3. I recall that X once sent me link to paper about how to foil
Quicksort, written by was it Doug McIlroy, anyway some Bell Labs guy.
Want to
* Alf P. Steinbach:
import os
import fileinput
def write( s ): print( s, end = "" )
msg_id = 0
f = open( "nul", "w" )
for line in fileinput.input( mode = "rb" ):
if line.startswith( "From - " ):
msg_id += 1;
f.close()
* W. eWatson:
I'm sure that \\ is used in some way for paths in Win Python, but I have
not found anything after quite a search. I even have a six page pdf on a
file tutorial. Nothing. Two books. Nothing. When I try to open a file
along do I need, for example, "Events\\record\\year\\today"? Are
* Tim Chase:
Alf P. Steinbach wrote:
that you cannot write e.g. "c:\windows\system32", but must
write something like "c:\\windows\\system32" (try to print
that string), or, since Windows handles forward slashes as
well, you can write "c:/windows/system32" :-).
* John Posner:
> I'm on Python 2.5, but using the updated turtle.py Version 1.0.1 -
24. 9. 2009.
> The following script draws 5 circles, which it is supposed to, but then
> doesn't draw the second turtle which is supposed to simply move forward.
> Any ideas?
Try commenting out this stateme
* Nobody:
On Tue, 02 Feb 2010 15:00:28 +, Grant Edwards wrote:
It turns out that buggy.py imports psycopg2, as you can see, and
apparently psycopg2 (or something imported by psycopg2) tries to
import some standard Python module called numbers; instead it ends
up importing the innocent myscr
I've started on ch 3 of my beginner's intro to programming, now delving into the
details of the Python language.
It's just a few pages yet, file [03 asd.pdf] (no real title yet!) at http://tinyurl.com/programmingbookP3> which is at Google Docs.
The first topic is about assertions and exception
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run through IDLE or PythonWin
works fine. If I double-click the file, it works fine in Python 2.6, but in
3 it fails because it looks for the files to load in the P
* mf:
I'm translating a db from english to spanish with the Google
translator API. The problem is when a TranslationError occurs(usually
because of connection problems). I can
except the first one, but I don't know how to except again. I "solved"
the problem by saving temp db's and then joining t
* MRAB:
Alf P. Steinbach wrote:
* mf:
I'm translating a db from english to spanish with the Google
translator API. The problem is when a TranslationError occurs(usually
because of connection problems). I can
except the first one, but I don't know how to except again. I "solved&
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and when run through IDLE or PythonWin
works fine. If I double-click the file, it works
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 11:18 PM, Alf P. Steinbach wrote:
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 9:56 PM, Alf P. Steinbach wrote:
* David Monaghan:
I have a small program which reads files from the directory in which it
resides. It's written in Python 3 and whe
* Alf P. Steinbach:
* Benjamin Kaplan:
On Wed, Feb 3, 2010 at 11:18 PM, Alf P. Steinbach wrote:
* Benjamin Kaplan:
The easiest way to solve this permanently, by the way, is to not use
relative paths. All it takes is one script to call os.chdir and the
script breaks. You can use __file__ and
* Anthra Norell:
Hi,
I upgraded from 2.4 to 2.5 and am unable to start an 2.5 idle window.
This is the command I have been using:
C:\Python24\pythonw.exe C:\Python24\Lib\IDLELIB\idle.pyw -n -c
execfile('C:\\Python24\\i')
And this is the command that doesn't start anything:
C:\Python25\
On 02/04/10 23:03, Julian wrote:
For those guys would be a poster quite cool which describes the most
popular and beloved python features.
That it is ego-orientated programming ;-)
http://mail.python.org/pipermail/python-announce-list/2009-April/007419.html
--
mph
--
http://mail.python.org/m
* Wanderer:
On Feb 5, 3:26 pm, Chris Rebert wrote:
On Fri, Feb 5, 2010 at 11:53 AM, Wanderer wrote:
Which is the more accepted way to compose method names nounVerb or
verbNoun?
For example voltageGet or getVoltage? getVoltage sounds more normal,
but voltageGet is more like voltage.Get. I seem
What's this about all the Stephen'ses here?
Shouldn't it be Bruce?
- Alf (wondering)
--
http://mail.python.org/mailman/listinfo/python-list
Just trying to delve into the CPython source code.
Pleasant surprise: while e.g. the gcc compiler is written in K&R C (1975 style
C), CPython seems to be written in almost modern C (1989 and on).
But, hey, TABS used for indenting, combined haphazardly and randomly with SPACES
used for indenti
* Andrej Mitrovic:
On Feb 6, 9:31 pm, "Alf P. Steinbach" wrote:
Just trying to delve into the CPython source code.
Pleasant surprise: while e.g. the gcc compiler is written in K&R C (1975 style
C), CPython seems to be written in almost modern C (1989 and on).
But, hey,
* Steven D'Aprano:
On Sat, 06 Feb 2010 16:05:15 -0800, hzh...@gmail.com wrote:
Thanks for your reply.
So there isn't such a routine just because some of the regular
expressions cannot be enumerated. However, some of them can be
enumerated. I guess I have to write a function myself.
How do you
* Steven D'Aprano:
On Sun, 07 Feb 2010 01:51:19 +0100, Alf P. Steinbach wrote:
Regular expressions are programs in a "regex" programming language.
What you are asking for is the same as saying:
"Is there a program that can enumerate every possible set of data that
is usabl
* Steven D'Aprano:
On Sun, 07 Feb 2010 01:34:14 +, bartc wrote:
For a real-world example, it means instead of having a room with a
light-switch in it, if I *know* I want the light on or off, I should
have two rooms: one with the light permanently on, and one with it
permanently off, and jus
* hzh...@gmail.com:
So it seems we both misunderstood the problem.
I didn't read the top level article until now, and reading it, I can't make
sense of it.
[1] Seems that you should read the whole thing before making a post, or
else you cannot know what we are talking about.
Steven doesn't mi
* Schif Schaf:
Hi,
I've got some text that looks like this:
Lorem [ipsum] dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor
incididunt ut [labore] et [dolore] magna aliqua.
and I want to make it look like this:
Lorem {ipsum} dolor sit amet, consectetur
1101 - 1200 of 1697 matches
Mail list logo