On Dec 23, 2:39 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "John Machin" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | On Dec 23, 5:38 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> | > 'Most flexible' in a different way is
> | >
> | > def searcher(rex):
> | > crex = r
SMALLp <[EMAIL PROTECTED]> wrote:
>
>Thanks! I've already figured it out from first reply. Now i get selected
>directory and i want to get all directories from thin directory. I found
>os.listdir but it oly gets names of files and i nedd output with
>permisions e.g. -rw-r--r-- 1 pofuk pofuk 10
Steven D'Aprano wrote:
> When you call a new-style class, the __new__ method is called with the
> user-supplied arguments, followed by the __init__ method with the same
> arguments.
>
> I would like to modify the arguments after the __new__ method is called
> but before the __init__ method, som
Hi Fredrik,
Thanks again for your feedback. I am much obliged.
Indeed, I am forced to be exteremely rigorous about decoding on the way in
and encoding on the way out everywhere in my program, just as you say. Your
advice is excellent and concurs with other sources of unicode expertise.
Followi
On Dec 22, 11:03 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> When you call a new-style class, the __new__ method is called with the
> user-supplied arguments, followed by the __init__ method with the same
> arguments.
>
Only if __new__ returns an object of the type passed i
MI5 Persecution Update: Friday 25 March, 1999
If You Intend To Reply, Please Read This
Please keep your response to one page if you can!. Faxes over a page
or two will be deleted without being read.
The Usual Words
The persecutors-who-wont-admit-theyre-MI5 have been active again this
week.
Fredrik Lundh wrote:
> John Nagle wrote:
>
>> I'd like to hear more about what kind of performance gain can be
>> obtained from "__slots__". I'm looking into ways of speeding up
>> HTML parsing via BeautifulSoup. If a significant speedup can be
>> obtained when navigating large trees of sma
When you call a new-style class, the __new__ method is called with the
user-supplied arguments, followed by the __init__ method with the same
arguments.
I would like to modify the arguments after the __new__ method is called
but before the __init__ method, somewhat like this:
>>> class Spam(o
On 2007-12-23, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2007-12-22, cf29 <[EMAIL PROTECTED]> wrote:
>
>> The goal is to control all the chess board with five queens that do
>> not attack each other.
> [...]
>> My problem starts now. How can I find the next solution and
>> append it to the lis
I don't know if it's a bug? Try below code:
>>> from elementtree.ElementTree import Element
>>> a = Element('a')
>>> if a:
... print ''
...
>>> a.__len__()
0
You can see if I test a, the result will be False. I don't know if
it's an expected result, but this thing has beaten me som
Hi,
The problem you are trying to solve is a very famous and common
problem which can be solved by backtracking. Please try google with 8
queens problem or n queens problem.
>
> I designed in JavaScript a small program on my website called 5
> queens.
> (http://www.cf29.com/design/dame5_eng.php)
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On Dec 23, 5:38 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
| > 'Most flexible' in a different way is
| >
| > def searcher(rex):
| > crex = re.compile(rex)
| > def _(txt):
| > return crex.search(txt)
| >
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| It's *91* distinct solutions to what appears to be *exactly* your
| problem:
|
| """
| Dudeney (1970, pp. 95-96) also gave the following results for the
| number of distinct arrangements N_u(k,n) of k queens attacking or
On Dec 22, 5:34 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Russ P. wrote:
> > Actually, the parens aren't needed, so this works too:
>
> > def __init__(self, args=""): self.args = args,
>
> > The trailing comma wasn't necessary a while back (pre 2.5?), so
> > something in Python must have c
Hello,
just to recap: last time I asked how to do an interprocess
communitation, between one Manager process (graphical beckend) and
some Worker processes.
I decided to go with sockets, thanks for replies, once more.
However, I would like to ask another thing: I would like to collect
everyting w
On Dec 14, 6:58 pm, Cameron Walsh <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Using a pythoncgiscript such as the one below to handle uploaded
> binary files will end up with atruncatedfile (truncates when it hits
> ^Z) on Windows systems. On linux systems the code works and the file is
> nottruncate
On Sat, 22 Dec 2007 07:21:26 -0800, [EMAIL PROTECTED] wrote:
> Steven D'Aprano,
>
> On Dec 21, 2:08 am, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>> On Thu, 20 Dec 2007 20:27:23 -0800, [EMAIL PROTECTED] wrote:
>> > Stef,
>>
>> > For clarification, there is nothing hazardous about using eval on
On Sat, 22 Dec 2007 14:03:09 -0800, MartinRinehart wrote:
> Tokenizer accepts "0x" as zero. Spec says its an error not to have at
> least one hex digit after "0x".
>
> This is a more serious bug than I had originally thought. Consider this:
>
> Joe types "security_code = 0x" and then goes off to
Sorry again I forgot a part of the function in my previous post:
---
# add nbQueens (5) new queens on safe squares
def newQueens(nbQueens=5):
solution = [] # one solution
for i in range(len(board)): # 64 squares
On Dec 22, 5:03 pm, [EMAIL PROTECTED] wrote:
> Tokenizer accepts "0x" as zero. Spec says its an error not to have at
> least one hex digit after "0x".
>
> This is a more serious bug than I had originally thought. Consider
> this:
>
> Joe types "security_code = 0x" and then goes off to the Guardian
On Dec 23, 1:49 am, John Machin <[EMAIL PROTECTED]> wrote:
> > > How did you find 184 solutions? Wolfram says there are 91 distinct
> > > solutions for 5-queens on an 8x8 board with no two queens attacking
> > > each other.
>
> It's *91* distinct solutions to what appears to be *exactly* your
> pro
On Sat, 22 Dec 2007 13:05:23 -0800, Dennis Lee Bieber wrote:
> I've never encountered such items
> supported by the language.
>
> OS specific extensions MIGHT supply it...
Picky picky... but of course you are right. When I said that programming
languages I have used before had facilities
On Dec 23, 4:30 am, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Lie a écrit :
>
> > PPS: Actually, what makes a tuple is both the parens and the comma,
>
> Nope, it's definively the comma. You can check the language's grammar,
> it's part of the doc. Or just test FWIW:
>
> Python 2.4.3 (#1, Ma
oyster wrote:
> For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
> we can use it under pythons of different version. Is it possible?
> I don't like to update the module for different python and the module
>
> Currently, I am writing the interface to
> iup(http://www.tecgraf.
On Dec 22, 7:14 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Dec 23, 10:39 am, Sledge <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi.
>
> > I am trying to dynamically load a class and attributes at run time. I
> > do not know what classes will be referenced until run time. I have it
> > loading the m
On Dec 23, 10:39 am, Sledge <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I am trying to dynamically load a class and attributes at run time. I
> do not know what classes will be referenced until run time. I have it
> loading the module correctly, but when I use getattr to access the
> class and its attri
Dustan <[EMAIL PROTECTED]> writes:
> On Dec 22, 8:20 am, Phil Carmody <[EMAIL PROTECTED]>
> wrote:
> > On 1117th December 2004, Dustan <[EMAIL PROTECTED]> wrote:
> > > Look at the list of groups. Python's the only language in there.
> > > Python uses double precision. Period.
> >
> > But Professor
On Dec 23, 10:18 am, cf29 <[EMAIL PROTECTED]> wrote:
> On Dec 23, 12:39 am, Jervis Liang <[EMAIL PROTECTED]> wrote:
>
> > On Dec 22, 2:36 pm, cf29 <[EMAIL PROTECTED]> wrote:
>
> > > The goal is to control all the chess board with five queens that do
> > > not attack each other. I found "manually" m
Hi.
I am trying to dynamically load a class and attributes at run time. I
do not know what classes will be referenced until run time. I have it
loading the module correctly, but when I use getattr to access the
class and its attributes everything works except that I get additional
unwanted outpu
On Dec 23, 12:39 am, Jervis Liang <[EMAIL PROTECTED]> wrote:
> On Dec 22, 2:36 pm, cf29 <[EMAIL PROTECTED]> wrote:
>
> > The goal is to control all the chess board with five queens that do
> > not attack each other. I found "manually" many solutions to this
> > problem (184 until now)
>
> How did y
Here is the program I just started, The problem i am having is I'm trying to
get it to load the image file Sand1 with eval(loader) =
pygame.image.load(loader)
because Loader is euqual to "Sand1" but It wont load it. If I set it as loader
= pygame.image.load(loader) then it sets the image to the
Hi there guys and girls,
I'm new (like many people I guess) to python and embedded python and have
been struggling to get c++ and python to play nicely for the past couple of
weeks. Up till now I've overcome most obstacles by rtfm, but there are
still a few things I don't get.
My setup:
embeddi
Michael Spencer wrote:
> Tim Peters has a solution to 8 queens in test_generators in the standard
> library
> test suite (see: Lib/test/test_generators.py)
and for a more straightforward and perhaps more grokkable
implementation, see Guido's original Python demo code in
Demo/scripts/queens.py
On Dec 22, 2:36 pm, cf29 <[EMAIL PROTECTED]> wrote:
> The goal is to control all the chess board with five queens that do
> not attack each other. I found "manually" many solutions to this
> problem (184 until now)
How did you find 184 solutions? Wolfram says there are 91 distinct
solutions for 5
On Dec 22, 11:05 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> Only 5? The classic algorithm is 8-queens on a standard 8x8 board,
> as I recall...
This is a different problem. You have to control all the squares with
only 5 queens.
In the 8 queens problem you have to put 8 "safe queen
Cesar D. Rodas wrote:
> I am newbie in Python, but I like it very much.
>
> Right now I am having a problem, I am working with mod_python in apache.
> What I needing is a stdout buffering, that means that everything that I
> send to stdout keep it in a variable, then flush it and clear.
plug i
On Dec 23, 8:05 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 22 Dec 2007 11:36:07 -0800 (PST), cf29 <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
> > Greetings,
>
> > I designed in JavaScript a small program on my website called 5
> > queens.
>
> Only 5?
cf29 wrote:
> Greetings,
>
> I designed in JavaScript a small program on my website called 5
> queens.
..
Has anyone tried to do a such script? If anyone is
> interested to help I can show what I've done so far.
Tim Peters has a solution to 8 queens in test_generators in the standard
library
[EMAIL PROTECTED] a écrit :
>
> Bruno Desthuilliers wrote:
>
>>... that's definitively not
>>something I'd store in global.
>
>
> So where would you put it?
You don't have to "put" functions arguments anywhere - they're already
local vars.
def tokenize(text):
do some work
returns or (
Tokenizer accepts "0x" as zero. Spec says its an error not to have at
least one hex digit after "0x".
This is a more serious bug than I had originally thought. Consider
this:
Joe types "security_code = 0x" and then goes off to the Guardian-of-
the-Codes to get the appropriate hex string. Returnin
On Dec 22, 5:42 pm, Eric Holbrook <[EMAIL PROTECTED]> wrote:
> I'm using matplotlib to generate (and save) plots of bandwidth data
> from simulation logs. Since the simulations are of varying lengths, i
> need a way to scale the axes so that every 100,000 points on the
> X-axis are roughly equal to
Rachel Garrett a écrit :
> Thanks to both.
>
> The web page I am trying to work with happens to be .aspx, so there is
> lots of junk to wade through -- no clear way to tell my program how to
> submit information to the page. I will keep looking, though.
You don't submit information to a page, you
Steven D'Aprano wrote:
> Context is all gone, so I'm not sure that I remember what "it" is. I
> think it is the text that you're parsing.
Yes. I'm tokenizing today. Parsing comes after Christmas.
> TEXT = "placeholder"
>
> def parse():
> while True:
> token = get_next_token() # look
Lie a écrit :
> On Dec 22, 6:18 am, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>
>>Lie a écrit :
>>(snip)
>>
>>
>>># Python have an odd (read: broken) singleton implementation
>>># single member tuple must have a comma behind it
>>
>>You may call it weird or even a wart if you want, but give
Lie a écrit :
> PPS: Actually, what makes a tuple is both the parens and the comma,
Nope, it's definively the comma. You can check the language's grammar,
it's part of the doc. Or just test FWIW:
Python 2.4.3 (#1, Mar 12 2007, 23:32:01)
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pi
Hello
I am newbie in Python, but I like it very much.
Right now I am having a problem, I am working with mod_python in apache.
What I needing is a stdout buffering, that means that everything that I send
to stdout keep it in a variable, then flush it and clear.
Thanks in advance.
--
Best Rega
On Dec 23, 5:38 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | >>> def spam2(x, s=re.compile('nobody expects the Spanish
> Inquisition!')):
> | ... return s.search(x)
> |
> | I suspect that this will be not on
Thanks, it works.
And thanks for your comments which are worth to think about :)
Petr
> This has nothing to do with your previous problem. Use
>
> from __main__ import myFunction, myOtherFunction, ...
>
> or
>
> from __main__ import *
>
> if you prefer "namespace pollution paradise"*.
>
> Again, i
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Hi,
> let's say I have two scripts: one does some computations and the other
> one is a graphical front end for launching the first one. And both run
> in separate processes (front end runs and that it spawns a subprocess
> with the comp
petr.jakes.tpc wrote:
> thanks for your reply. I will try to live with the
>
import __main__ as displeje_pokus
>
> in the text file.
Why?
> Anyway, using this, it looks like I have to assign all functions/
> methods to a local name like:
>
> myFunction=displeje_pokus.myFunction
>
> to
Dustan wrote:
> On Dec 21, 8:11 pm, James Stroud <[EMAIL PROTECTED]> wrote:
>> I swear there is another thread going on here of which I am not aware.
>
> You just keep on telling yourself that.
Is there a cricket here?
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Lo
I'm using matplotlib to generate (and save) plots of bandwidth data
from simulation logs. Since the simulations are of varying lengths, i
need a way to scale the axes so that every 100,000 points on the
X-axis are roughly equal to the height of the Y-axis. In other words,
if my X data varied from 0
Greetings,
I designed in JavaScript a small program on my website called 5
queens.
(http://www.cf29.com/design/dame5_eng.php)
The goal is to control all the chess board with five queens that do
not attack each other. I found "manually" many solutions to this
problem (184 until now) and wanted to
Thought this might interest some...
http://www.osnews.com/story.php/19073/TclTk-8.5-Released
The relevant bits for Python here are the major improvements in Tk,
specifically native themed widgets for full platform integration on
Windows and OS X and improved appearance under X11, additonal widg
On Dec 22, 7:05 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
> petr.jakes.tpc wrote:
While you could either alter the textfile to
>
> >>> import __main__ as displeje_pokus
>
> or the module along the lines of
>
> # not recommended!
> from displeje_pokus import TextyDispleje
> if __name__ == "__main__
On Dec 22, 7:31 am, oyster <[EMAIL PROTECTED]> wrote:
> For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
> we can use it under pythons of different version. Is it possible?
> I don't like to update the module for different python and the module
>
> Currently, I am writing the
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| >>> def spam2(x, s=re.compile('nobody expects the Spanish
Inquisition!')):
| ... return s.search(x)
|
| I suspect that this will be not only the fastest solution, but also the
| most flexible.
'Most flexible' in
Proginoskes wrote:
> On Dec 20, 4:29 pm, Dustan <[EMAIL PROTECTED]> wrote:
>> On Dec 20, 8:24 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>>
>>> On Thu, 20 Dec 2007 03:04:48 -0800, Dustan wrote:
On Dec 20, 1:05 am, Proginoskes <[EMAIL PROTECTED]> wrote:
> I myself prefer the 0.
if you disable the button it can still respond to clicks? it only
greys out.. or is there a problem with my code here?
class MyApp:
def __init__(self,parent):
self.mainframe=Frame(parent)
self.mainframe.pack()
self.button1=Button(self.mai
petr.jakes.tpc wrote:
> Hi,
>
> inspired by the article written by Tarek Ziade in the February 07
> issue of the "Linux +" magazine I am experimenting with the doctest
> module.
>
> I have two files, "displeje_pokus.py" and "displeje_pokus.txt" (you
> can see the simplified contents of the files
katie smith wrote:
> I'm attempting to create a game and right now the game has 6000 lines of
> code and is confusing me.
>
> I have seen it done but have no idea how to do it, but I would like to
> use seperate files and incorporate them together. One for my units, one
> for the map maker, o
Hi,
inspired by the article written by Tarek Ziade in the February 07
issue of the "Linux +" magazine I am experimenting with the doctest
module.
I have two files, "displeje_pokus.py" and "displeje_pokus.txt" (you
can see the simplified contents of the files bellow).
When I run "python displeje_
I'm attempting to create a game and right now the game has 6000 lines of code
and is confusing me.
I have seen it done but have no idea how to do it, but I would like to use
seperate files and incorporate them together. One for my units, one for the map
maker, one for the playing part.
Any ide
In the below code setting cell to inconsistent sets entire column inconsistent
(renderer).However, I need a third state off | on | inconsistent . How can I
change one path->cell?
Any help appreciated.
Thanks
john
# get current value
fixed = model.get_value(iter, MARK_FOR_COL
"Dennis Lee Bieber" <...netcom.com> wrote:
> SD declaimed the following in
> comp.lang.python:
>
> >
> > At 15-35 lines, it is short enough for people to copy it down on paper,
> > or even memorize it, then take it home and work on finding a
> > vulnerability in it.
>
> I'd actually been thinki
On 22 Δεκ, 09:09, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
[...]
> For Python, standard process monitoring tools (combined with a basic
> understanding of how dynamic memory allocation works on modern
> platforms) are usually sufficient to get a good view of an application's
> memory usage patterns
Thanks to both.
The web page I am trying to work with happens to be .aspx, so there is
lots of junk to wade through -- no clear way to tell my program how to
submit information to the page. I will keep looking, though.
--
http://mail.python.org/mailman/listinfo/python-list
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.6/1192 - Release Date: 12/21/2007
1:17 PM
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano,
On Dec 21, 2:08 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Thu, 20 Dec 2007 20:27:23 -0800, [EMAIL PROTECTED] wrote:
> > Stef,
>
> > For clarification, there is nothing hazardous about using eval on the
> > string that you presented.
>
> > t = eval('(0, 0, 0, 255), (192,
On 2007-12-21, Benedict Verheyen <[EMAIL PROTECTED]> wrote:
> i get an "Unable to relay for" when trying to send an email
> from within my network to an email address not on my domain. I
> don't understand why it says "relaying" as i'm sending from an
> internal domain user to an external user.
Y
On Dec 20, 1:24 pm, Peter Wang <[EMAIL PROTECTED]> wrote:
> On a side note, we are almost done putting together an updated one-
> click installer of python + packages for scientific computing. This
> will be based on Python 2.5, will include most of what was included in
> the 2.4.3-based installe
Hi.
I have to send UDP packets very often. Approx twice in a second.
But socket is not closed after sending packet. So soon i bump into
open sockets\files limit.
How to close socket after sending data?
Python 2.5, Twisted
class DataClient(DatagramProtocol):
def __init__(self, address, datag
On Dec 22, 2:37 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> > I am not really familiar with ruby but these fibers seem to be some
> > sort of coroutines. Since python 2.5, generators can be sent values,
> > this can be used to implement what you want
Lie wrote:
> PPS: Actually, what makes a tuple is both the parens and the comma,
> with comma as the minimum signifier, inspect this: "str(a) +
> str((a,b,c))", you have to use the double parens, one to make the
> tuple and the other as part of the str. This harmless little case
> gives error if do
Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> I am not really familiar with ruby but these fibers seem to be some
> sort of coroutines. Since python 2.5, generators can be sent values,
> this can be used to implement what you want. I have had a got at it
> for fun and this is what I came up with
On 1117th December 2004, Dustan <[EMAIL PROTECTED]> wrote:
> I must break my promise and make another post.
>
> On Dec 22, 2:31 am, Proginoskes <[EMAIL PROTECTED]> wrote:
> > On Dec 20, 4:29 pm, Dustan <[EMAIL PROTECTED]> wrote:
> >
> > > On Dec 20, 8:24 am, Marc 'BlackJack' Rintsch <[EMAIL PROTEC
Steven D'Aprano wrote:
>> > Not me.
>>
>> You're quite knew to this internet thing, aren't you? ;-)
>
> :-D
(hmm. why is that whenever you make some silly last-second addition to a
post, you end up making a stupid typo?)
>> And things like "how much memory is free in the heap" isn't even a
>>
> For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
> we can use it under pythons of different version. Is it possible?
The python-xlib project provides such a module. It implements the X11
protocol directly.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python
an explicit call to "update_idletasks" will clear out the
> task queue for you.
>
it worked
Thanks F.L!!
dn
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 22, 12:10 pm, Akihiro KAYAMA <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I found cooperative multi-threading(only one thread runs at once,
> explicit thread switching) is useful for writing some simulators.
> With it, I'm able to be free from annoying mutual exclusion, and make
> results determ
[EMAIL PROTECTED] wrote:
> then in the buttonClick(self,event) i want to disable it till some
> time consuming calculations are completed ..then i enable it
>
> def button1Click(self, event):
> self.okButton.configure(state=DISABLED)
+ self.okButton.update_id
On Dec 22, 6:04 am, John Machin <[EMAIL PROTECTED]> wrote:
> t3 = re.compile('whatever').search
Ack! No! Too Pythonic! GETITOFF! GETITOFF!!
--
http://mail.python.org/mailman/listinfo/python-list
Russ P. wrote:
> Actually, the parens aren't needed, so this works too:
>
> def __init__(self, args=""): self.args = args,
>
> The trailing comma wasn't necessary a while back (pre 2.5?), so
> something in Python must have changed. I'd say that it looks a bit
> cleaner without the trailing c
On Dec 21, 8:11 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> I swear there is another thread going on here of which I am not aware.
You just keep on telling yourself that.
--
http://mail.python.org/mailman/listinfo/python-list
For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
we can use it under pythons of different version. Is it possible?
I don't like to update the module for different python and the module
Currently, I am writing the interface to
iup(http://www.tecgraf.puc-rio.br/iup) via ctypes
On Sat, 22 Dec 2007 08:09:50 +0100, Fredrik Lundh wrote:
> Steven D'Aprano wrote:
>
> > Not me.
>
> You're quite knew to this internet thing, aren't you? ;-)
:-D
>> So... how do you measure memory usage in Python? Every programming
>> language I've used before (not a huge range, I'll admit)
On Sat, 22 Dec 2007 04:13:31 -0800, MartinRinehart wrote:
> Bruno Desthuilliers wrote:
>> ... that's definitively not
>> something I'd store in global.
>
> So where would you put it?
Context is all gone, so I'm not sure that I remember what "it" is. I
think it is the text that you're parsing.
weheh wrote:
> Hi Fredrik, thanks for responding. After reading up some more on this, I
> think my title should be changed to "How to get Python to default to ASCII".
> In point of fact, I want my 2 environments to agree so that I can debug
> thinkgs more easily. Right now it's a nightmare.
>
On Dec 22, 7:35 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Lie wrote:
> > But an expression (e.g. string) is NOT a variable.
>
> in this case, it is. I don't know if it's worth spending more time on
> this, since you're not listening, but let's make one more attempt.
Sure I'm listening (well,
using tkinter i created a gui and put a button on the frame
class mygui:
def __init__(self, parent):
...
self.okButton = Button(self.btnFrame)
self.okButton.configure(width=somewdth,text="OK",
anchor=W,disabledforeground="tan")
self.okButton.bind("",s
Hi all.
I found cooperative multi-threading(only one thread runs at once,
explicit thread switching) is useful for writing some simulators.
With it, I'm able to be free from annoying mutual exclusion, and make
results deterministic.
For this purpose, and inspired by Ruby(1.9) fiber, I wrote my o
Lie wrote:
> But an expression (e.g. string) is NOT a variable.
in this case, it is. I don't know if it's worth spending more time on
this, since you're not listening, but let's make one more attempt.
for the Entry widget, the "textvariable" argument, if given, identifies
an *internal* Tkint
On Sat, 22 Dec 2007 10:53:39 +, William McBrine wrote:
> Hi all,
>
> I'm pretty new to Python (a little over a month). I was wondering -- is
> something like this:
>
> s = re.compile('whatever')
>
> def t(whatnot):
> return s.search(whatnot)
>
> for i in xrange(1000):
> print t(som
Chris Mellon wrote:
> You don't seem to be implementing the
> lexer in Python
I am absolutely implementing my language in Python, a language I have
now been writing for two entire weeks. This list has been more than
helpful, tolerating numerous newbie questions.
--
http://mail.python.org/mailma
Bruno Desthuilliers wrote:
> ... that's definitively not
> something I'd store in global.
So where would you put it?
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen wrote:
> I wonder if you have some COBOL data divisions under your belt?
Hendrik, I go way back but somehow I missed COBOL.
Martin
--
http://mail.python.org/mailman/listinfo/python-list
William McBrine <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm pretty new to Python (a little over a month). I was wondering -- is
> something like this:
>
> s = re.compile('whatever')
>
> def t(whatnot):
> return s.search(whatnot)
>
> for i in xrange(1000):
> print t(something[i])
>
>
On Dec 22, 9:53 pm, William McBrine <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm pretty new to Python (a little over a month). I was wondering -- is
> something like this:
>
> s = re.compile('whatever')
>
> def t(whatnot):
> return s.search(whatnot)
>
> for i in xrange(1000):
> print t(some
On Dec 22, 10:53 am, William McBrine <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm pretty new to Python (a little over a month). I was wondering -- is
> something like this:
>
> s = re.compile('whatever')
>
> def t(whatnot):
> return s.search(whatnot)
>
> for i in xrange(1000):
> print t(som
> But an expression (e.g. string) is NOT a variable. It's fine if the
> value mirrored when I set the textvariable conf to the same variable,
> but in this case I'm setting them to the same expression (e.g. string).
On the other hand, the oddness multiplied since the value replication
doesn't happ
1 - 100 of 113 matches
Mail list logo