[issue11158] Python VM deadlock

2011-02-10 Thread Vinay Sajip
Vinay Sajip added the comment: I don't believe that the problem is about threads vs. processes. In the following gist: https://gist.github.com/820132 I modified the script so that the main process uses a listener thread, rather than a listener process, to collect the logs. (Basically, I chan

[issue11158] Python VM deadlock

2011-02-10 Thread Marcin Bachry
Marcin Bachry added the comment: I think it may be related to this bug: http://bugs.python.org/issue6721 -- nosy: +marcin.bachry status: pending -> open ___ Python tracker ___ _

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
New submission from Stefan Krah : Due to an integer overflow in unicode_hash, the python interpreter crashes if built with -ftrapv: ./configure --with-pydebug CFLAGS="-ftrapv" Starting program: /home/stefan/svn/py3k/python [Thread debugging using libthread_db enabled] Program received signa

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-10 Thread Scott Tsai
Changes by Scott Tsai : -- nosy: +scott.tsai versions: -3rd party, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-02-10 Thread Scott Tsai
Scott Tsai added the comment: I touched the version field by mistake while trying to add myself to the nosy list. My sincere apologies for the SPAM to all involved. -- versions: +3rd party, Python 3.3 ___ Python tracker

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah added the comment: Ok, this is known, see #1621. Closing. -- resolution: -> duplicate status: open -> closed superseder: -> Do not assume signed integer overflow behavior ___ Python tracker _

[issue1621] Do not assume signed integer overflow behavior

2011-02-10 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Could you try the same in Python 2.7 ? The overflow is intended (after all, it's a hash function), but we should probably add a cast to Py_hash_t to the hash building line in order to make the compiler aware of this. -- nosy: +lemburg __

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread wrobell
wrobell added the comment: > > will this patch support off_t for "mmap.resize" as well? > > ftruncate uses off_t for the length of a file as well. > No, it doesn't because resize() resizes the amount mmapped in memory > which can't be more than ssize_t anyway. However, resizing does work on > a

[issue4709] Mingw-w64 and python on windows x64

2011-02-10 Thread Scott Tsai
Changes by Scott Tsai : -- nosy: +scott.tsai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10656] "Out of tree" build fails on AIX 5.3

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: There are some unit tests concerning distutils which are currently failing on AIX and may be an illustration of the same problem: == ERROR: test_build_ext (distutils.tests.test_build_ext.Buil

[issue10694] zipfile.py end of central directory detection not robust

2011-02-10 Thread rep
rep added the comment: Xuanji: Patch looks good now with the test cases. Regarding the other fix suggested by Kevin I think that we should not introduce custom behaviour here like appending the eofdata to the comment even though the comment size in the record does not say so. In the end we wa

[issue10298] zipfile: incorrect comment size will prevent extracting

2011-02-10 Thread rep
Changes by rep : -- status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10298] zipfile: incorrect comment size will prevent extracting

2011-02-10 Thread rep
Changes by rep : -- status: languishing -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9523] Improve dbm modules

2011-02-10 Thread Ray.Allen
Ray.Allen added the comment: Thanks eric for reviewing my patch! And thanks for you suggestions. I'm following them. > I don’t know if you should use a plain set or a collections.ItemsView here. > In dict objects, KeysView and ValuesView are set-like objects with added > behavior, for exam

[issue10298] zipfile: incorrect comment size will prevent extracting

2011-02-10 Thread rep
rep added the comment: superseded by issue 10694 -- resolution: -> accepted status: pending -> closed ___ Python tracker ___ ___ Pyt

[issue10709] Misc/AIX-NOTES needs updating

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Yes I will do that. I am currently reinstalling some buildbot environments for Python on AIX 5.3 and AIX 6.1 and once that is done, I will rewrite the note. -- ___ Python tracker

[issue11148] Crash and error message from Python VM

2011-02-10 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I think this issue is related to http://bugs.python.org/issue11158, which is in turn related to http://bugs.python.org/issue6721 (Locks in python standard library should be sanitized on fork). When a mutex created by a parent process is used from wi

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-02-10 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue941346] AIX shared library fix

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi Micheal, I don't remember why "-L\$(srcdir)" was added since it has been quite a long time. I tried to recompile everything after removing it and everything compiled just fine, so I guess it can be removed. regards -- _

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I'm not sure that releasing the mutex is enough, it can still lead to a segfault, as is probably the case in this issue : http://bugs.python.org/issue11148 Quoting pthread_atfork man page : To understand the purpose of pthread_atfork, recall that for

