Accessibility of Docs on Win32: Navigation, Names and PyDoc

2005-10-06 Thread Veli-Pekka T�til
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a la

Re: Extending Python

2005-10-06 Thread Jorgen Grahn
On 5 Oct 2005 10:38:21 -0700, Tuvas <[EMAIL PROTECTED]> wrote: > I am looking for a good tutorial on how to extend python with C code. I > have an application built in C that I need to be able to use in Python. > I have searched through various sources, starting of course with the > Python site its

Re: Build spoofed IP packets

2005-10-06 Thread billie
> It's SP2. Microsoft decided allowing raw socket access is a security > threat and disabled it in SP2. Uhm.. I heard about that. Damn it. :-\ -- http://mail.python.org/mailman/listinfo/python-list

Re: So far

2005-10-06 Thread bruno modulix
CppNewB wrote: > I am absolutely loving my experience with Python. Even vs. Ruby, the syntax > feels very clean with an emphasis on simplification. > > My only complaint is that there doesn't appear to be a great commercial IDE Why "commercial" ? -- bruno desthuilliers python -c "print '@'.j

Re: Can Python replace TCL/Expect

2005-10-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jorgen Grahn <[EMAIL PROTECTED]> wrote: . . . >It depends. I do not feel /that/ advanced, but I've been bitten by pexpect's >limitations several times in several places. > >... which puts me in

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes: > Mike Meyer a écrit : >> Antoon Pardon <[EMAIL PROTECTED]> writes: >> >>>Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >>> On Mon, 03 Oct 2005 13:58:33 +, Antoon Pardon wrote: >>> >>>Declarations also allow easier writabl

Re: How to prevent logging warning?

2005-10-06 Thread Vinay Sajip
Thomas Heller wrote: > I do *not* think 'no handler' is a misconfiguration. Is it possible to > differentiate between a misconfiguration and 'no configuration'? It's a fair point. The line was more blurred when the logging package was newly released into the wild ;-) But "no configuration" could

Book "Python and Tkinter Programming"

2005-10-06 Thread striker
Does anyone who has this book willing to sell it. Please e-mail me the condition and any other details if you are interested. Thanks, Kevin -- http://mail.python.org/mailman/listinfo/python-list

Merging sorted lists/iterators/generators into one stream of values...

2005-10-06 Thread Lasse Vågsæther Karlsen
I need to merge several sources of values into one stream of values. All of the sources are sorted already and I need to retrieve the values from them all in sorted order. In other words: s1 = [10, 20, 30, 40, 50] s2 = [15, 25] s3 = [17, 27, 37] for value in ???(s1, s2, s3): print value w

date reformatting

2005-10-06 Thread Bell, Kevin
Anyone aware of existing code to turn a date string "8-15-05" into the number 20050815? The dateutil module has a parse method that looks perfect, I downloaded and unzipped it, but could figure out how to install it. I using windows XP and py2.4. Any ideas? Kev -- http://mail.python.org/m

Re: replacments for stdio?

2005-10-06 Thread Ido . Yehieli
Yes, i thought so myself. Thanks, Ido. -- http://mail.python.org/mailman/listinfo/python-list

IDLE won't run on WinXP

2005-10-06 Thread striker
I just downloaded and installed Python 2.4.2 on a Windows XP machine. Everything I have tried so far has worked except for IDLE. Is there some setting that I need to check? Any help would be greatly appreciated. Kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: So far

2005-10-06 Thread Jaime Wyant
On 10/6/05, CppNewB <[EMAIL PROTECTED]> wrote: > I am absolutely loving my experience with Python. Even vs. Ruby, the syntax > feels very clean with an emphasis on simplification. > Yes. We all love python, welcome aboard! > My only complaint is that there doesn't appear to be a great commercia

Re: So far

2005-10-06 Thread Jaime Wyant
On 10/6/05, Bell, Kevin <[EMAIL PROTECTED]> wrote: > I like pythonWin other than the white background where you write your > scripts, because after awhile it's bad on the eyes. Does anyone know of a > free IDE that will allow control of this, as well as the coloring of > keywords, etc? > xemac

Re: IDLE won't run on WinXP

