[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: Am I missing something, or is there no explicit command to kill the subprocess on Windows in PyShell.py The kill_subprocess method (which does get invoked) of ModifiedInterpreter is: def kill_subprocess(self): try: self.rpcclt.close()

[issue12576] urlib.request fails to open some sites

2011-07-22 Thread Robert Xiao
Robert Xiao added the comment: S3 also doesn't send any kind of connection header at all. x-amz-id-2: WWuo30Fk2inKVcC5dH4GOjvHxnqMa5Q2+AduPm2bMhL1h3GqzOR0EPwUv0biqv2V x-amz-request-id: 3CCF6B6A000E6446 Date: Sat, 23 Jul 2011 06:42:45 GMT x-amz-meta-s3fox-filesize: 27692 x-amz-meta-s3fox-modifie

[issue12576] urlib.request fails to open some sites

2011-07-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am against hacks like tion: close. Under worst case, we shall revert the change which caused this regression in the first place. -- ___ Python tracker _

[issue12576] urlib.request fails to open some sites

2011-07-22 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12576] urlib.request fails to open some sites

2011-07-22 Thread angus
angus added the comment: I'm experiencing a related problem: --- from urllib.request import urlopen print(urlopen('https://mtgox.com/').read()) --- prints b'' rather than the page content. It looks like mtgox.com always sends 'Connection: Keep-Alive'. So some hack like recognising 'tion: close

[issue11049] add tests for test.support

2011-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: Several buildbot are failing after the commit: == FAIL: test_get_original_stdout (test.test_support.TestSupport) -- Traceback (

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: OK, I can reproduce the problem on a clean virtual machine running a pristine XP home SP2. No Python was previously installed. Steps to reproduce: 1. Install Python 3.2.1 MSI from http://www.python.org/download/releases/3.2.1/ 2. Run IDLE from start menu 3. Cl

[issue12600] Support parameterized TestCases in unittest

2011-07-22 Thread Austin Bingham
Austin Bingham added the comment: Yes, in some sense that's what I'm thinking of. But one problem with this straightforward approach is that it doesn't scale well. If I've got many TestCases, each if which I want to parameterize, I have to create subclasses for each parameterization. If I add a

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: This changeset incorporates Giampaolo's patch with a minor fix in `test.support.python_is_optimized` (which returned '' for False sometimes). -- ___ Python tracker ___

[issue11049] add tests for test.support

2011-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset be558ad15789 by Eli Bendersky in branch 'default': Issue #11049: adding some tests to test.support http://hg.python.org/cpython/rev/be558ad15789 -- nosy: +python-dev ___ Python tracker

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: Brett, what do you mean by "listed as an essential test in regrtest". The regrtest.STDTESTS list? -- ___ Python tracker ___ ___

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: Alright, since *some* tests are better than no tests at all, I will try to combine the patches currently attached to the issue, port them to the Hg repo and commit. -- ___ Python tracker

[issue12600] Support parameterized TestCases in unittest

2011-07-22 Thread R. David Murray
R. David Murray added the comment: Yes, except that it would be: class PostgressDB2Testcase(AbstractDB2Testcase, unittest.TestCasse): The fact that other test frameworks have found it worth implementing indicates there *might* be something worthwhile there, but unless someone makes the cas

[issue12613] itertools fixer fails

2011-07-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: To my eye, this looks like a bytearray API bug in the bytearray implementation. ISTM, the rhs of a slice assignment needs to be restricted to iterable inputs. I'm marking this as low priority because the documented behaviors (i.e. normal slice assignment

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-22 Thread higery
higery added the comment: >>IOError: [Errno 13] Permission denied: >>'/tmp/user/1013/tmp2xp9qc/tmpwhzzmg/script1' I have added an 'ensure_directory()' function to build_script.py, but I'm not sure if it can fix this error. -- ___ Python tracker <

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread py.user
New submission from py.user : 1) 4.6.4 Mutable Sequence Types | s[i:j] = t | slice of s from i to j is replaced | || by the contents of the iterable t | >>> lst = list('abc') >>> barr = bytearray(b'abc') >>> lst[:1] = 4 Traceback (most recent call last): File "", line 1, in T

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-22 Thread Kuberan Naganathan
Kuberan Naganathan added the comment: yes. i noticed problem on solaris on the /proc//as file which usually has mapped regions beyond 2^63 in most process files On Jul 22, 2011 4:35 PM, "Charles-François Natali" wrote: > > Charles-François Natali added the comment: > > Patch attached. > >

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-22 Thread Josh Triplett
Josh Triplett added the comment: The current behavior of pydoc will cause synopsis to always incorrectly return "None" as the synopsis for any module with mtime == 0. Both of the proposed fixes will fix that bug without affecting any case where mtime != 0, so I don't think either one has bac

