[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: I do not think so. mypy has the same issue. The ByteString type does not include the methods shared by all its implementations. I already linked to this in https://bugs.python.org/msg375553. I also showed that mypy doesn't work in my last comment

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: $ pyright hex.py stubPath /Users/anacrolix/src/dht-scraper/typings is not a valid directory. Assuming Python platform Darwin Searching for source files Found 1 source file /Users/anacrolix/src/dht-scraper/hex.py 3:9 - error: Cannot access member "hex"

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Matt Joiner
Change by Matt Joiner : Added file: https://bugs.python.org/file49423/hex.py ___ Python tracker <https://bugs.python.org/issue41564> ___ ___ Python-bugs-list mailin

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-17 Thread Matt Joiner
Matt Joiner added the comment: https://github.com/python/cpython/blob/48b069a003ba6c684a9ba78493fbbec5e89f10b8/Lib/_collections_abc.py#L953 https://github.com/python/cpython/blob/0e95bbf08571e98f4b688524efc2dcf20d315d91/Lib/typing.py#L1612 -- status: pending -> o

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-16 Thread Matt Joiner
New submission from Matt Joiner : I get this error when running pyright for a type of typing.ByteString. All the implementations of ByteString (bytes, bytearray, memoryview) have the hex method, so this seems unexpected? -- components: Library (Lib) messages: 375523 nosy: anacrolix

[issue13322] The io module doesn't support non-blocking files

2019-10-10 Thread Matt Joiner
Change by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <https://bugs.python.org/issue13322> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2019-01-31 Thread Matt Joiner
Change by Matt Joiner : -- nosy: -anacrolix ___ Python tracker <https://bugs.python.org/issue12822> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-15 Thread Matt Joiner
Changes by Matt Joiner <anacro...@gmail.com>: -- nosy: -anacrolix ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14156> ___ _

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-11 Thread Matt Joiner
Matt Joiner added the comment: This is why I stopped contributing to Python. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue14373] C implementation of functools.lru_cache

2015-10-21 Thread Matt Joiner
Changes by Matt Joiner <anacro...@gmail.com>: -- nosy: -anacrolix ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14373> ___ _

[issue4331] Add functools.partialmethod

2013-10-31 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: -anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___ ___ Python-bugs-list

