Re: Why doesn't Python remember the initial directory?

2012-08-21 Thread John Roth
at the __file__ attribute. You need to be a bit careful with this; the import machinery was rewritten for the upcoming 3.3 release, and there were several changes to the module information. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: the meaning of r’.......‘

2012-07-23 Thread John Roth
On Monday, July 23, 2012 1:59:42 AM UTC-6, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie lt;levinie...@gmail.comgt; wrote: gt; the meaning of r’...‘? It#39;s a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Chris Angelico Since this

Re: Py3.3 unicode literal and input()

2012-06-18 Thread John Roth
()). It poses the same security risk: acting on unchecked user data. John Roth jmf -- http://mail.python.org/mailman/listinfo/python-list

Re: why () is () and [] is [] work in other way?

2012-04-22 Thread John Roth
and cannot be assigned to in the 3.x series. They weren't locked down in the 2.x series when they were introduced because of backward compatibility. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Just curious: why is /usr/bin/python not a symlink?

2012-02-24 Thread John Roth
that. John Roth -- http://mail.python.org/mailman/listinfo/python-list

[issue13915] Update Tutorial 6.1.3 for PEP 3145

2012-02-03 Thread John Roth
John Roth johnro...@gmail.com added the comment: I apologize for not submitting this in patch format, but I don't have a development system available. I suggest replacing the entire 6.1.3 section with: To speed up loading modules, Python caches the compiled version of each module

Re: Disable use of pyc file with no matching py file

2012-02-01 Thread John Roth
On Jan 31, 4:43 pm, Terry Reedy tjre...@udel.edu wrote: On 1/31/2012 3:20 PM, John Roth wrote: On Jan 30, 3:43 pm, Terry Reedytjre...@udel.edu  wrote: On 1/30/2012 4:30 PM, Roy Smith wrote: Every so often (typically when refactoring), I'll remove a .py file and forget to remove

Re: Disable use of pyc file with no matching py file

2012-01-31 Thread John Roth
On Jan 30, 3:43 pm, Terry Reedy tjre...@udel.edu wrote: On 1/30/2012 4:30 PM, Roy Smith wrote: Every so often (typically when refactoring), I'll remove a .py file and forget to remove the corresponding .pyc file.  If I then import the module, python finds the orphaned .pyc and happily

Re: Design Pattern and Python: Any book recommendation? Your view?

2011-11-04 Thread John Roth
for, and what it isn't good for. That is, as another poster says, language agnostic. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting \ in regular expressions

2011-10-27 Thread John Roth
. -- DaveA Dave's answer is excellent background. I've snipped everything except the part I want to emphasize, which is to use raw strings. They were put into Python specifically for your problem: that is, how to avoid the double and triple backslashes while writing regexes. John Roth -- http

Re: Why do class methods always need 'self' as the first parameter?

2011-09-02 Thread John Roth
On Sep 1, 8:26 am, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Sep 1, 2011 at 6:45 AM, John Roth johnro...@gmail.com wrote: I personally consider this to be a wart. Some time ago I did an implementation analysis. The gist is that, if self and cls were made special variables that returned

Re: Why do class methods always need 'self' as the first parameter?

2011-09-02 Thread John Roth
On Sep 2, 2:30 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Sep 2, 2011 at 11:51 AM, John Roth johnro...@gmail.com wrote: I don't see how you could get rid of the wrappers.  Methods would still need to be bound, somehow, so that code like this will work: methods = {} for obj

Re: Why do class methods always need 'self' as the first parameter?

2011-09-01 Thread John Roth
appropriately you could get rid of all of the wrappers and the attendant run-time overhead. I've never published the analysis because that train has already left the shed. The earliest it could be considered would be 4.0, which isn't even on the horizon. John Roth -- http://mail.python.org/mailman

Re: Only Bytecode, No .py Files

2011-07-29 Thread John Roth
On Jul 27, 8:56 am, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 27.07.2011 14:18 schrieb John Roth: Two comments. First, your trace isn't showing attempts to open .py files, it's showing attempts to open the Curses library in the bash

Re: Only Bytecode, No .py Files

2011-07-27 Thread John Roth
causing the failing open. Second, the audit program is an idiot. There are lots of programs which use the easier to ask forgiveness pattern and test for the existence of optional files by trying to open them. This may be what Bash is doing. John Roth -- http://mail.python.org/mailman/listinfo

Re: ActivePython: multiple versions on OSX?

