[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I disagree that this issue is release critical. I'm still skeptical that this is a security bug; if it is, any solution created needs to be applied to all active branches - including the ones that would be blocked by this issue right now.

[issue5630] Create alternative CObject API that is safe and clean

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: dalcinl: Thanks, I've fixed the doc wrt writing int where I meant void *. As for using disambiguate in many places: there are a couple of sentences that are repeated in the documentation for several functions. Those repeated sentences all

[issue5938] Noddy examples haven't been updated to match PEP 3123

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: The changes in PEP 3123 require that all type objects be statically declared with PyVarObject_HEAD_INIT. However, the Noddy examples in Doc/ still use PyObject_HEAD_INIT. -- assignee: georg.brandl components: Documentation

[issue5939] Ensure that PyCapsule_GetPointer calls in ctypes handle errors appropriately

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: If my patch in issue 53046 is accepted, I hereby agree to figure out if the calls to PyCapsule_GetPointer() in Modules/_ctypes/callproc.c need more error checking or what. -- components: Interpreter Core messages: 87215 nosy:

[issue5932] _json: _convertPyInt_AsSsize_t() never raise any error

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in r72314. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5932 ___

[issue3585] pkg-config support

2009-05-05 Thread sol
sol simon.hen...@wiktory.org added the comment: - Shouldn't this file be installed only if the pkg-config utility is present, or if the directory $(LIBDIR)/pkgconfig already exists? Technically I suppose so That would mean that, if you first install Python and afterwards pkg-config,

[issue5938] Noddy examples haven't been updated to match PEP 3123

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r72317. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5938 ___

[issue5938] Noddy examples haven't been updated to match PEP 3123

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Whoops, I thought PEP 3123 applied to 2.7 as well. PEP *3*123. Duh, me slow today. -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5938

[issue5630] Create alternative CObject API that is safe and clean

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: A nice fresh patch, against r72309. Incorporates changes based on Benjamin's latest batch of Rietveld comments. They're thinning out, so we must be near the end--and with a day to spare. Also strips out almost-all documentation from

[issue5923] turtle.py update: 1.0 -- 1.1

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, I committed turtle30_to_31.diff, and additionally commented the print(_ver) out and updated the version in the comment at the file's top, and committed issues5923.doc.patch in r72318. -- resolution: - accepted status: open - closed

[issue5912] import deadlocks when using fork

2009-05-05 Thread Stefan Ring
Changes by Stefan Ring stefan...@gmail.com: -- nosy: +Ringding ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5912 ___ ___ Python-bugs-list mailing

[issue1068477] linecache.py::updatecache strips directory info from files

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- dependencies: -linecache module returns wrong results resolution: - duplicate status: open - closed superseder: - linecache module returns wrong results ___ Python tracker rep...@bugs.python.org

[issue1754483] linecache package handling

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Setting #1309567 as superseder. -- dependencies: -linecache module returns wrong results resolution: - duplicate status: open - closed superseder: - linecache module returns wrong results ___ Python

[issue1068477] linecache.py::updatecache strips directory info from files

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Setting #1309567 as superseder. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1068477 ___

[issue5940] Wrong type check in check_library_list

2009-05-05 Thread Cournapeau David
New submission from Cournapeau David da...@ar.media.kyoto-u.ac.jp: There is a bug in the function check_library_list. Assuming there are some libraries in the distribution instance, the function checks that lib[0] is a string, but the test checks exactly the contrary (line 137 of build_clib.py).

[issue1309567] linecache module returns wrong results

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied patch and added test suite in r72319. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1309567

[issue5902] Stricter codec names

2009-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-05-04 19:04, Georg Brandl wrote: Georg Brandl ge...@python.org added the comment: So, do you also think utf and latin should stay? For Python 3.x, I think those can be removed. For 2.x it's better to keep them. Note that UTF-8

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Try this as root, then repeat your test: semanage boolean -m --off allow_execstack Ok, I can reproduce the problem now. Thanks! -- title: ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC - ctypes should

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied the patch, added documentation and committed it as r72322. Thanks! -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5142

[issue5920] Confusing float formatting for empty presentation type.

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Updated patch, that removes the 's' type code. -- Added file: http://bugs.python.org/file13893/issue5920_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5920

[issue3585] pkg-config support

2009-05-05 Thread Clinton Roy
Clinton Roy clinton@gmail.com added the comment: Hi Sol, It's just a data file I suppose, Python should not need a dependency on pkg-config, and neither should there be a python-pkgconfig package that just contains the python.pc file. I think the approach to just always install the

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
New submission from Cournapeau David da...@ar.media.kyoto-u.ac.jp: The customize_compiler function is broken in python 3.1. The archiver for a 'standard' unix compiler is set as ['ar', '-cr'], but in python 3.*, customize_compiler overwrites self.archiver from get_sysconfig_var('AR'), and AR is

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This looks okay to me. (The itertools import isn't needed, but easy enough to fix on checkin.) I'd still like someone else to look it over, but if no one does before the beta, I'll check it in. -- keywords: +needs review stage: - patch

[issue1356969] Tix.py class HList missing info_bbox

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: loewis - gpolo nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1356969 ___ ___

[issue5941] customize_compiler broken

2009-05-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Hi David, do you have an example that breaks, I can reuse to write the test ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___

[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - marketdickinson nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Hi Tarek, Yes, I have a simple example, which show both 5940 and 5941 bugs: from distutils.core import setup # How to install libfoo.a/foo.lib in say pkg_dir/lib ? setup(name='yo', libraries=[('foo', {'sources': ['foo.c']})])

[issue5940] Wrong type check in check_library_list

2009-05-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Good catch ! Obviously this was introduced when the Python 2 version was refactored for Python 3 (in python 2 its if type(lib[0]) is not StringType) I shall fix this today or tonite (I need to add test coverage for this command) --

[issue5929] warnings in unicodeobject.c

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r72326. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5929 ___

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Both should be set as serious, in the sense that build_clib is totally broken ATM, with no simple workaround. OTOH, maybe numpy is the only user of build_clib, in which case it is not so serious (I use my own fixed, copied versions

[issue5919] pygettext documentation

2009-05-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This depends on how the distribution installs pygettext. For example, on Gentoo it isn't installed as a command at all. Since the original name in the Python source archive is pygettext.py, I'll not change this. -- resolution: - works

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, downgrading to critical. I'm awaiting the reporter's answer anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___

[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)

2009-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: About sign_warning_resource.patch: I don't know if RLIM_INFINITY constant is standard (always defined if getrlimit() is present). -- ___ Python tracker rep...@bugs.python.org

[issue5920] Confusing float formatting for empty presentation type.

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I've reviewed this and it looks good. I'll check it in to py3k shortly. Then I'll backport it to 2.7 and fix the user documentation. -- resolution: - accepted stage: patch review - ___ Python tracker

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-05 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: It isn't clear from the explanation of dbm.open's flag values at the beginning of the dbm documentation page whether 'c' and 'n' open the database just for writing or for reading and writing. I'm sure it's obvious to anyone familiar with dbm, and

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
New submission from Eric Smith e...@trueblade.com: I get a bus error in test_lchflags in test_posix.py on my Mac OS X 10.5 box. I'll try and spend some time later today to debug this, but here's the backtrace if anyone wants to look at it: Program received signal EXC_BAD_ACCESS, Could not

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: FreeBSD 6.3 also gives a segfault in test_posix. Gentoo runs fine. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5943

[issue5847] IDLE/Win Installer: drop -n switch for 2.7/3.1; install 3.1 as idle3

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The -n switch is now removed in r72335, r72336. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5847 ___

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Crashes at Lib/test/test__locale.py(107) test_float_parsing. from _locale import setlocale, LC_NUMERIC setlocale(LC_NUMERIC, 'es_ES.ISO8859-1') (crash) Yes, I agree that workaround should be placed in test rather than _locale

[issue5847] IDLE/Win Installer: drop -n switch for 2.7/3.1; install 3.1 as idle3

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm not sure what the necessary action is on the idle script. It's not used on Windows; it isn't even installed. So unassigning myself. -- assignee: loewis - ___ Python tracker

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Fedora Core 6 works okay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5943 ___ ___

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Does this patch fix the problem? -- keywords: +patch nosy: +marketdickinson Added file: http://bugs.python.org/file13894/issue5943.patch ___ Python tracker rep...@bugs.python.org

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Revised patch against HEAD. (With VC6 workaround) -- Added file: http://bugs.python.org/file13895/py3k_locale_test_on_windows.patch ___ Python tracker rep...@bugs.python.org

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Yes, that patch fixes the problem for me on Mac OS. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5943 ___

[issue1368247] unicode in email.MIMEText and email/Charset.py

2009-05-05 Thread Ben Gamari
Ben Gamari bgam...@gmail.com added the comment: What is the status of this? -- nosy: +bgamari ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1368247 ___

[issue4487] Add utf8 alias for email charsets

2009-05-05 Thread Ben Gamari
Ben Gamari bgam...@gmail.com added the comment: Has this patch been merged yet? -- nosy: +bgamari ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4487 ___

[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the patches. The first patch looks fine; I'll apply it shortly. For the second, I don't understand why you want to compare the return result with RLIM_INFINITY: PyInt_AsLong returns -1 to signal failure; is there some guarantee

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Fixes it on FreeBSD 6.3 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5943 ___

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: Further confusion: dbm.dumb._Database objects DO support items(), DO NOT support iteritems(), and DO support iterkeys() My previous comments referred to the general dbm documentation and the specifics of dbm.gnu. I haven't checked any of this

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: My Fedora Core 6 box still works with the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5943 ___

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Whoops, yeah, that was me forgetting that in py3k itertools.izip became just zip. I'll remove it in my branch in case I generate another patch. -- ___ Python tracker rep...@bugs.python.org

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is now fixed in r72340 (I came up with the same patch independently, and just hadn't got around to commit it). -- nosy: +loewis resolution: - fixed status: open - closed ___ Python tracker

[issue5884] pydoc to return error status code

2009-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This seems like a resonable thing for pydoc to do. However, I took a quick look, and pydoc has no notion of error status. Adding one would require a non-trival refactoring of the code (at least to do it right...a hackish version might not

[issue5861] test_urllib fails on windows

2009-05-05 Thread Senthil
Senthil orsent...@gmail.com added the comment: Fixed this in the revision: 72343. Agree to the comment on replacing '|' to ':' in pathname2url as windows recognizes it. test_urllib passes. -- resolution: - fixed ___ Python tracker

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Just 'cause I like you, here's an updated patch. The only change is the removal of import itertools and the update of the base version. -- Added file: http://bugs.python.org/file13896/lch.ntpath.r72345.diff

[issue918368] urllib doesn't correct server returned urls

2009-05-05 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue918368 ___ ___ Python-bugs-list

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: I'm getting what looks like a PEP 383-related failure in test_os, on OS X 10.5.6. Here's the tail end of running Lib/test/test_os.py, on a standard non-debug build of py3k. test_setuid (__main__.PosixUidGidTests) ... ok test_listdir

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: One other piece of information that may be relevant: Macintosh-4:py3k dickinsm$ echo $LANG en_US.UTF-8 If I unset the LANG environment variable then I get a different failure (see output below). I'll investigate this further and see if I

[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied the first patch in r72344, r72345, r72346, r72347. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___

[issue5920] Confusing float formatting for empty presentation type.

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Committed in py3k r72333 and trunk r72348. I also updated the documentation. Closing the issue. -- components: +Interpreter Core status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-05-05 Thread Senthil
Senthil orsent...@gmail.com added the comment: Fixed in the Revision 43132. -- assignee: - orsenthil nosy: +orsenthil resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-05-05 Thread Senthil
Senthil orsent...@gmail.com added the comment: fixed in revision 43132 ( smaller 'r' for the roundup to auto-hyperlink). :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1153027 ___

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: And, checking the methods of dbm.ndbm, I find get() and setdefault() but nothing like iterkeys() or iteritems(), just keys(). I think it might also be worth pointing out that a particular variation of dbm may be chosen to create a database file by

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-05-05 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1153027 ___ ___ Python-bugs-list mailing list

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-05-05 Thread Senthil
Senthil orsent...@gmail.com added the comment: Sorry, I meant fixed in revision 72351. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1153027 ___

[issue918368] urllib doesn't correct server returned urls

2009-05-05 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue918368 ___ ___ Python-bugs-list

[issue5861] test_urllib fails on windows

2009-05-05 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OS/X needs to be special cased in the tests, since it transforms the invalid filenames on write. And if I remember correctly older versions do something different...throw an error, maybe? The case where the letter looks the same (at

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The case where the letter looks the same (at least in my email) but is apparently different may require some thought, too. In case it's useful, when I do a list(map(ord, ...)) on those two lookalike strings I get (where 'expected' comes

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Here is a patch for Python trunk (linux only). -- Added file: http://bugs.python.org/file13897/issue5504.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Even better: for s in map(unicodedata.name, found): print(s) ... LATIN SMALL LETTER F LATIN SMALL LETTER O LATIN SMALL LETTER O LATIN SMALL LETTER O COMBINING DIAERESIS LATIN SMALL LETTER B LATIN SMALL LETTER A LATIN SMALL LETTER R for s

[issue4875] find_library can return directories instead of files

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Fixed in trunk (rev 72352), release26-maint (rev 72353), py3k (rev 72354), and release30-maint (rev 72355). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1648957] HP-UX: _ctypes/libffi/src/ia64/ffi/__attribute__/native cc

2009-05-05 Thread Thomas Heller
Changes by Thomas Heller thel...@ctypes.org: -- components: -Build stage: test needed - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1648957 ___

[issue1581906] test_sqlite fails on OS X if test_ctypes is run

2009-05-05 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: So, should this be closed as some kind of 'works for me' + 'wont fix' + 'third-party-bug' in Apple's sqlite? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581906

[issue1581906] test_sqlite fails on OS X if test_ctypes is run

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Probably. I do remember investigating this further, but I don't entirely remember what I found. I think Ronald's comment about flat namespaces turned out to be highly relevant though. -- ___

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think the patch is good to go. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5643 ___

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch that fixes the test failures for me. It's not ideal, because it no longer tests that on OS X, it's possible to open a file created with an invalid filename, using that same name. -- keywords: +patch Added file:

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Jan Lieskovsky
Jan Lieskovsky ian...@seznam.cz added the comment: Antoine, (re: #msg87083, #msg87084) -- while the API change is acceptable and reasonable, it doesn't solve the core of the problem. I understand the change needs to be 'backward compatible' and shouldn't break the existing Python behavior,

[issue5899] test_capi crashes when called more than once

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r72357. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5899

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think skipping the test entirely would be even better on Darwin. The test is really meant to pass only on systems that treat file names as uninterpreted byte sequences (as such, it may also fail on Linux if the file system driver enforces

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Looking at Guido's removal of this back in 1999, he says: * Lib/ntpath.py: Withdraw the UNC support from splitdrive(). Instead, a new function splitunc() parses UNC paths. The contributor of the UNC parsing in splitdrive() doesn't like it, but

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What's the question of 'security nature' of the issue, Glyph in message #msg86927 already uncovered potential implications -- The question is whether these are theoretical or real problems. I ran gedit (as proposed by Glyph) under

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think skipping the test entirely would be even better on Darwin. Sounds good to me! Here's a new (one-line) patch, using skipIf. -- Added file: http://bugs.python.org/file13899/issue5944_v2.patch

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Fine with me, please apply. -- assignee: - marketdickinson resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5944

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I've never understood what is the philosophical problem per se. It's clear from his implementation--Guido created splitunc when he removed my patch--that he thinks these should be precise string operations. Whereas I propose making these

[issue5944] test_os failure on OS X, probably related to PEP 383

2009-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Committed, r72359. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5944 ___

[issue5945] PyMapping_Check returns 1 for lists

2009-05-05 Thread John Millikin
New submission from John Millikin jmilli...@gmail.com: In Python 2, PyMapping_Check will return 0 for list objects. In Python 3, it returns 1. Obviously, this makes it rather difficult to differentiate between mappings and other sized iterables. In addition, it differs from the behavior of the

[issue1368247] unicode in email.MIMEText and email/Charset.py

2009-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It looks to me like MIMEText doesn't actually support unicode input. . One way to get the example to work is to do this: MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'.encode('utf-8'), 'plain', 'utf-8') The above call

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- assignee: eric.smith - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5799 ___ ___ Python-bugs-list

[issue5721] msi.py still tries to copy non-existent test/README

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r72361, r72362. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5721

[issue4709] Mingw-w64 and python on windows x64

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Lowering the priority. It's too difficult to setup the environment to be able to reproduce the issue being fixed. -- priority: critical - normal ___ Python tracker rep...@bugs.python.org

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is it possible to find out what specific encoding is being used? In most cases, nl_langinfo(CODESET) would be the right choice, but that depends on the LC_CTYPE category. If available, wcsftime should be used. In any case, I think issue5903

[issue5630] Create alternative CObject API that is safe and clean

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied in r72363. -- nosy: +benjamin.peterson resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5630

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied in r72365. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5643 ___

[issue5846] Deprecate obsolete functions in unittest

2009-05-05 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: So it turns out that unittest.makeSuite is used about 100 times throughout the standard library tests. More than half the time it can be replaced with unittest.TestLoader().loadTestsFromTestCase(...) Some of the other times a loader

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello Jan, 1, doesn't avoid the need to fix the issue (by calling PySys_SetArgvEx(argc, argv, 0);) in all current applications embedding Python, As you said yourself, we don't want to break backwards compatibility for C API users --

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The question is whether these are theoretical or real problems. I ran gedit (as proposed by Glyph) under strace(1), and it didn't try to open any files in the current directory. You have to use a Python-written gedit plugin for that to happen.

[issue5946] Fix spelling error in Capsule docs

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: In the comments for the Capsule patch: http://bugs.python.org/issue5630 dalcinl correctly pointed out that I had misspelled disambiguate, which I missed. This patch fixes that mistake. -- assignee: georg.brandl components:

[issue5947] Deprecate CObject

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: With the Capsule API patch accepted, I'd like to officially deprecate CObject. This patch causes Python to emit a single runtime warning the first time a CObject is constructed in a particular Python instance. If those aren't the right

  1   2   >