[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9148 ___ ___ Python-bugs-list

[issue4331] Add functools.partialmethod

2013-06-05 Thread Matt Joiner
Matt Joiner added the comment: This sounds excellent Nick. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___ ___ Python-bugs-list mailing

[issue4331] Can't use _functools.partial() created function as method

2013-02-07 Thread Matt Joiner
Matt Joiner added the comment: What's preventing this from being committed and closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331

[issue14373] C implementation of functools.lru_cache

2012-11-13 Thread Matt Joiner
Matt Joiner added the comment: I look forward to your feedback Ezio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs

[issue15139] Speed up threading.Condition wakeup

2012-07-04 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Did this make it into 3.3? -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15139

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2012-05-30 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list

[issue9634] Add timeout parameter to Queue.join()

2012-04-04 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9634 ___ ___ Python-bugs-list

[issue1360] Queue.get() can't be interrupted with Ctrl-C unless timed out

2012-04-04 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Isn't this fixed in Python=3.2? -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1360

[issue14373] C implementation of functools.lru_cache

2012-04-02 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: * it incorporate the recent lru_cache algorithmic updates (moving the root around the circular queue to re-use old links). The existing C patch already does this. * it shows which parts should be implemented in C using a regular type

[issue14373] C implementation of functools.lru_cache

2012-04-02 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Removed file: http://bugs.python.org/file25026/functools.lru_cache-in-c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue14373] C implementation of functools.lru_cache

2012-04-02 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Removed file: http://bugs.python.org/file24984/functools.lru_cache-in-c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue14408] Support ./python -m unittest in the stdlib tests

2012-04-01 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: The patch attached, rejigs the TestCase inheritance in test.test_socket so that tests run correctly using unittest discovery. Recent changes have made test_queue, and test_threading run without similar fixes, so I don't think fixes for those

[issue14408] Support ./python -m unittest in the stdlib tests

2012-04-01 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Attached is a patch for test_concurrent_futures, similar to the patch for test_socket. -- Added file: http://bugs.python.org/file25088/test_concurrent_futures-unittest-discoverability.patch

[issue14406] Race condition in concurrent.futures

2012-03-31 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Patch with a test included. Being a nondeterministic bug, please adjust the thread count, or timing as necessary, the parameters in the patch are as low as I can get them and still reasonably reproduce the bug (linux 3.2, i386). There's a few

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I'm working on a patch using TestCase a la test_queue. Perhaps we should create an issue for a base class test case decorator or something to that effect? -- ___ Python tracker rep

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: It could in fact be necessary, if the inheritance cannot be juggled to give the right MRO. Fortunately this is not the case, I should have a patch using TestCase inheritance for discovery tomorrow

[issue14406] Race condition in concurrent.futures

2012-03-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I'll add this shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14406 ___ ___ Python

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-28 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Michael: The thread setup and cleanup is not required, AFAICT. You are also correct in that these particular test modules do not run correctly without modification (although test_queue does now that the bug I reported there was fixed). Sorry

[issue14408] Support the load_tests protocol in the stdlib tests

2012-03-27 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I think if you can correctly construct the same test case list using discovery then that's far superior. But I haven't tried this, and don't know if you can correctly predicate the support classes using only class decorators

[issue14373] C implementation of functools.lru_cache

2012-03-26 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I've fixed the commenting, and cache_info use. I've left the element management in pure C as it reduces memory use (56 bytes for 4 element list, vs. 16 for lru_cache_elem), and avoids ref counting overhead (3 refs per link, plus GC

[issue14373] C implementation of functools.lru_cache

2012-03-26 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Removed file: http://bugs.python.org/file24958/functools.lru_cache-in-c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: There's a race condition in concurrent.futures in _AllCompletedWaiter, which affects wait(return_when=ALL_COMPLETED). The attached test will go into an infinite wait. -- components: Library (Lib) files: concurrent.futures

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file25020/concurrent.futures._AllCompletedWaiter-race-condition.patch ___ Python tracker rep...@bugs.python.org http

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +bquinlan, loewis, pitrou, rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14406

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: matt@matt-1005P:~/src/cpython$ ./python -m unittest test.test_concurrent_futures Ran 79 tests in 62.554s FAILED (errors=18) Failures are due to test discovery picking up unintentionally exposed tests. By adhering to the test_cases protocol

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14407 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing

[issue14408] Support the test_cases protocol in the stdlib tests

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: Python 3.2 added the test_cases protocol. Many of the stdlib tests won't run using the `$ python3 -m unittest test.test_blah` method due to select unit test class names, and some regrtest arcanity. Defining test_cases makes these tests work

[issue4331] Can't use _functools.partial() created function as method

2012-03-24 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___ ___ Python-bugs-list

[issue4331] Can't use _functools.partial() created function as method

2012-03-24 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I've attached a patch that implements the descriptor protocol for functools.partial with minimum changes. -- Added file: http://bugs.python.org/file25016/functools.partial-descrget.patch ___ Python

Condition in C API

2012-03-22 Thread Matt Joiner
Is there a Condition-like object exposed in the CPython C API? I've found PyThread_lock_type, but nothing condition-like. -- http://mail.python.org/mailman/listinfo/python-list

[issue9528] Add pure Python implementation of time module to CPython

2012-03-22 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2012-03-21 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Updated patch to fix a crash if maxsize isn't given, and add a unit test for that. Possible issues: * I've tried to emulate object() by calling PyBaseObject_Type. Not sure if there's a more lightweight object for this that just provides

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: functools.lru_cache is optimized to the point that it may benefit from a C implementation. -- components: Interpreter Core, Library (Lib) messages: 156405 nosy: anacrolix, rhettinger priority: normal severity: normal status: open

[issue14373] C implementation of functools.lru_cache

2012-03-20 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Added file: http://bugs.python.org/file24958/functools.lru_cache-in-c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-20 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Added file: http://bugs.python.org/file24961/profiler-unhandled-exceptions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-20 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: This patch is a shoo-in, can someone review and commit this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-20 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I attached a minimal patch that additionally tidies the exception handling for {cP,p}rofile.runctx. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684

[issue13448] PEP 3155 implementation

2012-03-18 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Doc/library/dis.rst wasn't updated for the extra pop introduced to MAKE_CLOSURE opcode. -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue14333] queue unittest errors

2012-03-17 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Yes, FWIW much of the standard library tests are callable this way without issue. I have patches that fix the discoverability of a few test modules. I'll submit these in another issue

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-17 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I will submit a patch for this soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684

[issue14320] set.add can return boolean indicate newly added item

2012-03-16 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Is there still some value to at least exposing this in the C API, per the precedents I mentioned? The patch also contains some adjustment to the set_add_entry/set_add_key abstraction dance, and some future proofing of PySet_Add return values

[issue14333] queue unittest errors

2012-03-16 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: $ python3.3 -m unittest test.test_queue Generates errors in the unit test code of the form AttributeError: 'BaseQueueTest' object has no attribute 'type2test' -- components: Tests messages: 156006 nosy: anacrolix, benjamin.peterson

[issue14230] Delegating generator is not always visible to debugging tools such as inspect pdb

2012-03-16 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: This changeset has broken something. All I get is a confusing backtrace ending with: File /home/matt/src/python-torrent/torrent/bencode.py, line 15, in encode yield from encode(k) AttributeError: 'list_iterator' object has no attribute

[issue12684] profile does not dump stats on exception like cProfile does

2012-03-15 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Jim the code was lifted verbatim from Lib/cProfile.py, line 47. That code in cProfile.py has not changed since 2006 when it was committed by Armin Rigo. I can modernize it if it's a requirement to get it committed, but I'm also okay with my

[issue14320] set.add can return boolean indicate newly added item

2012-03-15 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: set.add can return True to indicate a newly added item to the set, or False if the item was already present. The C function PySet_Add returns -1 on error, and 0 on success currently. This is extended to return 1 if the item is newly added

[issue14320] set.add can return boolean indicate newly added item

2012-03-15 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: Added file: http://bugs.python.org/file24863/bench_set_add.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14320

[issue13872] socket.detach doesn't mark socket._closed

2012-03-15 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Yes it should. A cursory glance shows that __repr__ returns incorrect if _closed is not marked, and an unnecessary mop-up call to socket.close is avoided. -- nosy: +giampaolo.rodola, haypo, stutzbach

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-03-15 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I should mention that this failure to set addr is unusual seeing as most socket instances are wrapping AF_INET* domain sockets, and aren't likely to connect without blocking. This is quite likely a reason nobody has observed it until now

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-03-15 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Steven, patch attached. I lost steam in the unittests with all the meta, suffice it that the names match the file descriptors of the stream sources. i.e. FileType('rb') would give a file with name=0, and so forth. My chosen method also allows

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-03-14 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Roger that. I'll start on a patch for this in a month or two if all goes well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14156

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-14 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14222 ___ ___ Python-bugs-list

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-02-29 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: If an argument of '-' is handled by argparse.FileType, it defaults to sys.stdin. However a mode of 'rb' is ignored, the returned file object does not work with raw bytes. -- components: Library (Lib) messages: 154612 nosy: anacrolix

[issue10115] Support accept4() for atomic setting of flags at socket creation

2012-02-28 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Can we get this exposed as an os.accept4, and an optional flags parameter to socket.socket.accept? -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10115

[issue14060] Implement a CSP-style channel

2012-02-20 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: As I see it, here are the desirable features of CSP-style concurrency as it pertains to channels: 1) At least an unbuffered mode 2) Can be marked closed 3) Block on multiple send/receives until one can proceed Specifically features 1 and 2

