e "bike shed effect":
http://linuxmafia.com/~rick/lexicon.html#bikeshed
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
edia.org/wiki/Greenspun's_Tenth_Rule
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ssibly triple-distilled evil, depending on your point of view. 158 lines
very well spent either way!
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html
[Jeff]
> Yuma Valley Agricultural Center?
> Yaak Valley Forest Council?
I went through the same process. My guess is "Yes, Very F'ing Clever."
Peter?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Peter]
> http://www.pick.ucam.org/~ptc24/yvfc.html
[fraca7]
> print ''.join(map(lambda x: chrord(x) - ord('a')) + 13) % 26) +
> ord('a')), 'yvfc'))
Ah! Or more easily, Edit / Apply ROT13. Thanks!
--
Richie Hindle
[EMAIL PROTECTED]
-
ared that particular piece of
> small-mindedness with the group. In the end our most valuable
> contributions to groups like this can be the gift of being able to walk
> away from a fight simply to keep the noise level down.
+1 (and +1 QONW).
--
Richie Hindle
[EMAIL PROTECTED]
--
h
evaluates C; if it is true, A is evaluated to give the
> result, otherwise, B is evaluated to give the result.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
t rather than the real thing. Try this:
>>> import cgkit
>>> print cgkit.__file__
>>> dir(cgkit)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Andrew]
> Is it just me, or does python-list@python.org not send with a Reply-
> To header?
It's not just you. I don't get one either.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Mike]
> Is there a python library, that is able to create Excel files with
> unicode characters.
pyExcelerator claims to do this, but I've never used it.
http://sourceforge.net/projects/pyexcelerator/
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/list
mpossible -- in Latin is no reason to forbid
> them in English.
Your previous post to this thread was chock-full of split nominatives: "The
Hollywood voice", "the specific regional accent", "the English-speaking
world", "the original French". And you call
n English.
Split nominatives like "the green tomato" are also impossible in Latin, but
no-one seems to object to their use in English.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
s_phishing_defense.html
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ntrols. I
> wish it were otherwise.
It *is* otherwise. You should follow the Ajaxian weblog here:
http://www.ajaxian.com/
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
"ctypes", 0);
You use "windll" for stdcall functions (eg. the Windows API) and "cdll" for
cdecl functions. I don't know which one VB defaults to. If you get it
wrong, ctypes will give you an error talking about using the "wrong calling
convention".
[ale.of.ginger]
> WConio.gotoxy(10,10)
> error: GetConOut Failed
Are you running at a Windows Command Prompt, or in an IDE? As I understand
it, WConio will only work in a Windows Command Prompt.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[ss2003]
> I am stuck at above after doing a lot of f.write for every line of HTML
> . Any betterways to do this in python?
See the "Templating Engines" section of
http://wiki.python.org/moin/WebProgramming - I hope you have a few hours to
spare! 8-)
--
Richie Hindle
[Shi]
> Yes, i am using python 2.3,
> I have used from sets import *
> but still report the same error:
> > > Traceback (most recent call last):
> > > File "", line 1, in ?
> > > NameError: name 'set' is not defined
It's 'Set&
isB)
> False(should be true!)
Slow down. The intersection of A and B is [2, 5, 9].
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
or,
but if this doesn't help then at least you'll have narrowed it down to
999,999. 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Gabriel]
> 2. Set global key biddings.
You can do this using ctypes:
http://groups.google.co.uk/groups?selm=mailman.929.1069345408.702.python-list%40python.org
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Erik]
> I am now a super gushing fan-boy.
+1 Quote of the Week!
--
Richie Hindle <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
r than MediaWiki, just that it really
does have some of the features you say it doesn't (perhaps you've been
looking at an old version).
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ee.findtext("*/title")
The title
>>> print tree.findtext("html/head/title")
None
>>>
What am I missing?
I'm using elementtree-1.2.4-20041228 on Windows with Python 2.3.
--
Richie Hindle <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
at I should
say is this:
>>> print tree.findtext("head/title")
The title
Sorry to waste people's time!
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks!
One question: why the `self.btree = None` in the last line? Isn't
`self.btree` guaranteed to go away at this point anyway? (If the answer
is "it's necessary for weird cases that would take an hour to explain"
then I'll be more than happy to simply use it. 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
In
> other words, its an explicit requirement for *this* __del__, not a general
> requirement.
I see, yes. Very clever - thanks for the explanation!
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
te
> __del__ methods in library objects such that they can be invoked
> multiple times gracefully.
Another good point - thanks.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
g would never have cropped up (even if asynchat.async_chat had an
instance variable named '__map', which is the whole point (which you know,
Steven, but others might not)).
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
he
double-underscore system can give you a false sense of security.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
e up in
> Python you would consider to be a security issue?
I can't speak for the OP, but one hypothetical example might be a buffer
overrun vulnerability in the socket module.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
rom your history in PyCrust, press Ctrl+UpArrow.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
u can get rid of
the >>> prompts in one go.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Dave Brueck]
> Please keep the discussion civil; please help keep c.l.py a nice place to
> visit.
+1
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
n their site about the architecture (other than a list of credits that
includes ctypes, win32all, Macromedia and SciTE|Flash).
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ay
to scroll a Command Prompt window using the keyboard?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Gary]
> I recenly built a C API Python extension for Python 2.3
> on OS X, and now I need to build it for Windows. Will
> [MS Visual Studio Pro 6.0] do the trick?
Yes. That's exactly the compiler that Python 2.3 itself, and most 2.3
extensions, were built with.
--
Richie
In fact, the
> code generated by MinGW-GCC 3.4.4 outpaces that generated by MSVC++ 6.0
> by a considerable margin in some of my performance-critical extensions,
> and the size of the binaries is often smaller.
Interesting!
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/
ll in there in the system menu, doesn't it? Talk
> about blindness...
Me too!
Many thanks, Bengt.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ichie (Nationality: West Yorkshire 8-)
(Having a daughter has improved my speech - I'm much more careful about
enunciating my words properly so that she doesn't pick up my bad habits.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
rface to scanners, digital
cameras and other devices which implement TWAIN, for the Windows
platform. It provides the functionality to allow a Python
application to connect to the scanner/camera and to retrieve images
from that device."
--
Richie Hindle
[EMAIL PROTECTED]
--
or binaries provided you ship the source as well.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Harald]
> Always go to bed exactly when you want to write the first lambda.
[Peter]
> Eureka. The Twentieth Pythonic Thesis has finally surfaced.
+1 QOTW.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee explode with fury).
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Steve]
> While cheeseshop might resonate with the Monty Python fans I have to
> say I think the name sucks in terms of explaining what to expect. If I
> ask someone where I can find a piece of code and the direct me to the
> cheese shop, I might look for another language.
+1
--
R
IP connection should never send two
consecutive small packets without receiving a packet from the other end.
('Small' typically means less than about 1400 bytes.) Each time you do
that, you'll suffer an artificial delay introduced by TCP/IP itself.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
these
days that's not difficult. (NB. entrian.com is not running on it yet.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
FCFC-4016-9D36-14DAA948A600}',
u'\\Device\\NPF_{62280C1D-DC5C-42AF-BA0F-6BDB48418CA5}']
I'm using WinPcap 3.0. My packet.dll is stamped as version 3.0.0.18.
Maybe you're running a different version?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[n00m]
> WHY ON THE EARTH <'module' object has no attribute 'AF_INET'> ???
Because you have a socket.py in d:\python23\00 which is being picked up
instead of Python's own socket module. You shouldn't give your modules
the same name as Python's own
le information. Please
post:
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
Thanks,
--
Richie Hind
wing: d:\python23\python d:\python23\socket6.py [Enter]
3. Double-click your .vbs file in Windows Explorer.
Now what does the python Command Prompt say? By your description above,
it sounds like it disappears, but that ought to be impossible.
--
Richie Hindle
[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
[Alan]
> SpamBayes has won the Personal Computer World (pcw.co.uk) Editors Choice
> award for anti-spam software
Yay! Do we get one of those cheesy medals to put on our website? 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
iles:
C:\> d:
D:\> cd \python23
D:\> python d:\python23\socket6.py > out.txt 2> err.txt
Does anything appear in d:\python23\out.txt or d:\python23\err.txt?
[Dennis]
> I'd be tempted to blame the VBS script then...
n00m, can you post the vbs?
--
Richie Hindle
[EMAI
[Miklos]
> The ring of the friendly serpent in business suite: Python, Zope, Plone
> http://www.jegenye.com/
Did you mean "business suit"?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
om the point
of view of both readers and announcers).
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
;t work at the
interactive prompt, only in a real source file.)
(The fact that I felt obliged to add the first paragraph on that page is
the funniest part of the whole thing. I really did have people genuinely
thanking me for the module, asking for features, asking for help with
using it, and so on
[Philip]
> For that matter I would find implementing the classical algorithms far
> easier if python had 'goto'
I can't believe it - first a request for COMEFROM and now one for GOTO,
both on the same day. I should have put http://entrian.com/goto/ under a
commercial lice
ting several invites per second. Shame it's written in PHP 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
http://sf.net/tracker/?func=detail&atid=305470&aid=643835&group_id=5470
8-)
[John]
> from goto.py ( http://entrian.com/goto/ ):
> .# Label: "label .x" XXX Computed labels.
>
> :-)
Yay! I've been waiting nearly a year for someone to spot that. 8-)
-
[vic]
> I'm doing some evil things in Python and I would find it useful to
> determine which class a method is bound to when I'm given a method
> pointer.
Here you go:
>>> class Foo:
... def bar(self):
... pass
...
>>> Foo.bar.im_class
>>&
ill do what you are asking for, independent of Python and py2exe
> and everything else. Standalone single-file packagers.
InnoSetup is the most popular free single-file-installer generator for
Windows. NSIS is probably second.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailm
f ps - thanks for the education!
I learn something valuable from comp.lang.python every week, and most of
it has nothing to do with Python. 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Martin]
> I'd like to encourage feedback on whether the Windows installer works
> for people.
It worked fine for me, upgrading from 2.4 on XPsp2.
The only glitch was that it hung for 30 seconds between hitting Next on
the directory-choosing page and the feature-choosing page.
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
t; in the Add/Remove list, and no other Python
2.4 entries (apart from the likes of "Python 2.4 ctypes-0.9.2") but
that's to be expected. ]
Thanks for looking into this, and sorry to take up your time with
something that boils down to user error.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
#x27;ve copied the new python24.dll into
C:\python24, and everything now thinks it's 2.4.1c1. Sorry about that.
(I wish I could remember why I'd copied the DLL, but I can't. I'd like to
think there was a good reason. 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
rdcopy manual - I find the
electronic one easier to use.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
hen that's no problem.
(I'd briefly considered doing this myself, until I found your site.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Keith]
> Sigh, this reminds me of a discussion I had at my work once... It seems
> to write optimal Python code one must understand various probabilites of
> your data, and code according to the likely scenario. 8-)
s/Python //g
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.p
great tool.
I had to hard-code a username - does it require you to use HTTP
authentication before it will work? If so, it would be good if you
mentioned that in the documentation.
It also erased my HTML file when I tried to save my changes. 8-) I'll
try to track that one down if I get the
r Windows machine being up for
longer than 2^32 ms (about 49 days), GetTickCount() will wrap back to
zero.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Michael / Fuzzyman]
> http://www.voidspace.org.uk/atlantibots/pythonutils.html#testenv
I've seen this announcement four times now - I don't whether you're seeing
problems with it, but it's definitely reaching the mailing list.
--
Richie Hindle
[EMAIL PROTECTED]
--
demo
code at runtime, and compare the behaviour of your modified version with
the original, all without leaving the demo - fantastic! Huge thanks to
whoever did that.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
the former.)
the-last-haven-of-civilisation-on-the-net-is-under-threat-ly yrs,
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
;>> x
[]
>>> type(x)
>>>
with-thanks-to-Gordon-McMillan-ly y'rs,
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Michael]
> from itertools import repeat
> for feet in [3,3,2,2,3]:
> print " ".join("DA-DA-DUM"
> for dummy in [None]
> for foot in repeat("metric", feet))
Spectacular! +1 QOTW
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
d get_s(short* s);
void f()
{
int i;/* An integer to do something /*
short s; /* A short to do something */
get_s(&s);
/* Do something with s */
}
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
khead coders ... fuckheads ...
> you fucking asses.
> paypal me a hundred dollars and i'll rewrite the whole re doc in a few
> hours.
Can we paypal you a hundred dollars to leave us alone? I'll pledge $10.
Are there another nine people here who'll do the same?
--
Richi
d+Fractal+Landscapes%22&hl=en
or via this tinyurl:
http://tinyurl.com/6ugnk
(Search within that page for the phrase "Music and Fractal Landscapes".
Or Google for it, which is how I found the link.)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
d announced here on April 18th.
[Steve]
> I'll have to take your word for that.
Xah is right - I have a copy here of his message of 18th April, saying "i
have rewrote the Python's re module documentation.".
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Steve]
> Since Python is Turing-complete
Is there some equivalent of Godwin's Law that we can invoke at this
point? 8-)
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
the user has typed a newline? I'd ditch that
code and do it at the server end:
expr = expr[4:].strip()
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[David]
> I'm trying to write something with the same brevity
> as perl's one-liner
>
> eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift;
import sys, re
for arg in sys.argv[1:]:
if re.match(r'\w+=.*', arg):
exible ways. You can still use the
Windows key as a modifier (as in Windows+E for Explorer).
No affiliation other than as a happy customer.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
leaves us with one
> thing, we may have gotten a string that used \r for newlines
Ah, OK. Your comment talks about DOS - that won't happen on DOS (or
Windows) which uses \r\n. I don't know about the Mac. But the \r\n pair
isn't handled by your code - strip() on the serve
> But can it change "Fn" key mapping?
I don't think so, no. There's no obvious user interface for that, anyway.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
t give those
improvements back to the community. But the Python license allows for this
too, and Python hasn't suffered for it. IMO choosing a BSD license will get
you more users than GPL, and the benefits of that will outweigh the
potential downside.
--
Richie Hindle
[EMAIL PROTECTED]
-
pass
>
> remove_file_type(sysroot, ['.tmp', '.TMP'])
def remove_file_type(target_dir, file_type):
[...]
if os.path.splitext(f)[1].lower() == file_type.lower():
pass
remove_file_type(sysroot, '.tmp')
--
R
arison doesn't hold up.
[1] http://www.linux-m32r.org/lxr/http/source/COPYING
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
module urllib:
unquote(s)
unquote('abc%20def') -> 'abc def'.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[rbt]
> What is the most efficient way to recursively remove files and directories?
shutil.rmtree: http://docs.python.org/lib/module-shutil.html#l2h-2356
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Etayki]
> How do I get SW_MAXIMIZE to be defined?
It's in win32con. Like this:
>>> from win32con import *
>>> SW_MAXIMIZE
3
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
arch?q=ShowWindow+site%3Amsdn.microsoft.com
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Fredrik]
> oops. thought you were using ctypes, not the pythonwin extensions.
Even when I'm using ctypes I use win32con for the constants, unless
there's some special reason why I need the code to be independent of
pywin32.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://ma
mpare these lits and generate a third list after
> comparison
>
> list3 would be ["apple", "banana","grape","orange", "pear"]
Use sets:
>>> from sets import Set as set # For compatibility with Python 2.3
>>> one = ["app
d in english, but in french it's (well - it
> was last time I used MS Word, which is quite some times ago???) "fusion
> de documents".
"Mail Merge"?
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ict.dtd";>
Test
http://somewhere.com?a=1&b=2";>link
saying "cannot generate system identifier for general entity "b" [...] The
most common cause of this error is unencoded ampersands in URLs".
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[Johhny]
> I am trying to get the user that is running the scripts uid, I have had
> a look at the pwd module and it does not appear to offer that
> functionality. Is there any way within python to get that information ?
It's in the 'os' module:
>>> import o
[Antal]
> is there something wrong with django's website (djangoproject.com)
> or I have problems?
> It looks ugly, the css files can't be found, I even cannot download
> the source from there.
It's broken for me too, so it's not a problem at your end.
--
#x27;, '__reduce_ex__', '__repr__',
'__setattr__', '__str__']
>>> class C(object): pass
...
>>> c = C()
>>> dir(c)
['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__
1 - 100 of 140 matches
Mail list logo