[issue15232] maildir parsing can split up messages with 'From ' at the start of a line

2012-06-30 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15232] maildir parsing can split up messages with 'From ' at the start of a line

2012-06-30 Thread Chris Pickett
New submission from Chris Pickett : tar xvfz maildir_bug.tar.gz cd maildir_bug ./bug.sh The attachment contains a maildir with a single message. This message has two body lines beginning with 'From '. When converted to mbox using the maildir2mbox.py, only the second line gets a '>' at the be

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: > The feature freeze applies to all branches. Even when 3.4 starts, the > same rule that has been repeatedly explained for two years will apply: > no new features in distutils. Again, neither Tarek nor I are happy > about that, but it was the d

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: > distutils2 is the place to add such new features. you're not getting it. you've just told both this mingw32 project and also the new effort by ray that they can go fuck themselves, because their efforts are a total waste of time (as far as pyt

[issue15178] Doctest should handle situations when test files are not readable

2012-06-30 Thread R. David Murray
R. David Murray added the comment: The problem with running all the files as things stand is that the errors get lost in the other output. Changing that would definitely be an enhancement. -- ___ Python tracker

[issue1207613] Bottom Scroll Bar

2012-06-30 Thread Roger Serwy
Roger Serwy added the comment: I wrote Horizontal.py as an extension in order to avoid forking IDLE. It should be simple to incorporate a toggling horizontal scroll bar within the EditorWindow class itself. > (Note: it would seem nice to be able to get a list of extensions available > and tho

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-06-30 Thread Chris Jerdonek
New submission from Chris Jerdonek : I had an issue whereby my reST long_description wasn't getting rendered as HTML when uploaded to PyPI. Following the instructions here did not work as-is: http://docs.python.org/dev/distutils/uploading.html#pypi-package-display It seems that PyPI passes --

[issue15191] tkinter convenience dialogs don't use themed widgets

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It has been agreed that IDLE could assume tk8.5 (or possibly 8.4 + tile extension) and use themed widgets (though it is not yet) and not run otherwise. Further discussion would be needed to do the same for tkinter, but maybe by 3.4 that might be reasonable.

[issue15189] tkinter.messagebox does not use the application's icon

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is not clear to me what change your are proposing. -- nosy: +gpolo, terry.reedy type: -> enhancement versions: +Python 3.4 -Python 3.2 ___ Python tracker _

[issue15180] Cryptic traceback from os.path.join when mixing str & bytes

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This strikes me as a bugfix that does not get backported because code might depend on the bug. If the policy for exception messages, such as it is, documented somewhere? -- nosy: +terry.reedy ___ Python tracker

[issue15178] Doctest should handle situations when test files are not readable

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failure modes tend to get less attention that successful behavior. If I wrote a program that used doctest/unittest to test multiple files, I should like it to run an many as possible. If a filename is bad, print name as usual, say 'aborted', and '0/0 tests' r

[issue15158] Add support for multi-character delimiters in csv

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you read "Unfortunately, delimiter is represented by a character in C." in one of the answers? If so, this should be rejected. For the posted problem, I added the following. >>> list(s[1:-1] for s in '"1234"||"abcd"||"a1s1"'.split('||')) ['1234', 'abcd',

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Does anyone know why watchexp was put there in the first place? http://speleotrove.com/decimal/daops.html#refquant If no motivation for this can be found, I agree with Mark that it should be deprecated and removed. --

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I concur with rejecting this for the reasons that Mark mentioned. -- nosy: +rhettinger ___ Python tracker ___

[issue15230] runpy.run_path broken: Breaks scoping; pollutes sys.modules; doesn't set __package__

2012-06-30 Thread Benjamin S Wolf
New submission from Benjamin S Wolf : (Python 3.2.3) 1. After discarding the module run_path used to run the code in, all references to variables from local scopes (even if they are references to global variables) are bound to None, preventing any code in functions from running properly. /tm

[issue15141] IDLE horizontal scroll bar missing (Win-XPsp3)

2012-06-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> Bottom Scroll Bar ___ Python tracker ___ _

[issue1207613] Bottom Scroll Bar

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: #15141, which I will close as a duplicate, makes the same request (for the edit window). Roger Serwy notes that his extension package http://idlex.sourceforge.net/extensions.html has horizontal.py, which does what is requested. He is willing for that (or other

[issue15194] libffi-3.0.11 update

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fe974b8056c by doko in branch 'default': - Issue #15194: check in the missing m4/ax_append_flag.m4 file. http://hg.python.org/cpython/rev/6fe974b8056c -- ___ Python tracker

[issue15034] Devguide should document best practices for stdlib exceptions

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Raymond that this, especially super() is not tutorial material. I agree with David that we need something somewhere else. Just today a commit was pushed about IOException subclasses causing problems because they have an __init__ but don't call su

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-06-30 Thread Daniel Lenski
Daniel Lenski added the comment: Davide, the @contextlib.contextmanager decorator effectively wraps the yield statement in the necessary glue so that everything prior to the yield statement occurs in the __enter__() method of the contextmanager, while everything subsequent occurs in the __exit__

[issue15194] libffi-3.0.11 update

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 989efaab9525 by doko in branch 'default': - Issue #15194: check in the missing m4/ax_check_compile_flag.m4 file. http://hg.python.org/cpython/rev/989efaab9525 -- ___ Python tracker

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7955d769fdf5 by doko in branch 'default': - Issue #14330: Don't derive the include and library search dirs http://hg.python.org/cpython/rev/7955d769fdf5 -- ___ Python tracker

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: I'd be happy to see watchexp deprecated. It feels like a leftover implementation artefact; its behaviour isn't properly defined anywhere, and as far as I can tell it has only a single testcase. -- ___ Python trac

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Stefan Krah
Stefan Krah added the comment: Ping. We have to decide if we need watchexp in _decimal. I've left it out so far since all I can gather from the docs is that it somehow behaves like _rescale. Can we deprecate it and replace it by a proper rescale? -- nosy: +georg.brandl ___

[issue15229] stringification of subclasses of OSError can cause crash

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15229] stringification of subclasses of OSError can cause crash

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1cbab581bf1e by Antoine Pitrou in branch 'default': Issue #15229: An OSError subclass whose __init__ doesn't call back http://hg.python.org/cpython/rev/1cbab581bf1e -- nosy: +python-dev ___ Python tracke

[issue15229] stringification of subclasses of OSError can cause crash

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a quick patch (needs a test): diff --git a/Objects/exceptions.c b/Objects/exceptions.c --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -834,6 +834,7 @@ oserror_init(PyOSErrorObject *self, PyOb #endif /* Steals the reference to args */ +

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: now renamed, add added the news entry -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86ac09f118be by doko in branch 'default': - Issue #14330: For cross builds, don't use host python, use host search paths http://hg.python.org/cpython/rev/86ac09f118be -- ___ Python tracker

[issue15229] stringification of subclasses of OSError can cause crash

2012-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue15229] stringification of subclasses of OSError can cause crash

2012-06-30 Thread Richard Oudkerk
New submission from Richard Oudkerk : If you subclass OSError without calling OSError.__init__() then you can get a crash. For example Python 3.3.0b1 (default:cfbe51e66749, Jun 30 2012, 20:50:54) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for m

[issue15228] os.utime() docs not clear on behavior on nonexistant files

2012-06-30 Thread Daniel Grace
New submission from Daniel Grace : The documentation for os.utime() at http://docs.python.org/py3k/library/os.html#os.utime states: "Set the access and modified times of the file specified by path. [...] The effect is similar to running the Unix program touch on the path.)" Unlike 'touch', os

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Roumen Petrov
Roumen Petrov added the comment: Hi Mattias , I have ready to upload patches for 3.3.30b1 but after recent changes I will postpone upload . Part of already uploaded patch cover cygwin native build . For instance a) --enable-new-dtags is only for elf binaries. b) use of libpython$(LDVERSION),

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-30 Thread Ian Bell
Ian Bell added the comment: I had issues with a class that I wrote myself. It is a rather involved data structure with all kinds of interesting things going on. Unfortunately I cannot put together a minimal working example that will cause a Python hang. -- _

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Roumen Petrov
Roumen Petrov added the comment: Eric. please could could you revert PEP 405 as distutils is frozen or step down as It seems to me you don't flow distutils evolution. -- ___ Python tracker

