[issue17226] libintl should also check for libiconv

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: Sure this is on an Atari m68k platform called FreeMiNT. Traditionally in configure scripts you'll see it checked as *-mint* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17226

[issue17228] Building without PYMALLOC fails

2013-02-19 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17228 ___

[issue17228] Building without PYMALLOC fails

2013-02-19 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17228 ___ ___ Python-bugs-list mailing

[issue7469] Design and History FAQ entry on Floating Point does not mention short repr.

2013-02-19 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed; I think this did all get updated at one point or another. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7469 ___

[issue17231] Mark __del__ not being called in cycles as an impl detail

2013-02-19 Thread Mark Dickinson
Mark Dickinson added the comment: Just for the record, the python-dev discussion starts here: http://mail.python.org/pipermail/python-dev/2013-February/124044.html -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-02-19 Thread Martin Mokrejs
New submission from Martin Mokrejs: Hi, I do see relatively often a crash in python. Here is one stacktrace from my Gentoo Linux running 3.7.4 kernel: (gdb) where #0 0x7f624f340f08 in visit_decref () from /usr/lib64/libpython2.7.so.1.0 #1 0x7f624f2a455a in list_traverse () from

[issue17235] make sharedinstall ignores ./configure settings

2013-02-19 Thread Michael Kuhn
New submission from Michael Kuhn: I need to install Python 2.7 in two architectures, but under one file system. I thus configure: /home/cellnet/michaelk/SRC/Python-2.7.3 ./configure --prefix=/home/cellnet/michaelk/biocluster --exec-prefix=/home/cellnet/michaelk/biocluster -q When I compile

[issue17232] Improve -O docs

2013-02-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: It should also add that in the future, more optimizations may be added i.e. a peephole optimizer, etc. -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-02-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Sorry, but this doesn't give enough information to fix it, nevertheless reproduce it. Please tell us what Python was running. Also run python with -X faulthandler and give the results. -- nosy: +Ramchandra Apte

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-02-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Oops. Please ignore the sentence about adding -X faulthandler. Please install the faulthandler module [0] and run import faulthandler;faulthandler.enable(), and then reproduce the bug. ^0 https://pypi.python.org/pypi/faulthandler/ --

[issue17232] Improve -O docs

2013-02-19 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: There were not for at least 10 years. I would also be the first one to strongly object adding optimizations only under -O, because that already changes semantics. -- ___ Python tracker rep...@bugs.python.org

[issue17236] format_spec for sequence joining

2013-02-19 Thread Tobia Conforto
New submission from Tobia Conforto: The format specification mini-language (format_spec) supported by format() and str.format() is a feature that allows passing short options to the classes of the values being formatted, to drive their string representation (__format__ method) The most

[issue11215] test_fileio error on AIX

2013-02-19 Thread alef
Changes by alef alessandro.for...@eumetsat.int: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11215 ___ ___

[issue7063] Memory errors in array.array

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: I think msg93598 sums it up: array_ass_slice() is only called with v==NULL, so the issue can't be triggered. However, it's pretty dirty to leave the code as is (IIRC Coverity also had some complaints), so Chuck's suggestion to rewrite the function as

[issue17236] format_spec for sequence joining

2013-02-19 Thread R. David Murray
R. David Murray added the comment: IMO, this is a python-ideas level suggestion. Please propose it on that mailing list. You can reopen the issue if you get a positive response there. -- nosy: +eric.smith, r.david.murray resolution: - later stage: - committed/rejected status: open

[issue17232] Improve -O docs

2013-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: Ramchandra, as it turns out, if we deem an optimization semantically safe, we do it without -O, it we deem it unsafe, we don't do it at all. Thus, the real effect is to remove assert statements and optimise code as if __debug__ was replaced by a literal zero

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
New submission from Alan Hourihane: On m68k this assert triggers in Python/unicodeobject.c:4658 because m68k architectures can align on 16bit boundaries. assert(!((size_t) dest LONG_PTR_MASK)); I'm not sure of the wider implications in Python as to how to rectify. -- components:

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Christian Heimes
Christian Heimes added the comment: We don't have a m86k test box and I don't think we support this platform either. -- nosy: +christian.heimes, trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: So that all happens because importlib does an atomic write of the file which uses os.replace(): http://hg.python.org/cpython/file/83d70dd58fef/Lib/importlib/_bootstrap.py#l121 . Unless there is some way that I can't think of to have the atomic write still

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-02-19 Thread Ankur Ankan
Changes by Ankur Ankan ankuran...@gmail.com: -- nosy: +Ankur.Ankan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list