2011-07-26 Thread John Roth
to look at PEP 394: http://www.python.org/dev/peps/pep-0394/ It can simplify writing scripts which select the version you want. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: vertical ordering of functions

2011-05-04 Thread John Roth
to have the definition before the use. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Feature suggestion -- return if true

2011-04-12 Thread John Roth
. Following on with this idea, loop control would be more of a breakif or continueif statement. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: running Python2 Python3 parallel concurrent

2011-03-31 Thread John Roth
at doing the same thing for Windows. Regards, John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: side by side python

2011-03-23 Thread John Roth
, you can use Python2 for scripts that require 2.7, and Python3 for scripts that require 3.2, and they'll eventually be portable to other systems. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: I found some very odd behaviour in Python's very basic types

2011-03-10 Thread John Roth
are handled during compilation; the built-in types are run-time objects. Python is not a language where a script can change compile-time behavior. Doing that would make it a very different language, and would put it into a very different niche in the language ecology. John Roth -- http

Re: Function Point Analysis (FPA) - Equivalent lines of code of Python

2010-09-10 Thread John Roth
that is going to be pretty bogus. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: What the \xc2\xa0 ?!!

2010-09-07 Thread John Roth
it. As it turns out, its unicode hex value is A0, which is indeed a non-breaking space. This is probably as good as any page: http://en.wikipedia.org/wiki/UTF-8 John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Overload print

2010-08-26 Thread John Roth
for a class. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Beyond the moratorium

2010-08-12 Thread John Roth
software is a dead end.” —Mark | _o__)                                                    Pilgrim, 2006 | Ben Finney You might also want to look at PEP 3152, which was just posted. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Go is Python-like article.

2010-05-21 Thread John Roth
haven't a clue how anyone can think it's similar to Python. Or Java, for that matter. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Usable street address parser in Python?

2010-04-18 Thread John Roth
that direct marketing files can be cleansed to USPS standards. That said, I don't see any reason why any of the examples in your first group should be misparsed by a competent parser. Sorry I don't have any real help for you. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Docstrings considered too complicated

2010-02-25 Thread John Roth
. John Roth -- http://mail.python.org/mailman/listinfo/python-list

PEP 3147 - new .pyc format

2010-01-30 Thread John Roth
like it, but I think it needs a bit more work. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: power of explicit self?

2009-12-12 Thread John Roth
for invoking a method where the object is inserted at the beginning of the parameter list. IIRC, that's done by wrapping the function object. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Go versus Brand X

2009-11-21 Thread John Roth
) of the warts removed and some more modern features added. Brought to you by the same people who brought you C and Unix all those years ago. The use of the Plan 9 toolchain is not a coincidence. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: 2to3 does not fix FileType from types Module; no replacement?

2009-03-18 Thread John Roth
). If you're inheriting form it, I suggest you look at the io module's classes. Nontheless, a warning would be helpful, possibly with some doc. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: English-like Python

2009-01-16 Thread John Roth
come up lacking big-time. It does a good job in a single domain, but try to build something that crosses domains and nothing works. There isn't a good alternative in sight John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido's new method definition idea

2008-12-06 Thread John Roth
the internal wrappers vanish as well. That makes problems for anyone who is looking through __dict__ to find particular kinds of method. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: what should we use instead of the 'new' module?

2008-11-13 Thread John Roth
, an instance method in a class is simply the function object. Static and class methods require wrappers, but those are both built-in functions and they also have decorators. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: rspec for python

2008-08-25 Thread John Roth
and similar external build DSLs. You can see the difference in fluency. John Roth Python FIT -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: Python global scope

2008-07-15 Thread John Roth
amount of confusion. It also seems like it would be most useful in large, poorly structured methods, which is exactly the wrong way to go. Finally, as Gerhard Haring has said, it's backward incompatible, so the window for considering it has past: the 3.x series is pretty much frozen. John Roth

Re: Mutually referencing imports -- impossible?

2008-07-13 Thread John Roth
situation, it might be a whole lot easier to extract a common superclass that both of your classes could inherit from. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 and removal of the 'string' module

2008-07-11 Thread John Roth
in PEP 3008. PEP 361 not only gives the schedule but it also gives a lot of detail on 3.0 features backported to 2.6 and incompatible features that raise warnings in 3.0 PEP 3000, PEP 3100 and PEP 3099 are also well worth reviewing. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make a function associated with a class?

