[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: Whatever we do needs to be something third party serialisation libraries can also adopt with minimal compatibility risk for older versions of Python. Yes, that serialisation will lose the new debugging information. That's fine - if people want to map from a standa

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Ethan Furman
Ethan Furman added the comment: Guido van Rossum added the comment: > > Yes for float() -- but for str() it would seem redundant? (Or what's > the context?) If a user has class Color(StrEnum): red = 'ff' green = '00ff00' blue = 'ff' .. .. .. oh. `str()

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Yes for float() -- but for str() it would seem redundant? (Or what's the context?) On Fri, Jun 21, 2013 at 8:23 PM, Ethan Furman wrote: > > Ethan Furman added the comment: > > On 06/21/2013 07:49 PM, Guido van Rossum wrote: >> Eli Bendersky added the comment:

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Ethan Furman
Ethan Furman added the comment: On 06/21/2013 07:49 PM, Guido van Rossum wrote: > Eli Bendersky added the comment: >> >> Practically speaking, what should be done to make enum play well with JSON >> without writing new PEPs? I think we still want to convert those stdlib >> constants to IntEnums..

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Change json to call int() first. --Guido van Rossum (sent from Android phone) On Jun 21, 2013 7:45 PM, "Eli Bendersky" wrote: > > Eli Bendersky added the comment: > > On Fri, Jun 21, 2013 at 6:59 PM, Barry A. Warsaw >wrote: > > > > > Barry A. Warsaw added t

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, Jun 21, 2013 at 6:59 PM, Barry A. Warsaw wrote: > > Barry A. Warsaw added the comment: > > On Jun 22, 2013, at 01:08 AM, Nick Coghlan wrote: > > >Can I vote for something like "__builtin__" as the protocol, rather than > >something entirely specific to se

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Phil Webster added the comment: Thank you for the feedback Terry. I'm not seeing the traceback without '-ugui' either, so I'm going to look into that. I get the same results with requires('gui') moved inside of setUp, is that what you mean by wrapping? For mock_ewin I used a real Text widget b

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 22, 2013, at 01:08 AM, Nick Coghlan wrote: >Can I vote for something like "__builtin__" as the protocol, rather than >something entirely specific to serialisation? As in "return the most >appropriate builtin type with the same value"? Then a converter >(

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is a separate issue about killing that warning. If you leave off '-ugui', you will see the traceback and why I said that requires('gui') should be wrapped for unittest discovery. As the code is, the call is executed when the file is imported, possibly du

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Hm. Then I prefer just calling the appropriate builtin, e.g. int(). --Guido van Rossum (sent from Android phone) On Jun 21, 2013 6:08 PM, "Nick Coghlan" wrote: > > Nick Coghlan added the comment: > > Can I vote for something like "__builtin__" as the protoco

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: Can I vote for something like "__builtin__" as the protocol, rather than something entirely specific to serialisation? As in "return the most appropriate builtin type with the same value"? Then a converter ("operator.builtin"?) could coerce builtin subclasses to th

[issue18056] Document importlib._bootstrap.NamespaceLoader

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: barry -> docs@python keywords: +easy -3.3regression nosy: +docs@python versions: +Python 3.4 ___ Python tracker ___ ___

[issue16803] Make test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-06-21 Thread David Edelsohn
David Edelsohn added the comment: It looks like someone already tried to fix part of this, but reversed the assignment diff -r a089a8b1f93d Lib/sysconfig.py --- a/Lib/sysconfig.py Fri Jun 21 18:37:02 2013 -0400 +++ b/Lib/sysconfig.py Fri Jun 21 22:33:15 2013 -0700 @@ -368,7 +368,7 @@ # -

[issue17621] Create a lazy import loader mixin

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: I think the first step for this bug, now that I have two possible approaches, is to write the unit tests. That way both approaches can equally be validated based on their merits of complexity, etc. while verifying the work properly. -- _

[issue15693] expose glossary link on hover

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread shwouchk
shwouchk added the comment: Also, of course I did this or I would not have stumbled into this issue... -- ___ Python tracker ___ ___ P

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread shwouchk
shwouchk added the comment: Richard, I think you missed my point. First, yes I did do that. Second ("the point"): I did this to use the same abstraction that was used extensively for other purposes, instead of recreating the same abstraction with a deque as its basis. Component reusability i

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: Why would you use a multi-process queue to "pass messages from one part of the program to another part, in the same process and thread"? Why not just use a deque? Is this something you actually did, or are you just trying to come up with a plausible example

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: That solution looks right. Problem is that it would need to either go directly into isinstance() or type would need to grow an __instancecheck__ to deal with this case since you can't override isinstance from the instance end. That I'm not sure people are okay w

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- keywords: +patch Added file: http://bugs.python.org/file30664/test_rstripext.patch ___ Python tracker ___ ___

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18278] Clarify the loader requirements for importlib.machinery.FileFinder

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
New submission from Phil Webster: This is a single test for RstripExtension.py, following from #15392. I also added a mock EditorWindow module with a Text widget for testing. test_rstripextension.py seems to run fine inside IDLE and produces the following output: >>> test_do_rstrip (__main__

[issue18278] Clarify the loader requirements for importlib.machinery.FileFinder

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6978d7a6692a by Brett Cannon in branch '3.3': Issue #18278: properly document how the loaders are called for FileFinder http://hg.python.org/cpython/rev/6978d7a6692a New changeset a089a8b1f93d by Brett Cannon in branch 'default': merge for issue #18

[issue17621] Create a lazy import loader mixin

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: While seing if it was worth making isinstance work with super(), I came up with this at Antoine's suggestion of using a proxy instead of a mixin: class LazyProxy(importlib.abc.Loader): def __init__(self, loader): self.loader = loader def __call__(self,

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I have no idea what CLOS does in this situation. No worries, I was just curious whether you knew whether this was a solved problem in Dylan or CLOS or some other language. When faced with a diamond diagram, what are the semantics for isinstance(super_inst

[issue18246] tkinter.Text() add a newline to the content - bug?

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: You omitted the crucial control experiment. >>> t2=tk.Text() >>> t2.get(1.0, tk.END) '\n' Text widgets are initialized to end with \n. I suspect that this is an intentional invariant of tk Text widgets, done by tk itself and not out tkinter wrapper, even if no

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread shwouchk
shwouchk added the comment: The major difference with the issue you referenced is that the behavior in #17985 is clearly stated and warned against in the docs (Queue.Empty being inconsistent with Queue.size), whereas this is not. As for the actual behavior problem: Imagine you build an abstrac

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue18236] int() and float() do not accept strings with trailing separators

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: You stated facts: what is your proposal? The fact that unicode calls characters 'space' does not make then whitespace as commonly understood, or as defined by C, or even as defined by the Unicode database. Unicode apparently has a WSpace property. According to

[issue18232] running a suite with no tests is not an error

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not quite see the need to complicate the interface for most users in a way that does not really solve all of the realistic problems. import unittest unittest.main() # Ran 0 tests in 0.000s OK --- It seems to me that a continuous integration system should

[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-06-21 Thread STINNER Victor
STINNER Victor added the comment: It looks like CRYPTO_set_mem_functions() of OpenSSL 1.0.1e-4.fc18 does not work: CRYPTO_set_mem_functions() calls indirectly CRYPTO_malloc() which sets "allow_customize = 0;" and so CRYPTO_set_mem_functions() does nothing (just return 0, instead of 1). Gdb tr

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: This is a very similar issue to #17985. While it may seem counter-intuitive, I don't see how it makes any difference. Another thread/process might remove the item before you can get it. I find it very difficult to imagine a real program where you can safely

[issue18222] os.path.abspath should accept multiple path parts and join them

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ditto, for reasons given -- nosy: +terry.reedy resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: I have no idea what CLOS does in this situation. I'm fine with this never being changed, but I wanted to at least file the bug to have the discussion in case it ever comes up again. -- ___ Python tracker

[issue18220] Expand itertools.islice docstring signature to 2 lines

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem with all of range, slice, and islice is that [start,] stop [, step] is an impossible signature and needed to be changed. The actual signature is start_or_stop, [stop, [step]] with customized processing to interpret start_or_stop according to the pre

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure this is a theoretically sound idea. Do you know what CLOS does in the same circumstance? -- nosy: +rhettinger ___ Python tracker _

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is the purpose in touching fieldnames, either in tuple-izing it or in making it private and wrapped with a property. If someone wants to modify it, that is up to them. In any case, this change is not germane to the issue and could break code, so I would n

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue18217] Deprecate and remove gettext.install

2013-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The rationale for install is "For convenience, you want the _() function to be installed in Python’s builtins namespace, so it is easily accessible in all modules of your application." As David noted, this also make it easy to update _ in just one place when a

[issue14903] dictobject infinite loop while importing socket

2013-06-21 Thread Daniel Farina
Changes by Daniel Farina : -- title: dictobject infinite loop -> dictobject infinite loop while importing socket ___ Python tracker ___ _

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Jun 21, 2013 at 11:11 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > I'm attracted to the idea of making a loader lazy by simply doing > > something > > like ``class LazySourceFileLoader(LazyMixin, SourceFileLoader): > > ...``. > > B

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Ethan Furman
Ethan Furman added the comment: I'd be in favor of the __protocol__ route first and the PEP 443 route second. The problem with just tacking in `str(int(value))` or `str(float(value))` is where does it stop? StrEnum, TupleEnum, BytesEnum, ComplexEnum, SomeOtherInterestingConstantEnum, etc., et

[issue18278] Clarify the loader requirements for importlib.machinery.FileFinder

2013-06-21 Thread Brett Cannon
New submission from Brett Cannon: Should specify the loader needs to be a callable which accepts two arguments: module name and found file path. -- assignee: brett.cannon components: Documentation messages: 191599 nosy: brett.cannon priority: low severity: normal stage: needs patch stat

[issue18220] In itertools.islice() make prototype like in help()

2013-06-21 Thread py.user
py.user added the comment: [guest@localhost cpython]$ ./python Python 3.4.0a0 (default, Jun 22 2013, 04:24:17) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> import itertools >>> print(range.__doc__, slice.__doc__,

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-06-21 Thread Éric Araujo
Éric Araujo added the comment: Can you suggest how to fix this? -- components: +Build -Extension Modules nosy: +eric.araujo versions: +Python 3.3, Python 3.4 -Python 3.5 ___ Python tracker _

[issue18217] Deprecate and remove gettext.install

2013-06-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 21, 2013, at 04:18 PM, Éric Araujo wrote: >Working with an explicit translator object sounds much better to me too. I >haven’t used it yet, but Babel has been on my radar for long, and does that >(like flufl.i18n from what I can tell). flufl.enum didn'

[issue11016] Re-implementation of the stat module in C

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8ff61f44aca by Christian Heimes in branch '3.3': Add tests for untested features of the 'stat' module (part of issue #11016) http://hg.python.org/cpython/rev/f8ff61f44aca New changeset d15aee50e4a0 by Christian Heimes in branch 'default': Add tests

[issue18217] Deprecate and remove gettext.install

2013-06-21 Thread Éric Araujo
Éric Araujo added the comment: Working with an explicit translator object sounds much better to me too. I haven’t used it yet, but Babel has been on my radar for long, and does that (like flufl.i18n from what I can tell). -- nosy: +eric.araujo ___

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: I didn't see any other constants that aren't close to the function they're used with. Can this issue be closed, or are there other changes to make? -- ___ Python tracker _

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88edac3bc2fc by Andrew Kuchling in branch 'default': #12716: reorganize docs for os module a bit http://hg.python.org/cpython/rev/88edac3bc2fc -- nosy: +python-dev ___ Python tracker

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm attracted to the idea of making a loader lazy by simply doing > something > like ``class LazySourceFileLoader(LazyMixin, SourceFileLoader): > ...``. But then you have to make a specific Lazy subclass for each delegated loader implementation. With a proxy c

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: Mike Hoy: a later patch (http://bugs.python.org/issue14626) changed the API in the os module so that the wrappers for *at() functions went away; fchmod() now takes several different forms of argument and calls the correct function under the hood. -- no

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Jun 21, 2013 at 10:02 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > http://bugs.python.org/issue17621 is about trying to finally add a > > lazy mixin to importlib so people stop asking for it. I have a > > version already written ex

[issue13226] Expose RTLD_* constants in the posix module

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1da78c7d382b by Andrew Kuchling in branch 'default': #13226: update references from ctypes/DLFCN modules to os module http://hg.python.org/cpython/rev/1da78c7d382b -- ___ Python tracker

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: And similar for floats, really. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Modifying json to use str(int(value)) (if it detects isinstance(value, int)) is fine with me too. -- ___ Python tracker ___ _

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: The proposal to change json from using repr() to str() has unknown dangers. I don't want the str() of IntEnum to return just the decimal string (e.g. "42"), since that breaks half of the usefulness of using the enum in the first place -- people will write pr

[issue18269] Add new parameter format for converter function w/ position number

2013-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think that a new parameter format is sufficient. For the message in this call the new parameter isn't even needed, you'd "just" have to ensure that enough information is available in convertsimple to create a more useful message. That said, that is f

[issue3354] Improve error reporting for the argument parsing C API

2013-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: See also #18269. -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2013-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The correct format string for Py_ssize_t with sprintf is "%"PY_FORMAT_SIZE_T"d" (defined and explained in pyport.h). -- nosy: +ronaldoussoren ___ Python tracker _

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > http://bugs.python.org/issue17621 is about trying to finally add a > lazy mixin to importlib so people stop asking for it. I have a > version already written externally at > https://code.google.com/p/importers/source/browse/importers/lazy.py. > Part of the tric

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: So I have a use case for this actually. =) http://bugs.python.org/issue17621 is about trying to finally add a lazy mixin to importlib so people stop asking for it. I have a version already written externally at https://code.google.com/p/importers/source/browse/

[issue17630] Create a pure Python zipfile importer

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: A two second granularity? Ugh. That will require a new (possibly private) API to abstract that out in order to handle that case. What a pain. While I look into that if people can look at the code and let me know if they see anything wrong with it, hard to unders

[issue18274] python: not found

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: It would either be with freebsd-ports for having packaged Mesa incorrectly or with Mesa for having something wrong with their build setup. -- ___ Python tracker

[issue17913] stat.filemode returns "-" for sockets and unknown types

2013-06-21 Thread Richard Milne
Richard Milne added the comment: I already see my name change will cause problems. The tarfile.py (Lib/tarfile.py:277) module relies on the function being named 'filemode'. As the stat.filemode function is relatively new, I don't know how many other modules rely on it. I changed the name becau

[issue18269] Add new parameter format for converter function w/ position number

2013-06-21 Thread anatoly techtonik
anatoly techtonik added the comment: This is more sophisticated that I thought. Thank for the explanation. -- ___ Python tracker ___ _

[issue17913] stat.filemode returns "-" for sockets and unknown types

2013-06-21 Thread Richard Milne
Richard Milne added the comment: I've added some changes to the module which (I believe) not only fix this bug, but add the reverse function, converting a permission string to a number. The diff was made against Lib/stat.py @ 84234:f32dad3a243e, which was the most recent version of the file I

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2013-06-21 Thread Stefan Krah
Stefan Krah added the comment: Basically someone has to review the patch and commit it. I'm not really using ctypes, so for me a decent review would take a while. -- ___ Python tracker _

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread STINNER Victor
STINNER Victor added the comment: > OK, let's do that on Windows first :-) For the PEP 433, I did something like that in os.get_cloexec() and os.set_cloexec(): http://hg.python.org/features/pep-433/file/f32c2b09f332/Modules/posixmodule.c#l10198 On Windows, I added two code paths: one for HAND

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread Christian Heimes
Christian Heimes added the comment: > OK, let's do that on Windows first :-) Gotcha :( Damn you winsock.dll! -- ___ Python tracker ___ __

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Let's unify os' and select's behavior! OK, let's do that on Windows first :-) -- ___ Python tracker ___

[issue18239] In itertools docstring update arguments in count() example

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad0b44cdae41 by Andrew Kuchling in branch '3.3': Closes #18239: correct description of count() in module docstring http://hg.python.org/cpython/rev/ad0b44cdae41 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status:

[issue18218] In itertools.count() clarify the starting point

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12478f549ed8 by Andrew Kuchling in branch '3.3': Closes #18218: use correct variable name for starting point http://hg.python.org/cpython/rev/12478f549ed8 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread Christian Heimes
Christian Heimes added the comment: os.write() already works with file and sockets object but you have to call ob.fileno() first. The select module uses PyObject_AsFileDescriptor() all over the module to get the file descriptor number from file and socket objects. Let's unify os' and select's

[issue18247] Add Lib/test/data/ to .gitignore

2013-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68e1eec01113 by Andrew Kuchling in branch 'default': Closes #18247: add Lib/test/data/* to .gitignore http://hg.python.org/cpython/rev/68e1eec01113 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clos

[issue18220] In itertools.islice() make prototype like in help()

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: This bug is entirely too cryptic. What exactly is the problem you're trying to fix? -- nosy: +akuchling ___ Python tracker ___

[issue18277] Queue is empty right after put from the same process/thread

2013-06-21 Thread shwouchk
New submission from shwouchk: Consider this: $ python Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing as mp >>> q = mp.Queue() >>> while True: q.put(1) q.get_nowai

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread STINNER Victor
STINNER Victor added the comment: This issue looks to be related to #18269. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-lis

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Do we want the low-level os.write() to work with file objects, or sockets? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2013-06-21 Thread Christian Heimes
New submission from Christian Heimes: I suggest that posixpath.c:_fd_converter() should PyObject_AsFileDescriptor() to convert a Python object to a fd integer. With PyObject_AsFileDescriptor() functions such as os.chmod() can be called with an opened file as first argument: Now: with open

[issue14776] Add SystemTap static markers

2013-06-21 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2013-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2013-06-21 Thread STINNER Victor
STINNER Victor added the comment: @skrah: What is the status of this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14776] Add SystemTap static markers

2013-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that feature freeze happens after the first /beta/, so the alpha release isn't a showstopper. -- ___ Python tracker ___ __

[issue14776] Add SystemTap static markers

2013-06-21 Thread Robert Buchholz
Robert Buchholz added the comment: It's been a year and the 3.4 alpha is approaching. What's the status of upstream inclusion of this patch? -- ___ Python tracker ___ __

[issue13405] Add DTrace probes

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz : -- nosy: +Robert.Buchholz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14776] Add SystemTap static markers

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz : -- nosy: +Robert.Buchholz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18275] Make isinstance() work with super type instances

2013-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does anyone actually check for instance-ness of super objects? I would never have thought of such an idiom. -- nosy: +benjamin.peterson, pitrou ___ Python tracker

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2013-06-21 Thread Tillmann Karras
Changes by Tillmann Karras : -- nosy: +Tilka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue3354] Improve error reporting for the argument parsing C API

2013-06-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o