Re: shutil.move has a mind of its own

2005-01-11 Thread Michael Hoffman
? What version of Python are you using? Is it the standard Windows distribution? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050112 while statement

2005-01-13 Thread Michael Hoffman
Xah Lee wrote: # here's a while statement in python. [...] # here's the same code in perl [...] So? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: query python env

2005-01-14 Thread Michael Hoffman
in different directories. What problems are you having? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Python.org, Website of Satan

2005-01-14 Thread Michael Hoffman
: hostname = NONE print hostname, ip_address break -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Python.org, Website of Satan

2005-01-14 Thread Michael Hoffman
Denis S. Otkidach wrote: Certainly, it can be done more efficient: Yes, of course. I should have thought about the logic of my code before posting. But I didn't want to spend any more time on it than I had to. ;-) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: How to del item of a list in loop?

2005-01-16 Thread Michael Hoffman
edification. I would have been considerably less annoyed if you had done that and explained why it is better rather than nitpicking my version. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: List problems in C code ported to Python

2005-01-16 Thread Michael Hoffman
Lucas Raab wrote: Please see both the Python and C code at http://home.earthlink.net/~lvraab. The two files are ENIGMA.C and engima.py If you post a small testcase here you are much more likely to get helped. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: List problems in C code ported to Python

2005-01-16 Thread Michael Hoffman
Michael Hoffman wrote: Paul McGuire wrote: So A == 'a' is true in Python, not true in C. I think you meant: A == A True Er, A == 'A' -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: is there better 32 clock() timing?

2005-01-23 Thread Michael Hoffman
. You could probably get a slight speedup by using from time import clock and then just clock(). -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: What is print? A function?

2005-01-23 Thread Michael Hoffman
is presumably many times). -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Dumb glob question

2005-02-07 Thread Michael Hoffman
list to lst because the former shadows a built-in. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient checksum calculating on lagre files

2005-02-08 Thread Michael Hoffman
as well. subprocess.Popen([sha1sum, .bashrc], stdout=subprocess.PIPE).communicate()[0].split()[0] '5c59906733bf780c446ea290646709a14750eaad' -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: iterators instead of callbacks.

2005-02-08 Thread Michael Hoffman
idea. I'm sure it would happen a lot sooner if you submitted a patch implementing the behavior you want. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-10 Thread Michael Hoffman
]) z = dict((int(x[0]), .join(x[1:])) for x in (y.split() for y in (__doc__ or _).strip().splitlines())); k = [0] + sorted(z.keys()); m = dict((b,a) for a,b in enumerate(k)); l = k[1] def goto(n): global l; l = k[m[n]-1] while l and l = k[-1]: exec z[l]; l = l != k[-1] and k[m[l]+1] -- Michael

Re: pre-check for string-to-number conversion

2005-02-12 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: I know that I can us exceptions, but they don't seem like the cleanest and simplest solution to me. Stop worrying and learn to love exceptions. :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternative to raw_input ?

2005-02-12 Thread Michael Hoffman
Skip Montanaro wrote: How about modifying it to raw_input(Press ENTER to continue ) You want him to just capitalize ENTER in the current message? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: changing __call__ on demand

2005-02-13 Thread Michael Hoffman
of indirection as you suggest. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: changing __call__ on demand

2005-02-13 Thread Michael Hoffman
Alan McIntyre wrote: class test(object): ...def __call1(self): ...print 1 ...__call__ = __call1 Is that what you were looking for? That still only allows him to have one call function per class. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-13 Thread Michael Hoffman
out of the box on MinGW. Now why haven't *you* produced a version of Python that is directly compileable with MinGW? Time's a-wasting. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternative to raw_input ?

2005-02-13 Thread Michael Hoffman
Python's exception handling to create a version that runs on multiple systems though, falling back to another method if msvcrt can't be imported. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: For American numbers

2005-02-13 Thread Michael Hoffman
Nick Coghlan wrote: My mistake - IEC, not ISO :) For all intents and purposes an IEC standard should be as good as an ISO one. They usually develop standards for different areas, or jointly if it is an overlapping area (but ISO/IEC standards are usually referred to as ISO standards). -- Michael

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
Ilias Lazaridis wrote: Michael Hoffman wrote: Can you please point me (and the readers) to this resource? http://www.cygwin.com/ Why don't you solve this problem and produce a patched version of Python that does what you want. I'm not intrested in patching. I'm intrested in a stable environment

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
. Identify what needs to be done and create a patch, and it will be accepted if it is a good patch. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: changing __call__ on demand