[issue14059] Implement multiprocessing.Barrier

2012-02-19 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: There is no Barrier in multiprocessing corresponding to threading.Barrier. -- components: Library (Lib) messages: 153744 nosy: anacrolix priority: normal severity: normal status: open title: Implement multiprocessing.Barrier type

[issue14060] Implement a CSP-style channel

2012-02-19 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: From the mailing list, there is some interest in a CSP-style channel. http://mail.python.org/pipermail/python-ideas/2012-February/014073.html -- components: Library (Lib) messages: 153748 nosy: anacrolix priority: normal severity

[issue14003] __self__ on built-in functions is not as documented

2012-02-17 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___ Python-bugs-list

[issue12655] Expose sched.h functions

2012-02-16 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Please also expose sched_getcpu(). -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12655

[issue13894] threading._CRLock should not be tested if _thread.RLock isn't implemented

2012-01-28 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: _threading.RLock is optional, and threading._CRLock is set to None if it isn't available. If this happens, the test_threading unittests crash. Some implementations don't provide _thread.RLock. Patch attached. -- components: Library

[issue13872] socket.detach doesn't mark socket._closed

2012-01-26 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: socket.socket.detach doesn't mark the socket._closed flag. The flag is specific to the Python wrapper, so the fix is put there. Test included. -- components: Library (Lib) files: socket-detach-mark-closed.patch keywords: patch

