[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Shridar: that is correct a framework install will not look in ~/.local, but only in ~/Library/Python/2.7 (there is an install scheme in distutils that describes the exact layout). Technically the name "Python" subdirectory is sysconfig.get_config_var("PYTH

[issue2504] Add gettext.pgettext() and variants support

2010-05-19 Thread Wil Clouser
Wil Clouser added the comment: Yes. You can see an in-production implementation at http://github.com/clouserw/tower/blob/master/tower/__init__.py#L51 (I'm overriding ugettext to support an optional context). -- ___ Python tracker

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-19 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Done: http://codereview.appspot.com/1193044 This is my first time using Rietveld. Let me know if I've done anything wrong. -- ___ Python tracker ___

[issue8746] *chflags detection broken on FreeBSD 9-CURRENT

2010-05-19 Thread Garrett Cooper
Garrett Cooper added the comment: . -- Added file: http://bugs.python.org/file17414/config.log ___ Python tracker ___ ___ Python-bugs-

[issue8774] 0xe7 in ``heapq.__about__`` causes badness

2010-05-19 Thread Dan Buch
Changes by Dan Buch : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8774] 0xe7 in ``heapq.__about__`` causes badness

2010-05-19 Thread Dan Buch
New submission from Dan Buch : I noticed while running ``python3 -m tabnanny -v Lib/*.py`` that the process died at heapq.py. The 0x37 char in "François Pinard" (in the ``__about__`` attr) was the culprit. The attached patch replaces it with '\xe7'. Changing the encoding cookie was not nece

[issue8773] mailbox module is needlessly executable

2010-05-19 Thread Dan Buch
New submission from Dan Buch : While running various modules with the ``-m`` flag to check for command-line behavior, I noticed that the mailbox module currently has svn:executable set. The module contains no ``if __name__ == '__main__'`` magic and, as one would expect, nothing happens when i

[issue4769] b64decode should accept strings or bytes

2010-05-19 Thread Dan Buch
Dan Buch added the comment: This appears to still be an issue in py3k. I've attached the command and output when running ``python3 -m base64`` with various options and inputs. If there's consensus on a solution, I'd be happy to take a crack at making a patch. -- nosy: +meatballhat A

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Ray.Allen
Ray.Allen added the comment: Add get_paths()'s output seems reasonable and simple enough, also we could make the output format prettier. -- nosy: +ysj.ray ___ Python tracker ___

[issue1184112] Missing trailing newline with comment raises SyntaxError

2010-05-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: This has been fixed in 2.7 and 3.2. -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2010-05-19 Thread Henry Precheur
Changes by Henry Precheur : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2010-05-19 Thread Henry Precheur
Henry Precheur added the comment: The bug is also present with Python 3.1 on OpenBSD 4.7-current. -- ___ Python tracker ___ ___ Python

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-19 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ideally I like to have a function like this: def get_current_scheme(usersite=False): scheme = os.name if usersite: scheme += '_user' elif scheme == 'posix':

[issue8772] sysconfig: _get_default_scheme can be made public?

2010-05-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Currently there is no way to get the default scheme for *current* platform other than plainly *assuming* that that is os.name unless it is posix, in which case it becomes posix_prefix. PyPM needs to know this. But I am slightly reluctant to hardcode it

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue2504] Add gettext.pgettext() and variants support

2010-05-19 Thread Bernie H. Innocenti
Bernie H. Innocenti added the comment: While we're waiting for this patch to be upstreamed, what's the best way to emulate this functionality with the current gettext module? I'm looking at the patch and it seems that code similar to this might work? def pgettext(ctx, msg): return gett

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread Alice Bevan-McGregor
Alice Bevan-McGregor added the comment: Unfortunately, unless I can get instructions on how to properly diagnose socket libraries, I've exhausted my ability to debug this. I used to be a C programmer, but that was 12 years ago. I'm hoping to a) confirm the problem exists on Mac (not just my

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread R. David Murray
R. David Murray added the comment: Why do you think this is a bug in Python? I'm not yet saying it isn't, but we'll need additional information to show that it is. Given that it works on Linux, it seems like the most likely case would be that it is an issue with the OS (perhaps requiring ad

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread Alice Bevan-McGregor
Alice Bevan-McGregor added the comment: I can confirm this issue also effecting 2.5.4 on my Mac. -- versions: +Python 2.5 ___ Python tracker ___ _

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread Alice Bevan-McGregor
New submission from Alice Bevan-McGregor : Using the wsgiref simple HTTP server or any other capable of > 2000 requests/sec. demonstrates an issue with Macintosh sockets. Mac OS X Version: 10.6.3 (Build 10D573) Python Version: 2.6.1 (32-bit) The minimal application needed to demonstrate the pr

[issue3819] urllib2 sends Basic auth across redirects

2010-05-19 Thread Mads Kiilerich
Mads Kiilerich added the comment: FYI, this change caused a regression in Mercurial - see http://mercurial.selenic.com/bts/issue2179. -- nosy: +kiilerix ___ Python tracker ___ _

[issue8559] test_gdb: test_strings() fails with ASCII locale

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: r81375 improves unicode support of libpython.py. I hope that it will be enough to fix test_strings() failures. -- ___ Python tracker ___ __

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: weird, just realized "python -m site" doesn't print anything for me.. > If you want to make it sophisticated you could support arguments/options > using the 'argparse' module. :) Let's add the simplest case at first ;) -- __

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Yes, get_paths(). It could also print get_config_vars(), yes. If you want to make it sophisticated you could support arguments/options using the 'argparse' module. :) -- ___ Python tracker

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: You mean get_paths ? It could also print out get_config_vars() output -- ___ Python tracker ___ ___ Py

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : "python2.7 -m sysconfig" at the moment does not print anything. "python2.7 -m site", for instant, prints useful information. Perhaps the output of `sysconfig.get_path` can be pretty printed? -- assignee: tarek components: Distutils messages: 106

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed in r81371, r81372 Thanks! I let you close the issue once you are through with the rest of the talk. -- ___ Python tracker ___ _

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: "python/2.7/site-packages" is a typo in sysconfig, it should be "python2.7/site-packages" you are right. Fixing it.. -- ___ Python tracker ___ __

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On further analysis: $ /tmp/apy27/bin/python -c "from sysconfig import get_path; print get_path('purelib', 'posix_user')" /home/sridharr/.local/lib/python/2.7/site-packages $ >From sysconfig.py: 'posix_user': { 'stdlib': '{userbase}/lib/pytho

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Will you post to Rietveld, please? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: @Ronald: Ah, I see. So on Mac, Python 2.7 (with default site configuration) will not pickup packages installed in ~/.local, correct? It will, from now onwards, only consider ~/Library/Package as the user site directory? I ask because I just want to double

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: This issue is specific to Mac OS X because the file system encoding is hardcoded to UTF-8 on this OS. As written in msg76244, the problem is that the encoding is different for input (sys.argv) and output arguments (arguments of child processes). As written in

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1608805] Py_FileSystemDefaultEncoding can be non-canonical

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #4213 which was fixed by r67055 (py3k). -- resolution: -> duplicate status: open -> closed ___ Python tracker _

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: If I understood correctly, this issue is a regression introduced by r67055 (to fix #4213). Read: http://bugs.python.org/issue4213#msg75387 See also r67057 (issue #3723). -- ___ Python tracker

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Minor fix to the patch: the import of Header could actually be removed, since the class is no longer referenced at all with this change. -- ___ Python tracker _

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: The attached patch is a possible fix; it uses the decode_header() and make_header() functions to figure out the encoding properly; it fixes my example, at least. But does it increase the odds of crashing on messages with malformed headers? Should it go into

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
New submission from A.M. Kuchling : The attached test program shows how parsing an e-mail message with the email package, then converting the resulting message to a string, fails to round-trip properly. Instead it breaks the encoding of the subject line. The root of the problem: the subject i

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: > I thought you had a unit test, I don't see any in your commit "patch -p0 < ... && svn ci" doesn't include new files. I forgot it. r81361 includes the new file. -- ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: I thought you had a unit test, I don't see any in your commit -- ___ Python tracker ___ ___ Python-bugs

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: See also #4352. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: See also #8611. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: Fix commited to py3k (r81364). Wait for the buildbots beforing doing the backport. -- resolution: -> fixed status: open -> pending ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: > I commited to patch on distutils.log in r81359 (py3k) Backported to 3.1 as r81363. -- status: pending -> open ___ Python tracker ___

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: Oh, Python 3.1 doesn't use the PYTHONWARNINGS variable: commit blocked in 3.1 (r81362). -- dependencies: -regrtest: use backslashreplace error handler for stdout status: pending -> closed ___ Python tracker

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue7902] relative import broken

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Pyth

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: One more design question. For something like: 'H}H', what endianness should be used when packing/unpacking the last 'H'? Should the switch to '>' within the embedded struct be regarded as local to the struct? With your patch, I get: >>> pack('H}H', 1, (2,)

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, it should have been: assert(soself->s_tree != NULL); Got it now. All tests pass. :) -- ___ Python tracker ___ ___

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Something's not quite right: the _struct module fails to compile for me with this patch. I get: /Users/dickinsm/python/svn/py3k/Modules/_struct.c: In function ‘s_unpack’: /Users/dickinsm/python/svn/py3k/Modules/_struct.c:1730: error: ‘PyStructObject’ h

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Travis, this issue is still assigned to you. Do you plan to work on this at some stage, or may I unassign you? -- ___ Python tracker ___ _

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the Rietveld upload. I haven't had a chance to review this properly yet, but hope to do so within the next few days. One question: the production list you added to the docs says: format_string: (`byte_order_specifier`? `type_string`)* This sugg

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Orlando Irrazabal
Orlando Irrazabal added the comment: Antonie, you are right, the interpreter was compiled fine, this is the output when i run python r...@host:python-2.6.5# ./python 'import site' failed; use -v for traceback Python 2.6.5 (r265:79063, May 18 2010, 19:19:48) [C] on aix5 Type "help", "copyright"

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Ashley Sands
Ashley Sands added the comment: Thanks Senthil & Brett for your help. Here's my patch. It is very simple, so simple I think it may be wrong. -- keywords: +patch Added file: http://bugs.python.org/file17409/linkToPep3247.diff ___ Python tracker

[issue8687] sched.py module doesn't have a test suite

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17408/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17407/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17407/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17385/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2010-05-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Doesn't breaking installation of packages on a major platform warrant a > quicker release of a fix? No, only security-related issues may warrant a change to the release schedule. -- title: distutils makefile from python.org installer doesn't work o

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread R. David Murray
R. David Murray added the comment: Why would you not want to catch all value errors? I assume (perhaps a bad thing) that distribute will repeat the returned error message in a more user friendly format. If a bug in urlparse returns a spurious ValueError, that will presumably be found (and t

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: I commited to patch on distutils.log in r81359 (py3k). I'm waiting for the buildbot before backporting to 3.1. -- resolution: -> fixed status: open -> pending ___ Python tracker

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, this patch looks fine to me for py3k. More tests would be great, but I don't see much other cleaning up that needs doing. Just one thing: I'd make the 'i.imag == 0.0' check earlier, so that the potentially expensive long-to-float check can be avoided

[issue8768] The checkempty_symmetric_difference test is never called

2010-05-19 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : In test_set.py (and test_sets.py in 2.x), there's a method named "checkempty_symmetric_difference". It should be named "test_checkempty_symmetric_difference" so that it will actually be called as a test. It's not referenced anywhere else. The test veri

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, I commited my patch: r81358 (py3k). I'm waiting for the buildbots before backporting the fix to 3.1. -- ___ Python tracker ___

[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: The problem is that a warning is emited before the _warnings module is initialized: get_filter() uses _filters which is equal to NULL. Attached patch initialize the _warnings module (but not the warnings module) before initfsencoding(). initfsencoding() is th

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Changes by Charles Solar : Removed file: http://bugs.python.org/file17403/config.log ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Charles Solar added the comment: Seems as though python 2.7 should not support --disable-unicode so this ticket is invalid. I just googled python disable unicode, but it seems that the decision to never disable unicode is recent. Closing -- status: open -> closed ___

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
New submission from Charles Solar : I am compiling python on AIX 5.3. The normal configure and make works, except it fails to compile the unicodedata module. The assembler reports a bunch of these errors: Error: value of 0001268b too large for field of 2 bytes at 006d Th

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-05-19, at 5:00 AM, Tarek Ziadé wrote: > I've fixed the problem on distribute side by catching any ValueError returned > by urlparse (from 2.6 or 2.7 point of view). Catching ValueError will catch *every* ValueError raised, rather than only the in

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Brian Curtin
Brian Curtin added the comment: Are you allowing it to install into all Python versions? I have a package here at work that I make bdist_msi installers for and most of my machines have 2.6 and 3.1 on them. During the install I only choose to install it for 3.1 when the extensions are compiled

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an "invalid state" since handle_error() should automatically remove the invalid dispatcher instance from the socket_map if

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an "invalid state" since handle_error() should automatically remove the "invalid dispatcher instance" from the socket_map

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: >From a brief glance, the approach in your patch looks fine to me. I'll have a >proper look at it later today. -- ___ Python tracker ___ _

[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme

2010-05-19 Thread Sagiv Malihi
Sagiv Malihi added the comment: Example: class A(object): def __init__(self): print "initializing something very important" # and then pay it forward... super(A, self).__init__() class B(list, A): pass b = B() # A's init is never called... -- _

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to your log, the interpreter itself compiled fine (you can check that with "./python" and even run the test suite: "./python -m test.regrtest -w"), but the _ctypes extension failed configuring. -- assignee: -> theller nosy: +pitrou, theller

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: [Meador] > One of the unit tests ('test_complex.test_richcompare') explicitly > checks for the overflow. [Mark] > I just discovered that there's actually a test for part of this > behaviour D'oh! Next time I'll read your whole message before responding to the

[issue1053369] ftplib: add support for MDTM command

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Closing this out for lack of further activity. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2010-05-19 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Python 3.1 and 3.2 fail with segmentation fault when a directory in PYTHONPATH contains an empty "encodings" subdirectory. $ cd /tmp $ mkdir encodings $ PYTHONPATH=. python3.1 Segmentation fault -- components: Interpreter Core

[issue7902] relative import broken

2010-05-19 Thread Meador Inge
Meador Inge added the comment: Does this patch seem reasonable? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Thinking about it, I still like the _PyLong_CompareWithDouble plan even for trunk: there's a precedent for some PyLong methods working with plain ints as well as for longs. See e.g. PyLong_AsLongLong and friends. --

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread Vinay Sajip
Vinay Sajip added the comment: If you look closely, the system is not determining the name of the next log file. It is renaming log files - app.log.2 -> app.log.3, app.log.1 -> app.log.2, app.log -> app.log.1. The "next log file" is always app.log (or whatever the base file name is, I've just

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: > Like you mentioned before a lot of care is taken in 'floatobject.c' to > > ensure that the comparison is robust. Would it be a good approach to > leverage that work? Absolutely, yes! I was thinking of moving that chunk of code out of float_richcompare and

[issue8142] libffi update to 3.0.9

2010-05-19 Thread Florent Xicluna
Florent Xicluna added the comment: It seems fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker ___ __

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Pascal Chambon
Pascal Chambon added the comment: None at all, a simple python "setup.py bdist_msi". Once I've installed the MSI(and whatever the target python version I chose), launching it again will always trigger a "repair/uninstall" wizard, and the operatiosn I do with it are made on ALL python versions

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Meador Inge
Meador Inge added the comment: > For a complex number z and an integer i, 'z == i' should be exactly > equivalent to 'z.real == i and z.imag == 0.0'. Like you mentioned before a lot of care is taken in 'floatobject.c' to ensure that the comparison is robust. Would it be a good approach to le

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-05-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: r81319 fixed 4 calls in pythonrun.c. -- ___ Python tracker ___ ___ Python-bugs-

[issue8759] 2.7: wrong user site directory on Linux; totally missing on OSX

2010-05-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The --user directory for framework installs of python on OSX has changed from a subdirectory of ~/.local to a subdirectory ~/Library. As described in the NEWS file: - Issue #8084: PEP 370 now conforms to system conventions for framework builds on MacOS X.

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: > Although, all these patchs should have some tests demonstrating the bugs As discussed on IRC, fixing distutils.log package instead of setup.py is better. New patch includes unit tests. -- Added file: http://bugs.python.org/file17401/distutils_log_b

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: @iki: could you refactor your code so it's in shutil (and the tests in test_shutil) few remarks: only which/which_files should be public API, Next, I don't think extensions like VBS should be hardcoded if PATHEXT is not found. A pseudo-dos shell just runs .exe

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: tarek tested on Mac OS X: the patch fixes test_warnings issue. -- ___ Python tracker ___ ___ Python-

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread Pascal Chambon
New submission from Pascal Chambon : In test_fileio, one of the tests wants to ensure writing to closed raw streams fails, but it actually tries to write an unicode string, which should rather lead to an immediate TypeError. Here is a tiny patch to prevent the "double error cause" danger - thi

  1   2   >