2005-02-14 Thread Michael Hoffman
figure out whether this is elegant, or opaque and to be avoided. wink -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
will escape the bulk of the work. But not all of the work. Since you are intent on whining rather than doing the work I'm ignoring this thread now. Good luck. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-14 Thread Michael Hoffman
Erik Bethke wrote: At least I thought this was funny and cool! -Erik Thanks. ;) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] problem: reducing comparison

2005-02-16 Thread Michael Hoffman
Xah Lee wrote: attached below is the Perl documentation that i wrote for a function called reduce, which is really the heart of a larger software. Don't shadow built-ins. Especially for a function name. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't join() call str() on its arguments?

2005-02-16 Thread Michael Hoffman
Fredrik Lundh wrote: I've proposed adding a join built-in that knows about the available string types, and does the right thing for non-string objects. That would be *so* useful. I frequently have to use the .join(map(str, mylist)) idiom, which is a wart. -- Michael Hoffman -- http

Re: Why doesn't join() call str() on its arguments?

2005-02-17 Thread Michael Hoffman
Nick Craig-Wood wrote: Why not have another method to do this? I propose joinany which will join any type of object together, not just strings I think that's what Frederik was proposing. Except that it would be called join and be a built-in (not a str method). -- Michael Hoffman -- http

Re: Why doesn't join() call str() on its arguments?

2005-02-17 Thread Michael Hoffman
Max M wrote: ','.join(map(str, l)) '1,2,3,four' Is this really that hard to do, that you want it in the library? I think it's a sufficiently common use case that having to do that is a wart. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic use of CSV module to skip headers?

2004-12-04 Thread Michael Hoffman
of csv.DictReader to deal with this, so I can just write: for row in tabdelim.DictReader(file(filename)): ... I think this is a lot easier than trying to remember this cumbersome idiom every single time. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Troubleshooting: re.finditer() creates object even when no match found

2004-12-18 Thread Michael Hoffman
Steven Bethard wrote: first, iterable = peek(iterable) I really like this as a general solution to a problem that bothers me occasionally. IMHO it's much better than having UndoFiles or similar things lying about for every use case. Thanks! -- Michael Hoffman -- http://mail.python.org/mailman

Re: BASIC vs Python

2004-12-18 Thread Michael Hoffman
!' xlApp.ActiveWorkbook.ActiveSheet.Cells(1,2).Value = 'Python Rules 2!' xlApp.ActiveWorkbook.Close(SaveChanges=0) xlApp.Quit() del xlApp (stolen from http://www.markcarter.me.uk/computing/python/excel.html) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a good use for lambda

2004-12-20 Thread Michael Hoffman
Max M wrote: Isn't it about time you became xml avare, and changed that to: f/ That makes no sense. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Michael Hoffman
thought the way the implementor dropped it into conversation was non-obnoxious. There could be a valuable lesson here. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Recent infoworld column

2005-01-09 Thread Michael Hoffman
Carlos Ribeiro wrote: When people talk about the heroes of open source, you tend to hear such familiar names as Linus Torvalds, Larry Wall, Brendan Eich, Guido van Rossum, Monty Widenius, Miguel de Icaza, and Rasmus Lerdorf... Of course, I had to look up who Rasmus Lerdorf was... -- Michael

unittest and non-.py files

2005-12-07 Thread Michael Hoffman
do not want. Is there a better solution? And even if there is a better solution, can you please tell me of a way to load the script as a module without generating the polysubc file? No points for telling me to use python -O so I get polysubo instead. wink -- Michael Hoffman -- http

Re: unittest and non-.py files

2005-12-08 Thread Michael Hoffman
[Michael Hoffman] Hi. I am trying to use unittest to run a test suite on some scripts that do not have a .py extension. [Sybren Stuvel] I'd move the functionality of the script into a separate file that does end in .py, and only put the invocation into the .py-less script. That's what I have

Re: type 'slice' is not an acceptable base type

2005-12-20 Thread Michael Hoffman
. It's the basetype flag issue. You could propose a patch to make it subclassable. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: which is more 'pythonic' / 'better' ?

2005-09-12 Thread Michael Hoffman
) to that rule as well. A classic example is writing to a file. Even if you expect this to be impossible, it's best to just create it and trap the exception, thereby avoiding a race condition. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: fully-qualified namespaces?