[issue2771] Test issue

2011-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2771] Test issue

2011-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: Testing authorage -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue2771] Test issue

2011-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg70327 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2011-07-22 Thread rpointel
rpointel added the comment: Hello, I just want to inform you that valgrind does not work on OpenBSD (only Linux and Darwin). Thanks for your help, Remi. -- ___ Python tracker __

[issue11877] Change os.fsync() to support physical backing store syncs

2011-07-22 Thread Charles-François Natali
Charles-François Natali added the comment: > One could argue that something had happened before the fsync(2), > so that code which blindly did so is too dumb to do any right > decision anyway. Even PEP 3151 won't help. I don't understand. If the syscall supposed to flush the disk's buffe

[issue12575] add a AST validator

2011-07-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12616] zip fixer fails on zip()[:-1]

2011-07-22 Thread Vlada Peric
New submission from Vlada Peric : The zip fixer fails on this code: zip(B, D)[:-1] I fixed this by wrapping explicitly with list(), but that creates a duplicate list on Python 2. (Like the other fixes I reported, I assume this also applies to 3.3, but I didn't test it so I don't know; addin

[issue12600] Support parameterized TestCases in unittest

2011-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: David, is this the sort of thing you mean? @skip # so do not run without backend class AbstractDB2Testcase: backend = None class PostgressDB2Testcase(AbstractDB2Testcase): backend = postgress # well, enough info to fine it ... If so, I think we should

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Charles-François Natali
Charles-François Natali added the comment: Patch committed. Rémi, thanks for reporting this (and other OpenBSD-specific bugs :-). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63de97ae832e by Charles-François Natali in branch 'default': Merge - Issue #12592: Make Python build on OpenBSD 5 (and future major http://hg.python.org/cpython/rev/63de97ae832e -- ___ Python tracker

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c7f9d5841ff by Charles-François Natali in branch '3.2': Issue #12592: Make Python build on OpenBSD 5 (and future major releases). http://hg.python.org/cpython/rev/9c7f9d5841ff -- ___ Python tracker

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b24a2ccae56a by Charles-François Natali in branch '2.7': Issue #12592: Make Python build on OpenBSD 5 (and future major releases). http://hg.python.org/cpython/rev/b24a2ccae56a -- nosy: +python-dev ___ P

[issue12576] urlib.request fails to open some sites

2011-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Could we look for 'tion: Closed' instead of "Connection: Closed", to accomodate servers that garble the response, even if it is a hack? -- nosy: +terry.reedy ___ Python tracker _

[issue10881] test_site and macframework builds fails

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review, patch stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Extension Modules -Library (Lib) versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue12575] add a AST validator

2011-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: 1) Yes, it address a real concern that arose during Armin's GSOC project which has been developing a unified template compilation architecture (via the AST module) for Django and Jinja2. 2) Asking speed questions about this is silly IMO, if compiling functions is

[issue12575] add a AST validator

2011-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From a top level view, the patch adds PyAST_Validate (with helpers) to ast.c >and one call to PyAST_Validate in bltinmodule.c in builtin_compile(). The >added tests do every silly thing you can think of. Does PyAST_Validate get invoked for all calls to compi

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-22 Thread Éric Araujo
Éric Araujo added the comment: Hi! Thanks for the report and patch ideas. Would both of your fix ideas preserve backward compatibility? If yes, we should take the one that makes the code easier to read; if no, we should take the most compatible. Would you be interested in making a patch?

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2011-07-22 Thread Charles-François Natali
Charles-François Natali added the comment: > Previous frame inner to this frame (corrupt stack?) Interesting. Could you post the result of: $ valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp Modules/_testembed after having un-commented the ADDRESS_IN_RANGE suppressions from