2008-07-01 Thread John Roth
, check and if it has the method call it with the operands reversed. Then if it isn't in either, you can look the actual implementation method up in a table. When all else fails, raise a type error. HTH John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest: Calling tests in liner number order

2008-05-25 Thread John Roth
/ ) or a note in the documentation with a caveat that it's not good practice, but it may be useful in some circumstances. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest: Calling tests in liner number order

2008-05-23 Thread John Roth
dependencies. Does the following patch has a chance of being introduced in the standard python distribution? I certainly hope not! John Roth Python FIT -- http://mail.python.org/mailman/listinfo/python-list

Re: Idea for P3K

2008-05-07 Thread John Roth
not want to see the operator be =. However, if it's not =, then it opens another can of worms, that is, what to call it, and where it fits into the precedence structure. -- might work. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: str(bytes) in Python 3.0

2008-04-12 Thread John Roth
: there is no way of determining what the corresponding string should be. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows XP unicode and escape sequences

2007-12-13 Thread John Roth
the multi-byte form of your characters. You should just send it a unicode object. Second, check the .encoding attribute of the sys.stdout object. Therein lies enlightenment about what the command prompt window will accept. No info on your other problem. John Roth If anyone has any thoughts

Re: coverage.py: Statement coverage is the weakest measure of code coverage

