Even though you are using re's to try to look for specific substrings
(which you sort of fake in by splitting on "Identifier", and then
prepending "Identifier" to every list element, so that the re will
match...), this program has quite a few holes.
What if the word "Identifier" is inside one of t
Mike Meyer <[EMAIL PROTECTED]> writes:
> > Sure. I tried to be helpful there, but maybe I need to be more
> > specific. The ref from my previous post, Google-able as "The
> > C10K problem" is good but now a little dated.
>
> That appears to be a discussion on squeezing the most out of a network
>
Mike Meyer wrote:
> Bryan Olson writes:
>>System support for threads has advanced far beyond what Mr. Meyer
>>dealt with in programming the Amiga.
>
> I don't think it has - but see below.
>
>>In industry, the two major camps are Posix threads, and Microsoft's
>>Win32 threads (on NT or bett
Oh, please! Even the most lopsided, opinionated, um, person could have
tried, oh, maybe, "time" as a possible module for this function?
What next? "Is there a module or class that will convert 'I have no
shame. ' to upper case, AND trim the trailing whitespace?" (Hint: it
has to do with 'strin
Michael Sparks <[EMAIL PROTECTED]> writes:
> > A plausible theory. I have some possibly-illustrative examples
> > of what I ran into within the last few weeks.
>
> Did you take what you learnt, and use that to create better
> documentation to be posted on python's SF project as a patch?
>
I've
This Python library is created to support asynchronous I/O
(Input/Output) operations. Unlike most platform-independent asynch I/O
libraries, pyasynchio is simple. You do not have to know much about
programming and anything about AIO in particular to use pyasynchio.
Unlike, for example, famous async
Michael Sparks wrote:
> Bryan Olson wrote:
>>A plausible theory. I have some possibly-illustrative examples
>>of what I ran into within the last few weeks.
>
>
> Did you take what you learnt, and use that to create better
> documentation to be posted on python's SF project as a patch?
>
>
> (
Special thanks to Ken Pronovici. He did a lot of work for this
release and helped ensure it occurred.
Version 0.8.15 of PyChecker is available. It's been over a year since
the last release. Wow, time really does fly. Since it's been so long
I'm sure I screwed something up, treat it delicately.
forgot mention Komodo's code and object browser, which're both in the
$30 license
http://aspn.activestate.com/ASPN/docs/Komodo/3.1/komodo-doc-codeintel.html#codeintel_codebrowser
and SPE's supposed to have some kinda class explorer
http://www.stani.be/python/spe
--
http://mail.python.org/mailma
I am trying to drive mailx using popen.
Here is what I am trying to do:
a=popen('mailx -s "test" [EMAIL PROTECTED]','w')
print a>>, "This is a test"
print a>>, "."
a.flush()
The email never sends, and I have to kill the
processes. I am new to python, so I am sure I am
doing something wrong.
Ca
On Wed, 31 Aug 2005 15:40:52 GMT
William Gill <[EMAIL PROTECTED]> wrote:
> Being somewhat new to Python, and having a tendency to over
> complicate things in my class design, I was wondering if anyone can
> suggest a simple graphical or flowcharting tool that they use to
> organize their class and
Ok, I think I figured this out. Comments/criticisms welcome.
--8<--
import datetime, os, time
from pytz import UTC
old_tz = os.environ.get('TZ')
os.environ['TZ'] = 'Europe/Amsterdam'
time.tzset()
dutchDateParts = (2005, 8, 10, 17, 26,
Figured this out. I thought I'd post my results in case it is helpful
to someone else.
--8<--
import locale, time
# save old locale
old_loc = locale.getlocale(locale.LC_TIME)
locale.setlocale(locale.LC_TIME, 'nl_NL')
# seems to be the
On first glance Doxygen doesn't look like the ticket, but the screen
shots of Eric3 look VERY promising. I have already downloaded it, and
will try it.
Thanks,
Bill
tooper wrote:
> You may want to use Doxygen, which generates nice diagrams. It's
> normally only for C++, but there are nice filt
"Robert Kern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Or perhaps more to the point, that http://pydoc.amk.ca/frame.html should
> be better-publicized.
This seems to be an experiment that has not been updated since 2.3.4.
tjr
--
http://mail.python.org/mailman/listinfo/p
> Bryan Olson wrote:
>> Whatever else one says about open-source documentation, keeping
>> it current is a major unsolved problem.
Python does pretty well. Doc updates, when needed, are an expected part of
patches. Every couple of months or so, F. Drake releases a new
'development version' of
gene tani wrote:
> Have you looked at class browser module? Not the graphical tool you're
> looking for, but maybe a good start
No, it's not graphical, but it looks like I may be able to use it to put
together a nice outline, or summary of my modules. It's worth
exploring, thanks.
Bill
>
"Thierry Lam" <[EMAIL PROTECTED]> writes:
> Is it possible to run an ftp command to connect to some remote computer
> on the network.
Yes, but why would you want to do taht?
> For example, if I want to retrieve some data from
> \\remcomputer\datafiles on the network and copy it to my local
> com
Bryan Olson <[EMAIL PROTECTED]> writes:
> Bengt Richter wrote:
> > Bryan Olson wrote:
> >>For a long time,
> >>the most sophisticated software services generally have used
> >>multiple lines of execution, and now that's mostly in the form
> >>of threads. No one actually disagrees, but they go
Steve Holden wrote:
> He isn't asking for help. He's simply masturbating.
Now _that_ is how you kill a thread :)
- alex23
--
http://mail.python.org/mailman/listinfo/python-list
alex23 wrote:
> Fredrik Lundh wrote:
>
>>perhaps, but why is he posting apache questions to the python list?
>
>
> The real question is why is he asking for our help at all, given:
>
> Xah Lee wrote:
>
>>Fuck the Python programing morons.
>
He isn't asking for help. He's simply masturbating.
bruno modulix <[EMAIL PROTECTED]> writes:
> Devan L wrote:
>> Kevin Little wrote:
>>
>>>I want to dynamically add or replace bound methods in a class.
>
> (snip)
>
>> I'm not an expert, but why do you need to dynamically add or replace
>> bound methods?
>
> To modify the behaviour at runtime ?-
Hi,
When i create a process using popen and then if i decide that i am not
interested in keeping the process pipes anymore, and I forget the
correspond variables [for example by exiting from function which called
popen]. Then, if python tries to destroy pipes and get locked on
pipe.close(), until t
Steve Holden wrote:
> Terry Hancock wrote:
>>Perhaps this just reduces to "there ought to be a wiki"?
>
> Well, perhaps the Wiki at http://wiki.python.org/moin/ should also be
> better-publicized, then?
Or perhaps more to the point, that http://pydoc.amk.ca/frame.html should
be better-publicize
Terry Hancock wrote:
> On Wednesday 31 August 2005 07:05 pm, Michael Sparks wrote:
>
>>When people complain /in here/ about the documentation not being perfect for
>>python I personally find it sad and ironic. It's sad because it says to the
>>person who spent their time (when they could be doing
For:
So, is there any data on the popularity of IDEs (most users), or is
there a chart comparing the most popular versions.
Hi Norm,
You can do a Google search for these sorts of things like opinions and
comparisons. Believe me, there are more blogs and articles on these
things than you can sha
[separately copied to spambayes-dev]
Tony Meyer <[EMAIL PROTECTED]> wrote:
>
>> While it may not adequately credit the implementation
>> language,
>
> Was this "it" the PCW article or SpamBayes? If the latter, please let
> spambayes-dev@python.org know how you think Python should be more
> app
Norm Goertzen wrote:
> I'm really only interested in programming for Windows XP.
It is warned that the sequal is not directly related to the your
question. However, hope that it helps your decision to move from the old
stuff to the new stuff. The thing is that as you decideded to change
your
On Wednesday 31 August 2005 07:05 pm, Michael Sparks wrote:
> When people complain /in here/ about the documentation not being perfect for
> python I personally find it sad and ironic. It's sad because it says to the
> person who spent their time (when they could be doing something else) that
> the
Strange, but I can't figure out how to switch back to the default
locale.
>>> import locale, datetime, time
>>> locale.setlocale(locale.LC_ALL, 'nl_NL')
'nl_NL'
>>> date = '10 augustus 2005 om 17:26'
>>> time.strptime(date, "%d %B %Y om %H:%M")
(2005, 8, 10, 17, 26, 0, 2, 222, -1)
>>> locale.setlo
I've posted a previous question about IDEs and got some good feedback,
thanks, but it does seem that everyone has their own favourite IDE -- in
other words, no IDE was repeatedly recommended.
So, is there any data on the popularity of IDEs (most users), or is
there a chart comparing the most po
Sorry if I wasn't clear- Was after a Python program serving up (using
CGI, Django, CherryPy.. or whatever) a survey- filled out using a web
browser.
Timothy Downs
> Wait. . .Do you want it on a website? I don't really understand you
>
>
> -Ivan
>
> __
Thierry Lam wrote:
> Is it possible to run an ftp command to connect to some remote computer
> on the network.
>
> For example, if I want to retrieve some data from
> \\remcomputer\datafiles on the network and copy it to my local
> computer, how do I do it in python on the Unix side?
>
> I don't
Wait. . .Do you want it on a website? I don't really understand you
-Ivan
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--
http://mail.python.org/mailman/l
> IMHO, there is a great opportunity here for the python community:
[...]
> Surely that's worth a simple team name, for mnemonic purposes
> if nothing else. Something different or unusual, like one of my
> favourites, "Legion of the Bouncy Castle", who are a group of Java
> cryptography dudes
I
> While it may not adequately credit the implementation
> language,
Was this "it" the PCW article or SpamBayes? If the latter, please let
spambayes-dev@python.org know how you think Python should be more
appropriately credited; we are certainly trying to do this.
(Python is mentioned all over t
I've been looking around for an online (that is, web-based) survey tool
for commercial use, and have been unable to any written in Python.
Is anyone aware of such a thing existing?
A price tag is not a problem, although access to source code is desirable.
Timothy Downs
--
http://mail.python.or
Fredrik Lundh wrote:
> perhaps, but why is he posting apache questions to the python list?
The real question is why is he asking for our help at all, given:
Xah Lee wrote:
> Fuck the Python programing morons.
- alex23
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>Your best bet would be to use "pexpect" module. Code may look something
>like:
>
>import pexpect
>import sys
>child = pexpect.spawn ('ftp ftp.site.com')
>child.expect ('Name .*: ')
>child.sendline ('username')
>child.ex
Bryan Olson wrote:
> A plausible theory. I have some possibly-illustrative examples
> of what I ran into within the last few weeks.
Did you take what you learnt, and use that to create better
documentation to be posted on python's SF project as a patch?
(Not aimed at you, just a preface, and
Excellent! Thank you, Fredrik!
--
Adam Monsen
http://adammonsen.com/
--
http://mail.python.org/mailman/listinfo/python-list
Bryan Olson wrote:
> import pydoc
> help is pydoc.help
> >
> > False
>
> Say Fredrik, if you're going to proclaim "False"
oh, I didn't proclaim anything. Python 2.4 did. let's see what
Python 2.2 has to say about this:
$ python2.2
Python 2.2.1 (#2, Jul 17 2002, 13:11:01)
[GCC 2.96
Hello Everybody,
I
am running into a strange problem while running a vi through python. Below is my sample code.
lv = win32com.client.Dispatch("LabVIEW.Application.7.1") file_path = 'C:\\Documents and Settings\\administrator\\My Documents\\Python Files\\testvi.vi'
vi=lv.GetVIReference(file_pat
David Fickbohm wrote:
> Can you please remove me from the list starting tomorrow I am going an a
> weeks vacation.
You have to do it yourself.
http://mail.python.org/mailman/listinfo/python-list
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves
Sybren Stuvel wrote:
> I don't have any problems with the documentation. It just works for
> me. If you find any errors or omissions, fix them and send the
> document maintainer an email. Why don't you help us by improving the
> documentation?
Workin' on it.
--
--Bryan
--
http://mail.pytho
Fredrik Lundh wrote:
> Bryan Olson wrote:
>>[...]
>> > What additions to that string would you suggest?
>>
>>Since "help *is* pydoc.help, or at least...", the call could
>>show the same thing as help(pydoc.help)
>
>
import pydoc
help is pydoc.help
>
> False
Say Fredrik, if you'
Peter Hansen wrote:
> I would approach this as a usability issue for your users, rather than
> from the point of view of which is "a little messier" in the code.
I agree, yet in my own programs, the command-option support
tends to suck. I think I can work out function/class/module
interfaces wel
Alan Kennedy wrote:
> I personally put great store in the fact that PCW awarded the Editors
> Choice award to SpamBayes, because it's based on actually *using* the
> software, rather than doing a simple feature comparison.
We can be thankful for that, at least. And you're right about SpamBayes
bei
Can you please remove me from the list starting tomorrow I am going an a weeks vacation.
I do not want people to get the "Dave Fickbohm is out of the office" message over and over
If I could be reinstated as of 9/12/05 it would be appreciated.
Thanks
DaveDave FickbohmUse Technology to the Fullest1
On Wednesday 31 August 2005 12:14 pm, Reinhold Birkenfeld wrote:
> Steve Holden wrote:
> > Reinhold Birkenfeld wrote:
> My comment mostly referred to "new-style classes must be declared as a
> subclass of
> a new-style class", which is not true.
> >>>
> >>>Nonsense.
> >>
> >> Given th
> > This is probably a fairly bad way of contacting the python-list
> > admins...
>
> Perhaps. Feel free to forward if you know a better way.
I tried sending a question to [EMAIL PROTECTED], and got
another 'don't call us, we'll maybe call you'. Maybe
[EMAIL PROTECTED]
> But public posting all
On Wednesday 31 August 2005 11:29 am, Terry Reedy wrote:
> For a couple of years, I have been reading and posting and posting to
> python-list and c.l.p via gmane.news.orgs gmane.comp.python.general group.
> Today I got this from 'python-list-bounces', which I presume is a 'machine'
> rather tha
"Michael Hudson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is probably a fairly bad way of contacting the python-list
> admins...
Perhaps. Feel free to forward if you know a better way.
As I noted ...
> "Terry Reedy" <[EMAIL PROTECTED]> writes:
>
>> For a couple of ye
On Wednesday 31 August 2005 09:11 am, Miki Tebeka wrote:
> Is there a way to document class members in Epydoc?
Yes. See additions below:
> Something like:
>
> class Point:
"""
@ivar x: This is where you document x.
@ivar y: This is where you document y.
"""
Bryan Olson wrote:
> [...]
> > What additions to that string would you suggest?
>
> Since "help *is* pydoc.help, or at least...", the call could
> show the same thing as help(pydoc.help)
>>> import pydoc
>>> help is pydoc.help
False
> or at least inform the user that more of the story is availa
On Wednesday 31 August 2005 07:14 am, Bryan Olson wrote:
> Terry Hancock wrote:
> > Bryan Olson wrote:
> Then how does one distinguish stable, supported services, from
> incidental behavior that can change without notice?
Surprisingly often, "common sense" seems to be a workable answer
here. I'm
Adam Monsen wrote:
> No, this doesn't seem to work, and I can't find anything in the
> documentation indicating that it should.
>
> >>> import os
> >>> os.getenv('LANG')
> 'nl_NL'
> >>> import time
> >>> time.strptime("10 augustus 2005 om 17:26", "%d %B %Y om %H:%M")
> Traceback (most recent call
Cheers.
I am trying to create a single executable that contains my program. Due to
legal issues I was unable to use a dynamically linked python executable.
Over the last couple of weeks I managed to create a statically linked
python executable that contains everything we need (Qt, ssl, bz2, etc)
Thierry Lam wrote:
> Is it possible to run an ftp command to connect to some remote computer
> on the network.
>
> For example, if I want to retrieve some data from
> \\remcomputer\datafiles on the network and copy it to my local
> computer, how do I do it in python on the Unix side?
>
> I don't
"Jeffrey Maitland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello folks,
>I am wondering why I am getting this error. when I try to run a script.
>TypeError: translate() takes at most 3 arguments (10 given)
Because you apparently gave it more than 3 args.
>>> str.translate._
Say I have the following datetime[1] object:
>>> from datetime import datetime
>>> d = datetime(2005, 8, 10, 15, 43)
I happen to know this is a local time from the Netherlands[2], so I
assume the tzinfo (if it were present) should indicate Central European
Summer Time[3] ("Summer" indicates dayli
On Tuesday 30 August 2005 05:15 pm, Benji York wrote:
> Terry Hancock wrote:
> > OTOH, there are lots of poorly-documented third-party Python
> > modules (as in any language). Zope is a particularly nasty
> > example -- though I think I understand some of the reasons
> > behind that (rapidly chan
DENG a écrit :
> hi all,
>
> i use SGMLParser to process HTML files, in order to do some
> optimizations,
>
> something like this:
>
> TEXT1TEXT2
>
> optimise to
>
> TEXT1TEXT2
Doesn't Tidy do this already ?
>
> at the very beginning, i was thinking of analysing each text-block, to
> know t
> I am wondering why I am getting this error. when I try to run a script.
> TypeError: translate() takes at most 3 arguments (10 given)
> but the thing is the method translate actually accepts 10 arguements.
without code, how is anyone to know?
--
http://mail.python.org/mailman/listinfo/python
Thierry Lam wrote:
> Is it possible to run an ftp command to connect to some remote computer
> on the network.
If the remote computer is running an ftp server, yes. If not, no.
> For example, if I want to retrieve some data from
> \\remcomputer\datafiles on the network and copy it to my local
> c
[EMAIL PROTECTED] wrote:
> py>parser.add_option("-n", "--name", dest="name", action="store",
> py> help="enter a name")
> py>parser.add_option("-u", "--url", action="store", dest="url",
> help = "enter an url")
It's worth noting that this will have the same eff
n00m wrote:
> import socket, thread
> host, port = '192.168.0.3', 1434
Consider using INADDR_ANY instead of the specific host IP
address. The empty string will resolve to INADDR_ANY if passed
as the host to bind(). (Though that's not the problem.)
> s1 = socket.socket(socket.AF_INET, socket.S
No, this doesn't seem to work, and I can't find anything in the
documentation indicating that it should.
>>> import os
>>> os.getenv('LANG')
'nl_NL'
>>> import time
>>> time.strptime("10 augustus 2005 om 17:26", "%d %B %Y om %H:%M")
Traceback (most recent call last):
File "", line 1, in ?
File
Your best bet would be to use "pexpect" module. Code may look something
like:
import pexpect
import sys
child = pexpect.spawn ('ftp ftp.site.com')
child.expect ('Name .*: ')
child.sendline ('username')
child.expect ('Password:')
child.sendline ('password')
child.expect ('ftp> ')
child.sendline ('
Is it possible to run an ftp command to connect to some remote computer
on the network.
For example, if I want to retrieve some data from
\\remcomputer\datafiles on the network and copy it to my local
computer, how do I do it in python on the Unix side?
I don't want to use mount since I don't hav
Adam Monsen wrote:
> Anyone know of something that works like time.strptime(), but for
> other languages? Specifically, Dutch (ex: "31 augustus 2005, 17:26")
> and German?
>
> Thinking out loud... since "31 augustus 2005, 17:26" is only different
> by month name, I suppose I could just substitute
On 2005-08-31, Bryan Olson <[EMAIL PROTECTED]> wrote:
>>>2. I'm not at all sure that accessing the same socket object
>>>simultaneously from two threads is safe.
>>
>> It's OK under Unix. Having one thread handle rx and a
>> different one handle tx is a pretty widely used method.
>>
>> Don't know
Hello folks,
I am wondering why I am getting this error. when I try to run a script.
TypeError: translate() takes at most 3 arguments (10 given)
but the thing is the method translate actually accepts 10 arguements.
That is what is confusing me.
Jeff
--
http://mail.python.org/mailman/listinf
Grant Edwards wrote:
> Peter Hansen wrote:
>
>
>>2. I'm not at all sure that accessing the same socket object
>>simultaneously from two threads is safe.
>
> It's OK under Unix. Having one thread handle rx and a
> different one handle tx is a pretty widely used method.
>
> Don't know abou
Bengt Richter wrote:
> Bryan Olson wrote:
>>For a long time,
>>the most sophisticated software services generally have used
>>multiple lines of execution, and now that's mostly in the form
>>of threads. No one actually disagrees, but they go right on
>>knocking the modern methods.
>
> I th
Anyone know of something that works like time.strptime(), but for
other languages? Specifically, Dutch (ex: "31 augustus 2005, 17:26")
and German?
Thinking out loud... since "31 augustus 2005, 17:26" is only different
by month name, I suppose I could just substitute the month name using
a translat
A.M. Kuchling wrote:
> Bryan Olson wrote:
>
>>I use dir() all the time; help() not so much. Typing help(help)
>>shows:
>>
>> Help on _Helper in module site:
>>
>> Type help() for interactive help, or help(object) for help
>> about object.
>>
>>That strikes me as not-particula
You know, I tried doing it that way, and I must have done something
wrong the first time because I was getting an error. It works now
though, and it performs much better. Thanks!
I'll keep an eye out for the new version, that kind of timeframe will
be in plenty of time for the project I'm currentl
Thanks,
os.path.basename(filePath) it is then.
BTW, the help(module) function is new to me! Must have missed it when
reading the tutorial.
Cheers!
--
http://mail.python.org/mailman/listinfo/python-list
Have you looked at class browser module? Not the graphical tool you're
looking for, but maybe a good start
http://www.python.org/doc/2.0.1/lib/module-pyclbr.html
William Gill wrote:
> Being somewhat new to Python, and having a tendency to over complicate
> things in my class design, I was wonder
You may want to use Doxygen, which generates nice diagrams. It's
normally only for C++, but there are nice filters (for ex.
http://i31www.ira.uka.de/~baas/pydoxy) that generates C++ header from
python code that Doxygen can crunch.
Another solution is to use IDE such as Eric3 that can generate UML
Thierry Lam wrote:
> On windows, if I want to map a network drive to a local drive on my
> computer, I do the following:
>
> data = {
> 'remote' : '\\blah\data',
> 'local' : 'Z:'
>}
>win32net.NetUseAdd(None, 1, data)
>
> How am I supposed to do similar thing on Linux?
You can approximate it by doing this at the command prompt:
# mkdir /z
#mount //blah/data /z
I assume 'blah' is the hostname for a Windows machine and 'data' is the
name of a share on blah. You might need to install smbfs and/or use
'mount.smb' and/or use 'mount -t smbfs'. Of course this can all b
Fernando Perez wrote:
> Madhusudan Singh wrote:
>
>> Madhusudan Singh wrote:
>>
>>> Hi
>>>
>>> I am using time.clock() to get the current time of the processor in
>>> seconds. For my application, I need really high resolution but currently
>>> seem to be limited to 0.01 second. Is there a way t
On windows, if I want to map a network drive to a local drive on my
computer, I do the following:
data = {
'remote' : '\\blah\data',
'local' : 'Z:'
}
win32net.NetUseAdd(None, 1, data)
How am I supposed to do similar thing on Linux?
Thanks
Thierry
--
http://mail.p
This should help:
http://epydoc.sourceforge.net/fields.html
Kay
--
http://mail.python.org/mailman/listinfo/python-list
Reinhold Birkenfeld wrote:
> Kay Schluehr wrote:
> > Reinhold Birkenfeld wrote:
> >
> >> > x = [ yield r for r in iterable ]
> >>
> >> Which is quite different from
> >>
> >> x = (yield) in iterable
> >>
> >> which is currently (PEP 342) equivalent to
> >>
> >> _ = (yield)
> >> x = _ in iterable
>
[Alan Kennedy]
>> (PCW, for those who don't know it, is sort of the UK's equivalent
>> of Byte Magazine,except that it's still publishing after almost 25
>> years).
[Paul Boddie]
> Hmmm. Even Byte at its lowest point was far better than PCW ever was.
Well, I mostly disagree, but you've got yo
Bengt Richter wrote:
> range(9)[4:-!0:-1] == range(5)
> >True
> Interesting, but wouldn't that last line be
> >>> range(9)[4:-!0:-1] == range(5)[::-1]
Ups. Yes of course.
> >Life can be simpler with unbound limits.
> Hm, is "!0" a di-graph symbol for infinity?
> What if we get full unicode
Steve Holden wrote:
> Now, let's see ... [presses fingers to temples and exercises psychic
> powers] ... ah yes, its because you're DOING SOMETHING WRONG :-)
I just admire this sort of humour!
Made me chuckling and (even) laughing.
--
http://mail.python.org/mailman/listinfo/python-list
Adam Endicott wrote:
> Does anyone know anything about the aggdraw module for PIL? I think I
> would like to use it because I need to do some drawing with
> semi-transparent pen styles (I'm simulating using a highlighter). It
> seems to be working great, but I think I'm running into a memory leak
You also could opt for the OptionParser in optparse, it is quiet
powerful, and you can keep your code clean. Your requirements would
translate to something like:
py>#!/usr/bin/env python
py>"""show OptionParser
py>"""
py>from optparse import OptionParser
py>
py>def main():
py>parser = OptionPar
This is probably a fairly bad way of contacting the python-list
admins...
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> For a couple of years, I have been reading and posting and posting to
> python-list and c.l.p via gmane.news.orgs gmane.comp.python.general group.
> Today I got this from 'pytho
Does anyone know anything about the aggdraw module for PIL? I think I
would like to use it because I need to do some drawing with
semi-transparent pen styles (I'm simulating using a highlighter). It
seems to be working great, but I think I'm running into a memory leak
that's noted in the documentat
Thank you all for your replies!
1.
repr() is not what I need (currently).
I'd better like to see the pure text of "talkings" between VBS and SQL
Server.
2.
Jp, thank you very much for the links!
I just oblige to test this Twisted stuff, but I'm afraid it's a bit
above my head
so far.
And, frankly s
phil hunt wrote:
> Some times concurrency is the best (or only) way to do a job. Other
> times, it's more trouble than its worth. A good programmer will know
> which is which, and will not use an overly complex solution for the
> project he is writing.
Also, a good programmer won't conflate concur
Richie; Steve; Thanks for your replies!
> o The command you're typing into the command prompt
> o The error message you're getting
> o The full traceback
> o The code you're trying to run, or if it's too big then the piece that
>the last line of the traceback refers to
1.
D:\>python23\pyt
>>> import os.path
>>> help(os.path)
Help on module ntpath:
NAME
ntpath - Common pathname manipulations, WindowsNT/95 version.
FILE
c:\data\utils\python24\lib\ntpath.py
DESCRIPTION
Instead of importing this module directly, import os and refer to
this
module as os.path.
FUNCTION
Steve Holden wrote:
> Reinhold Birkenfeld wrote:
>> Terry Hancock wrote:
>>
>>>On Tuesday 30 August 2005 04:09 pm, Reinhold Birkenfeld wrote:
>>>
The customary way is to use "class new_class(object):". There's no
advantage in using
__metaclass__ except that you can set it globally for
Hi,
Given a string representing the path to a file, what is the best way to
get at the filename? Does the OS module provide a function to parse the
path? or is it acceptable to split the string using '/' as delimiters
and get the last 'word'. The reason I'm not entirely happy with that
method is t
1 - 100 of 195 matches
Mail list logo