[issue730467] Not detecting AIX_GENUINE_CPLUSPLUS

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is a patch that combines the corrections in configure.in and dynload_aix.c. All recent versions of AIX would benefit from this correction I think (recent meaning a version of AIX released in the last 10 years or something). Could someone apply it? Thank

[issue2228] Imaplib speedup patch

2011-02-10 Thread Aaron Kaplan
Aaron Kaplan added the comment: Let me clarify. Offlineimap used to ship a modified version of imaplib in its distribution, but eventually the author decided he no longer wanted to maintain his imaplib fork, so he dropped it and went with stock imaplib (at a significant performance penalty).

[issue11168] UnicodeEncodeError on recusion limit if the script filename is undecodable

2011-02-10 Thread STINNER Victor
New submission from STINNER Victor : If the script filename is not decodable from the filesystem encoding, Python fails with a UnicodeEncodeError when we reach the recursion limit. The problem doesn't come from the user script, but from Python internals. It is difficult to understand and the u

[issue11158] Python VM deadlock

2011-02-10 Thread Vinay Sajip
Vinay Sajip added the comment: Issue 6721 may well be valid - if this is a symptom of the same issue, then this issue should be closed. I'd like to know if the gist script I referred to works (or not) on Pham Cong Dinh's Snow Leopard machine. -- status: open -> pending __

[issue9920] test_cmath on atan fails on AIX

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Mark, sorry for the late reply; I stopped focusing on AIX for some time. I ran test_cmath on trunk this morning and got a different error this time: == FAIL: test_specific_values (test.test_

[issue11169] compileall doesn't support the PEP 383 (undecodable paths/filenames)

2011-02-10 Thread STINNER Victor
New submission from STINNER Victor : The compileall uses print("bla", filename, "bla") to write messages to the console. But the print fails if the filename cannot be encoded to the console encoding. It occurs if the filename is an undecodable filename encoded by the PEP 383 using surrogates.

[issue11170] (MacOS X) Crash on non-english language keyboard input in Text widget

2011-02-10 Thread didzis
New submission from didzis : In simple text edit trying to input non-english characters with keyboard ends with a crash on MacOS X (10.6). For example, to input Latvian language characters, apostrophe should be pressed followed by some letter (a, e, i, u, k, l, ...) Tkinter crashes immediatel

[issue9920] test_cmath on atan fails on AIX

2011-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: Ha, yes. I commented out the first four tests for zeros of atan in the cmath_testcases.txt file, but failed to notice that they're tested again, later on. And the same goes for atanh. I need to look at this, but I don't have write-access to the Python svn r

[issue11170] (MacOS X) Crash on non-english language keyboard input in Text widget

2011-02-10 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of issue 10973. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file19131/issue_7330.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11171] Python 2.7.1 does not start when "./configure" is used with "--prefix" != "--exec-prefix"

2011-02-10 Thread Berthold Höllmann
New submission from Berthold Höllmann : I do get (with 2.7.1): > python Traceback (most recent call last): File "/usr/local/gltools/python/Python-2.7/lib/python2.7/site.py", line 553, in main() File "/usr/local/gltools/python/Python-2.7/lib/python2.7/site.py", line 535, in main kn

[issue11172] Avoid '.' as runpath on AIX

2011-02-10 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : Spotted in issue#941346 msg#128214, the "-L$(srcdir)" should be removed from BLDSHARED on AIX: The problem is that '-L$(srcdir)' adds '$(srcdir)' to the runpath too (as there is no '-blibpath' argument), opening a security hole for libpythonX.Y.so as

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : Mark Shannon on python-dev: The following API functions were removed from 3.1.3: PyAST_Compile PyCObject_AsVoidPtr PyCObject_FromVoidPtr PyCObject_FromVoidPtrAndDesc PyCObject_GetDesc PyCObject_Import PyCObject_SetVoidPtr PyCode_CheckLineNumber Py_Compil

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Feb 5, 2011 at 12:33 AM, Georg Brandl wrote: > > Then let us do that. > > Senthil, what about urlencode of bytes values returning a str? > Sorry, the late response. I needed some time to look at this one and I could only do it today. We have been havi

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Ray.Allen added the comment: Thanks haypo! Here is the updated patch, it add the tests about width modifiers and precision modifiers of %S, %R, %A. Besides I don't know how to add tests of %s, since when calling through ctypes, I could not get correct result value as python object from PyUni