[issue12602] Missing using docs cross-references

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> keywords: +easy nosy: +eric.araujo stage: -> needs patch ___ Python tracker ___ ___

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson, eric.araujo stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___

[issue12613] itertools fixer fails

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-lis

[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Éric Araujo
Éric Araujo added the comment: Looks good. I have made one comment on Rietveld. -- assignee: -> orsenthil nosy: +eric.araujo, orsenthil ___ Python tracker ___

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks fine to me. -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12592] modify configure.in to detect OpenBSD 5.x

2011-07-22 Thread Charles-François Natali
Charles-François Natali added the comment: Patch attached (this one should also work with future major releases). -- keywords: +needs review, patch nosy: +neologix, pitrou stage: -> patch review Added file: http://bugs.python.org/file22720/configure_openbsd.diff __

[issue12615] add array.zeroes

2011-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 Array's API much more closely matches that of list than it does numpy's arrays which are profoundly different. So we should stick the one-way-to-do-it idiom: array.array('c', '\0') * 100 or array.array('d', [0.0]) * 100. Also, the current idiom is mu

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-22 Thread Charles-François Natali
Charles-François Natali added the comment: Patch attached. > For lseek, we can rely on errno. Try something like that: > > errno = 0; > offset = lseek(...); > if (offset == (off_t)-1 && errno) /* error */ > It's a little bit overkill :-) (for mktime, time_t can overflow easily on 32-bit). >

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-22 Thread Petri Lehtinen
Petri Lehtinen added the comment: This affects bytearray as well as bytes. What comes to supporting integer argument to str methods, I'm -1 on that. str's "contained items" are strings of length 1. -- title: Bytes.index() and bytes.count() should accept byte ints -> index() and count

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

2011-07-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10760] tarfile doesn't handle sysfs well

2011-07-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list ma

[issue4506] 3.0 make test failures on Solaris 10

2011-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be fixed. Skip: keywords now has a '-no selection-' option to get rid of keywords -- keywords: -64bit nosy: +terry.reedy resolution: -> fixed status: open -> closed ___ Python tracker

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-07-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12615] add array.zeroes

2011-07-22 Thread Alex Gaynor
New submission from Alex Gaynor : >From python-ideas: introduce array.zeroes, a new classmethod that provides an alternative constructor, its signature is zeroes(typecode, length), which allows for preallocating an array, with a lower overhead than methods such as array(typecode, [0]) * lengt

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2011-07-22 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good question. Peter, you said Vista x64. Are you running 32 or 64 bit Python? My system with the apparently irreversible problem is 32 bit xp home. I am reluctant to test on my daughter's 64 bit laptop as I do not know that I would be able to revert successfu

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-22 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- components: +Build, Library (Lib) keywords: +needs review stage: -> patch review ___ Python tracker ___ __

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-22 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a patch against 2.7 that adds the suggested fix. -- keywords: +patch nosy: +petri.lehtinen Added file: http://bugs.python.org/file22718/fix_empty_macro.patch ___ Python tracker

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
Changes by Miki Tebeka : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
Changes by Miki Tebeka : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
New submission from Miki Tebeka : Currently urllib.request.Request decides if it's a "GET" or "POST" by the presence of data. However sometimes you want to do an "POST" request without data (in my case, it Crucible REST API). Or provide another method. The attached patched added a `method` arg

[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12613] itertools fixer fails

2011-07-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12613] itertools fixer fails