[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-06-30 Thread Stefan Krah
Stefan Krah added the comment: Did the Windows XP-4 bot start failing after 334ff92a8483 ? The logs don't go back very far: http://buildbot.python.org/all/builders/x86%20XP-4%203.2 -- ___ Python tracker

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: What type of object did you try to send, and how can the problem be reproduced? There are plenty of types which don't support pickling, and where pickling only succeeds in producing invalid data which cannot be successfully unpickled. The exception raised w

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roumen Petrov
Roumen Petrov added the comment: Matthias I cannot follow all you questions as I'm on vacation so briefly: a) ac_cv_thread is type correct one is with'p' b) ncurses NCURSES_INTERNALS reported again in issue 14598 NCURSES_OPAQUE - i don't have time to explain all details but it could be reprod

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Éric Araujo
Éric Araujo added the comment: > Not sure if they will go into 3.3, because there seem to be non-trivial > changes for in Lib/distutils. The feature freeze applies to all branches. Even when 3.4 starts, the same rule that has been repeatedly explained for two years will apply: no new feature

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Éric Araujo
Éric Araujo added the comment: +if "_PROJECT_BASE" in os.environ: Can you use _PYTHON_PROJECT_BASE here? Thanks. (BTW it would be nice if you could mark the bugs for which you did commits as closed+fixed+committed.) -- ___ Python tracker

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: the cross build support is now updated for 3.3. so the mingw32 patches need an update. Not sure if they will go into 3.3, because there seem to be non-trivial changes for in Lib/distutils. Other self-contained changes probably should still go into 3.3. -

[issue3754] cross-compilation support for python build

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: Roumen, I would like to close this issue. Please could you file separate issues for the remaining bits? - the thread/pthread configure issue - the generation of the Setup / pyconfig.h files? -- ___ Python tracke

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: applied -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfbe51e66749 by doko in branch 'default': - Issue #14330: For cross builds, don't use host python, use host search paths http://hg.python.org/cpython/rev/cfbe51e66749 -- ___ Python tracker

[issue3754] cross-compilation support for python build

2012-06-30 Thread Ray Donnelly
Ray Donnelly added the comment: NCURSES_INTERNALS stuff appears to be redundant: Mac OS X curses.h, Linux curses.h and Windows PDCurses.h don't reference it, nor does the Python 3.3.0b1 source code. Of course, I haven't checked any other systems. However: see http://bugs.python.org/issue1459

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: PYTHON_BUILD_HOST_PLATFORM is confusing/misleading. I'll use _PYTHON_HOST_PLATFORM (with the leading underscore to mark it somehow internal). -- ___ Python tracker __

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, I'm closing this as rejected. Some responses: > I don't think that complexity or specialisation should matter. Well, Python's supposed to be a general-purpose language; range objects *are* generally useful for all sorts of tasks, but it's far from cle

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Éric Araujo
Éric Araujo added the comment: Patch looks okay as it contains no important changes to distutils, the compilers or any big part; it’s the sort of changes that have been accepted to fix Mac issue or support multiarch on Debian. I would prefer safer names for environment variables though, for

[issue15222] mailbox.mbox writes without empty line after each message

2012-06-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: I'm afraid that's not enough details to do any fixing. I would need a concrete way to reproduce the issue. -- status: open -> pending ___ Python tracker _

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-30 Thread Yclept Nemo
Yclept Nemo added the comment: >> None of those are specific to arithmetic progressions (i.e., range-like >> lists / sets), as far as I can tell. Does this (the data-type involved) really matter? >> I could see more use for general list-intersection functionality. The way to implement generi

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12a56a349af2 by doko in branch 'default': - Issue #3754: Fix /dev/ptmx, /dev/ptc file checks for cross builds, http://hg.python.org/cpython/rev/12a56a349af2 -- ___ Python tracker

[issue3754] cross-compilation support for python build

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: the ncurses/_flags changes seem to be unrelated. please open a separate issue. -- ___ Python tracker ___ ___

[issue15170] Fix 64-bit building for buildbot scripts (2.7)

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97445ca895d5 by Stefan Krah in branch '2.7': Issue #15170: Quote the variable that expands to the current directory. http://hg.python.org/cpython/rev/97445ca895d5 -- ___ Python tracker

[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 177f93f0f5b9 by Stefan Krah in branch '3.2': Issue #15171: Quote the variable that expands to the current directory. http://hg.python.org/cpython/rev/177f93f0f5b9 -- ___ Python tracker

[issue3871] cross and native build of python for mingw32 with packaging

2012-06-30 Thread Éric Araujo
Éric Araujo added the comment: > I thought that the distutils-is-frozen rule was only for Python 2.x > and that they would be allowed for 3.x? Is this not true? It is not. The normal rule is that stable versions (like 2.7) get only bug fixes while new features go only to the development versio

[issue15216] Support setting the encoding on a text stream after creation

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would a "set_encoding" method be Pythonic? I would've preferred an > "encoding" property which flushes the output when it's changed. I would prefer to have a method. The side-effect is too violent to be hidden behind a property. Besides, you want to set encod

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset b285ec79e5de by Matthias Klose in branch 'default': previous patch needs patch from issue #14330 http://hg.python.org/cpython/rev/b285ec79e5de -- nosy: +python-dev ___ Python tracker

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6e99d449bdc by doko in branch 'default': - Issue #3754: Use readelf instead of ldd for the cross build readline check http://hg.python.org/cpython/rev/e6e99d449bdc -- ___ Python tracker

[issue3754] cross-compilation support for python build

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: for the readline ldd check, I'm checking in a patch to use readelf instead of ldd for the cross build. -- ___ Python tracker ___ __

[issue15216] Support setting the encoding on a text stream after creation

2012-06-30 Thread Matthew Barnett
Matthew Barnett added the comment: Would a "set_encoding" method be Pythonic? I would've preferred an "encoding" property which flushes the output when it's changed. -- nosy: +mrabarnett ___ Python tracker __

[issue14591] Value returned by random.random() out of valid range on 64-bit

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6df0b4ed8617 by Mark Dickinson in branch '2.7': Closes #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines. http://hg.python.org/cpython/rev/6df0b4ed8617 -- nosy: +python-dev resolution: -> fixed stage: commit re

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-06-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: Rather than add a NamedTemporaryFile.delete_after() classmethod, would it not be simpler to just add a close_without_unlink() method to NamedTemporaryFile? with NamedTemporaryFile() as f: f.close_without_unlink() with open(f.name,

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Marc, your patches are now committed! -- components: +Library (Lib) resolution: -> fixed stage: -> committed/rejected status: open -> closed type: enhancement -> behavior ___ Python tracker

[issue9239] zipfile: truncating comment can corrupt the zipfile

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks, committed! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9239] zipfile: truncating comment can corrupt the zipfile

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e13c9f99fbae by Antoine Pitrou in branch '3.2': Issue #9239: add tests for modifying zipfile comments in append mode. http://hg.python.org/cpython/rev/e13c9f99fbae New changeset b299b4279e13 by Antoine Pitrou in branch 'default': Issue #9239: add t

[issue1160] Medium size regexp crashes python

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Then the issue may be closed? Well, it's still present in 2.7 and 3.2 (assuming we consider it's important enough to fix). -- ___ Python tracker ___

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0605b34b2de by Antoine Pitrou in branch 'default': Issue #15225: improve error message when hmac is passed a wrong key type. http://hg.python.org/cpython/rev/b0605b34b2de -- nosy: +python-dev ___ Python

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-30 Thread Marc Abramowitz
Changes by Marc Abramowitz : -- type: -> enhancement Added file: http://bugs.python.org/file26220/test_hmac.py.patch ___ Python tracker ___ _

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-30 Thread Marc Abramowitz
Marc Abramowitz added the comment: Updating patch -- Added file: http://bugs.python.org/file26219/hmac.py.patch ___ Python tracker ___ __

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset d158b0a78390 by doko in branch 'default': - Issue #3754: Some unrelated configure.ac cleanups. http://hg.python.org/cpython/rev/d158b0a78390 -- ___ Python tracker

[issue14324] Do not rely on AC_RUN_IFELSE tests in the configury

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 575efae8ec57 by doko in branch 'default': - Issue #14324: use a linker test to check for profiling support http://hg.python.org/cpython/rev/575efae8ec57 -- ___ Python tracker

[issue14324] Do not rely on AC_RUN_IFELSE tests in the configury

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: use a linker test to check for profiling support (derived from the patch in issue #3754. -- Added file: http://bugs.python.org/file26218/profiling.diff ___ Python tracker ___

[issue3754] cross-compilation support for python build

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: some chunks of the python-py3k-20120607-CROSS.patch patch are now checked in. I didn't see any issues with the symlinks, and generating the posix vars, so maybe these bits should be dropped from the patch. remaining issues are: - the readline/ncurses config

[issue3754] cross-compilation support for python build

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: updated the patch in issue #14330. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14330] don't use host python, use host search paths for host compiler

2012-06-30 Thread Matthias Klose
Matthias Klose added the comment: the updated patch addresses: - fix typo mentioned in msg156044 - don't use the host python during build and installation - for include files and libraries, use the search directories provided by gcc, and only fall back to hard coded directories for n

[issue15216] Support setting the encoding on a text stream after creation

2012-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed. However, the current alternatives (based on detach() and fileNo()) are also problematic - using detach() breaks the corresponding sys.__std*__ entry, while using fileNo() means you now have two independent IO stacks using the same underlying descriptor.

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset af15910d2ffb by doko in branch 'default': - Issue #3754: Use AC_PATH_TOOL and AC_CHECK_TOOLS instead of http://hg.python.org/cpython/rev/af15910d2ffb -- ___ Python tracker

[issue15216] Support setting the encoding on a text stream after creation

2012-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The proposal [1] is that TextIOWrapper support a set_encoding() method > that is only supported between creation of the stream and the first > read or write operation. That will be fragile. A bit of prematurate input or output (for whatever reason) and your

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2012-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gpolo, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3754] cross-compilation support for python build

2012-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 56c574a1819a by doko in branch 'default': - Issue #3754, refactor sys.platform / get_platform bits, use a http://hg.python.org/cpython/rev/56c574a1819a -- nosy: +python-dev ___ Python tracker

[issue15226] max( str ) should be fast with PEP 393

2012-06-30 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-06-30 Thread Davide Rizzo
Davide Rizzo added the comment: Daniel, Nick, shouldn't the context manager yield f within a with block? -- nosy: +davide.rizzo ___ Python tracker ___ __

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: > However, the concept of the intersection of ordered sets is commonplace > and implemented in other libraries, for example: None of those are specific to arithmetic progressions (i.e., range-like lists / sets), as far as I can tell. I could see more use for

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy: I'm not sure what you're saying. At the point that str.format() is > producing its error message, it doesn't know as much as %-formatting does > about the original arguments, so it can't produce a similar message. I'm surprised that the code of th