2005-09-12 Thread Michael Hoffman
on filenames, you can use the imp module in the stdlib. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: fully-qualified namespaces?

2005-09-12 Thread Michael Hoffman
of discomfort ;) ) -- just wanted to make sure that I understood. There are some steps to solve this issue outlined here: http://www.python.org/peps/pep-0328.html But the fix was not included in Python 2.4 as planned. Maybe in Python 2.5? -- Michael Hoffman -- http://mail.python.org/mailman

Re: What XML lib to use?

2005-09-13 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: I have also heard excellent things about ElementTree; I haven't used it myself though (largely because I can't find any resources on doing XML canonicalization with it). ElementTree/cElementTree is really easy to use and Pythonic. -- Michael Hoffman -- http

Re: Windows Python 2.4: Unbuffered flag causes SyntaxError on interactive sessions?

2005-09-13 Thread Michael Hoffman
Worksforme: C:\Python24python.exe -u Python 2.4.1 (#65, May 24 2005, 13:43:04) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. print 'hello' hello Strange that your python build is from 30 March and mine is from 24 May. -- Michael Hoffman

Re: Windows Python 2.4: Unbuffered flag causes SyntaxError on interactive sessions?

2005-09-13 Thread Michael Hoffman
Lonnie Princehouse wrote: Weird. Did you build Python yourself? No. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows Python 2.4: Unbuffered flag causes SyntaxError oninteractive sessions?

2005-09-14 Thread Michael Hoffman
, although it would be nice to have an unbuffered text mode flag too... so if you do this: z = raw_input() zzz Does z contain 'zzz\r'? For me, it just contains 'zzz'. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Property and fset in Python 2.4

2005-09-15 Thread Michael Hoffman
Rob Pawsner wrote: Before I clog up the digest with details and code snippets, does this sound familiar to anyone? It's almost always best to post details and code snippets. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Single type for __builtins__ in Py3.0

2005-09-23 Thread Michael Hoffman
Collin Winter wrote: If possible, I'd like to see this go in before 3.0. +1 -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Overloading __init__ Function overloading

2005-09-30 Thread Michael Hoffman
) This is an example of polymorphism generally, not overloading. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: something like CPAN, PPMs?

2005-05-31 Thread Michael Hoffman
Alex Gittens wrote: I'm new to Python from Perl, and loving it. Has there ever been any discussion of creating a similar resource as CPAN for Python, PyPI. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: optparse.py: FutureWarning error

2005-06-02 Thread Michael Hoffman
chimes in. man python. Search for -W. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: optparse.py: FutureWarning error

2005-06-03 Thread Michael Hoffman
John Machin wrote: Michael Hoffman wrote: Terry Reedy wrote: c) Check to see if Python has a startup option for suppressing warnings As to c) python -h gives a list indicating what I thought, that -W controls warnings, but gives insufficient info for me to use it, and I didn't find any

Re: Writing func_closure?

2005-06-08 Thread Michael Hoffman
: f1( there)\ 'hello there' _f2 = wrap(howdy) f1 = new.function(f1.func_code, f1.func_globals, f1.func_name, f1.func_defaults, _f2.func_closure) f1( there) 'howdy there' Mix-and-match functions! What will they think of next? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo

Re: Writing func_closure?

2005-06-09 Thread Michael Hoffman
probably end up using a less dirty hack :) *Excellent* idea. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Challenge web site

2005-06-09 Thread Michael Hoffman
Andy Leszczynski wrote: http://www.pythonchallenge.com/ anybody get to the level 30? :-) No, I've run out of time. It is fun so far though. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: What language to manipulate text files

2005-06-12 Thread Michael Hoffman
for this sort of text manipulation. The language should run on Windows 98, XP and Linux. Would Python be best, or would a macro-scripting thing like AutoHotKey work? Personally, I'd use Python, but what do you expect when you ask here? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo

Re: Cause for using objects?

2005-06-14 Thread Michael Hoffman
going to *do* something with the return information, then I would say yes. But in that case, don't use a single dict as a return, use objects. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Cause for using objects?

2005-06-15 Thread Michael Hoffman
need to keep the return a single dict 'cause that's what the next step in the process expects. I agree with John Machin, change the next step in the process instead. :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: non OO behaviour of file