[issue7063] Memory errors in array.array

2013-02-19 Thread Chuck
Chuck added the comment: I attached a patch, in which I removed v and all code having to do with inserting elements. In particular, I changed the value of b to being positive, since there is no distinction between increasing and decreasing size anymore. -- keywords: +patch nosy:

[issue15767] add ImportNotFoundError

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: The original need was for internal importlib usage, but upon reflection it could also be used by the eval loop for that (http://hg.python.org/cpython/file/83d70dd58fef/Python/ceval.c#l4560), so I'm fine with changing the name to ImportNotFoundError. --

[issue15976] Inconsistent behavior of search_for_exec_prefix() results in startup failure in certain cases

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +loewis, ncoghlan stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15976 ___

[issue17232] Improve -O docs

2013-02-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232 ___ ___ Python-bugs-list

[issue17228] Building without PYMALLOC fails

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: Why not define uint for the whole file regardless of PYMALLOC? -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17228 ___

[issue17231] Mark __del__ not being called in cycles as an impl detail

2013-02-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17231 ___ ___ Python-bugs-list

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: I'm willing to help fix, but there are m68k emulators out there which I guess suffice for a test box. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: TBH, I don't think we should support this platform officially. Is that processor still in use (e.g. in embedded systems)? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: Wikipedia says derivative processors are still widely used in embedded applications. in m68k article. -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Freescale (ex-Motorola) ColdFire architecture is alive and doing well. And I know people still running Motorola 68040 Apple machines. The problem is not a m68k emulator, but to build all the needed environment on it: OS, compilers, network, etc. If the

[issue13700] imaplib.IMAP4.authenticate authobject does not work correctly in python3

2013-02-19 Thread Demian Brecht
Demian Brecht added the comment: Has there been any further work/review done on this issue? I just ran into the problem myself on 3.4(dev) and can verify that the patch (imaplib_authenticate_v.patch) fixes the issue. -- nosy: +dbrecht versions: +Python 3.4

[issue17238] Enhance import statement completion

2013-02-19 Thread Ramchandra Apte
New submission from Ramchandra Apte: [patch under development] I propose to add completions for import tab from tab from x import tab Also, if one types imp.tab , IDLE should import the module and list dir(module). (There will be an option to disable/enable the last two completion cases as

[issue17239] XML vulnerabilities in Python

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17239 ___ ___

[issue17239] XML vulnerabilities in Python

2013-02-19 Thread Christian Heimes
New submission from Christian Heimes: Experimental fix for XML vulnerabilities against default. It's NOT ready and needs lots of polishing. https://pypi.python.org/pypi/defusedxml contains explanations of all issues https://pypi.python.org/pypi/defusedexpat is a standalone version of part of

[issue17238] Enhance import statement completion

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17238 ___

[issue13719] bdist_msi upload fails

2013-02-19 Thread Christian Heimes
Christian Heimes added the comment: I have been bitten by the bug today, too. -- nosy: +christian.heimes versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___

[issue17240] argparse: subcommand name and arity

2013-02-19 Thread Thibault Kruse
New submission from Thibault Kruse: I realize there have been several suggestions around argparse subcommands. Mine is related to this isse: http://bugs.python.org/issue9253 In short, I suggest that the add_subparsers() function take an argument like nargs that determines how many times user

[issue15767] add ImportNotFoundError

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The original need was for internal importlib usage, but upon reflection it could also be used by the eval loop for that (http://hg.python.org/cpython/file/83d70dd58fef/Python/ceval.c#l4560), so I'm fine with changing the name to ImportNotFoundError. I don't

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unless there is some way that I can't think of to have the atomic write still exist but not change the type of file it replaces How about using the `mode` to write_atomic? (which, incidentally, is already used to mirror the .py file's permissions in

[issue13700] imaplib.IMAP4.authenticate authobject does not work correctly in python3

2013-02-19 Thread R. David Murray
R. David Murray added the comment: Demian: thanks for the reminder, and the confirmation that it works on a real server. Erno: thanks for the test fix. That was a pretty stupid mistake on my part :) -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue13700] imaplib.IMAP4.authenticate authobject does not work correctly in python3

2013-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d4302718e7c by R David Murray in branch '3.2': #13700: Make imap.authenticate with authobject work. http://hg.python.org/cpython/rev/3d4302718e7c New changeset b21f955b8ba2 by R David Murray in branch '3.3': Merge: #13700: Make imap.authenticate

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: Use the mode how exactly? I mean isn't the problem the os.replace() call and not os.open() on the source file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17222

[issue17239] XML vulnerabilities in Python

2013-02-19 Thread Franck Michea
Changes by Franck Michea franck.mic...@gmail.com: -- nosy: +kushou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17239 ___ ___ Python-bugs-list

[issue15767] add ImportNotFoundError

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: Technically it should be ModuleOrSomeObjectNotFoundBecauseFromListIsTheBaneOfMyExistenceError, but we might be starting to mix paints for paints a shed shortly. Fine, that's 1 to 1 for ModuleNotFoundError vs. ImportNotFoundError. --

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Use the mode how exactly? I mean isn't the problem the os.replace() call and not os.open() on the source file? If you want to reproduce the original file's access rights, you have to pass the right mode flags to os.open(). Of course, this won't recreate

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Of course, this won't recreate symlinks and the like. But I don't think we can do something for that anyway, since we want to replace to happen automatically. I meant: we want the replace to happen atomically :-) --

