Re: Build Python, Numpy and Scipy source with Visual Studio 6.0 for windows

2008-09-17 Thread Richie
On Sep 16, 7:03 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Now comes the troubled bit...I now look for similar source code for > > Python extensions Numpy and Scipy but the source code and directories > > are not all obvious. Looks like these are normally built via ot

Re: More like a shell command.

2008-08-06 Thread Richie Hindle
an't achieve what you want without modifying Python's grammar (and turning it into something that isn't Python any more). -- Richie Hindle [EMAIL PROTECTED] Search your Visual Studio projects instantly with Entrian Source Search, our powerful Source Code Search add-in: http

Re: Bug in re.findall?

2008-07-04 Thread Richie Hindle
sole group. > a=ipre.finditer(subnetlist) > >>> a.next().group() > '192.168.100.0' Also correct, because match.group() returns the whole of the matched text. If you wanted just your captured piece, you need this: > >>> a.next().group(1) > '100.' Hope

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:35 am, icarus <[EMAIL PROTECTED]> wrote: > > To the original poster what environment are you running this in? > > Linux. Xubuntu if that matters. > > > When I put your program in notepad and run it from the windows command > > prompt it works. > > yeah yeah

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:21 am, icarus <[EMAIL PROTECTED]> wrote: > > That code works. Maybe you fixed it while you were mailing it =) > > > -- > > -- Guilherme H. Polo Goncalves > > This is weird mate. > I'm using eclipse 3.2 with the pydev plugin. There it loops forever - > from the eclipse console. > Two h

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. > > conditi

Re: urllib2 disable proxy

2008-01-04 Thread Richie Hindle
proxy'] >>> do_stuff_with_urllib2() -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: OPLC purchase period extended

2007-11-28 Thread Richie Hindle
and it's a real shame they've had to limit its availability to North America. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: NUCULAR fielded text searchable indexing

2007-10-10 Thread Richie Hindle
[Paul] > tell us how the software compares to stuff like Lucene or Xapian. +1 -- Richie -- http://mail.python.org/mailman/listinfo/python-list

Re: changes on disk not visible to script ?

2007-10-08 Thread Richie Hindle
[Bruce] > VB programmer!? Thats really harsh.. No offence intended! 8-) -- Richie -- http://mail.python.org/mailman/listinfo/python-list

Re: changes on disk not visible to script ?

2007-10-08 Thread Richie Hindle
[Bruce] > f.close() > cmd = "echo %s | %s"%(argument_file,the_program) Either: you are a VB programmer and you've actually typed "f.close" rather than "f.close()", Or: you meant "type" (or "cat") rather than "echo",

Re: Coming from Perl

2007-09-13 Thread Richie Hindle
e /usr/bin/python is correct for your hosting environment? -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from Perl

2007-09-13 Thread Richie Hindle
s would be that you don't have cgitb in your server environment, or that you have a bogus one. Rearrange things like this: #!/usr/bin/python print "Content-Type: text/html" print import sys sys.stderr = sys.stdout import cgitb; cgitb.enable(display=0, logdir=".") -- Richie

Re: list index()

2007-08-31 Thread Richie Hindle
m the word for something that lives under a bridge. It derives from "trolling for suckers" or "trolling for newbies". -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: strip() 2.4.4