2005-06-15 Thread Michael Hoffman
know of. I keep a slightly-more generalized Surrogate class around to deal with this pattern, and then my LineFlusherFile would be a subclass of that. But it's the same thing, really. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Unbound names in __del__

2005-06-17 Thread Michael Hoffman
) def __del__(self): self.close() -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: regarding popen function

2005-06-18 Thread Michael Hoffman
try to use the subprocess module rather than os.popen. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: regarding popen function

2005-06-19 Thread Michael Hoffman
Peter Hansen wrote: Michael, tai64nlocal is a program that converts a special packed timestamp to human-readable form. Thanks Peter. I was asking somewhat rhetorically but I have a love of UNIX arcana and now I know. :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python

Re: Why is there no instancemethod builtin?

2005-06-19 Thread Michael Hoffman
John Roth wrote: you need _both_ isinstance and the types module to do a correct check for any string type: isinstance(fubar, types.StringTypes). That's because both string and unicode are subtypes of one base. But basestring, their base class is a built-in. -- Michael Hoffman -- http

Re: Using print with format to stdout generates unwanted space

2005-06-20 Thread Michael Hoffman
Paul Watson wrote: While printf() does tightly control formatting in C, it does not in Python. There is no printf() in Python. You should not think of print as being a Python version of printf. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Using print with format to stdout generates unwanted space

2005-06-21 Thread Michael Hoffman
to another program, chances are it will not treat spacebackspace as no space at all. I prefer building up a list and doing ' '.join(thelist) in these situations. A much better approach. Or you can use sys.stdout.write() as others have said. -- Michael Hoffman -- http://mail.python.org/mailman

Re: Loop until condition is true

2005-06-22 Thread Michael Hoffman
face. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: how to use more than 1 __init__ constructor in a class ?

2005-06-22 Thread Michael Hoffman
for the example you used, multiple constructors are not needed. This will get you the same result as what I imagine you wanted the first example to do: class myPointClass: def __init__(self, x=0, y=0, z=0): self.x = x self.y = y self.z = z -- Michael Hoffman

Re: PEP ? os.listdir enhancement

2005-06-22 Thread Michael Hoffman
Peter Hansen wrote: Using Jason Orendorff's path module, all this code basically collapses down to this beauty (with your variable path renamed to myPath to avoid a name collision): This has to be the non-stdlib library I use the most. It's a great module. -- Michael Hoffman -- http

Re: Loop until condition is true

2005-06-23 Thread Michael Hoffman
it would break existing code. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Loop until condition is true

2005-06-23 Thread Michael Hoffman
or False, mainly as a compatibility measure for the days before they were built-ins. If you try assigning None, CPython will refuse to compile the module, even if the code where None is assigned is unreachable. If there was ever a good reason to assign to None, I don't know it. -- Michael Hoffman

Re: Loop until condition is true

2005-06-23 Thread Michael Hoffman
Antoon Pardon wrote: Op 2005-06-22, Michael Hoffman schreef [EMAIL PROTECTED]: Remi Villatel wrote: Fredrik Lundh wrote: checking if a logical expression is true by comparing it to True is bad style, and comparing values using is is also bad style. I wrote it this way because, first, it's

Re: Listening for a Keypress (Console, not GUI)

2005-06-23 Thread Michael Hoffman
-check-for-a-keypress-without-blocking -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: super problem

2005-06-25 Thread Michael Hoffman
try to create a self-contained testcase, you will have an easier time figuring where the problem is. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: a dictionary from a list

2005-06-25 Thread Michael Hoffman
a much more convenient literal for a dictionary. And before it was introduced I used this utility function: def mkdict(**kwargs): return kwargs -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-27 Thread Michael Hoffman
Robert Kern wrote: I would like to see the setuptools/PythonEggs/EasyInstall trifecta get more attention and eyeballs. Once it is mature, I think that it will obviate the desire for stdlibification of most of the packages being requested here. Looks pretty cool! -- Michael Hoffman

Re: Set/Get attribute syntatic sugar

2005-06-28 Thread Michael Hoffman
compared to the alternatives above. But that's all the syntactic sugar you need--any more will give you cancer of the semicolon. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

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

2005-06-28 Thread Michael Hoffman
Americans need to know. To be blunt, I have no idea what this has to do with Python. Surely selecting the right forum to use indicates more sophistication and high intelligence than the way one speaks. ;-) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

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

2005-06-28 Thread Michael Hoffman
muldoon wrote: Michael Hoffman wrote: muldoon wrote: Americans consider having a British accent a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the British hear an American accent, does it sound