[issue10523] argparse has problem parsing option files containing empty rows

2011-02-10 Thread Steven Bethard
Steven Bethard added the comment: Crashing on an empty line is definitely a bug. Each line being a single option is documented behavior: http://docs.python.org/dev/library/argparse.html#fromfile-prefix-chars -- nosy: +bethard ___ Python tracker

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: > PyErr_WarnFormat is already documented in Doc/c-api/exceptions.rst > PyImport_ExecCodeModuleWithPathnames is already documented in Doc/c-api/import.rst > PyModule_GetFilenameObject is already documented in Doc/c-api/module.rst > PySys_AddWarnOptionUnicod

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: > Py_UNICODE_strcat, Py_UNICODE_strncmp, Py_UNICODE_strrchr See issue #10435 (with a patch) for these functions. -- ___ Python tracker ___ ___

[issue11174] add argparse formatting option to display type names for metavar

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: I generally like my command line arguments that take a value to specify the type, e.g., --runs int how many runs to do Naturally I can do this using the metavars argument in every add_argument() call, but that can b

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: Allow FileType to accept encoding and errors arguments and pass these as keyword arguments to codecs.open() instead of open(). -- components: Library (Lib) messages: 128301 nosy: bethard priority: low severity: norma

[issue11176] give more meaningful argument names in argparse documentation

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: I personally am not keen on the foo/bar/baz examples. I know that you're trying to be generic but IMO it would be much easier to understand if you used meaningful names. Also, I think that the very first example you give (whi

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2011-02-10 Thread Raymond Penners
Changes by Raymond Penners : -- nosy: +pennersr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > PyThread_acquire_lock_timed It's on purpose that I didn't document this one. I'm not sure the PyThread_ APIs should be used by third-party extensions; so I'd prefer to hear about potential users before starting documenting it (and being tied by compatibilit

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is a patch to resolve this issue. Let me know if it okay to commit.(Or feel free to commit too). -- stage: -> patch review Added file: http://bugs.python.org/file20732/issue11082.diff ___ Python tracker

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: 32-bit computers can address up to 4GiB of memory and 64-bit computers can address much more than this. mmap() allows a file to be mapped to a location in memory - the actual amount of memory that exists doesn't matter. This is the reason why a 5GiB file can

[issue5833] readline update

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: do you think it's worth the effort? As mentioned above, the readline 6 compatibility code was checked in. The ClassType expansion is 2.x-only, so probably can't go in since it's a feature request. What remains is the filename expansion. However, the

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw http://bugs.python.org/issue6643 recently fixed on issue where a mutex was being closed instead of reinitialized after a fork. more are likely needed. Are you suggesting to use pthread_atfork to call pthread_mutex_init on all mutexes created by Python

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Georg Brandl: can this fix go into Python 3.2? It changes the API. I like any patch rejecting unicode where unicode is irrevelant (where we don't know how to choose the right encoding). About the patch: you should maybe add a test to ensure that str is reject

[issue10882] Add os.sendfile()

2011-02-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment removes offset and return just the number of bytes sent as an integer. Tests and documentation are updated accordingly. -- Added file: http://bugs.python.org/file20733/sendfile_v8.patch ___ Py

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The encoding and errors arguments are probably useful, but why would you use the codecs module? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Are you suggesting to use pthread_atfork to call pthread_mutex_init on > all > mutexes created by Python in the child after a fork? I'll have to > ponder > that some more. Given the mutexes are all useless post fork it > does not > strike me as a bad idea

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 10 février 2011 à 16:41 +, Ross Lagerwall a écrit : > Ross Lagerwall added the comment: > > 32-bit computers can address up to 4GiB of memory ... at least 4 GB. With PAE (Physical Address Extension), we can address up to 2^36 bytes. It looks like

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 10 février 2011 à 17:03 +, STINNER Victor a écrit : > STINNER Victor added the comment: > > Le jeudi 10 février 2011 à 16:41 +, Ross Lagerwall a écrit : > > Ross Lagerwall added the comment: > > > > 32-bit computers can address up to 4GiB of

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Victor - It does not change the API. Only that the ValueError message which had a confusing message that "for iterable data of type " is made clear that POST should not be a str. Yes, a TypeError instead of ValueError would be more appropriate here. ---

[issue10656] "Out of tree" build fails on AIX 5.3

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: I tried with trunk (python 3.2) on AIX: ./build/configure --with-pydebug --without-computed-gotos make and that worked correctly. Not sure with python 2.7. -- ___ Python tracker

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yeah, I'm trying to figure out what I was thinking then or if I was just plain wrong. :) I was clearly wrong about a release being done in the child being the right thing to do (issue6643 proved that, the state held by a lock is not usable to another proce

[issue11076] Iterable argparse Namespace

2011-02-10 Thread Virgil Dupras
Virgil Dupras added the comment: Here's a documentation-only patch which adds a section about using vars() to convert a namespace to a dict. If this becomes a documentation issue, can we target Python 3.2.1 instead of Python 3.3? -- Added file: http://bugs.python.org/file20734/issue1

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Steven Bethard
Steven Bethard added the comment: Probably because the suggestion came from someone thinking about both Python 2 and 3. But given that this feature request can only target Python 3.3, you're absolutely right that there's no need to go through the codecs module. -- ___

[issue5833] readline update

2011-02-10 Thread J. Evans
J. Evans added the comment: I have no problem splitting the patch into multiple files. When I do so, do I place them here or open separate tickets for each component? Or if you guys want to just close out the ticket since the actual bug was fixed, I am okay with that too. We will probably c

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm. I'm not sure passing a list of platforms is a good idea. People may want to write e.g. "'bsd' in platform". Also, there are a lot of platforms we don't have access to, so we can't actually maintain a list of platforms. Also, I really don't like the idea

[issue11171] Python 2.7.1 does not start when "./configure" is used with "--prefix" != "--exec-prefix"

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils, Distutils2 -Installation nosy: +barry, eric.araujo, tarek stage: -> patch review versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: Victor: I don't see an API change here. A ValueError is raised in both cases, and error messages are not part of the API. (And BTW, you may call me Georg.) Senthil: I'd like the documentation change to be a bit more explicit that a string is always returned.

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: In fact, most of the functions are documented. (Mark S. apparently referred to the "What's new" document when talking about "documented" functions.) Missing are: PyAST_CompileEx (because PyAST_Compile wasn't documented either) PyStructSequence_* PyType_FromSpe

[issue7284] optparse - display version in usage by default

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, optparse is now deprecated, and argparse is the replacement, so I'm closing this report. -- nosy: +sandro.tosi resolution: -> wont fix stage: needs patch -> committed/rejected status: open -> closed ___ Python tra

[issue4297] Add error_log attribute to optparse.OptionParser

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Daniel, did you read Steven suggestions? are you willing to propose a patch about your feature request against argparse (optparse is deprecated and no more under development in stdlib)? -- nosy: +sandro.tosi ___ Py

[issue1704474] optparse tests fail under Jython

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, since optparse is now deprecated (in favor of argparse) and in a year and half there was not progress on this, I'm closing this report. -- nosy: +sandro.tosi resolution: -> wont fix stage: -> committed/rejected status: open -> closed __

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: So os.name is also supported. But the point is that if a platform wants to be considered supported then they need to give us a patch to update the tests to make them acceptable to skip. As for test_ttk and such, those that have a third-party dependency are stil

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : At the current state asyncore implicitly supports TCP (SOCK_STREAM) sockets only, despite UDP support might be added in the future. For simplicity, create_socket() should assume TCP/IP by default. This would avoid the user to "import socket" and specify th

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should also mention that if the idea of whitelisting failures doesn't fly, it can always be changed to be a blacklist of failures (i.e., ditch 'optional' and only use 'required_on'). But I did it this way to force people to clearly state on what platforms a test

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: I spent some time bisecting the SVN history in the py3k branch, and believe that r84914 is the commit that introduced this issue. Details: Trying on 4-core i386 RHEL 5 box $ svn up -r REV $ make clean ; make (configured --with-pydebug) Reproducer:

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: r84914 was the implementation of issue 9786 (Native TLS support for pthreads) -- ___ Python tracker ___ _

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Could you try the same in Python 2.7 ? It's the same, just in stringobject.c. Many hash functions have this issue. > The overflow is intended (after all, it's a hash function), but we sho

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for test_ttk and such, those that have a third-party dependency are > still optional no matter what. This change is **only** for modules we > expect to always build on certain platfoms (e.g., winreg under Windows > or crypt on UNIX systems). Ah, thanks for

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Well, ctypes failing because it cannot compile is only when a platform that is not listed as optional cannot import it. So if some platform does not support ctypes then it gets added to the list, end of story. We only support so many platforms as it is. And wit

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, ctypes failing because it cannot compile is only when a platform > that is not listed as optional cannot import it. So if some platform > does not support ctypes then it gets added to the list, end of story. How do you add "llvm under darwin" (or any si

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: You don't. ctypes failing under LLVM 2.8 should not be a special case of skipping; ctypes not building on darwin regardless of whether it is gcc or clang is a failure. If someone uses a compiler we don't support, that's their decision. --

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread wrobell
wrobell added the comment: Ross, you are completely right. thanks for the tips! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11178] Running tests inside a package by module name fails

2011-02-10 Thread Michael Foord
New submission from Michael Foord : Reported by a user and verified by me with both Python 2.7 and 3.2. Trying to run tests by module or package name seems to fail. directory structure: project root: C:\Users\hpierson\Projects\pytest \test __init__.py (empty)

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: One other option is to simply have a whitelist of platforms that test.support knows of so it only considers it a failure when the platform being run on is known (regrtest does this already). -- ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should mention this would act as a nice testing doc for exactly which platforms CPython considers supported. -- ___ Python tracker ___ ___

[issue11116] mailbox and email errors

2011-02-10 Thread R. David Murray
R. David Murray added the comment: Upon reflection I don't think my suggested email API change is a good one. Currently it is possible to create a Message using non-ASCII headers and manipulate that message. The fact that you can't serialize that message is, really, a bug: one can and I thin

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your "versionchanged" is misleading. It should be something like "family and type can now be omitted". -- components: +Library (Lib) nosy: +pitrou stage: -> patch review type: -> feature request ___ Python tracker

[issue11172] Avoid '.' as runpath on AIX

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou, sable ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11169] compileall doesn't support the PEP 383 (undecodable paths/filenames)

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +r.david.murray stage: -> patch review type: -> behavior ___ Python tracker ___

[issue2228] Imaplib speedup patch

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The part which is replaced by that patch (the readline() method in IMAP4_SSL) doesn't exist anymore in current imaplib code. Instead the file-like object created by socket.makefile() is used; its readline() method is probably quite faster than any pure Python

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file20725/issue10966.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: This appears to be happening in a child process when the parent process is running: Lib/multiprocessing/util.py, line 255, in _exit_function () Liberally adding printf() and getpid() calls in various places, seems to always happen when parent process is withi

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Here is the completed patch. It adds required_on and 'optional' args to test.support.import_module() to help delineate if a test should **not** be skipped simply because a module could not be imported. It also changes various tests to use the new args. Finally,

[issue9523] Improve dbm modules

2011-02-10 Thread Éric Araujo
Éric Araujo added the comment: > 1. Make keys(), values(), items() methods return view object for > ndbm, gdbm and dumb objects. I following the codes in dictobject.c. Did you have to copy the code? Isn’t it possible to somehow reuse it? > The keysview object support len(), "in" operator, and

[issue11076] Iterable argparse Namespace

2011-02-10 Thread Éric Araujo
Éric Araujo added the comment: +1 for this patch. Documentation fixes are backported from the development branch to stable branches, so yes, this will land in 3.1 too. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python type: feature request -> v

[issue10423] s/args/options in arpgarse "Upgrading optparse code"

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Steven, I'm not exactly getting what you're meaning here: are you actually saying to replace every occurrence of 'option' with 'argument' in the whole argparse module doc, or just make it stronger in the mentioned line that what was called previously 'option'

[issue11071] What's New review comments

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Another remark. In the "poplib" section, there is a paragraph about asyncore: I don't see how both are related. -- ___ Python tracker ___

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2011-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch works fine on Linux but breaks test_pipes and test_sqlite on Windows: [1/1] test_pipes testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok testBadPrependOptions (test.test_pipes.Simple

[issue11071] What's New review comments

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: In the What's new in 3.2: there is no mention of the PEP 3003 (Python Language Moratorium). May we add a section "What is not new in 3.2"? :-) This PEP is something specific to Python 3.2. -- ___ Python tracker

  1   2   >