Brian Elmegaard wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>
>>the gcc project is to provide a portable compiler, not one that
>>generates the best code for any given platform. And in that goal, it
>>succeeds remarkably well.
>
> Will a python program be slower on the same machine running w
Martin v. Löwis wrote:
> Robert Kern wrote:
>
Oh, that's right, you need an import library for Python24.dll .
>>>
>>>That shouldn't be a problem: that library is included with Python.
>>
>>For mingw, too? I.e. a .a not a .lib?
>
> Right.
Woohoo!
--
Robert Kern
[EMAIL PROTECTED]
"I have co
Brian Elmegaard wrote:
> What I don't understand is that it is not possible to distribute a
> python compiled with gcc for windows. The main reason I saw in this
> thread is that python uses mfc. So python requires api access, I
> guess.
You misunderstood. Python does not use MFC. PythonWin (for
Robert Kern wrote:
>>> Oh, that's right, you need an import library for Python24.dll .
>> That shouldn't be a problem: that library is included with Python.
>
> For mingw, too? I.e. a .a not a .lib?
Right.
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
[EMAIL PROTECTED] wrote:
> but maybe instead of the global.name something to refer to the upper
> namespace (that can be the global one or the namespace of the function
> that contains this one) can be more general:
> upper.x = 1
> upper.upper.x = 1
>
Well, people have been trying to come u
Robert Kern <[EMAIL PROTECTED]> writes:
> the gcc project is to provide a portable compiler, not one that
> generates the best code for any given platform. And in that goal, it
> succeeds remarkably well.
Will a python program be slower on the same machine running windows
compared to linux?
What
Others have answered most of your questions, I won't repeat the answers
here, but only join the choir to stress that pylint needs tuning to
your coding style. An obvious case is camelCaseMethodNames versus
underscored_method_names, but there are also a lot of issues. The
default pylint settings ma
On Apr 24, 2006, at 5:38 PM, Neil Adams wrote:
> How do Ifix memory message Ox033fc512 at Ox can't be read
>
You're going to have to provide a LOT more information if you expect
anyone here to help you with that. What program caused that? For all we
know, notepad.exe could have crashe
Dave Hughes wrote:
> Another algorithm that might interest isn't based on "sounds-like" but
> instead computes the number of transforms necessary to get from one
> word to another: the Levenshtein distance. A C based implementation
> (with Python interface) is available:
I don't know what algorith
[EMAIL PROTECTED] (Alex Martelli) wrote:
> Andrew Trevorrow <[EMAIL PROTECTED]> wrote:
> > Or maybe someone is willing to make their VCToolkitSetup.exe available
> > temporarily...
>
> I suggest any such offers be made privately, since I'm pretty sure
> they'd be illegal (at least in the US, dunn
[Alex Martelli]
>> ...
>> You can compute the requested answer exactly with no random number
>> generation whatsoever: compute the probability of each result from
>> 0 to 1000, then sum the probabilities of entries that are exactly 390
>> apart.
[Elliot Temple]
> That was the plan, but how do I ge
Just call me James wrote:
> Hi,
>
> Coming away from the luxury of the delphi IDE has been something of a
> shock.
>
> As a consequence I've become aware that maybe I need to spend some
> money on a python IDE.
You can google for lots of IDE reviews, here's a start
http://www.awaretek.com/tutori
Elliot Temple <[EMAIL PROTECTED]> wrote:
> On Apr 24, 2006, at 8:24 PM, Alex Martelli wrote:
>
> > Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote:
> >
> >> In article <[EMAIL PROTECTED]>,
> >> Elliot Temple <[EMAIL PROTECTED]> wrote:
> >>
> >>> Problem: Randomly generate 10 integers from 0-100 in
On Apr 24, 2006, at 8:24 PM, Alex Martelli wrote:
> Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> Elliot Temple <[EMAIL PROTECTED]> wrote:
>>
>>> Problem: Randomly generate 10 integers from 0-100 inclusive, and sum
>>> them. Do that twice. What is the pro
Hello, I know this isn't really a python centric question, but I'm seeking
help from my fellow python programmers. I've been learning python for the
past year and a half, and I still haven't written anything substantial nor
have I found an existing project which blows my hair back. Python is my
fir
Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Elliot Temple <[EMAIL PROTECTED]> wrote:
>
> >Problem: Randomly generate 10 integers from 0-100 inclusive, and sum
> >them. Do that twice. What is the probability the two sums are 390 apart?
>
> I think the sum w
robert <[EMAIL PROTECTED]> writes:
>KL wrote, he added some more capabs. I'd need MOVE and saw PUT has bugs
>to also not respect URL-quoted folders/elements (with spaces, utf-8 etc.)
I've got MOVE working and I took care of the percent-escaped filenames but
UTF-8 stuff is still giving me problem
ok, every message starts with "ENX" and ends with "STX"
in between are several parts. the first is the message length sent as
an unsigned long int (according to the docs) this is four bytes. The
next is the message type - another 4 bytes that corrospond to a certain
chart. for example, the login is
hawkesed wrote:
> If I have a list, say of names. And I want to count all the people
> named, say, Susie, but I don't care exactly how they spell it (ie,
> Susy, Susi, Susie all work.) how would I do this? Set up a regular
> expression inside the count? Is there a wildcard variable I can use?
> He
Andrew Trevorrow <[EMAIL PROTECTED]> wrote:
> Ron Adam wrote:
>
> > > Try tinyurl http://tinyurl.com/gv8wr please.
> >
> > I still get the following with the tinyurl link:
> >
> > ~~~
> > The download you requested is unavailable. If you continue to see this
> > message when trying to access th
In article <[EMAIL PROTECTED]>,
Elliot Temple <[EMAIL PROTECTED]> wrote:
>Problem: Randomly generate 10 integers from 0-100 inclusive, and sum
>them. Do that twice. What is the probability the two sums are 390 apart?
I think the sum would come close to a normal distribution.
--
http://mail.py
In article <[EMAIL PROTECTED]>,
"Mike Orr" <[EMAIL PROTECTED]> wrote:
>Lawrence D'Oliveiro wrote:
>> "ToddLMorgan" <[EMAIL PROTECTED]> wrote:
>> >Are there python specific equivalents to the common Patterns,
>> >Anti-Patterns and Refactoring books that are so prevalent as
>> >reccomended reading
Edward Elliott <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > the Windows version, despite the slight
> > overhead of running under Parallels' virtualization, is an impressive
> > 12%+ _faster_ than the "native" MacOSX Python 2.4.3 (I'm not quite sure
> > about how good Parallels' virtualiz
Problem: Randomly generate 10 integers from 0-100 inclusive, and sum
them. Do that twice. What is the probability the two sums are 390 apart?
I have code to do part of it (below), and I know how to write code to
do the rest. The part I have calculates the number of ways the dice
can come out
Philippe Martin wrote:
> I have something like this:
>
> Class A:
> def A_Func(self, p_param):
> .
> Class B:
> def A_Func(self):
> .
>
> Class C (A,B):
> A.__init__(self)
> B.__init__(self)
>
> .
>
> self.A_Func() #HERE I GET AN
Ryan Ginstrom wrote:
> Apropos recent threads about GUI editors, coming from a Win32/WTL C++
> background, I actually like the idea of being able to (easily) create GUIs
> programmatically.
>
> But I still see a lot of the same tedium: hooking up events to handlers, and
> getting data into and out
I suggest checking out PythonCard.
It's a GUI builder based on wxPython and it's very easy to use.
It offers the basic functionality of Delphi or VB, letting you drag &
drop widgets on a form.
This visual way of dealing with widgets authomatically creates a file
with the form and its controls descr
Ron Adam wrote:
> > Try tinyurl http://tinyurl.com/gv8wr please.
>
> I still get the following with the tinyurl link:
>
> ~~~
> The download you requested is unavailable. If you continue to see this
> message when trying to access this download, go to the "Search for a
> Download" area on the
Ron Adam <[EMAIL PROTECTED]> wrote:
...
> I still get the following with the tinyurl link:
>
> ~~~
> The download you requested is unavailable. If you continue to see this
> message when trying to access this download, go to the "Search for a
> Download" area on the Download Center home page.
Just call me James wrote:
> Hi,
>
> Coming away from the luxury of the delphi IDE has been something of a
> shock.
>
> As a consequence I've become aware that maybe I need to spend some
> money on a python IDE.
>
> As a beginner I reckon integrated debugging would be helpful.
>
> Does anyone h
"Ryan Ginstrom" <[EMAIL PROTECTED]> writes:
> If there are specific spellings you want to allow, you could just
> create a list of them and see if your Suzy is in there:
>
> >>> possible_suzys = [ 'Susy', 'Susi', 'Susie' ]
> >>> my_strings = ['Bob', 'Sally', 'Susi', 'Dick', 'Jane' ]
> >>> for lin
Hi James,Take a look at: http://wiki.python.org/moin/IntegratedDevelopmentEnvironmentsCheers,Fabiop.s. I'd reccomend Pydev + Pydev Extensions -- Has debugger, code-analysis, refactoring, code-completion, and all the other niceties you'd expect from an IDE.
On 24 Apr 2006 17:34:12 -0700, Just call
Hi James,There are many different IDE available for Python, but if you are coming from Delphi, you may find interesting to try PyScripter available at http://mmm-experts.com/Products.aspx?ProductID=4
. For a list of availale Python IDE and editors, you cmay also check this page: http://wiki.python.
How do Ifix memory message Ox033fc512 at Ox can't be read --
http://mail.python.org/mailman/listinfo/python-list
Hi,
Coming away from the luxury of the delphi IDE has been something of a
shock.
As a consequence I've become aware that maybe I need to spend some
money on a python IDE.
As a beginner I reckon integrated debugging would be helpful.
Does anyone have any advice or suggestions? So far I've glance
Hi,
I have something like this:
Class A:
def A_Func(self, p_param):
.
Class B:
def A_Func(self):
.
Class C (A,B):
A.__init__(self)
B.__init__(self)
.
self.A_Func() #HERE I GET AN EXCEPTION "... takes at least 2 arguments
> Behalf Of hawkesed
> If I have a list, say of names. And I want to count all the people
> named, say, Susie, but I don't care exactly how they spell it (ie,
> Susy, Susi, Susie all work.) how would I do this? Set up a regular
> expression inside the count? Is there a wildcard variable I can use
Martin v. Löwis wrote:
> Robert Kern wrote:
>
>>Oh, that's right, you need an import library for Python24.dll .
>
> That shouldn't be a problem: that library is included with Python.
For mingw, too? I.e. a .a not a .lib?
--
Robert Kern
[EMAIL PROTECTED]
"I have come to believe that the whole
Dennis Benzinger wrote:
> How exactly should the directories be updated? Should it just be made
> sure that the demos and examples are working or should they be updated
> to use the newest applicable Python features (e.g. the new any/all
> functions)?
That's all your choice. The Demo directory sho
Robert Kern wrote:
> Oh, that's right, you need an import library for Python24.dll .
That shouldn't be a problem: that library is included with Python.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Apropos recent threads about GUI editors, coming from a Win32/WTL C++
background, I actually like the idea of being able to (easily) create GUIs
programmatically.
But I still see a lot of the same tedium: hooking up events to handlers, and
getting data into and out of dialogs. In C++, this is gene
If I have a list, say of names. And I want to count all the people
named, say, Susie, but I don't care exactly how they spell it (ie,
Susy, Susi, Susie all work.) how would I do this? Set up a regular
expression inside the count? Is there a wildcard variable I can use?
Here is the code for the non-
Brian van den Broek wrote:
> It
> didn't work here until I used ':' rather than ';' as the path
> element separator.
Sorry, I missed the semi-colon before. Yes, unix uses colon to separate
path elements. Glad you figured it out and got it working.
FYI you can type 'man ' at the shell to get inf
Hi
I would really appreciate if soemone can point me to the direction. how
can I use xml.sax to catch doctype entities.
there is a xml.sax.DTDHandler , but how should i use it?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
As a fairly new linux user running ubuntu 5.10 I'd had problems
persistently setting my PYTHONPATH environment variable. bruno and
Edward got me most of the way (thanks!); I'm posting what worked for
future googling.
bruno at modulix said unto the world upon 20/04/06 08:38 AM:
>>Can
Kay Schluehr wrote:
> Just reasoning about conversion of classic to new style classes (
> keeping deprecation of ClCl in Py3K in mind ) I wonder if there is a
> metaclass that can be used to express the semantics of ClCl in terms of
> new style classes? Intuitively I would expect that there is quit
Thank you all for the quick replies. It worked! Truely appriciated. I
am python novice and still learning I hope to contribute to this
group someday :)
Hitesh
--
http://mail.python.org/mailman/listinfo/python-list
Hitesh Joshi wrote:
>Hi,
>
>I wanted to pass a popup mesage using windows messagin service to five
>PCs.
>If I just use following then PC1 gets the popup service message:
>
>import os
>os.system('net send PC1 "Message"')
>
>
>But if I try to create a for loop like this it doesn't work how can
Thank you Robert, It worked!!!
Thank you so much
--
http://mail.python.org/mailman/listinfo/python-list
Hitesh Joshi a écrit :
(snip)
> But if I try to create a for loop like this it doesn't work how can
> I pass computerName var as an argument?
> What am I doing wrong here? Thank you in advance
>
> import os
>
> Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
> for ComputerName in Compu
Hitesh Joshi wrote:
> ok here is the deal... I figured out how to pass the variable but now
> messages are not popping up on the windows screen if I use this method:
>
> import os
>
> Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
> for ComputerName in Computerlist:
> print ComputerName
>
ok here is the deal... I figured out how to pass the variable but now
messages are not popping up on the windows screen if I use this method:
import os
Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
for ComputerName in Computerlist:
print ComputerName
s = "net send %s" % ComputerName
Eli a écrit :
> Python treats integers as objects, but as I mentioned that I do care
> about the value only, and not its object methods. I mean that it's not
> possible to share objects among application in different programming
> languages, but it's possible to share the scalar values among them.
Edward Elliott said unto the world upon 23/04/06 07:56 PM:
> Brian van den Broek wrote:
>>Only somewhat, as if I open a brand new shell:
>>
>>[EMAIL PROTECTED]:~$ python
>> >>> from sys import path
>> >>> path[0:3]
>>['', '/usr/lib/python24.zip', '/usr/lib/python2.4']
>
>
> You realize this on
Construct, the "parsing made fun" library, has moved from it's
sourceforge home to wikispaces:
http://pyconstruct.wikispaces.com
(the sf page redirects there)
-tomer
--
http://mail.python.org/mailman/listinfo/python-list
Sandra-24 a écrit :
> Lawrence D'Oliveiro wrote:
>
>>In article <[EMAIL PROTECTED]>,
>> "Sandra-24" <[EMAIL PROTECTED]> wrote:
>>
>>
>>>Now that is a clever little trick. I never would have guessed you can
>>>assign to __class__, Python always surprises me in it's sheer
>>>flexibility.
>>
>>That's
In article <[EMAIL PROTECTED]>,
bruno at modulix <[EMAIL PROTECTED]> wrote:
>Lawrence D'Oliveiro wrote:
>> In article <[EMAIL PROTECTED]>,
>> "ToddLMorgan" <[EMAIL PROTECTED]> wrote:
>>
>>>I'm looking for the common types of mistakes that say a Java/C# or
>>>even C++ developer may commonly make
Hi,
I wanted to pass a popup mesage using windows messagin service to five
PCs.
If I just use following then PC1 gets the popup service message:
import os
os.system('net send PC1 "Message"')
But if I try to create a for loop like this it doesn't work how can
I pass computerName var as an a
In article <[EMAIL PROTECTED]>,
"gene tani" <[EMAIL PROTECTED]> wrote:
>http://www.ferg.org/projects/python_gotchas.html
Amazing. Backslashes are listed as not one, but _two_ items on the list.
The problem is not with Python at all, it is with the MS-DOS foundations
of Windows. When directory
Lawrence D'Oliveiro wrote:
> "ToddLMorgan" <[EMAIL PROTECTED]> wrote:
> >Are there python specific equivalents to the common Patterns,
> >Anti-Patterns and Refactoring books that are so prevalent as
> >reccomended reading in C++ and Java?
> I don't think they exist. Such books are targeted more to
Ahhh... The the light clicks on in my head. I see what is happening
and both of these are great approaches.
Many thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Brian Elmegaard wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>
>>- gcc does not optimize particularly well.
>
> But well enough for other platforms.
Well, it tends to optimize just as poorly for other platforms, too. It's just
frequently the only compiler widely available on those platforms.
* [EMAIL PROTECTED] wrote:
>> tp_getattro is like defining __getattribute__, i.e. it gets called on
>> every attribute read access. You can use PyObject_GenericGetAttr inside
>> the function to find predefined attributes before applying your own
>> rules.
>
> Thanks for the reply. I see and was
Just reasoning about conversion of classic to new style classes (
keeping deprecation of ClCl in Py3K in mind ) I wonder if there is a
metaclass that can be used to express the semantics of ClCl in terms of
new style classes? Intuitively I would expect that there is quite a lot
of Python semantics
That link seemed to do the trick with a little bit of edits. Thanks a
lot Philippe!
Eric
--
http://mail.python.org/mailman/listinfo/python-list
André Malo wrote:
> tp_getattro is like defining __getattribute__, i.e. it gets called on every
> attribute read access. You can use PyObject_GenericGetAttr inside the
> function to find predefined attributes before applying your own rules.
Thanks for the reply. I see and was afraid of that, I
robert wrote:
> killing hard (SIGKILL etc ) is low level. it should be OS-specific, as
> Python should not make itself inconsistent
(and os._exit() is that at mid-low level ; better not to say; no
finalizations etc.)
-robert
--
http://mail.python.org/mailman/listinfo/python-list
gangesmaster wrote:
> that's not a question of design. i just want a child-thread to kill the
> process. in a platform agnostic way.
>
the clean kill is the 'KeyboardInterrupt'. your code finalizations are
at least done corretly. thats also raised on SIGINT by default.
so thread.interrupt_main
* [EMAIL PROTECTED] wrote:
> I'm using a tp_getattro function to call into a C library and get
> values the the lib keeps track of. This works:
[...]
> Thats great but I also want to expose some instance methods and I'm
> having trouble.
>
> But when I set tp_methods nothing shows up? If I uns
Hi,
I'm using a tp_getattro function to call into a C library and get
values the the lib keeps track of. This works:
>>> o = obj.Obj()
>>> o.var
'value'
Thats great but I also want to expose some instance methods and I'm
having trouble.
But when I set tp_methods nothing shows up? If I unset t
Robert Kern <[EMAIL PROTECTED]> writes:
> - gcc does not optimize particularly well.
But well enough for other platforms.
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know of a Python SOAP package that will publish a SOAP
service /and/ generate a corresponding WSDL file?
Looking at SOAPpy and ZSI, it seems that their WSDL support is limited
to client-side stuff.
--
http://mail.python.org/mailman/listinfo/python-list
that's not a question of design. i just want a child-thread to kill the
process. in a platform agnostic way.
--
http://mail.python.org/mailman/listinfo/python-list
i can't make the main thread daemonic. the situation is this:
* the main thread starts a thread
* the new thread does sys.exit()
* the new thread dies, but the process remains
i can do os.kill(os.getpid()), or TerminateProcess(-1) but that's not
what i want
-tomer
--
http://mail.python.org/mail
[EMAIL PROTECTED] wrote:
> both of your suggestions don't work, that's kind of what I was trying
> the whole time
>
Well it seems firly obvious that your universe is somehow broken. Please
send it back to God in a plain wrapper and it will be replaced with a
new universe in which all programming
2006/4/23, Paul McGuire <[EMAIL PROTECTED]>:
>
> "Paolo Pantaleo" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> So I tried this
>
> if(not (attr=global_re.match(line)) ):
> break
>
> it says invalid syntax [on the =]
> ... because this syntax is not valid ..
gangesmaster wrote:
> calling sys.exit() from a thread does nothing... the thread dies, but
> the interpreter remains. i guess the interpreter just catches and
> ignore the SystemExit exception...
>
> does anybody know of a way to overcome this limitation?
>
call thread.interrupt_main()
on *
Marty Christion napisał(a):
> What are some good free or inexpensive (<$50) IDE's for learning how to
> program and create GUI's for Python? I'm pretty good with the simple
> programming aspect of the language, but I'm a little mystified by the world
> of GUI's, and the options available in py
Always nice to recommend myself:
http://farpy.holev.com
Free WYSIWYG GUI editor for wxPython (and wxRuby!).
Have fun...
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
> "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
>
>> Alex Martelli wrote:
>>> As suggested to me by David Rushby 10 hours ago,
>>>
>>> http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-4
>>> 9FD-9CB0-4BFA122FA91B&displaylang=en
>>>
>>> does work.
>> Can you
[EMAIL PROTECTED]:
>i have discovered that the server will send a request for the heartbeat
>ping if its almost timed out, so i use the length of the message to
>determine what to do with it.
>
>msg = sockobj.recv(1024)
>
>if len(msg) == 158:
>record the data
>elif len(msg) == (34): # length of
Martin Blais napisał(a):
> See
> http://furius.ca/antiorm/ for something simple that works well.
I'd like to know what is this module/library good for *before* I start
downloading it. "Almost like ORM but not exactly" is rather vague term
and can denote anything. Is it dishwasher? Or microwave ov
Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes:
> In article <[EMAIL PROTECTED]>,
> "ToddLMorgan" <[EMAIL PROTECTED]> wrote:
>
> >Are there python specific equivalents to the common Patterns,
> >Anti-Patterns and Refactoring books that are so prevalent as
> >reccomended reading in C++ and Java?
Hello,
I am coding a small newsarchiv and have a question: When trying to read
out the "in reply to" data with xhdr i always get a "(none)" as return.
Example:
s = nntplib.NNTP('freetext.usenetserver.com')
resp, count, first, last, name = s.group('comp.lang.python')
resp, subs = s.xhdr('In-Reply
<[EMAIL PROTECTED]> wrote:
>elif len(msg) == (34): # length of request for ping
>ping the server
This seems really dangerous. You are obviously writing to some
already defined (and hopefully, documented) protocol. What does the
protocol spec say about ping request messages?
I would be very
ok, thanks for all the suggestions, gents, i clearly have more to read
on this.
i have discovered that the server will send a request for the heartbeat
ping if its almost timed out, so i use the length of the message to
determine what to do with it.
msg = sockobj.recv(1024)
if len(msg) == 158:
gangesmaster:
>(i forgot to say it didn't work)
It's the remaining threads that need to be daemon, when some thread
performs sys.exit. When no non-daemon thread remains, the application
terminates.
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
(i forgot to say it didn't work)
--
http://mail.python.org/mailman/listinfo/python-list
>>> import threading
>>> t=threading.Thread(target=sys.exit)
>>> t.setDaemon(True)
>>> t.start()
>>>
?
--
http://mail.python.org/mailman/listinfo/python-list
That was the problem. thanks for the clarity - finally working.
> How did you install python? By default, if built from ports, it should
> pop up a configuration dialog in which one of the options is to enable
> thread support. If you have a bad configuration record, you can do a
> "make config
thanks for the help.
cheers.
--
http://mail.python.org/mailman/listinfo/python-list
gangesmaster wrote:
> calling sys.exit() from a thread does nothing... the thread dies, but
> the interpreter remains. i guess the interpreter just catches and
> ignore the SystemExit exception...
>
> does anybody know of a way to overcome this limitation?
Use Thread.setDaemon(True) on your thre
> Will I get the same error running main if
the total number of lines in the smaller modules is > 10k?
Not sure if this would solve your problem, but I noticed the 10K
filesize.
I don't know about other programmers, but I find it >much< easier to
keep track of stuff if I keep the individual file
calling sys.exit() from a thread does nothing... the thread dies, but
the interpreter remains. i guess the interpreter just catches and
ignore the SystemExit exception...
does anybody know of a way to overcome this limitation?
-tomer
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
Pydev and Pydev Extensions 1.0.6 have been released
Check http://www.fabioz.com/pydev for details on Pydev Extensions
and http://pydev.sf.net for details on Pydev
Release Highlights in Pydev Extensions:
-
- New Feature: Sh
Panos Laganakos wrote:
> I have a list that includes lists of integers, in the form of:
> li = [[0, 1, 2], [3, 4, 5], ...]
> What can I do to get li as a single list of integers?
>
> I tried list comprehension in the form of:
> [([j for j in i]) for i in li]
>
> But that doesn't seem to work, any
Ant wrote:
> Take a look at the newgroup archives over the last week or two - there
> seem to have been a glut of people coming from Java to Python and
> asking the same sort of questions. There were some links to a bunch of
> Python 'gotcha' pages which will be useful.
>
Here's a few gotchas whi
[EMAIL PROTECTED] wrote:
> thanks for the heads up. I read other posts on this error, but it's
> unclear to me whether the following will be a problem as well. Suppose
> I break up my very long module into smaller modules and import them
> into another module 'main'. Will I get the same error r
Martin v. Löwis wrote:
> Srijit Kumar Bhadra wrote:
>
>>Is there any specific reason for not using MinGW to build the official
>>distribution of Python for Win32?
>
> What could be the reasons to use MinGW?
>
> As for reasons not to do that:
> - there is no build process available to do that
> -
Just came up with this:
litemp = []
[litemp.extend(i) for i in li]
Seems to give me a list with all the inner elements of li, not sure if
struct.pack will accept it now, but I'll give it a try.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 167 matches
Mail list logo