Re: strange __call__

2005-06-29 Thread Michael Hoffman
is returned from b(). If this is of purely academic interest then the answer is I don't know. :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Set/Get attribute syntatic sugar

2005-06-29 Thread Michael Hoffman
. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

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

2005-06-29 Thread Michael Hoffman
at the beginning. And even those who pronounce it with an H sometimes say an hotel rather than a hotel because it used to be pronounced starting with the vowel! Similarly, the Brits should note that idea does not end in an r and that Eleanor does. -- Michael Hoffman -- http://mail.python.org/mailman

Re: How to compare two directories?

2005-06-30 Thread Michael Hoffman
could ildg wrote: I found dircmp compare only the direct dirs and files, and it will not do anything to the sub-directories. The documentation for dircmp.report_full_closure() disagrees with you. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

No sys.ps2 in IDLE (was Re: question)

2005-07-03 Thread Michael Hoffman
at that), which doesn't use sys.ps2. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: No sys.ps2 in IDLE (was Re: question)

2005-07-03 Thread Michael Hoffman
shisa wrote: What should I do to correct the errors accordingly? What error? IDLE appears to be behaving as designed. Also, please don't top-post--it makes responding to your message in a way that others can understand more difficult. http://en.wikipedia.org/wiki/Top-posting -- Michael

Re: question about raw_input

2005-07-03 Thread Michael Hoffman
here. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: looping over a big file

2005-07-03 Thread Michael Hoffman
testing, but may well be wrong. I don't think it's critical. He has said that open() may be used for things other than files in the future. So if you want to be sure you're opening a file, use file(). wink -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: long int... exception reported with strange traceback location

2005-07-04 Thread Michael Hoffman
* the os.utime() call: import os, sys os.utime(foo_test_file, (0, float(sys.maxint+1))) print hi OverflowError: long int too large to convert to int Looks like a bug. You should report it on the SourceForge tracker. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: readline: edit-and-execute-command

2005-07-05 Thread Michael Hoffman
, this would be very useful. You should submit an RFE on the Sourceforge tracker. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: f*cking re module

2005-07-05 Thread Michael Hoffman
Greg Lindstrom wrote: I hear that Perl 6 is going to have a rewrite of regular expressions; it will be interesting to see what their hard work produces. From what I saw a while ago, it didn't look like it would be any simpler or more elegant. But that was a while ago. -- Michael Hoffman

Re: More On - deepcopy, Tkinter

2005-07-05 Thread Michael Hoffman
applies to you, feel free to ignore it, but you clearly haven't been getting the results from this forum that you expected. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange os.path.exists() behaviour

2005-07-06 Thread Michael Hoffman
Jeff Epler wrote: Here's the bug. You're using Windows. QOTW (speaking as someone who is using Windows right now). -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance/Late Private Binding

2005-07-06 Thread Michael Hoffman
. As for the constructor, just call it __init__, it will avoid confusion with __new__. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2005-07-10 Thread Michael Hoffman
Throne Software wrote: Throne Software has opened up a Python Forum at: http://www.thronesoftware.com/forum/ Join us! Why shouldn't I just stay here? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: **kwargs?

2005-07-13 Thread Michael Hoffman
. The stars are magic, not the names. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Who uses input()? [was Re: question on input]

2005-07-14 Thread Michael Hoffman
this deprecated but Guido disagreed. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML expect in python

2005-07-16 Thread Michael Hoffman
D H wrote: See the mechanize module: http://wwwsearch.sourceforge.net/mechanize/ I second this, a very useful module. I've unfortunately had to change it a little to deal with inevitably bad HTML supplied by web sites. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner question fibonacci

2005-07-17 Thread Michael Hoffman
you are assigning: a1 = b0 b1 = a0 + b0 But when you use separate statements, you are assigning: a1 = b0 b1 = a1 + b0 = b0 + b0 = 2*b0 -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: What does :: mean?

2005-07-21 Thread Michael Hoffman
a list instead of an iterator, list(reversed(live))? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

PEP on path module for standard library

2005-07-21 Thread Michael Hoffman
and scripts than any other third-party module, and I know it will be very helpful when I no longer have to worry about deploying it. Thanks in advance, -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: is this pythonic?

2005-07-21 Thread Michael Hoffman
that is easy to Google, then I would think they were wasting everyone's time. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   >