[issue5149] syntactic sugar: type coercion on pointer assignment

2011-09-02 Thread Meador Inge
Meador Inge added the comment: This is busted for plain old assignment too: Python 3.3.0a0 (default:6374b4ffe00c, Sep 2 2011, 23:50:39) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes import * >>> buff = c

[issue12844] Support more than 255 arguments

2011-09-02 Thread David Benjamin
David Benjamin added the comment: I don't think that patch works. Consider a dict subclass which has overridden update. Or perhaps a list subclass which has overridden addition. It would be quite poor if Python's behavior here w.r.t. which overrides are followed switched as you added more arg

[issue12764] segfault in ctypes.Struct with bad _fields_

2011-09-02 Thread Meador Inge
Meador Inge added the comment: This has been fixed. I verified tip and 2.7. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12890] cgitb displays tags when executed in text mode

2011-09-02 Thread Jeff McNeil
New submission from Jeff McNeil : If cgitb.enable is ran with a logdir set and a format='text' argument, then a trailing message is printed that includes tags. This should only happen if the format requested is HTML. The following tiny script shows the problem: import cgitb cgitb.enable(for

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Ezio Melotti
Ezio Melotti added the comment: If these are the only 3 non-backward compatible features and the nested set one is moved under the NEW flag, I guess the approach might work without having per-feature flags. The "NEW" could be kept for compatibility for regex (if necessary), possibly aliasing

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Matthew Barnett
Matthew Barnett added the comment: So, VERSION0 and VERSION1, with "(?V0)" and "(?V1)" in the pattern? -- ___ Python tracker ___ ___ P

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-02 Thread Ezio Melotti
Ezio Melotti added the comment: Or they are still called UTF-8 but used in combination with different error handlers, like surrogateescape and surrogatepass. The "plain" UTF-* codecs should produce data that can be used for "open interchange", rejecting all the invalid data, both during enco

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Being able to set which behavior you want in a (?XXX) flag at the start of the regex is valuable so that applications that take a regex can support the new syntax automatically when the python version they are running on is updated. The (?XXX) should overr

[issue12889] struct.pack('d'... problem

2011-09-02 Thread Dr . Georg Ströhlein
Dr. Georg Ströhlein added the comment: link is here: http://carolomeetsbarolo.files.wordpress.com/2011/08/double_2_hex.pdf -- ___ Python tracker ___

[issue12889] struct.pack('d'... problem

2011-09-02 Thread Dr . Georg Ströhlein
New submission from Dr. Georg Ströhlein : Hi all, I think there is a long-standing bug (it has made it into books on Google...) in the struct.pack() function, at least if the 'd' format string is selected. On both Win and Ubuntu the string returned for pack('!d',1.2345) is '?\xf3\xc0\x83\x12n

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Vlastimil Brom
Vlastimil Brom added the comment: I'd agree with Steven ( msg143377 ) and others, that there probably shouldn't be a large library-specific set of new tags just for "housekeeping" purposes between re and regex. I would personally prefer, that these tags also be settable in the pattern (?...),

[issue12881] ctypes: segfault with large structure field names

2011-09-02 Thread Meador Inge
Meador Inge added the comment: On Fri, Sep 2, 2011 at 4:26 PM, Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > Certainly the effect of some "alloca" call with a large value, then the stack > overflows. Yeah, I noticed that too. I was actually pretty surprised to

[issue12844] Support more than 255 arguments

2011-09-02 Thread Andreas Stührk
Andreas Stührk added the comment: Attached is a patch that removes the limit and that allows passing an arbitrary number of positional and keyword arguments. Lacks tests for now. -- keywords: +patch nosy: +Trundle Added file: http://bugs.python.org/file23089/issue12844_arbitrary_argume

[issue12850] [PATCH] stm.atomic

2011-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Semi-seriously, _PyEval_ForArminRigoOnly_ /* This function does whatever Armin Rigo wants it to do. He may change it at any time. Do not use it. */ This would let you experiment with the boundary as you will (with review, of course) and relieve us of any oblig

[issue12881] ctypes: segfault with large structure field names

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Certainly the effect of some "alloca" call with a large value, then the stack overflows. -- ___ Python tracker ___ _

[issue12862] ConfigParser does not implement "comments need to be preceded by a whitespace character" correctly

2011-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Daniel, thank you for your report. Indeed, 3.2+ has an updated configparser where we turned off support for inline comments (e.g. comments after option values). This was decided after we discovered how inconsistent it is. Your report shows this decision was the

[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0

2011-09-02 Thread Remi Pointel
Remi Pointel added the comment: > It would be nice if you could find out in which header file fdopendir() is > defined. Hi, fdopendir() is in /usr/include/dirent.h: #if __POSIX_VISIBLE >= 200809 DIR *fdopendir(int); #endif You could find the file dirent.h here: http://www.openbsd.org/cgi-b

[issue12117] Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import

2011-09-02 Thread Brett Cannon
Brett Cannon added the comment: Unless someone cares enough to decorate the tests that should not write the bytecode (I think I have one such decorator in the importlib tests, but I think it is more for other VMs than for this situation) then I wouldn't worry about this. --

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-02 Thread Yves Dorfsman
New submission from Yves Dorfsman : html.parser.HTMLParser.unescape works only with the first 128 entities, it leaves the other ones as they are. -- components: None messages: 143434 nosy: y...@zioup.com priority: normal severity: normal status: open title: html.parser.HTMLParser.unesca

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: > So the codec should allow for both public and private use. IIUC we have (or are planning) codecs that support the private use. They are not called "utf-8" though. -- ___ Python tracker

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ezio, that is a lot of nice work to track down those pieces of the standard. I think the operative phrase in many of those quotes is 'open interchange'. Codecs are also used for private storage. If I use the unassigned or private-use code points in a private

[issue12764] segfault in ctypes.Struct with bad _fields_

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73827c23cdde by Amaury Forgeot d'Arc in branch '2.7': Issue #12764: Fix a crash in ctypes when the name of a Structure field is not http://hg.python.org/cpython/rev/73827c23cdde -- ___ Python tracker

[issue12764] segfault in ctypes.Struct with bad _fields_

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b8acee08283c by Amaury Forgeot d'Arc in branch '3.2': Issue #12764: Fix a crash in ctypes when the name of a Structure field is not http://hg.python.org/cpython/rev/b8acee08283c New changeset 1ed1ea0f4cd8 by Amaury Forgeot d'Arc in branch 'default'

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Sebastian Wiesner
Sebastian Wiesner added the comment: More precisely, the bug is, that 2to3 refactors the "print()" invocation in "test1.py" though it shouldn't because a "print_function" future import is present at the beginning of "test1.py". The cross-check with "test2.py" shows that this is due to the mu

[issue12887] Documenting all SO_* constants in socket module

2011-09-02 Thread Sandro Tosi
New submission from Sandro Tosi : spinning off msg142613 - it would be interesting to have in the socket module documentation also an explanation of all the several SO_ flags available; even a compact table could be ok; or even a link to a remote reference for them. -- assignee: docs@p

[issue12781] Mention SO_REUSEADDR near socket doc examples

2011-09-02 Thread Sandro Tosi
Changes by Sandro Tosi : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12781] Mention SO_REUSEADDR near socket doc examples

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe60689d6a2e by Sandro Tosi in branch '2.7': #12781: Mention SO_REUSEADDR flag near socket examples http://hg.python.org/cpython/rev/fe60689d6a2e New changeset c4588cd2d59a by Sandro Tosi in branch '3.2': #12781: Mention SO_REUSEADDR flag near sock

[issue4153] Unicode HOWTO up to date?

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: Ah, I see: you’re equating “string” with “text string” or “character string”, whereas I read “bytes string” as “finite sequence of bytes”. With this definition, there *are* two string types in Python 3, it’s just that they’re much more divorced than in 2.x. >

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: If import from __future__ is written in multiple lines, then a parser internally used by 2to3 recognizes only the first line. (However Python interpreter properly supports multi-line imports from __future__.) test1.py contains multi-line

[issue4153] Unicode HOWTO up to date?

2011-09-02 Thread Ezio Melotti
Ezio Melotti added the comment: There was some discussion a while ago on python-dev about it. AFAIR the outcome was that using "bytes *strings*" should be avoided because bytes are bytes, and not strings (until they get decoded at least). Using 'string' for both might lead people to think t

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- title: optparse/argparse: provide a simple way to get a programmatically useful list of options -> argparse: provide a simple way to get a programmatically useful list of options versions: +Python 3.3 -Python 3.2 ___ Pyth

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Matthew Barnett
Matthew Barnett added the comment: The least disruptive change would be to have a NEW flag for the new behaviour, as at present, and an OLD flag for the old behaviour. Currently the default is old behaviour, but in the future it will be new behaviour. The differences would be: Old behaviour

[issue1170] shlex have problems with parsing unicode

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Documentation -Library (Lib), Unicode keywords: +easy stage: test needed -> needs patch versions: +Python 2.7 -Python 3.1, Python 3.2 ___ Python tracker _

[issue4153] Unicode HOWTO up to date?

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: > it also removes the usage of 'byte string'. I see you’ve replaced it with “byte object”. I’m -0, as “byte[s] string” is not ambiguous IMO. -- ___ Python tracker __

[issue4153] Unicode HOWTO up to date?

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: > something about Unicode supports in the re module (this probably can > wait after the 'regex' inclusion). I’d prefer documentation for the re module now. -- ___ Python tracker _

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: > 1.) I will have HP-UX ANSI C/C++ Compiler soon. I can recompile using > that compiler later if this is a gcc related thing. On the contrary, Gregory said that gcc should work (it’s what most of us use, I think). > 2.) If I am not using my python to perform any

[issue12875] backport re.compile flags default value documentation

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: +1 to backporting [flags=0]. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: I don’t understand what the bug is. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue12866] Want to submit our Audioop.c patch for 24bit audio

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: Welcome and thanks for your contribution! If I understand correctly, support for 24-bit files would be a new feature for audioop, so our development policy excludes 2.7, a stable release which only gets bug fixes. If you would like to turn your code into a pat