2007-10-29 Thread John Roth
to determine if each piece was actually executed. Turning it into an if-else construct would do this nicely. John Roth -- \Know what I hate most? Rhetorical questions. -- Henry N. Camp | `\ | _o__

Re: coverage.py: Statement coverage is the weakest measure of code coverage

2007-10-28 Thread John Roth
instrumentation statements. Then I could wallow in data to my heart's content. One last little snark: how many of us keep our statement coverage above 95%? Statement coverage may be the weakest form of coverage, but it's also the simplest to handle. John Roth -- http://mail.python.org/mailman/listinfo

Re: Python 3.0 migration plans?

2007-09-29 Thread John Roth
of starting work on converting Python FIT to 3.0, and then they posted PEP 3137. I think it's a real good idea, but it shows that 3.0a1 isn't ready for a conversion effort. http://www.python.org/dev/peps/pep-3137/ I'll look at it again in a year or so. John Roth -- http://mail.python.org

Re: Python 3K or Python 2.9?

2007-09-14 Thread John Roth
for method attributes (those silly @ things), thus showing that unneeded complexity breeds more unneeded complexity. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Too many 'self' in python.That's a big flaw in this language.

2007-06-27 Thread John Roth
to look for. Is there anyone know's how to make the interpreter find instance name space first? Or any way to make programmer's life easier? Guido has already said that this will not change in Python 3.0 See PEP 3099. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread John Roth
. There are definitely anti-virus products that are that clueless. Scream at the vendor. I doubt if it's Idle, but I'm not in the mood to check the code to see if it's doing it right. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread John Roth
translate an arbitrary string into a valid Python identifier would be helpful. It would be even more helpful if it could provide a way of converting untranslatable characters. However, I suspect that the translate (normalize?) routine in the unicode module will do. John Roth Phthon FIT -- http

Re: huge amounts of pure Python code broken by Python 2.5?

2007-02-06 Thread John Roth
is (not quite trivially) easy - just scan the library and put the right coding comment in the front. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: SWIG overhead

2007-02-01 Thread John Roth
line: the c-types module was a lot smaller, in Python, and completely comprehensible. And while I didn't measure the performance, I doubt if it was slower. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-31 Thread John Roth
it separately. John Roth -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-31 Thread John Roth
to the item that they're annotating. Parenthetically, I'd note that adding docstring capabilities to properties was a definite step forward. John Roth Thanks for the feedback from everyone so far, -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread John Roth
is a mandatory tie to function/method syntax. Combined with a convention to identify which annotation belongs to who, it could be a quite useful mechanism. I, for one, have no difficulty with the notion of using someone else's annotations if I can identify them unambiguously. John Roth Python FIT -- http

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread John Roth
, utc1, utc2, utc3, utc4, utc5, utc6, utc7, utc8, utc9, utc10, utc11, utc12, st1, st2, st3, st4, st5, st6, numberOfLabels, dataWord ) = struct.unpack(!H4BH20BHI, strMessage) John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Python language extension mechanism for Python 3000... Worth for PEP?

2006-11-30 Thread John Roth
could be passed to the extension responsible for interpretation of the old code. PEP 3099 - Things that will not change in Python 3000 says: Python will not have programmable syntax. It seems Guido has made up his mind. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread John Roth
, and there will undoubtedly be others. If any of them fly, they'll probably be folded into the base in a few years, and that will diminish the ease of use / large project divide between the two languages. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: other ways to check for type 'function'?

2006-11-02 Thread John Roth
clients. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode support in python

2006-10-20 Thread John Roth
. It's a strange subject which I don't know much about, but that should get you started. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: comparing Unicode and string

2006-10-16 Thread John Roth
to something else, which is why the error message specifies ascii. John Roth TIA for any comments. Luc Saffre -- http://mail.python.org/mailman/listinfo/python-list

Re: (semi-troll): Is Jython development dead?

2006-10-10 Thread John Roth
in the next year or so. John Roth Python FIT - Sloan -- http://mail.python.org/mailman/listinfo/python-list

Re: Names changed to protect the guilty

2006-10-07 Thread John Roth
of writing this is: if key not in schema.elements: whatever... Unless, of course, your code has to run in a Python release earlier than 2.2. But then you wouldn't be testing for the False object anyway. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: string: __iter__()?

2006-10-04 Thread John Roth
it this way. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: was python implemented as a object oriented langage at the beginning ?

2006-10-03 Thread John Roth
they put a method named should directly on object, for good reason. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin regular expressions?

2006-09-30 Thread John Roth
to this? It's more there should be one, and preferably only one, obvious way to do something. John Roth Regards, antoine -- http://mail.python.org/mailman/listinfo/python-list

Re: identifying new not inherited methods

2006-09-27 Thread John Roth
deeper and look at class methods, static methods, descriptors and other stuff, it's a bit more complicated, but not much. John Roth Python FIT -- http://mail.python.org/mailman/listinfo/python-list

Re: Surprise using the 'is' operator

2006-09-26 Thread John Roth
in the Language reference specifies this exactly. John Roth -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode, bytes redux

2006-09-25 Thread John Roth
any reason to expand the language to support a data base product that goes out of its way to make it difficult for developers. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Isn't bool __invert__ behaviour strange?

2006-09-23 Thread John Roth
Saizan wrote: John Roth wrote: The not operator and the bool() builtin produce boolean results. Since bool is a subclass of int, all the integer operations will remain integer operations. This was done for backwards compatability, and is unlikely to change in the 2.x series. Ok

Re: Isn't bool __invert__ behaviour strange?

2006-09-22 Thread John Roth
the integer operations will remain integer operations. This was done for backwards compatability, and is unlikely to change in the 2.x series. I don't remember if this is supposed to change in 3.0. See PEP 3100 and 3099. John Roth John Roth -- http://mail.python.org/mailman/listinfo/python

Re: Are Python's reserved words reserved in places they dont need to be?

2006-09-13 Thread John Roth
NO to that one. Unless Guido changes his mind, and it's very unlikely, the answer is in PEP 3099: Things that will not change in Python 3000. It says: The parser won't be more complex than LL(1). He does not want to start down the slippery slope that leads to certain unnamed languages such as Perl. John Roth

Re: PyPy with a smaller PVM for the full Python?

2006-09-11 Thread John Roth
release, but I have my doubts whether that will reduce the JVM footprint as far as running Jython is concerned. The intention is to reduce the initial footprint for runing the JVM under a browser. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode string handling problem

2006-09-05 Thread John Roth
in guessing the file encoding. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: creating multiply arguments for a method.

2006-08-27 Thread John Roth
clearer. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Questions on unittest behaviour

2006-08-19 Thread John Roth
classes either. Once I get answers to these questions, I can finish off the last few bits of the test suite and have it ready for 2.5-final. Answers? On this list? I'm not even sure you can get coherent opinions here. John Roth Thanks, Collin Winter -- http://mail.python.org/mailman

Re: programming with Python 3000 in mind

2006-08-16 Thread John Roth
compatable or easily handable by a conversion program. The change in the raise statement, for example, can be handled right now. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: For a fast implementation of Python

2006-07-03 Thread John Roth
interpreted would come through. As it is, C++ simply isn't in the speed race for _real_ object oriented programs. I'm not interested enough to follow the current round of the C++ standardization effort. It might be coming, it might not. John Roth Alex -- http://mail.python.org/mailman

Re: Replace Whole Object Through Object Method

2006-07-01 Thread John Roth
in an obfuscated code contest. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs bug

2006-06-29 Thread John Roth
. I'd call it an example of pedantry over usability. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Status of optional static typing in Python?

2006-06-23 Thread John Roth
? Optional static typing is listed as item # 3 in PEP 3100 (Python 3.0 plans). For a timeline, look at PEP 3000. John Roth Thanks very much, Christian -- Christian Convey Computer Scientist, Naval Undersea Warfare Centers Newport, RI (401) 832-6824 [EMAIL PROTECTED] -- http://mail.python.org

Re: Cycles between package imports

2006-06-18 Thread John Roth
in the respective module's namespace. The general rule is: don't do that. It doesn't work, and the hoops you have to go through to force it to work are so complex and bizzare that they're not worth it. Redesign the modules so you don't have cyclic dependencies. John Roth -- http://mail.python.org/mailman

Re: code is data

2006-06-17 Thread John Roth
. And that's one example. I saw the make statement as a breath of fresh air. Then it got shot down for what were, to me, totally trivial reasons. That's a second one. Sigh. John Roth Your thoughts please. Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: Fat and happy Pythonistas (was Re: Replacement for keyword 'global' good idea? ...)

2005-08-06 Thread John Roth
Peter Hansen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Roth wrote: It's not going to happen because the Python community is fat and happy, and is not seeing the competition moving up on the outside. Characteristics that make a great language one day make a mediocre one

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope'or 'module' better?)

2005-08-06 Thread John Roth
way: use the global() built-in function.) John Roth Regards Paolino -- http://mail.python.org/mailman/listinfo/python-list

Re: Fat and happy Pythonistas (was Re: Replacement for keyword 'global' good idea? ...)

2005-08-06 Thread John Roth
Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Roth [EMAIL PROTECTED] writes: However. I see nothing in the existing Python 3000 PEP that does anything other than inspire a yawn. Sure, it's a bunch of cleanup, and some of it is definitely needed. Actually, that's

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-05 Thread John Roth
better idea would be to fix the underlying situation that makes the global statement necessary. I doubt if this is going to happen either, though. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: Art of Unit Testing (Acceptance Tests)

2005-08-03 Thread John Roth
... Unit testing usually does not require expensive setups and teardowns, at least if you're not working on real tangled legacy code. Acceptance testing does. Meanwhile, there's a book and two web sites: fit.c2.com and www.fitnesse.org to look at. John Roth Python Fit -- Christoph -- http

Re: Art of Unit Testing

2005-08-02 Thread John Roth
, and that have absolutely nothing to do with the order in which each elementary test runs. When your customers keep asking for something, and you keep telling them that they really don't want what they're asking for, who's lisening, and who's being stubborn? John Roth Python Fit. -- Björn Lindström [EMAIL

Re: why functions in modules need 'global foo' for integer foo but not dictionary foo?

2005-07-29 Thread John Roth
a global foo statement, while foo[bar] = spam doesn't. The dictionary foo isn't rebound, all that's happening is that its state is being changed (that is, the key and value is being added to the dictionary). HTH John Roth Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: [path-PEP] Path inherits from basestring again

2005-07-23 Thread John Roth
a use for it. John Roth Reinhold -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP on path module for standard library

2005-07-22 Thread John Roth
, and nothing has ever come of it. Starting with an object that actually does something some people want gives the designers a chance to look at things in the wild. John Roth -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP on path module for standard library

2005-07-22 Thread John Roth
Duncan Booth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Roth wrote: You have to start somewhere. One of the lessons that's beginning to seep into people's minds is that getting something that works out there is almost always preferable to (over) design by committee

Re: PEP on path module for standard library

2005-07-22 Thread John Roth
as a sequence of path elements makes perfect sense: I need to descend the directory structure, directory by directory, looking for specific files and types. John Roth Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: goto

2005-07-18 Thread John Roth
to change where an element on the call stack will return to. Don't ask me to debug such a program unless you really want my unvarnished opinion of such stupidity. John Roth Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: Should I use if or try (as a matter of speed)?

2005-07-10 Thread John Roth
method calls to the process. John Roth -- Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: removing list comprehensions in Python 3.0

2005-07-09 Thread John Roth
you need to loop over the contents more than once. I was wondering about what seemed like an ill-concieved rush to make everything an iterator. Iterators are, of course, useful but there are times when you really did want a list. John Roth Raymond Hettinger -- http://mail.python.org

Re: removing list comprehensions in Python 3.0

2005-07-09 Thread John Roth
as much effect as spitting into the wind. Making a piece of functionality less convenient simply to satisfy someone's sense of language esthetics doesn't seem to me, at least, to be a really good idea. John Roth George -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >