[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-05 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Committed the initial patch in r72375 for trunk and r72376 for py3k. Any other branches that would need the merge? 3.0? -- resolution: -> accepted stage: test needed -> committed/rejected status: open -> pending ___

[issue4709] Mingw-w64 and python on windows x64

2009-05-05 Thread Cournapeau David
Cournapeau David added the comment: The toolchain is difficult to build, but the patch is easy to review, it just moves the MS_WIN64 outside the MS compiler specific part. If it does not break the MS toolchain (the one used to build the official python), I don't see the problem. I can make the

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Mark Hammond
Mark Hammond added the comment: This looks good to me. My take on Guido's earlier notes are that they caused a problem in practice, and the philosophical concerns added justification for removing it. I'm yet to meet a Windows user with a philosophical objection to this. I'm attaching a new pa

[issue1368312] fix for scheme identification in urllib2?

2009-05-05 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5922] Multi-with patch

2009-05-05 Thread Éric Araujo
Éric Araujo added the comment: Nitpicking: I suggest renaming one class used in testing from CtorRaises to InitRaises, since __init__ is not a constructor (and the meaning of “Ctor” is not that obvious :) -- nosy: +Merwok ___ Python tracker

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: I don't know what would be proper, but I'm happy to change it if you think that's best. -- ___ Python tracker ___ __

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Mark Hammond
Mark Hammond added the comment: Should the DeprecationWarning for splitunc be a PendingDeprectionWarning for 3.1 and get 'upgraded' in 3.2? -- ___ Python tracker ___

[issue5947] Deprecate CObject

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : 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 semantics for a deprec

[issue5946] Fix spelling error in Capsule docs

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : 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: Documentation files: l

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

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou 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. For example

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

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou 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 -- especially between

[issue5846] Deprecate obsolete functions in unittest

2009-05-05 Thread Michael Foord
Michael Foord 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 needs to be constructed and

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r72365. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyt

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

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r72363. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

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

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis 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 and issue5562 are

[issue4709] Mingw-w64 and python on windows x64

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis 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 __

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

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r72361, r72362. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Changes by Eric Smith : -- assignee: eric.smith -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2009-05-05 Thread R. David Murray
R. David Murray 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 produces valid output f

[issue5945] PyMapping_Check returns 1 for lists

2009-05-05 Thread John Millikin
New submission from John Millikin : 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 ``collections.Mapping

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Committed, r72359. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings 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 slightly higher-le

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

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: Fine with me, please apply. -- assignee: -> marketdickinson resolution: -> accepted ___ Python tracker ___ __

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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 ___ Python tra

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

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis 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 strace(1), and it didn't

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Eric Smith 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 I haven't heard

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

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis 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 UTF-8). To skip it,

[issue5899] test_capi crashes when called more than once

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r72357. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2009-05-05 Thread Jan Lieskovsky
Jan Lieskovsky 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, but the current pro

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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: http://bugs.python.org/f

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think the patch is good to go. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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. -- ___ Python tracker

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

2009-05-05 Thread Thomas Heller
Thomas Heller 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 ___ __

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

2009-05-05 Thread Thomas Heller
Changes by Thomas Heller : -- components: -Build stage: test needed -> ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4875] find_library can return directories instead of files

2009-05-05 Thread Thomas Heller
Thomas Heller 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 __

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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 in map(unicode

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

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

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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 from the explicit .

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

2009-05-05 Thread R. David Murray
R. David Murray 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 least in my email) but is

[issue5861] test_urllib fails on windows

2009-05-05 Thread Senthil
Changes by Senthil : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue918368] urllib doesn't correct server returned urls

2009-05-05 Thread Senthil
Changes by Senthil : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2009-05-05 Thread Senthil
Senthil added the comment: Sorry, I meant fixed in revision 72351. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-05-05 Thread Senthil
Changes by Senthil : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/option

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model 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 calling the s

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

2009-05-05 Thread Senthil
Senthil added the comment: fixed in revision 43132 ( smaller 'r' for the roundup to auto-hyperlink). :) -- ___ Python tracker ___ _

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

2009-05-05 Thread Senthil
Senthil added the comment: Fixed in the Revision 43132. -- assignee: -> orsenthil nosy: +orsenthil resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker __

[issue5920] Confusing float formatting for empty presentation type.

2009-05-05 Thread Eric Smith
Eric Smith 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 _

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Applied the first patch in r72344, r72345, r72346, r72347. -- ___ Python tracker ___ ___ Python-bugs

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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 can figure out what

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

2009-05-05 Thread Mark Dickinson
New submission from Mark Dickinson : 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 (__main__.Pep383Tests) .

[issue918368] urllib doesn't correct server returned urls

2009-05-05 Thread Senthil
Changes by Senthil : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings 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 ___ Py