[issue12864] 2to3 creates illegal code on import a.b inside a package

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ _

[issue12863] py32 > Lib > xml.minidom > usage feedback > overrides

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: For general discussion or questions about usage, you are welcome to use mailing lists such as python-list and xml-sig. This tracker is dedicated to bug reports and feature requests, and unless I’m misreading your report contains neither, so I’m closing it. Hav

[issue12860] http client attempts to send a readable object twice

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12862] ConfigParser does not implement "comments need to be preceded by a whitespace character" correctly

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: (Adding 3.x versions because we’ll want to add tests to them.) -- nosy: +eric.araujo, lukasz.langa versions: +Python 3.2, Python 3.3 ___ Python tracker __

[issue12298] Sphinx glitch in library/functions

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: > I agree that all table entries should link to the entry in the same file. This is fixed in 3.2 and 3.3, with a bit of reST kludgery. I’ll backport to 2.7 if there is no negative feedback. > range() definitely needs a forward reference to 4.6 sequence types >

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: Symlinks are barely supported by distutils; the only mention you can find in the doc is that the MANIFEST file can contain symlinks. In the light of that, one could argue that broken symlinks are not supported nor ignored, and that you just should not have them

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-02 Thread Bill Janssen
Bill Janssen added the comment: I'll take a look at this next week, when I'm more on-line again. Bill 2011/8/25 Charles-François Natali : > > Charles-François Natali added the comment: > >> The OS X buildbots show some failures: > > It seems to fail consistently on every OS X version. > I've

[issue12884] Re

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file23087/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: I have added 'chown' in shutil.__all__. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12840] "maintainer" value clear the "author" value when register

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: This was already explained in #962772. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed superseder: -> when both maintainer and author provided, author discarded ___ Python tracker

[issue8754] quote bad module name in ImportError-like messages

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: Victor changed ImportError some time ago for #3080, so my patch now only touches a few stdlib modules. -- components: +Library (Lib) -Interpreter Core title: ImportError: quote bad module name in message -> quote bad module name in ImportError-like messa

[issue12882] mmap crash on Windows

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it a crash, or do you get a exception with a nice message? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue10191] scripts files are not RECORDed.

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: I have added tests for scripts in RECORD and they pass. Closing, please reopen if you can reproduce the bug. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue10454] Clarify compileall command-line options

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ae85348e3e8 by Éric Araujo in branch '2.7': Clarify compileall command-line options (#10454). http://hg.python.org/cpython/rev/4ae85348e3e8 -- ___ Python tracker ___

[issue12298] Sphinx glitch in library/functions

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a05cb3beddf by Éric Araujo in branch '3.2': Fix a few links in the table of built-in functions (#12298) http://hg.python.org/cpython/rev/7a05cb3beddf New changeset 58dd7addef3a by Éric Araujo in branch '3.2': Add links from library/functions to ot

[issue10454] Clarify compileall command-line options

2011-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 755a57f987ca by Éric Araujo in branch '3.2': #10454: a few edits to compileall help messages http://hg.python.org/cpython/rev/755a57f987ca New changeset 892e0ee4ca32 by Éric Araujo in branch 'default': Merge doc changes from 3.2 (#10454, #12298) ht

[issue12117] Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import

2011-09-02 Thread Éric Araujo
Éric Araujo added the comment: Is this still relevant? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12886] datetime.strptime parses input wrong

2011-09-02 Thread STINNER Victor
STINNER Victor added the comment: Example: --- import datetime def test(text): try: d = datetime.datetime.strptime(text, '%Y%m%dT%H%M') except ValueError: pass else: print("%s without seconds => %s" % (text, d)) return d = datetime.datetime.strpti

[issue12886] datetime.strptime parses input wrong

2011-09-02 Thread STINNER Victor
STINNER Victor added the comment: > ERROR no seconds in input string: minute=3, second=4 If you specificy "%S" in the format string, strptime() *requires* seconds. If seconds are optional in your format, you should call strptime() twice: first without '%S', then with '%S' if the first failed.

[issue12886] datetime.strptime parses input wrong

2011-09-02 Thread Heiðar Rafn Harðarson
New submission from Heiðar Rafn Harðarson : When using datetime.strptime or time.strptime to parse string representing timestamp with the format string '%Y%m%dT%H%M%S' then a strange behavior happens when the input string does not contain the seconds: the minute part is split and first digit u

[issue12884] Re

2011-09-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: -2to3 (2.x to 3.0 conversion tool) resolution: fixed -> invalid stage: -> committed/rejected status: open -> closed type: crash -> versions: -Python 2.7 ___ Python tracker

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2011-09-02 Thread Alexander Dutton
New submission from Alexander Dutton : If there are any broken symlinks in the same directory as a setup.py when e.g. sdist is run, findall() will fall over when attempting to os.stat() the symlink: Traceback (most recent call last): File "setup.py", line 81, in run _sdist.run(self) Fil

[issue12882] mmap crash on Windows

2011-09-02 Thread Charles-François Natali
Changes by Charles-François Natali : -- Removed message: http://bugs.python.org/msg143397 ___ Python tracker ___ ___ Python-bugs-list

[issue12884] Re

2011-09-02 Thread VUIUI
VUIUI added the comment: hj -- components: +2to3 (2.x to 3.0 conversion tool) resolution: -> fixed type: -> crash versions: +Python 2.7 ___ Python tracker ___

[issue12882] mmap crash on Windows

2011-09-02 Thread VUIUI
VUIUI added the comment: Botay -- nosy: +VUIUI ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12884] Re