2005-10-06 Thread Lasse Vågsæther Karlsen
striker wrote: > I just downloaded and installed Python 2.4.2 on a Windows XP machine. > Everything I have tried so far has worked except for IDLE. Is there > some setting that I need to check? Any help would be greatly > appreciated. > Kevin > It runs perfectly for me, on several Windows XP ma

Re: IDLE won't run on WinXP

2005-10-06 Thread Lasse Vågsæther Karlsen
Lasse Vågsæther Karlsen wrote: > striker wrote: > >> I just downloaded and installed Python 2.4.2 on a Windows XP machine. >> Everything I have tried so far has worked except for IDLE. Is there > Just a thought though, during the installation of Python on one machine > it mentioned that a dll w

Re: date reformatting

2005-10-06 Thread Fredrik Lundh
"Bell, Kevin" wrote: > Anyone aware of existing code to turn a date string "8-15-05" into the > number 20050815? date = "8-15-05" import re m, d, y = map(int, re.match("(\d+)-(\d+)-(\d+)$", date).groups()) number = 2000 + y*1 + m*100 + d print number -- http://mail.python.org/mai

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Ron Adam
Bengt Richter wrote: > On Wed, 05 Oct 2005 11:10:58 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: >>Looking at it from a different direction, how about adding a keyword to >>say, "from this point on, in this local name space, disallow new >>names". Then you can do... >> >>def few(x,y): >> a = 'a'

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Paul Rubin
Brian Quinlan <[EMAIL PROTECTED]> writes: > Without a clear idea of the nature of the proposal, it is impossible > to assess it's costs and benefits. So could a proponent of optional > declarations please provide a more clear proposal? There is no proposal on the table. There's a discussion of ho

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Fredrik Lundh
Ron Adam wrote: > Is there a way to conditionally decorate? For example if __debug__ is > True, but not if it's False? I think I've asked this question before. (?) the decorator is a callable, so you can simply do, say from somewhere import debugdecorator if not __debug__: deb

Re: So far (about editing tools)

2005-10-06 Thread Kenneth McDonald
This is something I fought with for a long time. My overwhelming vote is Eclipse with the PyDev plugin. (Google search should reveal this). Here are the pros and cons. 1) Eclipse is a _big_ system, with a strong emphasis on Java. So there's a lot of functionality you need to learn to ignore,

Re: date reformatting

2005-10-06 Thread Larry Bates
There's more than one way, but this one will work for dates prior to 2000. import time datestring='8-15-05' d=time.strptime(datestring,'%m-%d-%y') number=1*d[0]+100*d[1]+d[2] print number -Larry Bates Bell, Kevin wrote: > Anyone aware of existing code to turn a date string "8-15-05" into the

Re: date reformatting

2005-10-06 Thread elbertlev
setup.py install -- http://mail.python.org/mailman/listinfo/python-list

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > I think we're using different definitions of statically typed > here. A language that is statically typed doesn't *need* type > inferencing - the types are all declared! Type determines the thypes > by inferenceing them from an examination of the program.

Re: So far (about editing tools)

2005-10-06 Thread Micah Elliott
On Oct 06, Kenneth McDonald wrote: > The only _real_ problem is the eclipse learning curve. The only real *advantage* of Eclipse (over other suggested tools) is its highly hyped automatic refactoring. Admittedly, I have not used it for Python development, but I'm skeptical of the feasibility of a

Lambda evaluation

2005-10-06 Thread Joshua Ginsberg
So this part makes total sense to me: >>> d = {} >>> for x in [1,2,3]: ... d[x] = lambda y: y*x ... >>> d[1](3) 9 Because x in the lambda definition isn't evaluated until the lambda is executed, at which point x is 3. Is there a way to specifically hard code into that lambda definition the c

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> I think we're using different definitions of statically typed >> here. A language that is statically typed doesn't *need* type >> inferencing - the types are all declared! Type determines the thypes >> by inf

Re: So far (about editing tools)

2005-10-06 Thread Paul Rubin
Micah Elliott <[EMAIL PROTECTED]> writes: > Furthermore, Eclipse requires java and is thusly not provided on any > linux distro I'm familiar with, which I consider a huge roadblock. And > as mentioned, it's bloated. It comes with Fedora Core 4 and is compiled with gcj. > I would suspect that the

Re: Lambda evaluation

