[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-29 Thread Thomas Wouters
New submission from Thomas Wouters: The new xattr support in shutil causes shutil.copytree and shutil.copy2 to fail inelegantly on (source) filesystems that do not support xattrs (like NFS): # /home/twouters does not support xattrs >>> os.listxattr("/home/twouters/foo") Tra

[issue15505] unittest.installHandler incorrectly assumes SIGINT handler is set.

2013-01-29 Thread Thomas Wouters
Thomas Wouters added the comment: ping (you know why :) -- ___ Python tracker <http://bugs.python.org/issue15505> ___ ___ Python-bugs-list mailing list Unsub

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-31 Thread Thomas Wouters
Thomas Wouters added the comment: Updated patch with test. -- Added file: http://bugs.python.org/file28926/shutil.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-31 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file28898/shutil.patch ___ Python tracker <http://bugs.python.org/issue17076> ___ ___ Python-bugs-list m

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-31 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file28926/shutil.patch ___ Python tracker <http://bugs.python.org/issue17076> ___ ___ Python-bugs-list m

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-31 Thread Thomas Wouters
Thomas Wouters added the comment: Now really updated the patch. -- Added file: http://bugs.python.org/file28927/shutil.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17095] Modules/Setup *shared* support broken

2013-01-31 Thread Thomas Wouters
New submission from Thomas Wouters: At some point (probably in 3.2) the support for shared modules built using Modules/Setup was broken, for two reasons: - Python no longer considers 'foomodule.so' when looking for a module called 'foo', but Modules/makesetup still appen

[issue17096] the system keyring should be used instead of ~/.pypirc

2013-01-31 Thread Thomas Grainger
New submission from Thomas Grainger: Having the password stored in a plain-text configuration file is not great security. A better choice would be to try to use the OS keyring and then fall back to a plaintext file An example implementation of a generic keyring python interface is available

[issue17098] Set __loader__ on modules imported by the C level

2013-02-01 Thread Thomas Heller
Thomas Heller added the comment: I have only tried my code with 3.4; but still get problems with the modules 'builtins' and '_frozenimportlib'. -- ___ Python tracker <http://bug

[issue17098] Set __loader__ on modules imported by the C level

2013-02-01 Thread Thomas Heller
Thomas Heller added the comment: I confirm that the bug is fixed, my test-code works now (a modulefinder using importlib instead of imp to find modules). -- ___ Python tracker <http://bugs.python.org/issue17

[issue17098] Set __loader__ on modules imported by the C level

2013-02-01 Thread Thomas Heller
Thomas Heller added the comment: Thanks for the very fast fix Brett :-) -- ___ Python tracker <http://bugs.python.org/issue17098> ___ ___ Python-bugs-list mailin

[issue17174] Posix os.path.join should raise TypeError when passed unusable type

