I have a Python script that does a fork/exec, so the parent process
can get the child's PID and monitor /proc/PID/stat (on a CentOS
system). Most of my processes' command lines are straightforward
enough to do this with, but I have a handful that use < on the command
line, eg
./gobmk_base.linux_x
> > > ./gobmk_base.linux_x86 --quiet --mode gtp < 13x13.tst
> >
> > > The only thing I could really think of to try was
> >
> > >os.execv("./gobmk_base.linux_x86", ["./gobmk_base.linux_x86",
> > > "--quiet", "--mode", "gtp", "<", "13x13.tst"])
> >
> > > but this apparently doesn't work. Is the
> >>> 0xff & (((0xff & a) << 4) | (0xff & b))
> 150
>
> or, if you're sloppy,
>
> >>> (a << 4) | b
> 150
Slightly OT, maybe - why exactly is the second alternative 'sloppy?'
I believe you, because I had a problem once (in Java) with bytes not
having the value I expected unless I did the and-magi
On Nov 30, 2007 11:17 AM, Matt Nordhoff <[EMAIL PROTECTED]> wrote:
> Tim Chase wrote:
> > (You'd think this was the Lisp ML, not Python... )
>
> Atsp? :-)
> --
Athp? Wait, no, Microsoft already claimed that one...
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 1, 2007 12:34 PM, Bjoern Schliessmann
<[EMAIL PROTECTED]> wrote:
> Dotan Cohen wrote:
> > C was named after the B programming language, as it was inspired
> > and meant to replace it. C++ is obviously C+1
>
> Strictly speaking, C++ evalutes to C, but C is incremented
> afterwards.
>
I guess
On Dec 2, 2007 11:55 AM, Abandoned <[EMAIL PROTECTED]> wrote:
> Hi..
> Can i find a file size witdhout download?
> For example: www.roche.com/rochea_z_sp.pdf
> How can i find its size with python ?
When you send an HTTP request, most servers will respond with the
content length. For instance, if
On Dec 3, 2007 4:34 PM, Russ P. <[EMAIL PROTECTED]> wrote:
>
> > I'm amazed that anyone here answered this obvious troll...
>
> I doubt the original post was a troll, but the statement above clearly
> is.
>
> You are entitled to your opinion about the idea of changing the name
> of the language, bu
On Dec 11, 2007 8:19 PM, katie smith <[EMAIL PROTECTED]> wrote:
>
> I tried googling and yahooing to find the answer and there was to many
> conflicting results so i just decided to ask to simple question here.
>
> How do i could the number of letters in a string no a single letter all of
> them.
>
> Since the US, at least, uses whole/half/quarter/eighth/sixteenth...
> notes, three-quarter and six-eight time falls out...
I don't think this is technically true, but I've never been able to
tell the difference.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 16, 2007 10:32 PM, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> "Dan Upton" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> |> Since the US, at least, uses
> whole/half/quarter/eighth/sixteenth...
> | > notes, three-
On Jan 12, 2008 5:15 PM, ChairmanOfTheBored <[EMAIL PROTECTED]> wrote:
> On Sat, 12 Jan 2008 11:50:07 -0800 (PST), [EMAIL PROTECTED] wrote:
>
> >THERMUCK
>
> Is a goddmned retard.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Why was this ever on the Python list (I assume it start
Or: How to write Python like a Python programmer, not a Java
programmer. This will be a little long-winded...
So I just recently started picking up Python, mostly learning the new
bits I need via Google and otherwise cobbling together the functions
I've already written. It occurred to me though
> with ImpulseC and the graphing capabilities of GNU Plot and SciPy in
http://gnuplot-py.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 31, 2008 9:00 PM, Sick Monkey <[EMAIL PROTECTED]> wrote:
> Good evening. I am trying to write an application in Python that will allow
> a person to insert a CD into their computer and this python script will
> convert the music to mp3.
>
> NOTE: I have already google'd this, and nothing r
On Feb 7, 2008 8:59 PM, ajaksu <[EMAIL PROTECTED]> wrote:
> On Feb 7, 10:05 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote:
> > I do not understand why people such as yourself cannot construct
> > anything but insults and complaints.
>
> I can help with that. People asked politely a few days ag
On 5 Mar 2008 07:36:37 -0800, Aahz <[EMAIL PROTECTED]> wrote:
> For anyone who hasn't heard, E. Gary Gygax died yesterday. Some people
> think we should build a tomb in his honor. ;-)
Yeah, I just saw a tribute on Order of the Stick:
http://www.giantitp.com/comics/oots0536.html
--
http://mail
On Sun, Mar 9, 2008 at 5:22 PM, Gif <[EMAIL PROTECTED]> wrote:
> i'm trying to execute a file without replacing the current process,
> but after searching the help file, documentations and the web, i can't
> a way of doing that.
>
> os.exec*() will close the current program.
>
> ps: by executin
On Thu, Feb 5, 2009 at 11:00 AM, mk wrote:
>
> (duck)
>
> 542 comp.lang.python rtfm
>
> 467 comp.lang.python shut+up
>
> 263 comp.lang.perl rtfm
>
> 45 comp.lang.perl shut+up
>
But over how many messages for each group? Wouldn't the percentage of
messages containing those be more interesting than
On Thu, Feb 5, 2009 at 12:37 PM, Tim Rowe wrote:
> 2009/2/5 Tim Chase :
>
>> Is this where we tell you to shut up? ;-)
>
> [snip]
>
>> It would also be interesting to see how many of those posts are concentrated
>> in certain threads
>
> And, as you have clearly demonstrated, how many of those po
[snip
>
>
> Follow-ups again set to talk.politics. Of course that may be futile in
> dealing with this kind of scumbag.
>
> --
> --Bryan
Also, changing newsgroups followups doesn't affect replying to the mailing list.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Dec 13, 2008 at 2:00 PM, David Hláčik wrote:
>> Unless I grossly miss out on something in computer science 101, the lower
>> bound for sorting is O(n * log_2 n). Which makes your task impossible,
>> unless there is something to be assumed about the distribution of numbers in
>> your sequen
On Mon, Dec 15, 2008 at 11:05 AM, wrote:
>> Non-comparison sorts are a useful technique, but it's changing the
>> problem, and they are only useful in very limited circumstances. There's
>> a good reason that most sort routines are based on O(n*log n) comparison
>> sorts instead of O(n) bucket so
On Mon, Dec 22, 2008 at 12:29 PM, wrote:
> On Dec 15, 10:00 pm, "cmdrrickhun...@yaho.com"
> wrote:
>> It can be proven that you cannot sort an arbitrarily large set of
>> numbers, given no extra information, faster than O(n log n).
>
> Cormen Leiserson and Rivest, "Algorithms", have a short clea
On Mon, Oct 6, 2008 at 11:02 AM, Eric Wertman <[EMAIL PROTECTED]> wrote:
>>> If an OS was to be written in Python and the hardware optimized for
>>> it, what changes would be made to the hardware to accomodate Python
>>> strenghs and weaknesses?
>
>
> I'm no expert, but this would seem like a good
On Fri, Nov 14, 2008 at 1:00 PM, Mr. SpOOn <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm writing a method to create musical chords.
>
> This method must follow a specific set of syntax rules. At least, this
> is my idea, but maybe there's a better way.
> Anyway, in the code I have class Chord which is a s
On Wed, Nov 19, 2008 at 2:13 PM, Philip Semanchuk <[EMAIL PROTECTED]> wrote:
>
> On Nov 19, 2008, at 2:03 PM, Catherine Moroney wrote:
>
>> The command (stored as an array of strings) that I'm executing is:
>>
>> ['python ../src_python/Match1.py ',
>> '--file_ref=MISR_AM1_GRP_ELLIPSOID_GM_P228_O003
On Wed, Nov 19, 2008 at 2:38 PM, Catherine Moroney
<[EMAIL PROTECTED]> wrote:
> Dan Upton wrote:
>>
>> On Wed, Nov 19, 2008 at 2:13 PM, Philip Semanchuk <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> On Nov 19, 2008, at 2:03 PM, Catherine Moroney wrote:
On Mon, May 12, 2008 at 10:19 PM, Jimmy <[EMAIL PROTECTED]> wrote:
> Well, i know it may be a little non-python thing, however, I can think
> of no place better to post this question :)
>
> can anyone tell me, in python, how to obtain some information of a
> running program?
> paticularly, if i
On Mon, May 12, 2008 at 11:02 PM, Jimmy <[EMAIL PROTECTED]> wrote:
> On May 13, 10:36 am, "Dan Upton" <[EMAIL PROTECTED]> wrote:
>
>
> > On Mon, May 12, 2008 at 10:19 PM, Jimmy <[EMAIL PROTECTED]> wrote:
> > > Well, i know it may be a little
On Tue, May 13, 2008 at 11:24 AM, Dave Parker
<[EMAIL PROTECTED]> wrote:
> > The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming l
On Tue, May 13, 2008 at 1:28 PM, Torsten Bronger
<[EMAIL PROTECTED]> wrote:
> Hallöchen!
>
>
> Dave Parker writes:
>
> >> Notice that I said "free software", not "*** FREE *** software
> >> 1!" (that is, free as in freedom, not free as in
> >> beer). Read again my answer, considering thi
On Tue, May 13, 2008 at 1:58 PM, Matthieu Brucher
<[EMAIL PROTECTED]> wrote:
>
> > Perhaps. But if elementary school students can easily understand why
> > one programming language gives the answer 100 (Flaming Thunder):
> >
> > Write 10^2.
> >
> > but can't understand why another programming lan
On Tue, May 13, 2008 at 10:55 PM, alex23 <[EMAIL PROTECTED]> wrote:
> On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote:
>> "George Sakkis" <[EMAIL PROTECTED]> wrote in message
>> > You must be new here. It is an AS (Artificial Stupidity) trolling bot,
>> > you can safely ignore its posts.
>>
On Thu, May 15, 2008 at 9:32 AM, castironpi <[EMAIL PROTECTED]> wrote:
> Why can't I write this?
> --
Because your antecedent is undefined?
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, May 15, 2008 at 5:19 PM, jay graves <[EMAIL PROTECTED]> wrote:
> On May 15, 3:47 pm, [EMAIL PROTECTED] wrote:
>> I'm cleaning up some old code, and want to see what orphan
>> functions might be sitting around.
>>
>> Is there a static call tree analyzer for python?
>
> How about
> http://pyc
On Thu, May 15, 2008 at 8:05 PM, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote:
> On Thursday 15 May 2008 09:32:37 am castironpi wrote:
>> Why can't I write this?
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>
> yield recieved.
>
> Thanks.
Should that be
ack yield
?
--
http://mail.p
>> 3. If it is still slow, embed some assembler where it is slowing down.
>>
>
> I won't know if the assembler is faster until I embed it, and if I'm going
> to do that I might as well use it.
> Although it's true I'd only have to embed it for one system to see (more or
> less).
>
Regardless of w
On Fri, May 16, 2008 at 2:08 PM, inhahe <[EMAIL PROTECTED]> wrote:
>
> "Dan Upton" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
>>
>> On Fri, May 16, 2008 at 1:27 PM, Mensanator <[EMAIL PROTECTED]> wrote:
>>>
On Fri, May 16, 2008 at 2:12 PM, inhahe <[EMAIL PROTECTED]> wrote:
>
> "George Sakkis" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> On May 16, 11:58 am, "inhahe" <[EMAIL PROTECTED]> wrote:
>> I'm not an expert in this but what does it mean to emphasize state? It
>> seems the oppo
This might be more information than necessary, but it's the best way I
can think of to describe the question without being too vague.
The task:
I have a list of processes (well, strings to execute said processes)
and I want to, roughly, keep some number N running at a time. If one
terminates, I
On Sun, May 18, 2008 at 6:20 PM, John Salerno <[EMAIL PROTECTED]> wrote:
> Hey all. Just thought I'd ask a general question for my own interest. Every
> time I think of something I might do in Python, it usually involves creating
> a GUI interface, so I was wondering what kind of work you all do
On Mon, May 19, 2008 at 11:20 PM, Dave Parker
<[EMAIL PROTECTED]> wrote:
>
> For another example, I've always preferred languages that are English-
> like because it's easier to return to your code after several years
> and still know what you were doing (and it's easier for someone else
> to maint
On Wed, May 21, 2008 at 11:34 AM, Dave Parker
<[EMAIL PROTECTED]> wrote:
> For example, consider the two statements:
>
> x = 8
> x = 10
>
> The reaction from most math teachers (and kids) was "one of those is
> wrong because x can't equal 2 different things at the same time".
Sounds to me
On Wed, May 21, 2008 at 12:33 PM, Daniel Fetchinson
<[EMAIL PROTECTED]> wrote:
Or just:
If command is "quit" ...
>>>
>>> Hmmm. In Flaming Thunder, I'm using "is" (and "is an", "is a", etc)
>>> for assigning and checking types. For example, to read data from a
>>> file and check for
On Wed, May 21, 2008 at 12:42 PM, garywood <[EMAIL PROTECTED]> wrote:
> I would just like the program to exit after guessing the amount of numbers
> wrong
>
> # Guess My Number
> import random
> the_number = random.randrange(100) + 1
> tries = 1
> # guessing loop
> while (guess != the_number):
>
On Wed, May 21, 2008 at 12:55 PM, abhilash pp <[EMAIL PROTECTED]> wrote:
>> On Wed, May 21, 2008 at 10:12 PM, garywood <[EMAIL PROTECTED]> wrote:
>>>
>>> I would just like the program to exit after guessing the amount of
>>> numbers wrong
>>>
>>> # Guess My Number
>>> import random
>>> the_number =
On Wed, May 21, 2008 at 12:11 PM, Dave Parker
<[EMAIL PROTECTED]> wrote:
> On May 21, 10:00 am, "Dan Upton" <[EMAIL PROTECTED]> wrote:
>
>> Sounds to me like the teacher is being difficult, ...
>
> No, proof-by-contradiction is a common technique in math. I
On Wed, May 21, 2008 at 3:02 PM, bukzor <[EMAIL PROTECTED]> wrote:
> Does anyone have a pythonic way to check if a process is dead, given
> the pid?
>
> This is the function I'm using is quite OS dependent. A good candidate
> might be "try: kill(pid)", since it throws an exception if the pid is
> d
On Wed, May 21, 2008 at 4:56 PM, Dave Parker
<[EMAIL PROTECTED]> wrote:
> On May 21, 2:44 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote:
>
>> My understand is no, not if you're using IEEE floating point.
>
> Yes, that would explain it. I assumed that Python automatically
> switched from hardware floa
On Wed, May 21, 2008 at 5:27 PM, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On May 14, 10:30 pm, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>> > Dave Parker schrieb:
>> > > All of the calculators and textbooks that elementary school students
>> > > use, use "^" for powers.
>>
>> I've never seen th
This looks like a homework assignment, but...
On Wed, May 21, 2008 at 10:34 PM, salil_reeves <[EMAIL PROTECTED]> wrote:
> develop a function called standardise_phrase to convert
> the user's input to a standard form for subsequent processing. This
> involves:
> 1. removing all inter-word punctuati
On Thu, May 22, 2008 at 12:14 PM, cm_gui <[EMAIL PROTECTED]> wrote:
> Python is slow.Almost all of the web applications written in
> Python are slow. Zope/Plone is slow, sloow, so very slooow. Even
> Google Apps is not faster. Neither is Youtube.
> Facebook and Wikipedia (Mediawiki), writt
On Thu, May 22, 2008 at 1:49 PM, Kurt Smith <[EMAIL PROTECTED]> wrote:
> On Thu, May 22, 2008 at 10:55 AM, duli <[EMAIL PROTECTED]> wrote:
>> Hi:
>> I would like recommendations for books (in any language, not
>> necessarily C++, C, python) which have walkthroughs for developing
>> a big software p
On Thu, May 22, 2008 at 2:53 PM, Mensanator <[EMAIL PROTECTED]> wrote:
> On May 22, 11:32 am, "Dutton, Sam" <[EMAIL PROTECTED]> wrote:
>> I've noticed that the value of math.pi -- just entering it at the
>> interactive prompt -- is returned as 3.1415926535897931, whereas (as every
>> pi-obsessive
On Wed, May 28, 2008 at 11:09 AM, Dave Parker
<[EMAIL PROTECTED]> wrote:
>> > If catch(set x to y+z.) < 0.1 then go to tinyanswer.
>>
>> So what does this do exactly if the set throws an error?
>
> I think the catch should catch the error thrown by set, compare it to
> 0.1, the comparison will not
On Thu, May 29, 2008 at 3:36 AM, Duncan Booth
<[EMAIL PROTECTED]> wrote:
> Dave Parker <[EMAIL PROTECTED]> wrote:
>
>> Catch doesn't return just error types or numbers, it can return any
>> object returned by the statements that are being caught; catch doesn't
>> care what type they are. For examp
On Thu, May 29, 2008 at 5:57 PM, D'Arcy J.M. Cain <[EMAIL PROTECTED]> wrote:
> I guess I am still new to this group and don't understand its charter.
> I wasn't aware that it was a Flaming Blunder group. Can someone please
> point me to a newsgroup or mailing list dedicated to the Python
> program
On Thu, May 29, 2008 at 6:41 PM, Gandalf <[EMAIL PROTECTED]> wrote:
> On May 30, 12:14 am, John Henderson <[EMAIL PROTECTED]> wrote:
>> Gandalf wrote:
>> > how do i write this code in order for python to understand it
>> > and print me the x variable
>>
>> > x=1
>> > def ():
>> > x++
>> >
On Mon, May 26, 2008 at 5:06 PM, Paul Miller <[EMAIL PROTECTED]> wrote:
> On Mon, 26 May 2008 15:49:33 -0400, Dan Upton wrote:
>
>> On Mon, May 26, 2008 at 3:22 PM, <[EMAIL PROTECTED]> wrote:
>
>> I don't know if it would necessarily look like the CPython VM
On Tue, Jun 3, 2008 at 3:16 PM, tmallen <[EMAIL PROTECTED]> wrote:
> On Jun 3, 3:03 pm, Chris <[EMAIL PROTECTED]> wrote:
>> On Jun 3, 8:40 pm, tmallen <[EMAIL PROTECTED]> wrote:
>>
>> > What's the proper way to instantiate a new variable? x = ""?
>>
>> You don't need to pre-declare your variables.
On Thu, Jun 5, 2008 at 9:43 AM, John Salerno <[EMAIL PROTECTED]> wrote:
> "Dave Parker" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> On May 20, 7:05 pm, Collin <[EMAIL PROTECTED]> wrote:
>
> ---
> For example, consider the two statements:
>
> x = 8
> x = 10
>
> The reacti
>> Or if they prohibit you to host malicious, offending or otherwise
>> problematic content served by the free apache - is that "against free
>> software?"
> Please, don't be demagogue.
Please don't be [a] troll?
I fail to see what is so hard to understand about the difference
between free so
On Sun, Jun 15, 2008 at 11:55 PM, Jason Scheirer
<[EMAIL PROTECTED]> wrote:
> On Jun 15, 7:53 pm, John Salerno <[EMAIL PROTECTED]> wrote:
>> Before I try this and destroy my computer :) I just wanted to see if
>> this would even work at all. Is it possible to read a binary file such
>> as an mp3 or
On Tue, Jun 24, 2008 at 8:24 PM, <[EMAIL PROTECTED]> wrote:
> Help, I'm addicted to porn. I've been downloading porn online and
> masturbating to it for a few years... Lately it's gotten even worse, I
> spend hours and hours surfing and masturbating to it. It's taking over
> my life and ruining ev
On Fri, Jun 27, 2008 at 4:04 PM, Paul McNett <[EMAIL PROTECTED]> wrote:
> Silas Snider wrote:
>>
>> Full-time academic year position
>> Salary range: $2819 - $4404 per month ( $16.26 - $25.41 per hour)
>
>> The following knowledge, skills and experience are necessary for this
>> position:
>>
>> Exp
On Sun, Jun 29, 2008 at 1:27 AM, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
>
> slix wrote:
>>
>> Recursion is awesome for writing some functions, like searching trees
>> etc but wow how can it be THAT much slower for computing fibonacci-
>> numbers?
>
> The comparison below has nothing to do with re
On Sun, Jun 29, 2008 at 2:35 PM, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> People should read posts to the end before replying, in case it actually
> says what one thinks it should, but just in a different order than one
> expected.
Well, pardon me.
--
http://mail.python.org/mailman/listinfo/pyth
On Thu, Jul 3, 2008 at 11:06 AM, Adam Lanier <[EMAIL PROTECTED]> wrote:
> david odey wrote:
>>
>> I write to inform you that the reason I subscribed to this web page is not
>> been met.
>>
>> I want to be sent sample codes in programming languages especially python
>> and an email tutorial on C#.
On Mon, Jul 7, 2008 at 4:15 AM, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote:
> Up to now, I have been innocently using the vanilla python
> that comes with the Linux distribution (Suse in my case).
>
> For the past few days, I have been playing with a little
> device called an eBox - it is basical
On Sun, Jul 20, 2008 at 9:18 PM, Michiel Overtoom <[EMAIL PROTECTED]> wrote:
> Giveitawhril wrote...
>
>> REAL WORLD programmers who want to be generally useful go
>> and learn C#.
>
> No: Real programmers first eat a quiche and then return to their Pascal
> programming.
Bah, new-fangled languages
On Sun, Jul 20, 2008 at 11:51 PM, Mensanator <[EMAIL PROTECTED]> wrote:
> On Jul 20, 10:05�pm, Stephen Johnson <[EMAIL PROTECTED]> wrote:
>> > Carry bits? Who worries about carry bits when you have
>> > unlimited precision arithmetic? You want cool?
>> > THIS is cool:
>>
>> > j = ((invert(xyz[1]-xy
On Mon, Jul 21, 2008 at 1:21 PM, Marc 'BlackJack' Rintsch
<[EMAIL PROTECTED]> wrote:
> On Mon, 21 Jul 2008 18:12:54 +0200, mk wrote:
>
>> Seriously, though, would there be any advantage in re-implementing
>> Python in e.g. C++?
>>
>> Not that current implementation is bad, anything but, but if you'
On Mon, Jul 21, 2008 at 2:12 PM, Zach Hobesh <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to figure out how to run a python program on a schedule, maybe
> every half an hour... Is this possible?
>
> Thanks!
>
> -Zach
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
On Linux, man
On Wed, Jul 30, 2008 at 2:22 PM, John Nagle <[EMAIL PROTECTED]> wrote:
> defn noob wrote:
>>
>> How can I check how many cores my computer has?
>> Is it possible to do this in a Python-app?
>
>Why do you care? Python can't use more than one of them at
> a time anyway.
Per Python process, but
> > Write a function zip(lst1, lst2) such that zip accepts two equal
> > length lists and returns a list of pairs. For example, zip(['a', 'b',
> > 'c'], [10, 20, 30]) should evaluate to the list [('a', 10), ('b', 20),
> > ('c', 30)].
>
> Hey not even a rebinding necessary. :-)
>
We had some
> The thing I've been wondering is why _is_ it read-only? In what
> circumstances having write access to co_code would break the language
> or do some other nasty stuff?
>
> João Neves
I can't speak to Python's implementation in particular, but
self-modifying code in general is unpleasant. It
On Wed, Apr 2, 2008 at 1:10 PM, Jan Claeys <[EMAIL PROTECTED]> wrote:
> Op Tue, 01 Apr 2008 10:27:18 -0700, schreef sprad:
>
>
> > I'm a high school computer teacher, and I'm starting a series of
> > programming courses next year (disguised as "game development" classes
> > to capture more inter
On Wed, Apr 16, 2008 at 1:49 PM, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On Apr 16, 12:40 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote:
>
> I don't think I like the email list idea all that much. I'm already on
> a number of them and they fill up my box like crazy. Besides that, in
> emai
On Wed, Apr 16, 2008 at 2:54 PM, Gabriel Genellina
<[EMAIL PROTECTED]> wrote:
> En Wed, 16 Apr 2008 10:36:14 -0300, Jonathan Shao <[EMAIL PROTECTED]>
> escribió:
> > *Gabriel Genellina* gagsl-py2 at yahoo.com.ar
> >
>
> > *Wed Apr 16 08:44:10 CEST 2008*
>
> >> Another thing would be to rearra
(let's try this again, and actually send it to the list this time)
On Wed, Apr 23, 2008 at 11:02 AM, blaine <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> So I've got a quick query for advice.
>
> We have an embedded device in which we are displaying to an LCD
> device that sits at /dev/screen.
On Wed, Apr 23, 2008 at 10:24 AM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> Blubaugh, David A. schrieb:
>
> > Is there a way to block these messages. I do not want to be caught
> > with filth such as this material. I could lose my job with Belcan with
> > evil messages such as these messages
On Fri, Apr 25, 2008 at 7:00 PM, ajaksu <[EMAIL PROTECTED]> wrote:
> On Apr 23, 1:27 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
>
> > On Wed, Apr 23, 2008 at 10:24 AM, Diez B. Roggisch <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Blub
On Mon, May 5, 2008 at 10:09 AM, globalrev <[EMAIL PROTECTED]> wrote:
> On 5 Maj, 14:17, "Wojciech Walczak" <[EMAIL PROTECTED]>
> wrote:
> > 2008/5/5, globalrev <[EMAIL PROTECTED]>:
>
> >
> > >
> pygame.mixer.music.load('C:/Python25/myPrograms/pygameProgs/example1.mp3')
> >
>
> > Are you sure
On Sun, Sep 7, 2008 at 10:59 PM, castironpi <[EMAIL PROTECTED]> wrote:
> On Sep 7, 7:34 pm, MRAB <[EMAIL PROTECTED]> wrote:
>> On Sep 7, 11:28 pm, "Eric Wertman" <[EMAIL PROTECTED]> wrote:
>>
>> > +1 Bot
>>
>> I think it's like duck typing: it doesn't matter whether he's actually
>> a bot, only whe
On Thu, Oct 2, 2008 at 11:18 AM, bill <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Can Python set a DOS environment variable?
>
> TIA,
>
> Bill
I'd look at http://www.python.org/doc/2.5.2/lib/os-procinfo.html . It
looks like putenv should do what you want. It might only affect the
current process an
Hi all,
I've been messing with this for a couple hours now but can't make it work.
Basically I have a Tkinter GUI that creates a child process via
subprocess.Popen, and I would like to capture the child process's output to
display it in a Text widget in the GUI. Relevant snippets:
def click_star
http://www.irchelp.org/irchelp/rfc/rfc.html describes (more or less) the
protocol. It's actually pretty easy to write something which can connect
and monitor one or more channels on a server--that's how I learned network
programming in Java many moons ago. I'd say look at the RFC and start off
lo
87 matches
Mail list logo