2005-10-06 Thread Jp Calderone
On Thu, 06 Oct 2005 16:18:15 -0400, Joshua Ginsberg <[EMAIL PROTECTED]> wrote: >So this part makes total sense to me: > d = {} for x in [1,2,3]: >... d[x] = lambda y: y*x >... d[1](3) >9 > >Because x in the lambda definition isn't evaluated until the lambda is >executed, at which

SetBackgroundColor doesn't work for me

2005-10-06 Thread Tool69
Hi, I'm on Linux Ubuntu Breezy with wxPython 2.6.1 and Python 2.4.1 installed. I've made an app, but the BackgroundColors won't work on any of my ListBoxes, they only work with Windows XP. Does someone had this problem before ? Any suggestion ? thanks. -- http://mail.python.org/mailman/listinfo/

ctypes questions

2005-10-06 Thread James Hu
Convert unsigned long imageSize; Frame.pBuffer=new unsigned char[ imageSize ] To buffer = (c_ubyte * imageSize)()# create array Frame.pBuffer = addressof(buffer) Frame.pBuffer = (c_ubyte * imageSize)() TypeError: can't multiply sequence by non-int Please help me out, thanks in adva

Re: Lambda evaluation

2005-10-06 Thread Fredrik Lundh
Joshua Ginsberg wrote: > So this part makes total sense to me: > > >>> d = {} > >>> for x in [1,2,3]: > ... d[x] = lambda y: y*x > ... > >>> d[1](3) > 9 > > Because x in the lambda definition isn't evaluated until the lambda is > executed, at which point x is 3. > > Is there a way to specifica

interactive window vs. script: inconsistent behavior

2005-10-06 Thread Bell, Kevin
The following works in the interactive window of PythonWin, but fails in a script. TypeError: Objects of type 'slice' can not be converted to a COM VARIANT I just need to parse out these dates, but it's making me crazy. Shouldn't it work in both the interactive window and a script? >>> d = "5

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Ron Adam
Fredrik Lundh wrote: > Ron Adam wrote: > > >>Is there a way to conditionally decorate? For example if __debug__ is >>True, but not if it's False? I think I've asked this question before. (?) > > > the decorator is a callable, so you can simply do, say > > from somewhere import debugdeco

RE: interactive window vs. script: inconsistent behavior

2005-10-06 Thread Bell, Kevin
Oops! Sorry about that post. I'm pulling data from excel, and needed to convert the object I pulled into a string before slicing. I guess I should look (more thoroughly) before I leap. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bell, Kevin Sent:

Re: Lambda evaluation

2005-10-06 Thread Steve M
Here's another one: >>> d = {} >>> for x in [1,2,3]: ... d[x] = (lambda z: lambda y: y * z) (x) ... >>> d[1](3) 3 >>> d[2](3) 6 -- http://mail.python.org/mailman/listinfo/python-list

Re: interactive window vs. script: inconsistent behavior

2005-10-06 Thread Duncan Booth
Bell, Kevin wrote: > The following works in the interactive window of PythonWin, but fails in > a script. TypeError: Objects of type 'slice' can not be converted to a > COM VARIANT > > I just need to parse out these dates, but it's making me crazy. > Shouldn't it work in both the interactive win

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Barbier de Reuille
Dans l'article <[EMAIL PROTECTED]>, Mike Meyer a écrit : > Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes: >> Mike Meyer a écrit : >>> Antoon Pardon <[EMAIL PROTECTED]> writes: >>> Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >On Mon, 03 Oct 2005 13:58:33 +, A

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Steve Holden
Ron Adam wrote: > Fredrik Lundh wrote: > > >>Ron Adam wrote: >> >> >> >>>Is there a way to conditionally decorate? For example if __debug__ is >>>True, but not if it's False? I think I've asked this question before. (?) >> >> >>the decorator is a callable, so you can simply do, say >> >>fro

Re: Lambda evaluation

2005-10-06 Thread Duncan Booth
Jp Calderone wrote: > On Thu, 06 Oct 2005 16:18:15 -0400, Joshua Ginsberg > <[EMAIL PROTECTED]> wrote: >>So this part makes total sense to me: >> > d = {} > for x in [1,2,3]: >>... d[x] = lambda y: y*x >>... > d[1](3) >>9 >> >>Because x in the lambda definition isn't evaluated unt

Re: New Python book

2005-10-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Scott David Daniels <[EMAIL PROTECTED]> wrote: > >You could ask over on comp.lang.python.education comp.lang.python.education is a rogue newsgroup; it won't appear on many newsservers. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/