[issue15767] add ImportNotFoundError

2013-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: If we can promise not to use it in the from-import case :) I'm okay with the more specific name (in fact it is preferable). From Brett's response, it sounds like we have flexibility there and don't need it to be the same? For from-import I would prefer the

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Jeff Mansfield
New submission from Jeff Mansfield: Python-2.3.5.exe seems to be corrupt. I’ve tried downloading Python-2.3.5.exe a number of times in the past week, and so have a few of my colleagues. It always transfers in an incomplete manner, resulting in only 4.7 out of 9.1 MB. I have tried from several

[issue17240] argparse: subcommand name and arity

2013-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is not satisfactory. I would prefer: import argparse argparser = argparse.ArgumentParser() subparsers = argparser.add_subparsers('cmd1') % name here Have you tried passing by keyword? subparsers = argparser.add_subparsers(dest='cmd1') It seems to

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to download it on a win xp machine and I succeeded at the first attempt (even thought it seemed to be stuck for a few seconds before reaching 100%). I was also able to start the installer, even thought I didn't install it. This is the version I

[issue14219] make the Classes tutorial more gentle

2013-02-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- title: start the Class tutorial in a more gentle manner - make the Classes tutorial more gentle versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14219

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Jeff Mansfield
Jeff Mansfield added the comment: Ezio, It is what was in use on my old machine, and I don't want to move versions. Thanks, Jeff -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17241 ___

[issue15767] add ImportNotFoundError

2013-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can this be the same ImportError but with special flag? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15767 ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which branch or version of Python is that? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237 ___

[issue15767] add ImportNotFoundError

2013-02-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 19, 2013, at 07:24 PM, Serhiy Storchaka wrote: Can this be the same ImportError but with special flag? Like an attribute on the exception? +1 -- ___ Python tracker rep...@bugs.python.org

[issue17242] Fix code highlight in devguide/docquality.rst

2013-02-19 Thread Berker Peksag
New submission from Berker Peksag: See for the current version: http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide -- components: Devguide files: devguide-highlight.diff keywords: patch messages: 182412 nosy: berker.peksag, ezio.melotti priority: normal

[issue17033] RPM spec file has old config_binsuffix value

2013-02-19 Thread Taavi Burns
Taavi Burns added the comment: I'm not sure my vote means much, but the spec file didn't work for me on CentOS 5 anyway (weird issue with the -dev RPM trying to find python2.72.7). I think I'd prefer a README with suggested places to look for a working spec file than have this

[issue17239] XML vulnerabilities in Python

2013-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17239 ___ ___

[issue15767] add ImportNotFoundError

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can this be the same ImportError but with special flag? Like an attribute on the exception? +1 ImportError.has_different_meaning_but_too_lazy_to_create_a_distinct_exception_class_for_it ? (or perhaps you would prefer the camelCase version :-))