[issue13322] buffered read() and write() does not raise BlockingIOError

2012-01-25 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: The patches only fix write? What about read? http://bugs.python.org/issue13858 -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13322

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: There's a lingering StandardError referenced in the logging module. StandardError was removed in Python 3, and execution across this code path generates a NameError: File /home/matt/src/cpython/Lib/logging/__init__.py, line 291

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Interesting this also occurs in 3.2 and 2.7, but not 2.6 or 3.1. It's probably not an error in 2.x tho. -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http

[issue13859] Lingering StandardError in logging module

2012-01-25 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Cheers, thanks for the fast turn around. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13859

[issue13858] readline fails on nonblocking, unbuffered io.FileIO objects

2012-01-24 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: _io._IOBase.readline doesn't seem to like _io.FileIO.read returning None, which occurs when it's unbuffered and nonblocking. (Modules/_io/fileio.c:745 in trunk). Can this be handled some other way? $ python3.3 Python 3.3.0a0

[issue13839] -m pstats should combine all the profiles given as arguments

2012-01-22 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: Frequently when profiling multiple threads, I need to combine several dump stat files. Currently -m pstats reads the profiling data at only the first path given. It should merge all the profiling data from all the paths given. $ python3.3

[issue12684] profile does not dump stats on exception like cProfile does

2012-01-22 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- resolution: works for me - status: languishing - open versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684

[issue13791] Other versions

2012-01-15 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: The navigation region at http://docs.python.org/dev/ should list Other versions instead of Old versions as the in development docs are also available here. Docs for other versions Python 2.7 (stable) Python 3.2 (stable) Old versions

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I don't believe it is. dispatcher.addr is only set if the connection is immediately established. It's set explicitly in dispatcher.__init__ if a socket is provided that is already connected. It's *not* set after a connection completes

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-01 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: Patch attached -- components: Library (Lib) files: dispatcher_connect_addr.patch keywords: patch messages: 150449 nosy: anacrolix priority: normal severity: normal status: open title: asynchronous connect in asyncore.dispatcher does

Re: Questions about LISP and Python.

2011-12-08 Thread Matt Joiner
Guido is too busy secretly pouring his cruelty and malice into a master ring to answer trolls. Help yourself to a lesser ring on your way out. On Dec 8, 2011 10:14 PM, Andrea Crotti andrea.crott...@gmail.com wrote: On 12/08/2011 04:10 AM, Rick Johnson wrote: ... Why has GvR not admonished

Re: Multiprocessing bug, is my editor (SciTE) impeding my progress?

2011-12-06 Thread Matt Joiner
John I'm in a similar position. I've been using Geany for 2+ years and haven't found anything to replace it. Either the replacement tool makes it too difficult to work with Python correctly, or I spend more time trying to understand it, rather than getting the job done. I also use vim on occasion

Re: Questions about LISP and Python.

2011-12-05 Thread Matt Joiner
This guy is an even better troll than that 8 guy. His spelling is equally bad. His essays make some good points, but I don't see why he doesn't shut his trap and move on. ಠ_ಠ On Tue, Dec 6, 2011 at 6:02 PM, alex23 wuwe...@gmail.com wrote: On Dec 6, 2:36 pm, Xah Lee xah...@gmail.com wrote:

Re: order independent hash?

2011-12-04 Thread Matt Joiner
Duh. What's the point you're trying to make? On Mon, Dec 5, 2011 at 10:17 AM, 8 Dihedral dihedral88...@googlemail.com wrote: On Monday, December 5, 2011 4:13:01 AM UTC+8, Ian wrote: On Sun, Dec 4, 2011 at 11:06 AM, 8 Dihedral dihedr...@googlemail.com wrote: If you want to talk about

Re: order independent hash?

2011-12-04 Thread Matt Joiner
Yes. I sent a mail earlier asking such and it was bounced. I'm one email from also blocking this fellow. On Mon, Dec 5, 2011 at 12:59 PM, Lie Ryan lie.1...@gmail.com wrote: On 12/05/2011 11:52 AM, 8 Dihedral wrote: On Monday, December 5, 2011 7:24:49 AM UTC+8, Ian wrote: On Sun, Dec 4,

Re: Django ported to Python3!

2011-12-02 Thread Matt Joiner
As long as we can dump python 2, a big congrats to anyone who makes this possible. Thanks martin On Dec 3, 2011 5:51 PM, Stefan Behnel stefan...@behnel.de wrote: Ron, 02.12.2011 22:47: It looks like Vinay Sajip has succeeded in porting Django to Python3 (in a shared code base for Python 3.2

Re: Python 2 or 3

2011-12-02 Thread Matt Joiner
2 without a doubt. On Dec 3, 2011 5:40 PM, Andrew Berg bahamutzero8...@gmail.com wrote: On 12/3/2011 12:23 AM, Terry Reedy wrote: PyPy has a roadmap for 3.2 http://pypy.org/py3donate.html They definitely plan to do it one way or another. I never said there were no plans, but at $2567 out

Re: Clever hack or code abomination?

2011-12-01 Thread Matt Joiner
Thank you. ಠ_ಠ On Fri, Dec 2, 2011 at 1:49 PM, Terry Reedy tjre...@udel.edu wrote: On 11/30/2011 10:49 PM, Matt Joiner wrote: def possible_names():     yield foo     for i in range(20):         yield foo- + str(i) This is my favorite -- crystal clear with only the variable part variable

Re: Clever hack or code abomination?

2011-11-30 Thread Matt Joiner
def possible_names(): yield foo for i in range(20): yield foo- + str(i) ಠ_ಠ On Thu, Dec 1, 2011 at 2:15 PM, Roy Smith r...@panix.com wrote: I need to try a bunch of names in sequence until I find one that works (definition of works is unimportant).  The algorithm is: 1) Given

Re: Can I submit an issue with Python 2.5.6?

2011-11-29 Thread Matt Joiner
Note the re.VERBOSE flag allows this whitespace treatment of the pattern. 2011/11/29 Toshiyuki Ogura m...@live.jp: Hi. I found a problem with Python 2.5.6. test_commands fails when 'make test'. bugs.python.org doesn't seem to have an option for Python 2.5 in Versions: drop-down menu when

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread Matt Joiner
Agreed. I recently gave Haskell a go, and it was remarkable how similar the package management is to Python's. How well does the new packaging (set for release in Python 3.3?) module deal with the problems? With a better package management system, the half of the standard library that nobody

Re: Return of an old friend

2011-11-27 Thread Matt Joiner
On Sun, Nov 27, 2011 at 4:38 AM, Chris Angelico ros...@gmail.com wrote: On Sun, Nov 27, 2011 at 4:11 AM, rusi rustompm...@gmail.com wrote: Hi Rick! Glad to see you back! [Courts can be dull places without jesters ye-know!] So, what... you'd take someone to court for being funny? That sounds

Re: Using the Python Interpreter as a Reference

2011-11-26 Thread Matt Joiner
http://pyjs.org/ On Sat, Nov 26, 2011 at 3:22 PM, Sells, Fred fred.se...@adventistcare.org wrote: I'm looking at a variation on this theme.  I currently use Flex/ActionScript for client side work, but there is pressure to move toward HTML5+Javascript and or iOS.  Since I'm an old hand at

Re: my new project, is this the right way?

2011-11-26 Thread Matt Joiner
Sounds like you want a key-value store. If it's a lot of data, you may still want a database, I think it's just relational databases that you're trying to avoid? On Sun, Nov 27, 2011 at 10:41 AM, 8 Dihedral dihedral88...@googlemail.com wrote: On Saturday, November 26, 2011 1:01:34 AM UTC+8,

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-25 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12822 ___ ___ Python-bugs-list

Re: Does py2app improves speed?

2011-11-24 Thread Matt Joiner
Yes. Try posting your code. On Fri, Nov 25, 2011 at 1:02 AM, Ricardo Mansilla rick.mansi...@gmail.com wrote: Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is

Re: reading optional configuration from a file

2011-11-24 Thread Matt Joiner
   REMOTE_HOST = 'localhost'    REMOTE_PORT = 2    try: from .settings import *    except ImportError:        pass This works? If you're using an old version of Python you may need to mess about with __future__. On Thu, Nov 24, 2011 at 10:56 PM, Ulrich Eckhardt

Re: Return of an old friend

2011-11-24 Thread Matt Joiner
I haven't heard of you before, but feel like I've missed out on something. Do you (or someone else) care to link to some of your more contentious work? On Fri, Nov 25, 2011 at 1:19 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: Hello Fellow Pythonistas, I am very glad to be back after

  1   2   >