2013-02-09 Thread Thomas Scrace
New submission from Thomas Scrace: Currently os.path.join will raise an AttributeError if passed an argument that does not have an endswith() method. A try/except around the offending line would let us raise a more helpful TypeError: except AttributeError as e: bad = e.args[0

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-02-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: I've updated Nick's patch so that test_dis and test_peephole pass again, and added a prototype ByteCode class (without any docs or tests for now, to allow for API discussion). The prototype ByteCode is instantiated with any of the ob

[issue19039] sphinx search, result sorting

2013-09-17 Thread Thomas Guettler
New submission from Thomas Guettler: If you search for "printf" in the docs you get this result: http://docs.python.org/3.3/search.html?q=printf&check_keywords=yes&area=default Please have a look at the first results. I guess most people don't want to see docs abou

[issue19538] Changed function prototypes in the PEP 384 stable ABI

2013-11-09 Thread Thomas Heller
New submission from Thomas Heller: (As requested by email in python-dev I'm reporting this problem) Some function prototypes in the stable ABI have been changed between Python 3.3 and 3.4. PyObject_CallFunction is an example, the second parameter has been changed from 'char *'

[issue5673] Add timeout option to subprocess.Popen

2013-11-18 Thread Thomas Guettler
Thomas Guettler added the comment: For Python 2.x there is a backport of the subprocess module of 3.x: https://pypi.python.org/pypi/subprocess32. It has the timeout argument for call() and pipe.wait(). -- ___ Python tracker <http://bugs.python.

[issue21816] OverflowError: Python int too large to convert to C long

2014-06-20 Thread Thomas Ball
New submission from Thomas Ball: The attached file raises the exception: OverflowError: Python int too large to convert to C long in Python 2.7.7, which clearly is a bug. The error is not present in Python 3.4. -- files: testint.py messages: 221116 nosy: Thomas.Ball priority: normal

[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember
New submission from Thomas Kember: I am a retired programmer. I still like to write small programs for my own interest. Python is ideal for this. I prefer to use Idle rather than the command line. For some time now when I click on the Idle shortcut on the home screen, the command line screen

[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember
Thomas Kember added the comment: I ran what you said. Here's what I got. C:\Python34>c:\python34\python.exe -m idlelib.idle Traceback (most recent call last):   File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main     "__main__", mod_spec)   File "c

[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember
Thomas Kember added the comment: Thanks, I backed that file on to a memory stick and deleted it. I made a shortcut to the idle batch file on the desktop. When I click on it, Idle comes up fine. What has happened here? What is config-extensions.cfg for and why has it stopped Idle coming up

[issue21981] Idle problem

2014-07-14 Thread Thomas Kember
New submission from Thomas Kember: Hello Terry, Thank you for your explanation of the bug in Idle. I know Idle has limitations, but it is quite adequate for the programming I want to do. I agree that when this error occurs there should only be a warning, so the user can decide what he wants

[issue21981] Idle problem

2014-07-14 Thread Thomas Kember
Thomas Kember added the comment: Hello Eric V. Smith, I reported only one bug and it has been fixed. I can't find out how I am to reset the status of it to closed. Thomas Kember From: Eric V. Smith To: t.kemb...@btinternet.com Sent: Monday, 14 July

[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: The module docs do mention "Older SQLite versions had issues with sharing connections between threads." Presumably that means that sharing the connection between threads is safe so long as you're not using 'older versions', but it w

[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: This page also looks relevant: sqlite can be compiled or used in three different threading modes. Presumably Python compiles/initialises it in the serialised mode, which makes it safe to use a connection from different threads. http://www.sqlite.org

[issue18395] Make _Py_char2wchar() and _Py_wchar2char() public

2014-07-17 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue18395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18395] Make _Py_char2wchar() and _Py_wchar2char() public

2014-07-17 Thread Thomas Kluyver
Thomas Kluyver added the comment: You seem to need wchar_t to call Py_Main and Py_SetProgramName. I think there's an example in the docs which is wrong, because it appears to pass a char* to Py_SetProgramName: https://docs.python.org/3.4/extending/embedding.html#very-high-level-embe

[issue22172] Local files shadow system modules, even from system modules

2014-08-08 Thread Daniel Thomas
New submission from Daniel Thomas: In Python 3.4 (but not 3.2 or 2.7) when a system module does an import then files with the same name in the directory of the original python script which match that name are used. E.g. With a directory containing: test.py: #!/usr/bin/env python3 from

[issue22200] Remove distutils checks for Python version

2014-08-14 Thread Thomas Kluyver
New submission from Thomas Kluyver: We noticed the other day that distutils, despite being part of the standard library, checks the version of Python it's running under and has some different code paths - one of which is only taken for Python < 2.2. We haven't managed to figure

[issue22200] Remove distutils checks for Python version

2014-08-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: I spotted a few others as well. When I get a bit less busy in a couple of weeks time, I intend to go through and make a bigger patch to clean things up. -- ___ Python tracker <http://bugs.python.org/issue22

[issue22346] asyncio documentation does not mention provisional status

2014-09-05 Thread Thomas Kluyver
New submission from Thomas Kluyver: >From PEP 411: """ A package will be marked provisional by a notice in its documentation page and its docstring. The following paragraph will be added as a note at the top of the documentation page: The package has been includ

[issue22349] Remove more unnecessary version checks from distutils

2014-09-06 Thread Thomas Kluyver
New submission from Thomas Kluyver: Following on from issue 22200, this removes some more code in distutils that checks which Python version it's running on. As part of the standard library, distutils should always be running on the version of Python which it ships with. -- compo

[issue22200] Remove distutils checks for Python version

2014-09-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: I've made a patch removing some more of these version checks in issue 22349. -- ___ Python tracker <http://bugs.python.org/is

[issue22471] Python build problems via Homebrew on Mac OS X when GNU core/find utils are default

2014-09-23 Thread Todd Thomas
New submission from Todd Thomas: Installing Python via Homebrew on Mac OS X has build issues if the GNU core/find utils are set as defaults on the system. OS X is very common, on it Homebrew is very common, via Homebrew GNU utilities are among the first installations; EG: http://goo.gl/OodjHI

[issue18675] Daemon Threads can seg fault

2014-09-30 Thread Thomas Guettler
Thomas Guettler added the comment: What kind of patch do you want? Documentation patch or fixing the bug in the interpreter? I am not a native speaker, that's why I avoid documentation patches. For me, the issue is solved. It is documented in stackoverflow and here. Since Python2 wi

[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-10-01 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue9949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21459] DragonFlyBSD support

2014-10-09 Thread Thomas Klausner
Thomas Klausner added the comment: The diff got even smaller -- one of the two chunks was applied in 3.4.2 without a reference to this bug report. Please apply the last chunk, it's completely straightforward. -- Added file: http://bugs.python.org/file36846/dragonfly

[issue21459] DragonFlyBSD support

2014-10-09 Thread Thomas Klausner
Changes by Thomas Klausner : Removed file: http://bugs.python.org/file35433/dragonfly.diff ___ Python tracker <http://bugs.python.org/issue21459> ___ ___ Python-bug

[issue20020] "modernize" the modulefinder module

2013-12-19 Thread Thomas Heller
Thomas Heller added the comment: I have written a new modulefinder based on importlib. It is not a refactoring of the old one, so it is no plug-in replacement. Instead it has some new features: - Better logging output - collects dependencies (self._depgraph maps module names to callers

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
New submission from Thomas Levine: This works fine in Python 2.7, but it fails in Python 3.3. [tlevine@wildebeest mailfest-scoreboard]$ python3 --version Python 3.3.3 [tlevine@wildebeest mailfest-scoreboard]$ python3 setup.py register sdist running register Traceback (most recent call last

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: The relevant section distutils/config.py seems no different in Python 2.7, so now I see this as a bug in configparser. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: Hmm now it looks to me like this is the intended behavior. http://hg.python.org/cpython/file/ea0aa3e32ab5/Lib/test/test_configparser.py#l1541 Switching the single percent sign (%) to two (%%) in .pypirc makes it work. Maybe we can make a nicer error message

[issue20150] API breakage in string formatting with :s option

2014-01-06 Thread Thomas Robitaille
New submission from Thomas Robitaille: The following code: >>> "{0:s}".format([1,2,3]) no longer works in Python 3.4b1, and gives the following exception: >>> "{0:s}".format([1,2,3]) Traceback (most recent call last): File "", line 1, in Typ

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue20210> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the context of space-constrained embedded Linux systems, installing the entire set of Python modules and extensions is not necessarily desirable. For example, all the test modules, as well as certain extensions requiring third-parties libraries are

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- keywords: +patch Added file: http://bugs.python.org/file33380/0001-Add-infrastructure-to-disable-the-build-of-certain-e.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33382/0003-Add-an-option-to-disable-pydoc.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33383/0004-Add-an-option-to-disable-lib2to3.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33381/0002-Add-an-option-to-disable-installation-of-test-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33384/0005-Add-option-to-disable-the-sqlite3-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33385/0006-Add-an-option-to-disable-the-tk-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33387/0008-Add-an-option-to-disable-expat.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33386/0007-Add-an-option-to-disable-the-curses-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33389/0010-Add-an-option-to-disable-NIS.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33391/0012-Add-an-option-to-disable-IDLE.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33388/0009-Add-an-option-to-disable-CJK-codecs.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33390/0011-Add-an-option-to-disable-unicodedata.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20211] setup.py: do not add invalid header locations

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the cross-compilation case, setup.py incorrectly adds /usr/include to self.compiler.include_dirs, and results in the following invalid compilation line: /home/thomas/projets/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-gcc -fPIC -Wno-unused

[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The build_ext logic uses sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")) to determine whether we're building a third-party Python extension, or a built-in Python extension. However, this check is wrong in cross-compilatio

[issue20213] Change the install location of _sysconfigdata.py

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The _sysconfigdata.py module contains definitions that are needed when building Python modules. In cross-compilation mode, when building Python extensions for the target, we need to use the _sysconfigdata.py of the target Python while executing the host

[issue20391] windows python launcher should support explicit 64-bit version

2014-01-25 Thread Thomas Heller
New submission from Thomas Heller: The windows python launcher supports the '-3.3' resp. '-3.3-32' command line switches to ask for 'the best 3.3' version resp. 'the 32-bit 3.3' version, but does not support a '-3.3-64' switch to explicitely

[issue3158] Doctest fails to find doctests in extension modules

2014-01-27 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think there's an issue with this change - ismethoddescriptor() doesn't guarantee that that the object has an __objclass__ attribute. Unbound PyQt4 signals appear to be a case where this goes wrong. This came up testing IPython on Python 3.4 - w

[issue17633] zipimport's handling of namespace packages is incorrect

2014-01-31 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue17633> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Thomas Heller
Thomas Heller added the comment: Hm, what's the problem? For me, the patch applies cleanly (in Python 3.4.0b3, 32-bit and 64-bit on Windows), and py -3.4(-32) -m pip install numpy works correctly. At least py -3.4(-32) -c "import numpy; print(numpy.__version__)" prints &q

[issue20598] argparse docs: '7'.split() is confusing magic

2014-02-11 Thread Thomas Guettler
New submission from Thomas Guettler: I think the docs of argparse still contain confusing magic: parser.parse_args('7'.split()) You know what it does and I know it. But a lot of people new to Python, don't understand what this should be. Please use: parser.parse_args([&#x

[issue20213] Change the install location of _sysconfigdata.py

2014-02-13 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: The patch is not working as it should be, so I withdraw it for the moment. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue20722] newline is (partially) independent of universal newlines; needs to be made more clear in docs

2014-02-21 Thread Thomas Wouters
Thomas Wouters added the comment: Additionally, the deprecation notice for 'U' in the table of modules should mention that the 'U' mode, not universal newlines, is deprecated because it is unnecessary. Or 'controlled by the newline argument' perhap

[issue20739] PEP 463 (except expression) implementation

2014-02-22 Thread Thomas Wouters
New submission from Thomas Wouters: Here is a preliminary implementation of PEP 463, minus mandatory parentheses and with the most straightforward precedence rule: equal to if-expr -- which means this: A if C else B except E: D is parsed as A if C else (B except E: D) (because of

[issue20739] PEP 463 (except expression) implementation

2014-02-23 Thread Thomas Wouters
Thomas Wouters added the comment: http://hg.python.org/features/pep-463-except-expr now contains a version of the patch that makes the parentheses mandatory, similar to generator expressions. (Leaving the old patch for reference.) -- hgrepos: +218

[issue20739] PEP 463 (except expression) implementation

2014-02-23 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file34205/5c078eb8da39.diff ___ Python tracker <http://bugs.python.org/issue20739> ___ ___ Python-bug

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2014-03-07 Thread Thomas Kluyver
Thomas Kluyver added the comment: Any chance of getting this patch applied? It clearly makes the error message more useful, and we've run into another case where grok_environment_error gives the wrong result: when symlinking fails because the target exists, it now says "F

[issue19333] distutils.util.grok_environment_error loses the error message

2014-03-07 Thread Thomas Kluyver
Thomas Kluyver added the comment: Duplicate of issue 4931. This function should be entirely unnecessary now. -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue19

[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze

2014-03-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think msg213138 has the key: importlib is actually getting frozen in the Python sense of the module's bytecode being included in a C file and then compiled, not just copied into a zip file. When we freeze importlib._bootstrap as _frozen_importlib, impo

[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze

2014-03-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: In the clean solution, it sounds like making importlib/__init__.py deal with the lack of a __file__ attribute would fix the problem in cx_Freeze. We'd still need to work out whether freezing importlib into the base executable is the right thing to do

[issue6424] Idle3 crashing when using completion

2009-07-05 Thread Thomas Courbon
New submission from Thomas Courbon : Configuration : fedora 11, python3.1 manually compiled and installed along python 2.6 (provided by the distribution). Reproducibility : seems to be happening any time Description : When you try to use the auto-completion (ctrl + space) on anything (tested

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread Thomas Heller
Thomas Heller added the comment: > One of the new tests in r74134 is failing on my box (Gentoo x86), and on > a number of the buildbots: I've seen that, but do not yet have a patch. -- title: Can not set value for structure members larger than 32 bits -> Can not

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread Thomas Heller
Thomas Heller added the comment: ctypes_workaround_2.patch from ocean-city seems to fix it so I'll apply that. -- title: Can not set value for structure members larger than 32 bits -> Can not set value for structure members larger than

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-07-23 Thread Thomas Wouters
Thomas Wouters added the comment: Here's a preliminary fix (also see http://codereview.appspot.com/96125/show ) -- assignee: -> twouters keywords: +patch nosy: +twouters Added file: http://bugs.python.org/file14553/import_lock_fork_deadl

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

2009-07-24 Thread Thomas Herve
Thomas Herve added the comment: This is a duplicate (although updated patch) from bug #1194378. It would still need unit tests... -- nosy: +therve ___ Python tracker <http://bugs.python.org/issue6

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-30 Thread Thomas Heller
Thomas Heller added the comment: Thanks for bringing my attention to this problem again, and for the review. Andrew McNabb schrieb: > > I looked at the attached patch, and it seems to me the only alternative > approach would be to use PyLong_FromLong instead of PyInt_FromLong

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-30 Thread Thomas Heller
Thomas Heller added the comment: Here's a corrected patch against svn trunk. -- Added file: http://bugs.python.org/file14608/patch-ctypes-none-arg-2.diff ___ Python tracker <http://bugs.python.org/i

[issue6613] ctypes.PyThreadState_SetAsyncExc does not work on linux 64bit machines

2009-07-31 Thread Thomas Heller
Thomas Heller added the comment: I have no time to figure out what the attached script is supposed to do. Please provide a standalone test-script and describe exactly how it should be used to reproduce the bug. However, I guess the problem is that the signature of PyThreadState_SetAsyncEx is

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-31 Thread Thomas Heller
Thomas Heller added the comment: Andrew McNabb schrieb: > I just looked at ConvParam in a little more detail, and it seems that > the problem is caused because setting pa->value.i to 0 only works for > the lower-order bits. Apparently the higher order bits in pa->value are

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-31 Thread Thomas Heller
Thomas Heller added the comment: Python 3.0 is dead ;-). -- versions: -Python 3.0 ___ Python tracker <http://bugs.python.org/issue4606> ___ ___ Python-bug

[issue6239] c_char_p return value returns string, not bytes

2009-07-31 Thread Thomas Heller
Thomas Heller added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file14615/c_char_p.patch ___ Python tracker <http://bugs.python.org/i

[issue6239] c_char_p return value returns string, not bytes

2009-08-15 Thread Thomas Heller
Thomas Heller added the comment: > I agree that the C type 'char' is a byte, not a character. So Python3 > should creates a Python bytes object for the ctypes "c_char_p" type. > Since Python 3.1 is out, is it too late to change it in the 3.x branch? > :-) Ma

[issue6735] restype pointer to Structure subclass never initialized

2009-08-19 Thread Thomas Heller
Thomas Heller added the comment: This is on purpose. The idea is that the function call returns an existing pointer to an existing object, so __init__ (or __new__, IIRC) is never called in this case. -- resolution: -> invalid status: open ->

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Thomas Kowaliczek
New submission from Thomas Kowaliczek : test test_multiprocessing failed -- Traceback (most recent call last): File "/home/LinuxDonald/Downloads/Python-3.1.1/Lib/test/test_multiprocessing.py", line 1077, in test_number_of_objects self.assertEqual(refs, EXPECTED_NUMBER) Asserti

[issue6748] test test_telnetlib failed

2009-08-20 Thread Thomas Kowaliczek
New submission from Thomas Kowaliczek : test test_telnetlib failed -- Traceback (most recent call last): File "/home/LinuxDonald/Downloads/Python-3.1.1/Lib/test/test_telnetlib.py", line 409, in test_debuglevel self._test_debuglevel([a, EOF_sigil], b) File "/home/LinuxD

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Thomas Kowaliczek
Thomas Kowaliczek added the comment: On my Netbook Fedora 11 32 Bit the test works but not on my NoteBook Fedora 11 64Bit -- ___ Python tracker <http://bugs.python.org/issue6

[issue6748] test test_telnetlib failed

2009-09-03 Thread Thomas Kowaliczek
Thomas Kowaliczek added the comment: Fedora 11 64 Bit -- ___ Python tracker <http://bugs.python.org/issue6748> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6239] c_char_p return value returns string, not bytes

2009-09-04 Thread Thomas Heller
Thomas Heller added the comment: Commited as svn rev 74664 (py3k) and rev 74665 (release31-maint). -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6923] Need pthread_atfork-like functionality in CPython

2009-09-16 Thread Thomas Wouters
New submission from Thomas Wouters : In order to properly handle multiple threads and fork()-calls from C code (rather than os.fork()), Python should provide pthread_atfork()-like functionality: a function to call before a fork, to acquire any locks that need to be acquired, and a pair of

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-09-16 Thread Thomas Wouters
Thomas Wouters added the comment: Checked in the patch to fix the forks-through-os.fork() cases, which should be most of them. Forks from other C code will need some more work, created http://bugs.python.org/issue6923 to track that. -- resolution: -> fixed status: open ->

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Thomas Heller added the comment: Since ctypes should stay compatible with Python versions down to 2.4, a "with" block cannot be used. Of course would closing the object returned by os.popen() explicitely be better style, but I wonder what the real problem is. My observations so f

[issue6729] Add support for ssize_t

2009-09-17 Thread Thomas Heller
Thomas Heller added the comment: Would you like to work on a patch? -- versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue6

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Thomas Heller added the comment: > The py3k version of the file already contains 3.x only code, and it's > missing the comment at the top that it should be compatible. But it's > not really a big deal to me. Yes, I had deleted the comment since the 3.x code cannot be compati

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Changes by Thomas Heller : -- assignee: theller -> eric.smith resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue6882> ___ ___ Pyth

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Thomas Heller
Changes by Thomas Heller : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker <http://bugs.python.org/issue5042> ___ ___ Python-bug

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Thomas Heller
Thomas Heller added the comment: The problem is the implementation of the current __init__ method, in Modules/_ctypes/_ctypes.c, line 4024. Rewritten in Python, and slightly simplified it looks like this: def __init__(self, *args, **kw): """The current BUGGY

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-18 Thread Thomas Heller
Thomas Heller added the comment: > Is that any help? Not really ;-). Here is a patch I just wrote - it must still be checked for correctness, and tests for it must be added. I hope the comment in the code explains how it works. ctypes-structinit.patch -- keywords: +patch Added f

<    9   10   11   12   13   14   15   16   17   18   >