Re: So far (about editing tools)

2005-10-06 Thread Kenneth McDonald
As I did mention in my original post, Eclipse is indeed bloated. However, in spite of that, I've found it both fast and reliable (much to surprise). The only real problem is learning what functionality (the majority) to ignore. PyDev offers nice integration with Python. If I run a python pro

Re: Compile as static

2005-10-06 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > However the executable size is always the same :/ Please assist. At a minimum, you should edit Modules/Setup to compile all extension modules in. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda evaluation

2005-10-06 Thread Joshua Ginsberg
That's a damned elegant solution -- thank you... However in trying to simplify my problem for presentation here, I think I oversimplified a bit too much. Try this one: >>> d = {} >>> for x in [1,2,3]: ... d[x] = lambda *args: args[0]*x ... >>> d[1](3) 9 The lambda is going to have to take ar

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Barbier de Reuille <[EMAIL PROTECTED]> writes: > Dans l'article <[EMAIL PROTECTED]>, Mike Meyer a écrit : >> Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes: >>> Mike Meyer a écrit : Antoon Pardon <[EMAIL PROTECTED]> writes: >Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTE

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Bengt Richter
On 6 Oct 2005 06:44:41 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: >Op 2005-10-06, Bengt Richter schreef <[EMAIL PROTECTED]>: >> On 5 Oct 2005 09:27:04 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: >> >>>Antoon Pardon wrote: >>> It also is one possibility to implement writable closures.

Python, alligator kill each other

2005-10-06 Thread infidel
By Denise Kalette Associated Press MIAMI - The alligator has some foreign competition at the top of the Everglades food chain, and the results of the struggle are horror-movie messy. A 13-foot Burmese python recently burst after it apparently tried to swallow a live 6-foot alligator whole, author

RE: Merging sorted lists/iterators/generators into one stream of values...

2005-10-06 Thread Delaney, Timothy (Tim)
Lasse Vågsæther Karlsen wrote: > I need to merge several sources of values into one stream of values. > All of the sources are sorted already and I need to retrieve the > values from them all in sorted order. > > In other words: > s1 = [10, 20, 30, 40, 50] > s2 = [15, 25] > s3 = [17, 27, 37] > >

Bug in COM Makepy utility? (ActivePython 2.4)

2005-10-06 Thread Steve M
When I use the COM Makepy utility on one computer with WindowsXP, ActivePython 2.3 and I select the library Microsoft Word 10.0 Object Library (8.2), things work fine. When I have WindowsXP, ActivePython 2.4 (build 247) and Microsoft Word 11.0 Object Library (8.3), then I get the following SyntaxEr

Re: interactive window vs. script: inconsistent behavior

2005-10-06 Thread Larry Bates
This also works and IMHO reads better: d="5-18-05 to 5-31-05" f,t=d.split(' to ')) Larry Bates Bell, Kevin wrote: > The following works in the interactive window of PythonWin, but fails in > a script. TypeError: Objects of type 'slice' can not be converted to a > COM VARIANT > > I just need to

dcop module under Python 2.4

2005-10-06 Thread qwweeeit
Hi all, at the end I upgraded to 2.4, but now I am not able to load dcop module (part of the Python-KDE3 bindings). Any help? Bye. -- http://mail.python.org/mailman/listinfo/python-list

Continuous system simulation in Python

2005-10-06 Thread Nicolas Pernetty
Hello, I'm looking for any work/paper/ressource about continuous system simulation using Python or any similar object oriented languages (or even UML theory !). I'm aware of SimPy for discrete event simulation, but I haven't found any work about continuous system. I would like to develop a generi

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread DaveM
On Tue, 28 Jun 2005 14:52:44 -0700, James Stroud <[EMAIL PROTECTED]> wrote: >Frankly, I can't watch Shakespeare or movies like "the full monty" or >"trainspotting" because I can't understand a damn word they say. British talk >sounds like gibberish to me for the most part. Not just you. It alwa

Force flushing buffers

2005-10-06 Thread Madhusudan Singh
Hi I have a python application that writes a lot of data to a bunch of files from inside a loop. Sometimes, the application has to be interrupted and I find that a lot of data has not yet been writen (and hence is lost). How do I flush the buffer and force python to write the buffers to t

