[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: Removed file: http://bugs.python.org/file21014/gcc-visibility.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: This patch adds support for the GCC visibility attributes to the PyAPI_* macros (currently only used for Windows.) GCC's default visibility is 'public', but can be changed to 'hidden' with the '-fvisibility=hidden' argument; see http

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: This patch adds support for the GCC visibility attributes to the PyAPI_* macros (currently only used for Windows.) GCC's default visibility is 'public', but can be changed to 'hidden' with the '-fvisibility=hidden' argument; see http

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- Removed message: http://bugs.python.org/msg130144 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-05 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Uploaded to Rietveld, too: http://codereview.appspot.com/4260052/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410

[issue11411] Fix typo in Makefile

2011-03-05 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: Fix a (double) typo in the Makefile, which prevents 'make DESTDIR=relative/path' from working correctly. -- files: destdir.diff keywords: easy, needs review, patch messages: 130146 nosy: twouters priority: normal severity: normal

[issue4684] sys.exit() exits program when non-daemonic threads are still running

2010-09-28 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- resolution: - fixed status: open - closed superseder: - Thread shutdown exception in Thread.notify() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4684

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Things getting worse before they get better? http://docs.python.org/ now shows the 2.7a4 documentation, which is really not good. Perhaps we need some safeguards to make sure that http://docs.python.org/ is a *stable* version of the docs? :P

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Oh, actually, looks like something was redirecting from docs.python.org to docs.python.org/dev. It seems fixed now. (It wasn't just me, though, I got complaints from others that it was 2.7a4 for at least an hour

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___ ___ Python-bugs-list mailing list

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___ ___ Python-bugs-list mailing list

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Nevermind the 2.7a4 comments, I think I'm just not all awake yet. The complaints I got were about it being 2.6.5c2, my browser showing me 2.7a4 may have been stupid autocompletion or something. (Still, please fix

[issue8111] docs.python.org/download.html unhelpful.

2010-03-10 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: docs.python.org is showing the docs for 2.6.5c2. As its most obvious bad consequence, docs.python.org/download.html doesn't offer any actual downloads, and there are no obvious (to newbies looking to download docs) links to working

[issue7915] A lists which list.sort seems to leave out of order.

2010-02-11 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: You have a nan in your list of tuples, which screws up the sorting. After the first sort, elements 580395-7 are: (0.99257340581672904, 551095), (nan, 551371), (6.6494600485570754e-14, 551526), -- nosy: +twouters resolution

[issue6923] Need pthread_atfork-like functionality in CPython

2009-09-16 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: In order to properly handle multiple threads and fork()-calls from C code (rather than os.fork()), Python should provide pthread_atfork()-like functionality: a function to call before a fork, to acquire any locks that need to be acquired

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-09-16 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Checked in the patch to fix the forks-through-os.fork() cases, which should be most of them. Forks from other C code will need some more work, created http://bugs.python.org/issue6923 to track that. -- resolution: - fixed status

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-07-23 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Here's a preliminary fix (also see http://codereview.appspot.com/96125/show ) -- assignee: - twouters keywords: +patch nosy: +twouters Added file: http://bugs.python.org/file14553/import_lock_fork_deadlock.diff

[issue2292] Missing *-unpacking generalizations

2008-04-07 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: Agreed. A PEP was already on my TODO list (although I don't mind if someone else picks it up :-) I implemented the dict-unpacking-in-dict-literal syntax in the mean time; it's pushed to the starunpack bzr branch, but I'll add some actual tests

[issue2292] Missing *-unpacking generalizations

2008-04-07 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: On Mon, Apr 7, 2008 at 9:00 PM, Alexander Belopolsky [EMAIL PROTECTED] wrote: Alexander Belopolsky [EMAIL PROTECTED] added the comment: Thomas, Could you add BUILD_*_UNPACK opcodes documentation to Doc/library/dis.rst? It would also

[issue2292] Missing *-unpacking generalizations

2008-04-07 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: I'm not sure how this matters. The order of evaluation is the same, the BUILD_SET implementation just hashes the evaluated items in a different order. You can't really rely on that particular order as it's tied closely to the stack

[issue2292] Missing *-unpacking generalizations

2008-04-07 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: I don't think the order in which the items are hashed is really what Raymond was worried about. Rather, the size of the stack was, and the effect of having all the items on the stack at the same time. I think Raymond is wrong in this case

[issue2292] Missing *-unpacking generalizations

2008-04-06 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: No, it's what you asked for in msg63551: How about dicts? kwds = {'z': 0, 'w': 12} {'x': 1, 'y': 2, **kwds} # {'x': 1, 'y': 2, 'z': 0, 'w': 12} (unpacking of dicts in dicts.) __ Tracker [EMAIL PROTECTED

[issue2292] Missing *-unpacking generalizations

2008-04-05 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: Updated patch: reworked some internals, and added generalization of functioncalls after talking with Guido. *args is now considered just another positional argument, and can occur anywhere in the positional argument section. It can also occur

[issue2292] Missing *-unpacking generalizations

2008-04-05 Thread Thomas Wouters
Changes by Thomas Wouters [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9673/morestar.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2292 __ ___ Python-bugs

[issue2292] Missing *-unpacking generalizations

2008-03-15 Thread Thomas Wouters
New submission from Thomas Wouters [EMAIL PROTECTED]: The attached patch adds the missing *-unpacking generalizations. Specifically: a, b, *c = range(5) *a, b, c = a, b, *c a, b, c ([0, 1, 2], 3, 4) [ *a, b, c ] [0, 1, 2, 3, 4] L = [ a, (3, 4), {5}, {6: None}, (i for i in range(7, 10

[issue2292] Missing *-unpacking generalizations

2008-03-15 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: On Sat, Mar 15, 2008 at 9:12 AM, Guido van Rossum [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] added the comment: Didn't you say it does sets too? Does this work? a = [1, 2, 3] {1, *a, 0, 4} # {0, 1, 2, 3, 4} Yes

[issue2292] Missing *-unpacking generalizations

2008-03-15 Thread Thomas Wouters
Thomas Wouters [EMAIL PROTECTED] added the comment: On Sat, Mar 15, 2008 at 9:18 AM, Guido van Rossum [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] added the comment: Looking at the flatten() example I'm curious -- how come the output of flatten(L) is displayed as a list

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Changes by Thomas Wouters: Removed file: http://bugs.python.org/file9320/dictviews_backport.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1967 __ ___ Python-bugs-list

[issue1967] Backport dictviews to 2.6

2008-01-30 Thread Thomas Wouters
Thomas Wouters added the comment: After talking to Guido, got rid of the future import magic in favour of just providing 'viewkeys', 'viewitems' and 'viewvalues' methods of dicts. This makes efficient 2.6-and-3.0 dict-using code possibly by making 2to3 translate the view-methods directly to keys

[issue1967] Backport dictviews to 2.6

2008-01-29 Thread Thomas Wouters
New submission from Thomas Wouters: Patch to backport dictviews to trunk. Consists of some trickery: - new 'viewkeys', 'viewvalues' and 'viewitems' methods of dicts, returning exactly what 'keys', 'values' and 'items' return in 3.0: three new types defined in dictobject.c - a future import

[issue1067] test_smtplib failures (caused by asyncore)

2007-12-05 Thread Thomas Wouters
Changes by Thomas Wouters: -- assignee: twouters - nobody nosy: +nobody __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067 __ ___ Python-bugs-list mailing list

[issue1067] test_smtplib failures (caused by asyncore)

2007-12-05 Thread Thomas Wouters
Thomas Wouters added the comment: I thought I already had, in my reply to Martin and the original comment: he's right, but I don't care about asyncore or asynchat. I merely perpetuated the fix that was already in place. The real 'fix' is to teach both modules about unicode; have them handle

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-31 Thread Thomas Wouters
Thomas Wouters added the comment: I agree, but the change wasn't actually mine. I merely adjusted the already-implemented strategy to the fact that bytes(str) no longer works. I think the original change was Jeremy H's. __ Tracker [EMAIL PROTECTED] http

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Well, that's not quite how I implemented the slicing, and it's also not how the existing simple-slicing was implemented: A negative start index is taken to mean 0, and a stop index below the start index is taken to mean 'the start index' (leading to an empty

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Hmmm Well, that's fine by me, but it changes current behaviour, and in a way that ctypes own testsuite was testing, even ;) (it does, e.g., 'p[:4]' in a couple of places.) Requiring the start always would possibly break a lot of code. We could make only

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Checked in a slightly newer version. -- resolution: accepted - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Thomas Wouters
New submission from Thomas Wouters: test_smtplib fails because asyncore uses bytes(data) where data may be bytes or str or some undefined type. The attached patch fixes it to the extend that test_smtplib works again (plus a small fix in test_smtplib itself.) I'm not sure if this is the right

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Checked in. -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067 __ ___ Python

[issue1056] test_cmd_line starts python without -E

2007-08-29 Thread Thomas Wouters
New submission from Thomas Wouters: test_cmd_line tests various things by spawning sys.executable. Unfortunately it does so without passing the -E argument (which 'make test' does do) so environment variables like PYTHONHOME and PYTHONPATH can cause the test to fail. -- assignee

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters
Thomas Wouters added the comment: Added tests (by duplicating any slicing operations in the test suite with extended slice syntax, to force the use of slice-objects ;) _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters
Changes by Thomas Wouters: _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters
Changes by Thomas Wouters: _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: I'd like to check this into the trunk, without the non-step-1 support for now, so that we can remove simple slicing from the py3k branch. We can always add non-step-1 support later (all the sooner if someone who isn't me volunteers to do the painful bits

[issue1617687] specialcase simple sliceobj in list (and bugfixes)

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: I prefer the current method, as it's more obviously walking in two strides across the same array. I also dislike hiding the final memmove() of the tail bit inside the loop. As for which is more obvious, I would submit neither is obvious, as it took me quite

[issue1617702] extended slicing for buffer objects

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617702

[issue1617701] extended slicing for structseq

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617701

[issue1617698] Extended slicing for array objects

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617698

[issue1617682] specialcase simple sliceobj in tuple/str/unicode

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617682

[issue1617691] Extended slicing for UserString

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617691

[issue1617700] slice-object support for mmap

2007-08-28 Thread Thomas Wouters
Thomas Wouters added the comment: Committed revision 57619. -- assignee: - twouters resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617700

<    1   2   3