2011-07-22 Thread Vlada Peric
New submission from Vlada Peric : The itertools fixer (izip -> zip, among others), fails for the following code: from itertools import izip print msg % str(bool(symbol_swapped) and list(izip(*swap_dict).next()) or symbols) It gets converted to: print(msg % str(bool(symbol_swapped) and list(ne

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-22 Thread Qiang Sun
Qiang Sun added the comment: I can reproduce this in 32-bit Windows XP Pro. SP3 -- nosy: +sunqiang ___ Python tracker ___ ___ Python-

[issue12612] Valgrind suppressions

2011-07-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12612] Valgrind suppressions

2011-07-22 Thread Paul Price
New submission from Paul Price : I am running Python 2.7.1 under Valgrind 3.6.1 on a x86_64 GNU/Linux box. Valgrind is flagging errors that are not covered by the standard suppressions file (Misc/valgrind-python.supp; after uncommenting the part I'm supposed to), e.g.: ==5804== Use of uninit

[issue12610] Fatal Python error: non-string found in code slot

2011-07-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> SystemError: Objects/codeobject.c:64: bad argument to internal function ___ Python tracker ___

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that your version of gdb understands macros. You may have to set a breakpoint on __isinf. Compile Python with "-g -ggdb" helps gdb. Py_IS_INFINITY is may not defined as "# define Py_IS_INFINITY(X) isinf(X)". To check that, add #error macro in pym

[issue12609] SystemError: Objects/codeobject.c:64: bad argument to internal function

2011-07-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset a21829180423 by Benjamin Peterson in branch '2.7': verify the types of AST strings and identifiers (closes #12609 and #12610) http://hg.python.org/cpython/rev/a21829180423 New changeset 3301689bd78d by Benjamin Peterson in branch '3.2': type check

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-07-22 Thread Vlada Peric
New submission from Vlada Peric : 2to3 crashes when run on a doctest which uses reduce(). This happens with both 2.7 and 3.2's 2to3. I have the following code in a compatibility file, but even using that it fails with the same error: try: from functools import reduce except ImportError:

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread Landry Breuil
Landry Breuil added the comment: Py_IS_INFINITY is defined as #ifndef Py_IS_INFINITY # if defined HAVE_DECL_ISINF && HAVE_DECL_ISINF == 1 #define Py_IS_INFINITY(X) isinf(X) # else #define Py_IS_INFINITY(X) ((X) && \ (Py_

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-22 Thread Éric Araujo
Éric Araujo added the comment: > I think you did not get the latest version of my code. I pulled and updated again and got a different error :) ERROR: test_install_wrapper_scripts (packaging.tests.test_command_build_scripts.BuildScriptsTestCase)

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread STINNER Victor
STINNER Victor added the comment: > If gdb has an endian issue, > you may also try "print /x d" in the gdb shell. Oh, forget me: /x converts the argument to an integer... -- ___ Python tracker ___

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread STINNER Victor
STINNER Victor added the comment: > $grep -r '#define Py_IS_INF' . > PC/pyconfig.h:#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X)) The PC/ directory is specific to Windows. Py_IS_INFINITY should be defined in Include/pymath.h (at least, in the 3.2 branch) > Breakpoint 2, __isinf (d=1.06

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread Mark Dickinson
Mark Dickinson added the comment: Question: does this test also fail after configuring with the --with-pydebug flag? (Which I *think* should turn compiler optimizations off, amongst other things.) -- ___ Python tracker

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread Mark Dickinson
Mark Dickinson added the comment: The '1.06...e-314' number in the gdb output is interesting: it indicates a byte-ordering issue, though maybe that issue is only pertinent to gdb itself. On a little-endian machine: >>> struct.pack('>> struct.pack(' ___

[issue12436] Provide reference to detailed installation instructions

2011-07-22 Thread Éric Araujo
Éric Araujo added the comment: IMO we don’t need HOWTOs that duplicate existing docs, but we may need additions to the existing tutorial and “using” docs. See http://bugs.python.org/issue12436#msg140141 -- ___ Python tracker

[issue12610] Fatal Python error: non-string found in code slot

2011-07-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-22 Thread Landry Breuil
Landry Breuil added the comment: $grep -r '#define Py_IS_INF' . PC/pyconfig.h:#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X)) >>> isinf(float('inf')) Breakpoint 2, __isinf (d=1.0604798301039825e-314) at /usr/src/lib/libc/gen/isinf.c:30 30 in /usr/src/lib/libc/gen/isinf.c (gdb) bt

[issue12609] SystemError: Objects/codeobject.c:64: bad argument to internal function

2011-07-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-22 Thread higery
higery added the comment: >>In your Mercurial configuration file, you should set the git option so that >>diffs can display editions to binary files. See >>http://hgtip.com/tips/beginner/2009-10-22-always-use-git-diffs/ Thanks. >>The new scripts feature should reuse the already existing scr

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-22 Thread higery
higery added the comment: >>packaging.errors.PackagingOptionError: your specific entry >>'script1=foo.bar.main1.main' does not exist! I think you did not get the latest version of my code. -- ___ Python tracker

[issue12436] Provide reference to detailed installation instructions

2011-07-22 Thread Adam Woodbeck
Adam Woodbeck added the comment: So what we're looking for is comprehensive HOWTOs for installing and running Python on Windows, OSX and Linux to be added to http://docs.python.org/howto/index.html? -- ___ Python tracker

[issue11610] Improved support for abstract base classes with descriptors

2011-07-22 Thread Darren Dale
Darren Dale added the comment: I've requested additional feedback based on comments at Rietveld. -- ___ Python tracker ___ ___ Python

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-22 Thread Christian Häggström
Christian Häggström added the comment: Thanks for the patch, I haven't tried it (I'm still on Python 2.7) but it looks very special-cased to my case. I can think about exotic cases like stdin = sys.stderr, stdout = sys.stdin, stderr = sys.stdout It can happen in reality if a daemon have close

[issue12609] SystemError: Objects/codeobject.c:64: bad argument to internal function

2011-07-22 Thread Albert Zeyer
Albert Zeyer added the comment: Simplified code: ``` from ast import * globalsDict = {} exprAst = Interactive(body=[ FunctionDef( name=u'foo', args=arguments(args=[], vararg=None, kwarg=None, defaults=[]), body=[Pass()],

[issue12610] Fatal Python error: non-string found in code slot

2011-07-22 Thread Albert Zeyer
New submission from Albert Zeyer : Code: ``` from ast import * globalsDict = {} body = [ Assign(targets=[Name(id=u'argc', ctx=Store())], value=Name(id=u'None', ctx=Load())), ] exprAst = Interactive(body=[ FunctionDef( name='foo',

[issue12609] SystemError: Objects/codeobject.c:64: bad argument to internal function

2011-07-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12609] SystemError: Objects/codeobject.c:64: bad argument to internal function

2011-07-22 Thread Albert Zeyer
New submission from Albert Zeyer : Code: ``` from ast import * globalsDict = {} exprAst = Interactive(body=[FunctionDef(name=u'Py_Main', args=arguments(args=[Name(id=u'argc', ctx=Param()), Name(id=u'argv', ctx=Param())], vararg=None, kwarg=None, defaults=[]), body=[Assign(targets=[Name(id=u

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread R. David Murray
R. David Murray added the comment: So does default. -- nosy: +benjamin.peterson, r.david.murray type: -> crash versions: +Python 2.7, Python 3.3 ___ Python tracker ___

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread Albert Zeyer
Albert Zeyer added the comment: PyPy bug report: https://bugs.pypy.org/issue806 -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread Albert Zeyer
New submission from Albert Zeyer : Code: ``` import ast globalsDict = {} fAst = ast.FunctionDef( name="foo", args=ast.arguments( args=[], vararg=None, kwarg=None, defaults=[], kwonlyargs=[], kw_defaults=[]), body=[], decorator_list=[]) e

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-22 Thread Eli Bendersky
Eli Bendersky added the comment: Is the problem happening only on 64-bit Windows, or 32-bit as well? -- ___ Python tracker ___ ___ Py

[issue12434] Strengthen 2.7 io types warning

2011-07-22 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed status: open -> closed versions: -Python 2.7 ___ Python tracker ___ ___ Python-bu

  1   2   >