2011-09-02 Thread VUIUI
New submission from VUIUI : Botay -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue12884] Re

2011-09-02 Thread VUIUI
Changes by VUIUI : -- files: unnamed nosy: VUIUI priority: normal severity: normal status: open title: Re Added file: http://bugs.python.org/file23087/unnamed ___ Python tracker

[issue12882] mmap crash on Windows

2011-09-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12882] mmap crash on Windows

2011-09-02 Thread sbt
sbt added the comment: You are not doing anything to stop the file object being garbage collected (and therefore closed) before the mmap is created. Try import os import mmap f = open(,"r+") size = os.path.getsize()) data = mmap.mmap(f.fileno(), size) -- nosy: +sbt _

[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Albert Zeyer
Albert Zeyer added the comment: You might have opened several via `openpty`. I am doing that here: https://github.com/albertz/PyTerminal -- ___ Python tracker ___ _

[issue12841] Incorrect tarfile.py extraction

2011-09-02 Thread Doug Hellmann
Changes by Doug Hellmann : -- nosy: +doughellmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0

2011-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And this command now works: > > $ ./python -c 'import os; print(os.fdlistdir(os.open("/tmp", os.O_RDONLY)))' > ['.X11-unix', '.ICE-unix', 'orbit-remi', '.X0-lock', 'dbus-WWfX2JhDtb'] > > Attached file patch-Modules_posixmodule_c is the patch to do this. Tha

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-02 Thread Ezio Melotti
Ezio Melotti added the comment: > To start with, no code point which when bitwise added with 0xFFFE > returns 0xFFFE can never appear in a valid UTF-* stream, but Python > allow this without any error. > That means that both 0xNN_FFFE and 0xNN_ are illegal in all > planes, where NN is 00

[issue12883] xml.sax.xmlreader.AttributesImpl allows empty string as attribute names

2011-09-02 Thread Michael Sulyaev
New submission from Michael Sulyaev : I can get not-well-formed XML output (attribute name must not be empty string): AttributeImpl must ignore dict entries that may not be cast to valid XML attributes. Code: #!/usr/bin/python from xml.sax.xmlreader import AttributesImpl as Attrs from xml

[issue12841] Incorrect tarfile.py extraction

2011-09-02 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-09-02 Thread Lars Gustäbel
Lars Gustäbel added the comment: Issue #12841 is a duplicate of this one, but I give it precedence because it comes with a working patch. -- resolution: -> duplicate status: open -> closed versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue2636] Adding a new regex module (compatible with re)

2011-09-02 Thread Ezio Melotti
Ezio Melotti added the comment: > I think this is adding excessive complexity. It really depends on how many incompatible features there are, and how difficult it is to turn them on/off. > I think it is reasonable to pick a *set* of features as a whole It's probably more practical, but other

[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

2011-09-02 Thread STINNER Victor
STINNER Victor added the comment: >> It builds correctly with -pthread or -lpthread, but it fails to build >> without these options. >> > > Not on Linux: this is specific to OpenBSD. Oh, I forgot to specify: yes, I tested on OpenBSD (5.0). >> sched_get_priority_max() and sched_get_priority_mi

[issue12878] io.StringIO doesn't provide a __dict__ field

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Actually it already fails with 3.1 (I tried "hg up v3.1") Then I played with "hg bisect", and unsurprisingly it answered: Traceback (most recent call last): File "", line 1, in AttributeError: '_io.StringIO' object has no attribute '__dict__' Changeset

[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Well, readline is supposed to be used with a console, and there is only one usually. Why would you want to use readline from multiple threads? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The setup.py script does not look correct when openssl is not installed: the _sha256 and _sha512 modules are compiled under this condition:: if COMPILED_WITH_PYDEBUG or openssl_ver < min_sha2_openssl_ver: By comparison, the _md5 module adds the condit

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-02 Thread Wong Wah Meng
Wong Wah Meng added the comment: Hi there, thanks for the reply. I need a bit more clue on what else I can do, other than I have these 3 items in my checklist:- 1.) I will have HP-UX ANSI C/C++ Compiler soon. I can recompile using that compiler later if this is a gcc related thing. 2.) If I