Re: Force flushing buffers

2005-10-06 Thread skip
Madhusudan> How do I flush the buffer and force python to write the Madhusudan> buffers to the files ? I intend to put this inside the loop. f = open("somefile", "w") f.write("foo") f.flush() Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Force flushing buffers

2005-10-06 Thread Scott David Daniels
Madhusudan Singh wrote: > I have a python application that writes a lot of data to a bunch of > files > from inside a loop. Sometimes, the application has to be interrupted and I > find that a lot of data has not yet been writen (and hence is lost). How do > I flush the buffer and force py

Re: Continuous system simulation in Python

2005-10-06 Thread hrh1818
A good starting point is the book "Python Scripting for Computational Science" by Hans Petter Langtangen. The book covers topics that go from simulating second order mechanical systems to solving partial differentail equations. Howard Nicolas Pernetty wrote: > Hello, > > I'm looking for any work

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-06 Thread Mike C. Fletcher
Lasse Vågsæther Karlsen wrote: >I need to merge several sources of values into one stream of values. All >of the sources are sorted already and I need to retrieve the values from >them all in sorted order. > >In other words: >s1 = [10, 20, 30, 40, 50] >s2 = [15, 25] >s3 = [17, 27, 37] > >for val

ANN: Pyro 3.5 (remote objects)

2005-10-06 Thread Irmen de Jong
I'm glad to announce the new version of Python's own powerful remote method invocation technology -- Pyro 3.5 (final)! You can get it via http://pyro.sourceforge.net, then go to the SF project homepage download area. It has many new features and improvements over Pyro 3.4, which was released mor

Re: Simple prototype text editor in python

2005-10-06 Thread Scott David Daniels
Robert Kern wrote: > thakadu wrote: >>Regarding the license I have not yet decided what type >>of license (if any, since its very few lines of code) but probably >>will be GPL or BSD style. I have no former experience in >>licensing code so any suggestions will be welcome there as well. I've hear

Newbie using python to update sql table

2005-10-06 Thread LenS
I have created a python program that takes a flat file and changes some of the data and create a new flat file with the changes. Part of this process requires that I try to find a particular model car in an MS Sql table. This part of the program is now working great. It has come to my attention

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Grant Edwards
On 2005-10-06, DaveM <[EMAIL PROTECTED]> wrote: >>Frankly, I can't watch Shakespeare or movies like "the full >>monty" or "trainspotting" because I can't understand a damn >>word they say. British talk sounds like gibberish to me for the >>most part. > > Not just you. It always amuses me in trips

PyObject_New

