[issue16991] Add OrderedDict written in C

2013-06-21 Thread Eric Snow
Eric Snow added the comment: I figured out what I hope were the last memory-related issues. Apparently tp_traverse is not inherited if tp_flags is set. I had it set on all the view types and all the iterator types. So during GC it would blow up when it tried to call tp_traverse.

[issue16991] Add OrderedDict written in C

2013-06-21 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Removed file: http://bugs.python.org/file30468/cOrderedDict.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue17630] Create a pure Python zipfile importer

2013-06-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Times in a ZIP files have a two-seconds resolution (in the old DOS FAT format: 5 bits for the hours, 6 bits for the minutes, and only 5 bits left for the seconds) Some fuziness logic is needed when comparing against a time_t. -- nosy:

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

2013-06-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3354 ___ ___ Python-bugs-list mailing list

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

2013-06-21 Thread Tillmann Karras
Changes by Tillmann Karras til...@gmail.com: -- nosy: +Tilka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___ Python-bugs-list mailing

[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 rep...@bugs.python.org

[issue14776] Add SystemTap static markers

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz r...@freitagsrunde.org: -- nosy: +Robert.Buchholz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___

[issue13405] Add DTrace probes

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz r...@freitagsrunde.org: -- nosy: +Robert.Buchholz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue14776

[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 rep...@bugs.python.org http://bugs.python.org/issue14776

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

2013-06-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___

[issue14776] Add SystemTap static markers

2013-06-21 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18276

[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 rep...@bugs.python.org http://bugs.python.org/issue18276 ___

[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_nowait() Traceback

[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 rep...@bugs.python.org http://bugs.python.org/issue18220

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

[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

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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18276 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue18276 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue10744

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18269 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18274

[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

[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

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

[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_Td (defined and explained in pyport.h). -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744

[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 rep...@bugs.python.org http://bugs.python.org/issue3354 ___ ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18264

[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 rep...@bugs.python.org http://bugs.python.org/issue18264 ___ ___

[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

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

[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 rep...@bugs.python.orgwrote: 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

[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

[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

[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 rep...@bugs.python.org

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

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18235

[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

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

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

[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 rep...@bugs.python.orgwrote: 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):

[issue14903] dictobject infinite loop while importing socket

2013-06-21 Thread Daniel Farina
Changes by Daniel Farina dan...@heroku.com: -- title: dictobject infinite loop - dictobject infinite loop while importing socket ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14903 ___

[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

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

2013-06-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18277 ___ ___ Python-bugs-list mailing list

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18275

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18222 ___

[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

[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

[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

[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

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

2013-06-21 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18237 ___ ___ Python-bugs-list

[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

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

[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

[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

[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

[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

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

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18278 ___

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster webster.p...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18279 ___ ___ Python-bugs-list

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster webster.p...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18279 ___ ___ Python-bugs-list

[issue18279] IDLE Unit test for RstripExtension.py

2013-06-21 Thread Phil Webster
Changes by Phil Webster webster.p...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file30664/test_rstripext.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18279 ___

[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

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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18277 ___

[issue15693] expose glossary link on hover

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

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

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

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

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16803 ___ ___

[issue18056] Document importlib._bootstrap.NamespaceLoader

2013-06-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: barry - docs@python keywords: +easy -3.3regression nosy: +docs@python versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18056

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

[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 rep...@bugs.python.org wrote: Nick Coghlan added the comment: Can I vote for something like __builtin__

[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

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

[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 rep...@bugs.python.orgwrote: 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

[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 rep...@bugs.python.org wrote: Eli Bendersky added the comment: On Fri, Jun 21, 2013 at 6:59 PM, Barry A. Warsaw rep...@bugs.python.org

[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: 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 rep...@bugs.python.org wrote: Ethan Furman added the comment: On 06/21/2013 07:49 PM, Guido van Rossum wrote: Eli Bendersky

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