[issue5861] test_urllib fails on windows

2009-05-05 Thread Senthil
Senthil 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 _

[issue5884] pydoc to return error status code

2009-05-05 Thread R. David Murray
R. David Murray 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 be too difficult).

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Martin v. Löwis
Martin v. Löwis 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

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings 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 ___

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith added the comment: My Fedora Core 6 box still works with the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model 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 against the Un

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray
R. David Murray added the comment: Fixes it on FreeBSD 6.3 as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2009-05-05 Thread Mark Dickinson
Mark Dickinson 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 that RLIM_INFINITY

[issue4487] Add utf8 alias for email charsets

2009-05-05 Thread Ben Gamari
Ben Gamari added the comment: Has this patch been merged yet? -- nosy: +bgamari ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2009-05-05 Thread Ben Gamari
Ben Gamari added the comment: What is the status of this? -- nosy: +bgamari ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith added the comment: Yes, that patch fixes the problem for me on Mac OS. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 __

[issue5943] Bus error in test_posix on Mac OS

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

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
Eric Smith added the comment: Fedora Core 6 works okay. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 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

[issue5643] test__locale fails with RADIXCHAR on Windows

2009-05-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 module. I'll create suc

[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 added the comment: The -n switch is now removed in r72335, r72336. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread R. David Murray
R. David Murray added the comment: FreeBSD 6.3 also gives a segfault in test_posix. Gentoo runs fine. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue5943] Bus error in test_posix on Mac OS

2009-05-05 Thread Eric Smith
New submission from Eric Smith : 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 access memory. Reason:

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-05 Thread Mitchell Model
New submission from Mitchell Model : 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 the example d

[issue5920] Confusing float formatting for empty presentation type.

2009-05-05 Thread Eric Smith
Eric Smith 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

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

2009-05-05 Thread STINNER Victor
STINNER Victor 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 ___

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

2009-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: release blocker -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2009-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, downgrading to critical. I'm awaiting the reporter's answer anyway. -- ___ Python tracker ___ __

[issue5919] pygettext documentation

2009-05-05 Thread Georg Brandl
Georg Brandl 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 for me status:

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David 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 of the original code for the

[issue5929] warnings in unicodeobject.c

2009-05-05 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r72326. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5940] Wrong type check in check_library_list

2009-05-05 Thread Tarek Ziadé
Tarek Ziadé 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) -- priority: -> criti

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
Cournapeau David 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']})]) """ foo.c can be an empty

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

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5941] customize_compiler broken

2009-05-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: Hi David, do you have an example that breaks, I can reuse to write the test ? -- ___ Python tracker ___ ___

[issue1356969] Tix.py class HList missing info_bbox

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: loewis -> gpolo nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Eric Smith
Eric Smith 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 review __

[issue5941] customize_compiler broken

2009-05-05 Thread Cournapeau David
New submission from Cournapeau David : 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 defined as ar, which breaks c

[issue3585] pkg-config support

2009-05-05 Thread Clinton Roy
Clinton Roy 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 python.pc file is the right o

[issue5920] Confusing float formatting for empty presentation type.

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

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

2009-05-05 Thread Georg Brandl
Georg Brandl added the comment: Applied the patch, added documentation and committed it as r72322. Thanks! -- resolution: -> accepted status: open -> closed ___ Python tracker _

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

2009-05-05 Thread Thomas Heller
Thomas Heller 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 work with syste

[issue5902] Stricter codec names

2009-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-05-04 19:04, Georg Brandl wrote: > Georg Brandl 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 was the first official Uni

[issue1309567] linecache module returns wrong results

2009-05-05 Thread Georg Brandl
Georg Brandl added the comment: Applied patch and added test suite in r72319. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5940] Wrong type check in check_library_list

2009-05-05 Thread Cournapeau David
New submission from Cournapeau David : 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). This is pretty serious, as

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

2009-05-05 Thread Georg Brandl
Georg Brandl added the comment: Setting #1309567 as superseder. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue1754483] linecache package handling

2009-05-05 Thread Georg Brandl
Georg Brandl 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 tracker

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

2009-05-05 Thread Georg Brandl
Changes by Georg Brandl : -- dependencies: -linecache module returns wrong results resolution: -> duplicate status: open -> closed superseder: -> linecache module returns wrong results ___ Python tracker _

[issue5912] import deadlocks when using fork

2009-05-05 Thread Stefan Ring
Changes by Stefan Ring : -- nosy: +Ringding ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2009-05-05 Thread Georg Brandl
Georg Brandl 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 ___

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

2009-05-05 Thread Larry Hastings
Larry Hastings 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 "pycapsule.h". Note: this

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

2009-05-05 Thread Larry Hastings
Larry Hastings 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 ___ __

  1   2   >