[issue15767] add ImportNotFoundError

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: Chris: Having a more generic name for import-from at the eval loop level on top of NoModuleFoundError is breaking the practicality over purity rule. ImportSearchFailed might be the closest we can come to a generic name for what occurred. Serihy Barry: no. We

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: I think Arfever is more frustrated by the os.replace() call than the permissions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17222 ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: As mention in the versions. It is Python 3.3.0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237 ___ ___

[issue17242] Fix code highlight in devguide/docquality.rst

2013-02-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6015789cbce0 by Ezio Melotti in branch 'default': #17242: fix code highlight. Patch by Berker Peksag. http://hg.python.org/devguide/rev/6015789cbce0 -- nosy: +python-dev ___ Python tracker

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, right. Well, there would be an argument not to use os.replace() in py_compile, since it's an offline processing step which generally shouldn't race with another (online) processing step. Still, I wonder what the use case is (apart from the /dev/null case

[issue17242] Fix code highlight in devguide/docquality.rst

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17242

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, could you post the whole C stack trace? (using e.g. gdb) By the way, this is not about the alignment of m68k architectures: x86 can align on a byte boundary and doesn't trigger the assert. -- ___ Python tracker

[issue17222] py_compile.compile() explicitly sets st_mode for written files

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: Exactly, and I don't want to have to slice up the internal API anymore in order to support this edge case which I don't think is important enough to support. -- ___ Python tracker rep...@bugs.python.org

[issue17242] Fix code highlight in devguide/docquality.rst

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17242 ___ ___

[issue11763] assertEqual memory issues with large text inputs

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: There are some tests in the issue11763-2.diff patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11763 ___

[issue12869] PyOS_StdioReadline is printing the prompt on stderr

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Extension Modules type: - behavior versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12869 ___

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: GLOBAL_NAME_ERROR_MSG has been introduced in fd8c7203251f as part of PEP 227 by Jeremy Hylton, so I'm adding him to the nosy to see if he agrees with the change (also adding a couple more devs to see if they have any comments). There's also a typo in the last

[issue17243] The changes made for issue 4074 should be documented

2013-02-19 Thread R. David Murray
New submission from R. David Murray: The section of the reference on the gc module goes into some detail on what the thresholds control and when collections are run, but does not currently document the backoff algorithm used when deciding whether or not to collect generation 2. This should

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-19 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___ Python-bugs-list

[issue17244] py_compile.compile() fails to raise exceptions when writing of target file fails

2013-02-19 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Since d4eb02b6aac9 py_compile.compile() fails to raise exceptions when writing of target file fails. $ cd /tmp $ touch test.py $ mkdir dir $ chmod a-w dir mode of ‘dir’ changed from 0755 (rwxr-xr-x) to 0555 (r-xr-xr-x) $ python3.3 -c

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: You could probably test '.\\.' and '..\\..' etc. in these tests on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: It must be about pointer alignment, because that's the whole point of the ASSERT. As for the backtrace, the gdb support on the platform isn't great yet, but here it is Breakpoint 1, ascii_decode (start=0x30c5b04 __len__, end=0x30c5b0b ,

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What will happened if you just remove this line? -- nosy: +serhiy.storchaka type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237 ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Unicode -Build nosy: +ezio.melotti versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237 ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: It must be about pointer alignment, because that's the whole point of the ASSERT. Indeed, it's about pointer alignment, but it's not about the CPU. It's about the compiler (or the platform's C ABI). Apparently the compiler doesn't align struct fields to

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: It's GCC 4.6.3. GCC has the -malign-int but mentions this isn't in best interest of m68k ABI compatibility if it's used. -- components: +Build -Unicode type: crash - versions: -Python 3.4 ___ Python tracker

[issue17244] py_compile.compile() fails to raise exceptions when writing of target file fails

2013-02-19 Thread Brett Cannon
Brett Cannon added the comment: It's because of this try/except to silence failed bytecode creation: http://hg.python.org/cpython/file/d404d33a999c/Lib/importlib/_bootstrap.py#l1105 I hate the py_compile module. -- ___ Python tracker

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: Oh, and as for pointer alignment, I probably just wasn't clear in the initial report. But we agree on m68k C ABI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so we could simply disable the assert on m68k, if you can confirm it works. Do you want to provide a patch? I don't know what the preprocessor conditional should look like. -- components: +Interpreter Core -Build stage: - needs patch type: -

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps we should disable not only assert, but all optimized code inside #if SIZEOF_LONG = SIZEOF_VOID_P / #endif block. Benchmarks needed to measure either unaligned writing speedup or slowdown decoding. -- ___

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread mirabilos
mirabilos added the comment: @skrah: “I don't think we should support this platform officially.” Please don’t break what works. We have almost complete (about three quarters of roughly 10'000 source packages) Debian unstable working on m68k, with several versions of Python in use. Thanks!

[issue15767] add ImportNotFoundError

2013-02-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 19, 2013, at 07:49 PM, Brett Cannon wrote: Serihy Barry: no. We do that now and it's already a nasty little hack. It would be better to let people catch an exception signaling that an import didn't happen because some module is missing than require

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: We had a similar issue in the Linux kernel, where it used the lower two bits of an address for flags (urgh…) which could only be solved by using GCC’s __attribute__((__aligned__(4))) on the quantities in question, but that may or may not be the required case

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: mirabilos rep...@bugs.python.org wrote: Please dont break what works. We have almost complete (about three quarters of roughly 10'000 source packages) Debian unstable working on m68k, with several versions of Python in use. Thanks! Are you saying that the

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: An update to libffi is needed for all maintained versions of Python. In 2.7, we're running into the stack being misaligned in 32-bit x86 code which is something a libffi update fixes. It is a simple patch: http://patchwork.ozlabs.org/patch/58128/ which

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread mirabilos
mirabilos added the comment: @pitrou: As for performance, 2-byte and 4-byte are the same on m68k, given that they usually have RAM which doesn’t benefit from that kind of alignment, and systems that are structured accordingly. The “best” cpp define I don’t know, but my system defines __m68k__

[issue17245] ctypes libffi needs to align the x86 stack to 16 bytes

2013-02-19 Thread Gregory P. Smith
New submission from Gregory P. Smith: The problem: without the stack being 16-byte aligned, code generated by modern compilers like recent gcc/g++ or clang assumed that the stack is 16 byte aligned and uses SSE instructions in some circumstances that require this. Without this fix, any

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: By all means, upgrade it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17192 ___ ___ Python-bugs-list

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: http://bugs.python.org/issue17245 filed to track the stack alignment issue. The only reason i set this as release blocker is to let a release manager decide which of these two issues to proceed with for 2.7.4 and 3.2.4 (and 3.3.1). --

[issue12014] str.format parses replacement field incorrectly

2013-02-19 Thread Ben Wolfson
Ben Wolfson added the comment: My own preference is to let this quote from PEP 3101 dominate the behaviour: The rules for parsing an item key are very simple. If it starts with a digit, then it is treated as a number, otherwise it is used as a string. That means Petri's suggested solution

[issue17246] cgitb fails when frame arguments are deleted (due to inspect bug I think)

2013-02-19 Thread Andrew Lutomirski
New submission from Andrew Lutomirski: inspect.formatargvalues assumes (incorrectly) that every argument in args is a key in values. This isn't very hard to break -- see the attachment for a complete example. -- components: Library (Lib) files: test_cgitb.py messages: 182446 nosy:

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Christian Heimes
New submission from Christian Heimes: {:06}.format(1.2) '1.2000' {:06}.format(decimal.Decimal(1.2)) Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid format string -- assignee: skrah messages: 182447 nosy: christian.heimes, skrah priority: normal

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, mark.dickinson stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17247 ___

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Matthias Klose
Matthias Klose added the comment: before the updates, ... there seem to be two test failures on sparc solaris. the local libffi/src/sparc/v8.S change was integrated upstream, so I don't yet what could cause these failures. or did they fail before too? --

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: 3.2 has a better error message: {:06}.format(Decimal(1.2)) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python3.2/decimal.py, line 3632, in __format__ spec = _parse_format_specifier(specifier, _localeconv=_localeconv)

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Christian Heimes
Christian Heimes added the comment: The output is from Python 3.3. Why has Python 3.3 a less informative error message than 3.2? I also wonder why it works with floats if it has a special meaning? Either float or Decimal is broken. -- ___ Python

  1   2   >