Using iterators to write in the structure being iterated through?

2006-07-26 Thread Pierre Thibault
Hello! I am currently trying to port a C++ code to python, and I think I am stuck because of the very different behavior of STL iterators vs python iterators. What I need to do is a simple arithmetic operations on objects I don't know. In C++, the method doing that was a template, and all that was

Re: Using iterators to write in the structure being iterated through?

2006-07-26 Thread Pierre Thibault
On Wed, 26 Jul 2006 18:54:39 +0200, Peter Otten wrote: > Pierre Thibault wrote: > >> Hello! >> >> I am currently trying to port a C++ code to python, and I think I am stuck >> because of the very different behavior of STL iterators vs python >> iter

Re: Using iterators to write in the structure being iterated through?

2006-07-27 Thread Pierre Thibault
On Wed, 26 Jul 2006 16:11:48 -0700, Paddy wrote: > > Paddy wrote: >> Pierre Thibault wrote: >> > Hello! >> > >> > I am currently trying to port a C++ code to python, and I think I am stuck >> > because of the very different behavior of STL iterator

Re: Using iterators to write in the structure being iterated through?

2006-07-27 Thread Pierre Thibault
On Wed, 26 Jul 2006 20:59:12 +0200, Peter Otten wrote: > Pierre Thibault wrote: > >> Hum, this example seems like a special case not really appropriate for my >> needs. Let me make my problem a little more precise. The objects I'll want >> to iterate through will alw

Mutable String

2006-05-03 Thread Pierre Thibault
I would like to know if there are modules offering a mutable version of strings in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Mutable String

2006-05-04 Thread Pierre Thibault
Ok, That will do the job. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Unable to use py2app

2006-05-04 Thread Pierre Thibault
Hello, I am unable to use py2app. I have an error when I try to import it: ImportError: No module named py2app I have installed pyobjc-1.3.7. I am on Mac OS 10.4.6. It does not work. It does not work with python 2.4 and it does not work with python 2.3. Is it working with someone else? -- ht

Python install has difficulties with accented characters in path

2010-07-06 Thread Pierre Thibault
I am building from the source and installing Python on my machine. I added these tests failed: test_doctest test_httpservers test_logging But I moved the Python installation folder on another directory and the failed tests vanished when I tried again. The difference? The new directory does not h

Re: Python install has difficulties with accented characters in path

2010-07-06 Thread Pierre Thibault
On 6 juil, 17:37, Thomas Jollans wrote: > Before filing a bug, best test it with Python 2.7 (just released), 3.1, > and, if possible, py3k trunk. > > I just tried to reproduce this with a current py3k checkout, where it > worked. Probably not an issue in Python 3.x due to the changed unicode > han