2005-10-06 Thread Jeremy Moles
Hey guys, sorry to ask another question of this nature, but I can't find the answer or a single example of it anywhere. I'm sure it's been asked before, but my google-fu isn't strong enough to find anything. I have the following: struct MyType { PyObject_HEAD

divide

2005-10-06 Thread Shi Mu
I have three points in a rectangle and i wonder how to use PYTHON to divide the rectangle into three parts with each point located in the different part. For instance, Point A goes to Part I, Point B goes to Part II and Point C goes to Part III. And the distance between any point within Part I and

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-10-06, DaveM <[EMAIL PROTECTED]> wrote: >>>Frankly, I can't watch Shakespeare or movies like "the full >>>monty" or "trainspotting" because I can't understand a damn >>>word they say. British talk sounds like gibberish to me for the >>>most part.

Re: So far (about editing tools)

2005-10-06 Thread Michael Ekstrand
On Thursday 06 October 2005 15:45, Micah Elliott wrote: > On Oct 06, Kenneth McDonald wrote: > > The only _real_ problem is the eclipse learning curve. > > The only real *advantage* of Eclipse (over other suggested tools) is > its highly hyped automatic refactoring. Admittedly, I have not used > i

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Grant Edwards
On 2005-10-07, Mike Meyer <[EMAIL PROTECTED]> wrote: >>> Not just you. It always amuses me in trips to the US that >>> British voices (outside of the movies) are often subtitled, >>> while first-generation Americans whose English is. um, >>> limited, are not. >> >> What?!? I've never seen a Briti

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Rick Wotnaz
Mike Meyer <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Grant Edwards <[EMAIL PROTECTED]> writes: >> On 2005-10-06, DaveM <[EMAIL PROTECTED]> wrote: Frankly, I can't watch Shakespeare or movies like "the full monty" or "trainspotting" because I can't understand a damn word t

Python recipes: list mixin, improved timeit, etc

2005-10-06 Thread barnesc
I added some recipes to the Python Cookbook: - listmixin Use ListMixin to create custom list classes from a small subset of list methods: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440656 - pytime Improves on timeit by allowing you to time a function directly (no

non descriptive error

2005-10-06 Thread Timothy Smith
i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just "error". anyidea where i need to start looking? -- http://mail.python.org

Re: Where to find python c-sources

2005-10-06 Thread Terry Hancock
On Friday 30 September 2005 04:37 pm, John J. Lee wrote: > "Tor Erik Sønvisen" <[EMAIL PROTECTED]> writes: > > Thanks for the answers... And yes, I have searched google! > > How odd -- the most useful link (the viewcvs page for this source > file) is the very first link for me when I search for s

Re: Continuous system simulation in Python

2005-10-06 Thread Robert Kern
Dennis Lee Bieber wrote: > On Fri, 7 Oct 2005 01:12:22 +0200, Nicolas Pernetty > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >>I'm aware of SimPy for discrete event simulation, but I haven't found >>any work about continuous system. >>I would like to develop a generic contin

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Neil Hodgson
Grant Edwards: > Where exactly did you see all these > sub-titled British TV/movies? I've noticed this too when travelling but can't recall precise details. Perhaps it is on the international versions of American channels such as CNN which are commonly watched by people with less English a

Re: Where to find python c-sources

2005-10-06 Thread Terry Hancock
On Monday 03 October 2005 12:26 pm, John J. Lee wrote: > [Tor Erik S�nvisen] > > socketmodule.c, but I can't locate this file... Where should I look? > > [John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"] > > Does google vary in its results across the globe? > > [Michael] > > T

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-06 Thread Terry Hancock
On Monday 03 October 2005 03:48 am, Volker Grabsch wrote: > Fredrik Lundh wrote: > > /... snip comment that the natural order is C, X, Y and that programmers > > that > > care about readable code will probably want to be extremely careful with > > this > > new feature .../ > > That's also my opi

where to find information about errors/exceptions in socket.py

2005-10-06 Thread mirandacascade
Version of python: 2.4 O/S: Win2K I will be writing some python scripts to do some client-side programming that involves socket.py. I expect that I will be making calls to the following methods/functions: connect_ex() setsockopt() sendall() recv() close() Where can one find information about wh

py2exe 0.6.3 released

2005-10-06 Thread Jimmy Retzlaff
py2exe 0.6.3 released = py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported

os.access with wildcards

2005-10-06 Thread mike
i'd like to use os.access(path,mode) where path may contain linux style wildcards. i've failed so far. my workaround is the bash command. os.system('[ -e %s ]' % fn ) any suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyObject_New

2005-10-06 Thread Gerhard Häring
Jeremy Moles wrote: > [...] What I'm trying > now is the following: > > PyObject* obj = _PyObject_New(&PyType_MyType); > obj = PyObject_Init(obj, &PyType_MyType); > > ... > > return obj; > > When "obj" gets back to the interpreter, Python sees it (or rather, it's >

Re: os.access with wildcards

2005-10-06 Thread Leif K-Brooks
mike wrote: > i'd like to use > >os.access(path,mode) > > where path may contain linux style wildcards. os.access(glob.glob(path), mode) -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread DaveM
On Fri, 07 Oct 2005 00:33:43 -, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2005-10-06, DaveM <[EMAIL PROTECTED]> wrote: > >>>Frankly, I can't watch Shakespeare or movies like "the full >>>monty" or "trainspotting" because I can't understand a damn >>>word they say. British talk sounds like g

RE: Build spoofed IP packets

2005-10-06 Thread Payton, Zack
See scapy.py I've completed windows support at this time and am currently testing it, working out some bugs. If you want a copy just ask. I need some testers. It can do almost any packet transmissions you want. (google it) Z -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-06 Thread Lasse Vågsæther Karlsen
Ok, that one looks more sleak than what I came up with. Couple of things I learn from your solution, please correct me if I misunderstood something: 1. list containing other lists will sort itself based on first element on lists inside ? 2. sort(), pop() is not costly operations Other than that

<    1   2