Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4761
___
___
Python-bugs-list
Matt Joiner anacro...@gmail.com added the comment:
This is sorely needed. IMO the current behaviour of time.clock works for
Windows, and clock_gettime(CLOCK_MONOTONIC) on POSIX or
clock_gettime(CLOCK_MONOTONIC_RAW) on Linux=2.6.28.
There are some related discussions on StackOverflow that may
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2987
___
___
Python-bugs-list
Matt Joiner anacro...@gmail.com added the comment:
I agree, I discovered this function (pipes.quote) only through recommendation
here:
http://stackoverflow.com/questions/4748344/whats-the-reverse-of-shlex-split
I suggest that it be added to shlex, perhaps as shlex.quote. While the quoting
Matt Joiner anacro...@gmail.com added the comment:
Two reasons: The pipes module is Unix only, but pipes.quote is useful on all
platforms. Secondly pipes.quote pertains to shell command-lines, this is also
the domain of shlex which already cross platform. In pipes, an import
shlex.quote would
Matt Joiner anacro...@gmail.com added the comment:
I notice Linux is described as not taking count=0 to mean to send until the end
of in is reached. Is it possible to pass (size_t)-1 to this field if None is
given, or do a loop on non-zero counts from sendfile to emulate this?
I poked around
Matt Joiner anacro...@gmail.com added the comment:
I have a few problems with these parts of the latest patch:
+ The second case may be used on Mac OS X and FreeBSD where *headers*
+ and *trailers* are arbitrary sequences of buffers that are written before
and
+ after the data from
Matt Joiner anacro...@gmail.com added the comment:
Thanks for catching that:
Presently (Linux 2.6.9): in_fd, must correspond to a file which sup‐
ports mmap(2)-like operations (i.e., it cannot be a socket); and out_fd
must refer to a socket.
Despite the fact the manpage hasn't
Matt Joiner anacro...@gmail.com added the comment:
Why isn't this implemented to work with __int__ as well?
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8300
Matt Joiner anacro...@gmail.com added the comment:
Thanks Mark for clearing that up. I found this link to be useful in explaining
the purpose of __index__:
http://docs.python.org/release/2.5.1/whatsnew/pep-357.html
I think the choice of allowing only __index__ was the right choice
New submission from Matt Joiner anacro...@gmail.com:
The Format Specification Mini-Language is missing type 'i', generally the same
as 'd', and ubiquitous in the libraries from which the specification is
derived. See the 'd,i' conversion specifier in C:
http://linux.die.net/man/3/printf
Matt Joiner anacro...@gmail.com added the comment:
Is there any reason 'd' was chosen over 'i'? Is there a more appropriate place
I can find this out?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11264
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5421
___
___
Python-bugs-list
Matt Joiner anacro...@gmail.com added the comment:
I take it this is out for 2.7, will it be in 3.2?
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3823
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6627
___
___
Python-bugs-list
New submission from Matt Joiner anacro...@gmail.com:
When reading from the fileobj passed in it's constructor, zipfile.ZipExtFile
passes a long into fileobj.read(). This is not normally an issue, except in
io.BytesIO, for which the source is in C, and throws TypeError for
type(bufsize) != int
Matt Joiner anacro...@gmail.com added the comment:
This bug is very misleading in Py3, as the TypeError makes one think that a
string is being passed rather than bytes (how else do you get a 2 argument
function call wrong?). Very difficult to determine that this is not in fact the
bug
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3136
___
___
Python-bugs-list
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3831
___
___
Python-bugs-list
Matt Joiner anacro...@gmail.com added the comment:
I look forward to this, or something similar. Inspiration can be taken from
Golangs's select behaviour on channels.
select {
case i1 = -c1:
print(received , i1, from c1\n)
case c2 - i2:
print(sent , i2, to c2\n)
default
New submission from Matt Joiner anacro...@gmail.com:
os.fstat doesn't not accept an object with the fileno() method.
Probably a bunch of other similar functions will not either.
In some parts of the standard library it's common practice to call
PyObject_AsFileDescriptor on fd-wrapping
Matt Joiner anacro...@gmail.com added the comment:
Also affects 3.3.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12684
Changes by Matt Joiner anacro...@gmail.com:
--
resolution: - works for me
status: open - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12684
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12822
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
Matt Joiner anacro...@gmail.com added the comment:
Just ran into this bug myself with 3.2. Apparently this patch works:
http://groups.google.com/group/comp.lang.python/msg/bd8818ab9d4af8d7
--
nosy: +anacrolix
___
Python tracker rep
Matt Joiner anacro...@gmail.com added the comment:
Attached a patch that fixes it, only the line numbers have changed from Martin
v. Loewis's patch. Used on 3.2.
--
Added file: http://bugs.python.org/file22360/fix-root-prefix.patch
___
Python
Changes by Matt Joiner anacro...@gmail.com:
--
components: +Build, Library (Lib)
nosy: +alexis
type: behavior - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9674
New submission from Matt Joiner anacro...@gmail.com:
_ctypes.dlopen is not including the errno when it raises OSError.
This occurs when attempting to load a library that doesn't exist, the error
string given is clearly generated from an ENOENT.
joiner@dbssyd800:~$ python3 dlopen_raise.py
None
New submission from Matt Joiner anacro...@gmail.com:
Given there is no ! operator in Python, I next tried ~ (despite that I'm after
a logical not). This came as a surprise:
bool(~True)
True
bool(~False)
True
bool(~~False)
False
~True, ~~True, ~False, ~~False
(-2, 1, -1, 0)
Is there any
New submission from Matt Joiner anacro...@gmail.com:
The smptlib module's __main__ doesn't flush stdout when prompting:
sys.stdout.write(prompt + : )
return sys.stdin.readline().strip()
stdout is usually line buffered, and so running python3 smptlib.py doesn't
actually prompt
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4768
___
___
Python-bugs-list
Matt Joiner anacro...@gmail.com added the comment:
What's the status of this bug? This is a very useful feature, I've had to use
and add bindings to monotonic times for numerous applications. Can it make it
into 3.3?
--
___
Python tracker rep
Matt Joiner anacro...@gmail.com added the comment:
I get this on Linux with ^D
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5505
Matt Joiner anacro...@gmail.com added the comment:
Feel like a total noob: Where do I get the latest source? I can't find any
pre-release tarballs for 3.3, and the suggested py3k checkout doesn't work: $
hg clone http://hg.python.org/cpython#py3k py3k
abort: unknown revision 'py3k
Matt Joiner anacro...@gmail.com added the comment:
This version is fixed for me:
$ ./python
Python 3.3.0a0 (default:7520f1bf0a81, Jul 18 2011, 17:12:12)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2
--
versions: +Python 3.2
___
Python tracker rep
New submission from Matt Joiner anacro...@gmail.com:
a = subprocess.Popen(['cat', '/path/to/text.ini'], stdout=subprocess.PIPE,
universal_newlines=True)
b = configparser.ConfigParser()
b.read_file(a.stdout)
Traceback (most recent call last):
File stdin, line 1, in module
File /hostname
New submission from Matt Joiner anacro...@gmail.com:
from threading import *
ThreadError
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'ThreadError' is not defined
--
components: Library (Lib)
files: export-thread-error.patch
keywords: patch
New submission from Matt Joiner anacro...@gmail.com:
Here's a patch that fixes it.
--
components: Library (Lib)
files: exception-in-profile.patch
keywords: patch
messages: 141591
nosy: anacrolix
priority: normal
severity: normal
status: open
title: profile does not dump stats
Matt Joiner anacro...@gmail.com added the comment:
Should I just submit a patch for this myself? Can someone confirm the behaviour
is incorrect so I don't waste time fixing it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Matt Joiner anacro...@gmail.com added the comment:
I didn't notice there was no use of errno. It's quite possible that dlopen
might be used without the C library present, so perhaps this is why it wasn't
included. The error strings however are very C-like, which made me think
Matt Joiner anacro...@gmail.com added the comment:
Why can't pipes.quote can't be moved to shlex.quote verbatim as I originally
proposed?
Is there justification to also change it as part of the relocation? I think any
changes to its behaviour should be a separate issue
New submission from Matt Joiner anacro...@gmail.com:
The uuid.uuid4 function is not tested if a C system routine is not present,
despite that uuid4 has several fallback clauses. This patch will test at least
the first fallback.
--
components: Library (Lib)
files: uuid4-test-no-system
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1887
___
___
Python-bugs-list
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1652
___
___
Python-bugs-list
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
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
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14003
___
___
Python-bugs-list
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
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
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
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
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
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
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14222
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9528
___
___
Python-bugs-list
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4331
___
___
Python-bugs-list
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
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
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
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +bquinlan, loewis, pitrou, rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14406
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
Changes by Matt Joiner anacro...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14407
___
___
Python-bugs-list
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list mailing
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
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
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
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
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
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
1 - 100 of 124 matches
Mail list logo