2007-06-21 Thread Richie Hindle
:'016':'AMERICAN SAMOA':'American Samoa' """ f1 = StringIO(DATA) for line in f1: print repr(line.rsplit(':')[4].strip("'")) # repr shows the error # This prints: # # "Afghanistan'\n" # "Albania'\n" # "Algeria'\n" # "American Samoa'\n" # # Do this instead: f1.seek(0) for line in f1: print line.strip().rsplit(':')[4].strip("'") # This prints: # # Afghanistan # Albania # Algeria # American Samoa -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: PyMeld for html templates?

2007-01-22 Thread Richie Hindle
. req.write(str(meld)) ? -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: PyMeld for html templates?

2007-01-19 Thread Richie Hindle
import Meld LAYOUT = """The Title The page information goes here. The real title Here is the info, which would in the real world be read from a file.""" page = Meld(LAYOUT) info = Meld(INFO) page.title = info.title._content page.info = info.info._content print page Is th

Re: PythonTidy

2006-11-30 Thread Richie Hindle
rce encoding > directive for correct interpretation of u"..." strings by Python > interpreter. So is "# vim: set fileencoding=utf-8". Anything matching "coding[:=]\s*([-\w.]+)" on the first or second line counts. > See http://www.python.org/dev/peps/pep

Re: why would anyone use python when java is there?

2006-11-30 Thread Richie Hindle
[Adam] > For the life of me I can't understand why he would troll > comp.lang.python when comp.lang.lisp is there. [Richie] > +1 QOTW! [Paul] > Overruled! ;-) > > Mostly because comp.lang.lisp seems to have become a much better place > to get quotes of

Re: why would anyone use python when java is there?

2006-11-30 Thread Richie Hindle
[Adam] > For the life of me I can't understand why he would troll > comp.lang.python when comp.lang.lisp is there. +1 QOTW! -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: What's going on here?

2006-11-22 Thread Richie Hindle
#x27;, '__reduce_ex__', '__repr__', '__setattr__', '__str__'] >>> class C(object): pass ... >>> c = C() >>> dir(c) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__&#x

Re: [OT] Re: can't open word document after string replacements

2006-10-24 Thread Richie Hindle
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

Re: Django website

2006-09-01 Thread Richie Hindle
[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. --

Re: List match

2006-08-17 Thread Richie Hindle
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

Re: undefined SW_MAXIMIZE for ShowWindow function

2006-07-14 Thread Richie Hindle
[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

Re: undefined SW_MAXIMIZE for ShowWindow function

2006-07-14 Thread Richie Hindle
arch?q=ShowWindow+site%3Amsdn.microsoft.com -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: undefined SW_MAXIMIZE for ShowWindow function

2006-07-14 Thread Richie Hindle
[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

Re: getting current UNIX uid

2006-07-06 Thread Richie Hindle
[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

Re: Having problems with strings in HTML

2006-06-27 Thread Richie Hindle
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

Re: Exception style (was: calling python functions using variables)

2006-05-19 Thread Richie Hindle
hat you expect to fail with the given exception. Try this instead: >>> try: >>> command = getattr(commands, VARIABLE) >>> except AttributeError: >>> print >> sys.stderr, "Unknown command", VARIABLE >>> else: >>> command()

Re: Making all string literals Unicode

2006-05-15 Thread Richie Hindle
[Richie] > is there a switch or an environment variable to > make Python treat all string literals as unicode? [Thomas] > python -U Ah! Thanks. (I see it's deliberately omitted from the documentation because pieces of the standard library don't work with it, which is q

Re: Large Dictionaries

2006-05-15 Thread Richie Hindle
, and memory efficiency. A Judy array is extensible and can scale up to a very large number of elements, bounded only by machine memory." ... "PyJudy arrays are similar to Python dictionaries and sets." -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Making all string literals Unicode

2006-05-15 Thread Richie Hindle
Hi, Am I imagining it, or is there a switch or an environment variable to make Python treat all string literals as unicode? I seem to recall seeing it mentioned somewhere, but now I can't find it anywhere. Thanks, -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/lis

Re: ascii to latin1

2006-05-09 Thread richie
cs and don't live in your base encoding - what happens when a Chinese user searches for a Chinese character? Probably you should just encode(base_encoding, 'ignore'). -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: ascii to latin1

2006-05-09 Thread Richie Hindle
t to "st". NFKD normalization doesn't convert VULGAR FRACTION ONE QUARTER into "1/4" - I wonder whether there's some way to do that? > After all they are called *compatibility* code points. Yes, compatible with what the user types. 8-) -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: ascii to latin1

2006-05-09 Thread Richie Hindle
s) return ''.join([cp for cp in de_str if not unicodedata.category(cp).startswith('M')]) print search_key(u"\xc9coute") Are you using unicode code point \xc9, or is that a byte in some encoding? Which encoding? -- Richie -- http://mail.python.org/mailman/listinfo/python-list

Re: ascii to latin1

2006-05-09 Thread Richie Hindle
use "NFKD" to normalize things like LATIN SMALL LIGATURE FI and subscript/superscript characters as well as diacritics. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython and twisted problem

2006-04-26 Thread Richie Hindle
s to the other (in theory at least 8-) -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: list.clear() missing?!?

2006-04-13 Thread Richie Hindle
[Mystilleef] > Lists should have a clear method. But what's shocking is that > it doesn't seem obvious to others. list.clear() is a whole lot more > readable, intuitive, "flowable" and desirable than [the alternatives] +1 to all of that. -- Richie Hind

Re: HTMLParser fragility

2006-04-07 Thread Richie Hindle
[Richie] > But Tidy fails on huge numbers of real-world HTML pages. [...] > Is there a Python HTML tidier which will do as good a job as a browser? [Walter] > You can also use the HTML parser from libxml2 [Paul] > libxml2 will attempt to parse HTML if asked to [...] See how it fi

Re: HTMLParser fragility

2006-04-05 Thread Richie Hindle
has errors that must be fixed before using HTML Tidy to generate a tidied up version. Is there a Python HTML tidier which will do as good a job as a browser? -- Richie -- http://mail.python.org/mailman/listinfo/python-list

Re: Find similar images using python

2006-03-29 Thread Richie Hindle
[Thomas] > How can I use python to find images that looks quite similar? Have you looked at http://www.imgseek.net/ ? It's an Open Source Python photo collection manager that does exactly what you're asking for. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mai

Re: Pyserial again

2006-03-07 Thread Richie Hindle
; get's garbage collected and deleted. [Steve] > The "ser" name is still bound to the serial object, surely? A piece of that code has been chopped off by someone's newsreader - it's the body of a method, and ser.readline() is the last line of that method. -- Ri

Re: Python V2.4.2 source code

2006-02-06 Thread Richie Hindle
[John] > That particular file doesn't include the implementation files for the core > modules. *Which* particular file? Give us a URL. The source tarball at http://www.python.org/2.4.2/ (full URL http://www.python.org/ftp/python/2.4.2/Python-2.4.2.tgz) contains the full source.

Re: templates

2006-01-31 Thread Richie Hindle
[thakadu] > The method of generation the table rows was exactly the same as > the example in the PyMeld documentation Did you try using toFormatString() to speed it up? See http://www.entrian.com/PyMeld/doco.html -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/li

Re: templates

2006-01-31 Thread Richie Hindle
y invalid, HTML.) Incidentally, I'm changing PyMeld's license from Sleepycat to BSD, making it free for use in closed source projects. (I'll get around to updating the website RSN 8-) -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: file_name_fixer.py

2006-01-25 Thread Richie Hindle
re.match(r'(xx+)\1+$', 'x'*n) finds prime numbers. I'll get me coat. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: recursively removing files and directories

2006-01-16 Thread Richie Hindle
[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

Re: URL 'special character' replacements

2006-01-09 Thread Richie Hindle
module urllib: unquote(s) unquote('abc%20def') -> 'abc def'. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Richie Hindle
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

Re: os.path.splitext() and case sensitivity

2005-12-21 Thread Richie Hindle
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

Re: Which Python web framework is most like Ruby on Rails?

2005-12-21 Thread Richie Hindle
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] -

Re: Disable 'windows key'

2005-12-20 Thread Richie Hindle
> 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

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Richie Hindle
[Richie] > I think it's your JavaScript '\r' processing that's broken. Certainly the > error ("unexpected EOF while parsing") is consistent with having a \r on the > end of the expression. [Mike] > Python doesn't care about the trailing ne

Re: Disable 'windows key'

2005-12-20 Thread Richie Hindle
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

Re: pythonic equivalent of upvar?

2005-12-20 Thread Richie Hindle
[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):

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Richie Hindle
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

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread Richie Hindle
[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

Re: win32com 'catastrophic failure'

2005-12-06 Thread Richie Hindle
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

Re: compare list

2005-11-15 Thread Richie Hindle
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

Re: compare list

2005-11-15 Thread 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&

Re: generate HTML

2005-11-14 Thread Richie Hindle
[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

Re: Goto XY

2005-11-09 Thread Richie Hindle
[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

Re: Accessing a dll from Python

2005-10-20 Thread Richie Hindle
"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".

Re: UI toolkits for Python

2005-10-18 Thread Richie Hindle
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

Re: Jargons of Info Tech industry

2005-10-14 Thread Richie Hindle
s_phishing_defense.html -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-07 Thread Richie Hindle
[Richie] > 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 yourself a grammarian. [Steve] >

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

2005-10-07 Thread Richie Hindle
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

Re: Excel library with unicode support

2005-10-05 Thread Richie Hindle
[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

Re: Reply-To header

2005-10-03 Thread Richie Hindle
[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

Re: Not defined

2005-10-03 Thread Richie Hindle
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

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

2005-09-30 Thread Richie Hindle
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

Re: Google Not Universal Panacea [was: Re: Where to find python c-sources]

2005-09-30 Thread Richie Hindle
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

Re: A rather unpythonic way of doing things

2005-09-29 Thread Richie Hindle
[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] -

Re: A rather unpythonic way of doing things

2005-09-29 Thread Richie Hindle
[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

Re: A quick c.l.p netiquette question

2005-09-29 Thread Richie Hindle
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

Re: A rather unpythonic way of doing things

2005-09-29 Thread Richie Hindle
edia.org/wiki/Greenspun's_Tenth_Rule -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: C#3.0 and lambdas

2005-09-23 Thread Richie Hindle
e "bike shed effect": http://linuxmafia.com/~rick/lexicon.html#bikeshed -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: ANNOUNCEMENT: The ring of the friendly serpent in business suite: Python, Zope, Plone

2005-09-12 Thread Richie Hindle
[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

Re: Code run from IDLE but not via double-clicking on its *.py

2005-09-02 Thread Richie Hindle
[Richie] > Now what does the python Command Prompt say? [n00m] > It says... NOTHING! It just DISAPPEARS! That's the strangest thing I've heard all week. 8-) OK, one more thing to try - redirect the output of Python to some files and see whether anything useful appears in the f

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Richie Hindle
[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

Re: Code run from IDLE but not via double-clicking on its *.py

2005-09-01 Thread Richie Hindle
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

Re: Code run from IDLE but not via double-clicking on its *.py

2005-08-31 Thread Richie Hindle
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

Re: Code run from IDLE but not via double-clicking on its *.py

2005-08-31 Thread Richie Hindle
[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

Re: Does any1 use pcapy module on win32 platforms?

2005-08-26 Thread Richie Hindle
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

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread Richie Hindle
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

Re: Network performance

2005-08-24 Thread Richie Hindle
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

Re: Database of non standard library modules...

2005-08-19 Thread Richie Hindle
[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

Re: .pth files

2005-08-09 Thread Richie Hindle
Xah Lee explode with fury). -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Py: a very dangerous language

2005-08-01 Thread Richie Hindle
[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

Re: Lots of pdf files

2005-07-22 Thread Richie Hindle
or binaries provided you ship the source as well. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Software needed

2005-07-13 Thread Richie Hindle
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] --

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

2005-07-04 Thread Richie Hindle
[Chan] > T can be silent in England too .. > > frui' > cricke' [Stephen] > Both of those words (fruit and cricket) have the letter T sounded. > > Stephen (Nationality: English). Not necessarily - in my native accent they'd be replaced with glottal stops. R

Re: Better console for Windows?

2005-07-04 Thread Richie Hindle
[Richie] > does anyone know of a way to scroll a Command Prompt window using the > keyboard? [Bengt] > Alt-spacebar, e, l, (uparrow/downarrow)*, Esc > (lower case L)--^ ^--does the scrolling. Esc ends the > scrolling mode. [Christos] > Damn! it says Scro

Re: MS Compiler to build Python 2.3 extension

2005-06-30 Thread Richie Hindle
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/

Re: MS Compiler to build Python 2.3 extension

2005-06-29 Thread Richie Hindle
[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

Re: Better console for Windows?

2005-06-28 Thread Richie Hindle
ay to scroll a Command Prompt window using the keyboard? -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: FlashMX and Py2exe doesn't fly...

2005-06-28 Thread Richie Hindle
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

Re: Is there something similar to ?: operator (C/C++) in Python?

2005-06-24 Thread Richie Hindle
[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

Re: Posting a reply to a post in an existing thread

2005-06-09 Thread Richie Hindle
and know that your reply was part of the same thread as the message to which you replied. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >