Change by Tim Lesher :
--
nosy: +tlesher
___
Python tracker
<https://bugs.python.org/issue34590>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tim Lesher tles...@gmail.com added the comment:
Corrected const warning in previous patch.
--
Added file: http://bugs.python.org/file24794/8070-use-default-encoding-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8070
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8010
___
___
Python-bugs-list mailing
Tim Lesher tles...@gmail.com added the comment:
Updated patch: use Py_FileSystemDefaultEncoding (if possible) when sys.stdin
is (or becomes) invalid; if none, then fails without entering infinite loop.
Docs for PyRun_InteractiveLoopFlags have been updated.
--
Added file: http
Tim Lesher tles...@gmail.com added the comment:
Victor: would you object to ysj.ray's solution?
I don't think it was an option when we last looked at this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8070
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing
Tim Lesher tles...@gmail.com added the comment:
This patch should both correct the incorrect acceptance of strings and the
incorrect rejection of buffer objects when using SND_MEMORY.
--
keywords: +patch
Added file: http://bugs.python.org/file24470/11620-PlaySound.patch
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11838
___
___
Python-bugs-list mailing
New submission from Tim Lesher tles...@gmail.com:
While most of the occurrences of urlparse were corrected to urllib.parse
when the module was renamed, two were missed: one in the second example, and
one in the See also note for RFC 3986.
--
assignee: docs@python
components
Changes by Tim Lesher tles...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22238/remove-urlparse.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12261
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11620
___
___
Python-bugs-list mailing
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1635741
___
___
Python-bugs-list mailing
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1189811
___
___
Python-bugs-list mailing
I've written a script to do just this, called switchpy.bat.
It's described here:
http://apipes.blogspot.com/2010/10/switchpy.html
Or you can just grab the latest version at:
https://bitbucket.org/tlesher/mpath/src/3edcff0e8197/switchpy.bat
--
Tim Lesher tles...@gmail.com added the comment:
Ugh. That's a reasonable objection.
What's the best thing to do in this case, generally speaking?
list.index() does print the full repr on a value error; and a quick grep shows
a number of other similar uses, although those don't seem
Tim Lesher tles...@gmail.com added the comment:
It looks as if this has been addressed for list.index (aka issue #7252), in
r76058. The same fix could be applied for list.remove.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Tim Lesher tles...@gmail.com added the comment:
Added patch that replicates the change in r82035 for Visual Studio 2005 (VC8)
builds.
--
nosy: +tlesher
Added file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff
___
Python tracker rep
Tim Lesher tles...@gmail.com added the comment:
This patch combines the fix from Georg Brandl's original patch with the fix
made to listindex. The r76058 fix fails the test in Georg's original test
where the repr of the item to be removed itself raises; this patch handles that
case for both
Tim Lesher tles...@gmail.com added the comment:
This appears to run afoul of Microsoft's security-enhanced CRT, which aborts
a program that calls certain API functions (including signal) with invalid
parameters.
PyOS_getsig() has conditionally-compiled code added to deal
Tim Lesher tles...@gmail.com added the comment:
No, there's no automated way to keep legacy Windows toolchains in sync; short
of adopting something like Scons or CMAKE (which I'm *not* suggesting) I don't
think I've seen a trustworthy way of doing so.
The PCBuild's readme.txt states:
You can
Changes by Tim Lesher tles...@gmail.com:
Removed file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9012
Changes by Tim Lesher tles...@gmail.com:
Added file: http://bugs.python.org/file18113/add_time_to_vc8_build.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9012
Tim Lesher tles...@gmail.com added the comment:
There are a number of similar mentions in the C API docs and index; attached is
a patch that removes each.
--
keywords: +patch
nosy: +tlesher
Added file: http://bugs.python.org/file18068/remove-extraneous-types.diff
On Jun 17, 3:51 pm, Back9 backgoo...@gmail.com wrote:
Hi,
I have one byte data and want to know each bit info,
I mean how I can know each bit is set or not?
You want the bitwise-and operator, .
For example, to check the least significant bit, bitwise-and with 1:
3 1
1
2 1
0
--
Tim Lesher tles...@gmail.com added the comment:
I just hit this one myself, and was about to write a bug and patch.
On reviewing the patch:
1. This really has the same issue as the original code: it detects one of a few
known return values, and will infinitely loop on an unexpected return
Tim Lesher tles...@gmail.com added the comment:
Thanks, Antoine. I will re-check the patch against trunk and add tests
this week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674032
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
nosy_count: 2.0 - 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4510
___
___
Python
Changes by Tim Lesher tles...@gmail.com:
--
nosy: +tlesher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5015
___
___
Python-bugs-list mailing
Changes by Tim Lesher [EMAIL PROTECTED]:
--
nosy: +tlesher
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4483
___
___
Python-bugs-list mailing list
Changes by Tim Lesher [EMAIL PROTECTED]:
--
assignee: - georg.brandl
components: +Documentation, Library (Lib) -Interpreter Core
nosy: +georg.brandl
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1674032
New submission from Tim Lesher [EMAIL PROTECTED]:
The urllib.quote docstring implies that it quotes only characters in RFC
2396's reserved set.
However, urllib.quote currently escapes all characters except those in
an always_safe list, which consists of alphanumerics and three
punctuation
)
Regards,
Ryan Ginstrom
Not a smart-ass response at all--a _smart_ response.
Doctests are one of the few mechanisms I've ever seen that even
attempt to make this happen.
--
Tim Lesher
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 21, 10:06 am, scsoce [EMAIL PROTECTED] wrote:
I want to profile a function which has some lines of statement. It seem
that profile module only report function's stats instead of every line
of code, how can i profile every line of code?
thanks.
Use the hotshot profiler, and when
On Feb 21, 3:27 pm, Tim Lesher [EMAIL PROTECTED] wrote:
On Feb 21, 10:06 am, scsoce [EMAIL PROTECTED] wrote:
I want to profile a function which has some lines of statement. It seem
that profile module only report function's stats instead of every line
of code, how can i profile every line
New submission from Tim Lesher:
ConfigParser doesn't prevent manually adding a section named DEFAULT;
however, doing so creates a duplicate, inaccessible [DEFAULT] section in
the config file:
import sys, ConfigParser
c = ConfigParser.ConfigParser()
c.add_section('DEFAULT')
c.write
Tim Lesher added the comment:
Both CRC-32 and ADLER32 are standards (described in ISO 3309 and RFC
1950 respectively); whatever fix implemented should make sure that the
output complies.
ISO 3309 isn't available online as far as I can see, but CRC-32
reference code is published in RFC 1952
has been around since roughly forever, is it just that
no one's bothered to add iteration support to it, or am I missing
something?
Thanks.
--
Tim Lesher
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 6, 4:19 pm, Fredrik Lundh [EMAIL PROTECTED] wrote:
Tim Lesher wrote:
I'm using the marshal library to unmarshal a file containing one or
more objects. The canonical way seems to be:
objs = []
while 1:
try:
objs.append(marshal.load(fobj))
except EOFError
Dasn wrote:
So how to put '\t' argument to split() in map() ?
How much is the lambda costing you, according to your profiler?
Anyway, what you really want is a list comprehension:
l = [line.split('\t') for line in lines]
--
http://mail.python.org/mailman/listinfo/python-list
I see the same behavior as you do. On Windows, the wait() isn't
hanging--what's happening is that the subprocess just never receives
anything.
I don't quite understand why, but it works fine when I change the if
clause in receiver.py to this:
if count = 1000:
p.communicate('exit')
Yes, it's not that hard to get the native file dialogs, as described in
the FAQ:
http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq21.013.htp
It would be nice if PyGTK had a knob for making it use win32 dialogs by
default, though.
--
http://mail.python.org/mailman/listinfo/python-list
--a new version just came out a few
weeks ago (so it's not going away).
The main reason I switched was the Spyce templating engine--more
powerful than CherryTemplate, and tons more readable than Cheetah, in
my opinion.
--
Tim Lesher
[EMAIL PROTECTED]
http://apipes.blogspot.com
--
http
by the team of Steve Bethard, Tim Lesher,
and Tony Meyer. We're trying a collaborative approach to the
summaries: each fortnight, we'll be getting together in a virtual
smoke-filled back room to divide up the interesting threads. Then
we'll stitch together the summaries in roughly the same form
it released within
the next few weeks.
Is Chaco dead? Or just pining?
--
Tim Lesher
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
44 matches
Mail list logo