David Remahl <[EMAIL PROTECTED]> added the comment:
Uploading patch that addresses the test cases above. It applies on top of
nevyn’s latest patch.
Added file: http://bugs.python.org/file9975/python-2.5-int-overflow-2.patch
__
Tracker <[EMAIL PROTECTE
David Remahl <[EMAIL PROTECTED]> added the comment:
I submit that a check for negative values (non-assert-based) should be
added to PyString_FromStringAndSize(). This API is called from many, many
places, and in several cases the operand could probably be negative. It
should raise an ov
Changes by David Remahl <[EMAIL PROTECTED]>:
--
nosy: +chmod007
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2587>
__
___
Python-bugs
New submission from David Anderson <[EMAIL PROTECTED]>:
Some test cases in Lib/test/mapping_tests.py are problematic for users
wishing to test their own implementations of the mapping protocol:
- TestHashMappingProtocol.test_repr() requires the user implementations
to look like a dic
David Wolever <[EMAIL PROTECTED]> added the comment:
I've cleaned up and applied the patch in r62470.
As Collin suggested, I'm leaving the ticket open to use in the future.
__
Tracker <[EMAIL PROTECTED]>
<http://
David Wolever <[EMAIL PROTECTED]> added the comment:
Here is a patch that will detect a `from __future__ import print_function`
and adjust the grammar appropriately.
Any objections?
--
keywords: +patch
Added file: http://bugs.python.org/file10081/print_function_detectio
New submission from Cournapeau David <[EMAIL PROTECTED]>:
Hi,
I wanted to build a msi using the build_msi distutils command for one of
my package, but at some point, it fails, at the function make_id, at
line 177 in mstlib/__init__.py, for a file named aixc++.py. The regex
indeed refus
New submission from david reid <[EMAIL PROTECTED]>:
Small change to allow get_algorithm_impls to correctly detect when lower
case algorithm strings are passed. I recently ran into a server that
sent 'md5' and so this function failed without this small change.
def get_algo
Cournapeau David <[EMAIL PROTECTED]> added the comment:
Ok, thanks for the information.
It may good to have a bit more informative error, though, such as saying
which characters are allowed when checking against a regex ?
__
Tracker <[EMAIL PROTECTE
Cournapeau David <[EMAIL PROTECTED]> added the comment:
It's not that I don't want to work on it, but I don't know anything
about msi, except that some windows users of my packages request it :)
So I would need some indication on what to fix exactly
Do I understand right t
david reid <[EMAIL PROTECTED]> added the comment:
The patch is inline. There's not much to it :-)
Agree with your suggestion to avoid calling lower() twice.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.
david reid <[EMAIL PROTECTED]> added the comment:
Looks like a sensible, simple fix to me :-)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2695>
__
__
New submission from david reid <[EMAIL PROTECTED]>:
In urllib2 when using reusing a Request calling add_header doesn't work
when an unredirected_header has been added.
A good example (and the one that caught me out) is content-type. When
making a POST request with no content-t
david reid <[EMAIL PROTECTED]> added the comment:
I've run into this as an issue with a server that replies with both
digest and basic auth.
When parsing the keys in the header it's possible to detect the start of
a different auth method, so I'd suggest parsing the www-
David Fraser <[EMAIL PROTECTED]> added the comment:
I have a patch for this, but I don't know which platforms have the
problem. On Linux, strftime seems to work fine. Attaching the patch as a
work in progress...
--
keywords: +patch
nosy: +davidfraser
Added file: http://bugs
David Fraser <[EMAIL PROTECTED]> added the comment:
> Which version of Python are you using? I could have sworn we just fixed
this problem in CVS a couple weeks ago.
This was on the latest Python 2.6 svn... but looking at the py3k branch
with viewsvn the code is definitely still
Changes by David Fraser <[EMAIL PROTECTED]>:
--
nosy: +davidfraser
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2736>
__
___
Python-bugs
David Fraser <[EMAIL PROTECTED]> added the comment:
I don't think this really addresses the issue properly...
The original docstring read:
+Note that not specifying sep (or using None) will cause\n\
+empty strings to be removed from the output. thus ' '.strip()\n\
+return
David Fraser <[EMAIL PROTECTED]> added the comment:
Yes that's fantastic, thanks :-)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2809>
__
___
Python
New submission from David Turner <[EMAIL PROTECTED]>:
This patch adds an optimization to the peephole optimizer for the common
case of:
def func(...):
...
retval = ...
return retval
Before the patch, the compiler would generate
STORE_FAST 3
LOAD_FAST 3
RETURN_VALUE
The store an
David Turner <[EMAIL PROTECTED]> added the comment:
The idiom appears at least 370 times in the standard library. And,
while on its own it can't appear in a loop, a function that uses it
might get called in a loop.
You mention some sort of AST optimizer. I haven't really
New submission from David Turner <[EMAIL PROTECTED]>:
This patch improves them.
--
files: dis-doc-patch.diff
keywords: patch
messages: 74928
nosy: novalis_dt
severity: normal
status: open
title: Dis docs on CALL_FUNCTION a bit unclear
Added file: http://bugs.python.org/file11821/d
Changes by David Turner <[EMAIL PROTECTED]>:
--
assignee: -> georg.brandl
components: +Documentation
nosy: +georg.brandl
versions: +Python 2.7
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.py
New submission from David Fugate <[EMAIL PROTECTED]>:
#--
VERSION AFFECTED: 2.5 and 2.6
BUILD TYPE: x86
FLAGS PASSED TO PYTHON.EXE: None
OPERATING SYSTEM: 32-bit Windows Vis
New submission from David Turner <[EMAIL PROTECTED]>:
This is a patch to Tom Lee's AST optimization branch.
Python bytecode includes at least one operation which is not directly
accessible from Python code: LIST_APPEND, which pops a value and a list
off the stack and appends the v
David Turner <[EMAIL PROTECTED]> added the comment:
Neal Norwitz <[EMAIL PROTECTED]> added the comment:
>
> Interesting approach. I was surprised to see the change to the AST,
> but I understand why you did it. I think if the AST optimization
> approach works out we
David Turner <[EMAIL PROTECTED]> added the comment:
Actually, I just noticed a case where the code would do the wrong thing.
I fixed it and added a test for it.
Added file: http://bugs.python.org/file11958/tlee-ast-optimize-appends-3.diff
___
Python t
David Turner <[EMAIL PROTECTED]> added the comment:
> FWIW, I see exposing bytecodes as an anti-pattern that locks in a
> particular implementation in a way that makes it hard to change and
> hard to port to other Python implementations. The current bound
> method approach
David Turner <[EMAIL PROTECTED]> added the comment:
> Obviously if there's another sufficiently good argument for the visitor
> approach, I'm all ears. But again, if we do that I think we should do
> it for the compiler as well. I'm not sure how much support suc
New submission from David Turner <[EMAIL PROTECTED]>:
This patch adds functionality to the optimizer to simplify complex
constant assignments like:
a, (b, c) = d, e = 1, (2, 3)
The simplification is:
a = 1
d = 1
b, c = e = 2, 3
Of course, the simplified version is semantically ide
David Turner <[EMAIL PROTECTED]> added the comment:
Oh, and this also involved the creation of an additional statement type,
unfortunately. The statement type, Seq, represents a sequence of
statements. This is so that we can replace a single assign with
multiple assigns. If that
New submission from Cournapeau David <[EMAIL PROTECTED]>:
This patch if the first part to follow discussion on python-list
concerning problems when using distutils.config.try_run with mingw and
manifest problems on windows for python 2.6 (or any python built with
recent VS).
It simpl
New submission from David Binger <[EMAIL PROTECTED]>:
The parser module validates node trees when they are built from sequences.
The validator must, unfortunately, be updated every time there is a change
in the grammar. The current validator fails to validate "with"
state
David Fraser <[EMAIL PROTECTED]> added the comment:
- "Alexander Belopolsky" <[EMAIL PROTECTED]> wrote:
> Alexander Belopolsky <[EMAIL PROTECTED]> added the
> comment:
>
> I would like to voice my opposition the totimestamp method.
>
> Rep
David Binger <[EMAIL PROTECTED]> added the comment:
Thanks, Benjamin.
I see that you applied this to the main python branch,
which is probably okay (though I haven't tested it),
but I wrote the patch against the py3k code.
Did you mean to apply it to py3k?
On Nov 23, 2008,
David Turner <[EMAIL PROTECTED]> added the comment:
jhylton, keep in mind that this would require an additional "parent"
argument to each function which takes a stmt. Do you think this added
complexity is worth it?
___
Python tracker &
David Turner <[EMAIL PROTECTED]> added the comment:
Sure, but that's an even bigger change. Every piece of code which
modifies the AST would now also have to modify parent pointers. Having
the pointers would make many things easier, but I didn't want to make a
very invasive
David Fraser <[EMAIL PROTECTED]> added the comment:
- "STINNER Victor" <[EMAIL PROTECTED]> wrote:
> STINNER Victor <[EMAIL PROTECTED]> added the comment:
>
> Timedelta formats:
>
> (a) Win64: 64 bits unsigned integer, number of 1/10 microsecon
David Turner <[EMAIL PROTECTED]> added the comment:
Everything in optimize.c is about modifying the AST (this is on tlee's
ast optimization branch, in case I didn't mention earlier). Also,
changing asdl_seq_SET would be a bad idea, since it is used for
sequences of things oth
New submission from David Schnur <[EMAIL PROTECTED]>:
This is my first time submitting an issue; sorry if I am doing this
wrong. While attempting to build/install PyOpenSSL on Windows / MSVC,
the mt.exe step failed because it could not find the manifest file that
it was attempting to
David Schnur <[EMAIL PROTECTED]> added the comment:
I looked at this some more (I'm not super familiar with the use of
manifests) and I think I figured it out. For somewhat complicated
reasons, I'm compiling with /MT rather than /MD. Although link normally
produces a mani
New submission from David Leonard <[EMAIL PROTECTED]>:
Patch to allow unit tests to test for exceptions through a 'with'
statement. Resulting (failing) test would look like this:
import unittest
class T(unittest.TestCase):
def runTest(self):
with self.asser
New submission from Cournapeau David :
I believe the current pyport.h for windows x64 has some problems. It
does not work for compilers which are not MS ones, because building
against the official binary (python 2.6) relies on features which are
not enabled unless MS_WIN64 is defined, and the
New submission from Cournapeau David :
I had some problems with python and universal builds related to the
WORDS_BIGENDIAN macro. Because universal builds are built in one pass
(one configure), the AC_C_ENDIAN cannot be used reliably. Example:
int main()
{
#ifdef WORDS_BIGENDIAN
printf(&quo
New submission from David Laban :
When I first came across decorators (about a year ago?), they confused
the hell out of me, and the syntax is completely google-proof, so I
ended up having to ask on irc.
One of the things that I tried was help('@') but that didn't work
either. T
New submission from David Morley :
There is a systemic error in the Python documentation on time (such as
<http://docs.python.org/library/time.html>). The term UTC is used
incorrectly in the documentation where the term UT1 should be used.
The difference is that UTC includes leap s
David Morley added the comment:
- My use of mktime was a bad choice for an example, since "local time"
is not defined and does not necessarily bear any relationship to UTC.
However the documentation does claim that time.gmtime converts "a time
expressed in seconds since t
David Morley added the comment:
> I propose to add this sentence to the explanation of the epoch:
>
> "It is platform-dependent whether or not 'seconds since the epoch'
> includes leap seconds. Most systems likely implement `Unix time`_"
That solution is fine
Cournapeau David added the comment:
I started a patch against the trunk to handle nan/inf/infinite (I have
not yet tackled the problem of negative zero).
The patch is a bit big, because I found the function quite difficult to
follow, so I refactored it a bit first (replacing the state machine
Cournapeau David added the comment:
Of course, I notice two bugs just after sending the patch... New patch
to fix those two issues (no check for closing bracket if opening ones
are there and a bug when only imaginary part is given).
Added file: http://bugs.python.org/file12503/nan_parse.patch
Cournapeau David added the comment:
I disagree the feature is not needed, for several reasons:
- complex(repr(..)) roundtrip should work, whatever the value of complex is
- it is supported for float, so why not for complex ?
- I believe on the contrary it solves a very real problem
Cournapeau David added the comment:
> Nice-to-have but not a requirement that the entire input domain be
> supported.
Ok.
> It made sense for floats because of prevalence of use cases and
> because we wanted to match IEEE-754R as much as possible.
But why shouldn't this
Cournapeau David added the comment:
Ok, I found out how to make tests, and I found some problems while using
this on numpy. A third version of the patch, with unit tests: all tests
in test_complex.py pass.
Added file: http://bugs.python.org/file12504/nan_parse.patch
Changes by Cournapeau David :
Removed file: http://bugs.python.org/file12503/nan_parse.patch
___
Python tracker
<http://bugs.python.org/issue2121>
___
___
Python-bug
Changes by Cournapeau David :
Removed file: http://bugs.python.org/file12502/nan_parse.patch
___
Python tracker
<http://bugs.python.org/issue2121>
___
___
Python-bug
David Moss added the comment:
I think this might be worth a look before any hard and fast decisions
are made :-
http://code.google.com/p/netaddr/
--
nosy: +drkjam
___
Python tracker
<http://bugs.python.org/issue3
New submission from Cournapeau David :
On windows, with python 2.6, s = '%s' % float('inf') is 'inf', but s =
'%f' % float('inf') is equal to '1.#INF'.
This patch fixes the inconsistency, by using the code from floatobject.f
forma
David Moss added the comment:
ipaddr appears to be on a fast track for "batteries included" status
without much consultation in the wider Python community. As BDFL it's
ultimately Guido's call, but it would be disappointing to see one
solution being chosen wholesale wit
Cournapeau David added the comment:
It is not really for an application, but for numpy. Of course, one can
always get around the problem - but since this is really a limitation
which can be easily fixed, why not fixing the problem :) ?
___
Python tracker
David Watson added the comment:
@ Victor Stinner: Yes, the behaviour of those functions is as you
describe - it's been changed since I filed this issue. I do
consider it an improvement.
By the password database, I mean /etc/passwd or replacements that
are accessible via getpwnam() and fr
David Moss added the comment:
> David, in the event of netaddr's complete or partial inclusion,
> are you +1 with this and the maintenance of an ip/net library
> in Python?
Yes, I would be very happy to help with this.
> If there's going to be lots of discussion
David Zaslavsky added the comment:
I just had the same problem in a call to inspect.findsource()
(actually my code calls inspect.stack() which calls ... which calls
findsource()). The code object passed to findsource() had a filename
of "database/__init__.py" which is the correc
Cournapeau David added the comment:
> I disagree. *Why* do you think it should work? It fails for many other
> types:
I don't understand the rationale: why not making something work better
if possible ? Also, I don't understand the comparison with Decimal or
Fraction
Cournapeau David added the comment:
@ Mark
Concerning float('inf') * 1j: you're right, my rambling did not make any
sense, sorry.
I agree that adding complexity may be a good reason to warrant an
arbitrary feature; actually, I did not manage to handle nan/inf at first
New submission from David Watson :
The pwd (and spwd and grp) modules deal with data from
/etc/passwd (and/or other sources) that can be supplied by users
on the system. Specifically, users can often change the data in
their GECOS fields without the OS requiring that it conform to a
specific
Changes by David Watson :
Added file: http://bugs.python.org/file12622/minor.diff
___
Python tracker
<http://bugs.python.org/issue4859>
___
___
Python-bugs-list mailin
Changes by David Watson :
Added file: http://bugs.python.org/file12623/latin1.diff
___
Python tracker
<http://bugs.python.org/issue4859>
___
___
Python-bugs-list mailin
David Watson added the comment:
> baikie: Open a separated issue for the refcount error and fd leak.
OK. It does affect 2.x as well, come to think of it.
> On Ubuntu, it's not possible to create an user with a non-ASCII
> name:
>
> $ sudo adduser é --no-create-home
&
New submission from David Watson :
When investigating issue #4859 I found that when pwd.getpwall()
and grp.getgrall() fail due to decoding errors, they leave open
file descriptors referring to the passwd and group files, since
they don't call the end*ent() functions in this case. Also, th
New submission from David Watson :
One of these problems interacts with the other, and can cause
os.unsetenv() to free memory that's still in use. Firstly,
calling os.putenv("FOO=BAR", "value") causes putenv(3) to be
called with the string "FOO=BAR=value", wh
Changes by David Watson :
Added file: http://bugs.python.org/file12709/2.x.diff
___
Python tracker
<http://bugs.python.org/issue4926>
___
___
Python-bugs-list mailin
Changes by David Watson :
Added file: http://bugs.python.org/file12710/3.x.diff
___
Python tracker
<http://bugs.python.org/issue4926>
___
___
Python-bugs-list mailin
New submission from David Schultz :
class tkinter.filedialog.Directory incorrectly derives from Dialog instead
of _Dialog. Adding the "_" allows the code to compile and run as
expected.
This also explains why tkinter.filedialog.askdirectory() doesn't work.
--
comp
New submission from David Nicol :
The single line statements:
eval("08") ; and
eval("09")
both crash; while
eval("07") works fine
--
components: None
messages: 80982
nosy: davidnicol
severity: normal
status: open
title: Error with Eval
type: comp
David Moss added the comment:
For reference, here are the (cross-posted) links to the discussion on
the (now failed) netaddr/ipaddr merge talks :-
http://groups.google.com/group/netaddr/browse_thread/thread/f80b7c69e459
02b7
http://groups.google.com/group/ipaddr-py-
dev/browse_thread/thread
Changes by David Moss :
--
nosy: -drkjam
___
Python tracker
<http://bugs.python.org/issue3959>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Schultz :
I've added a "keep at bottom" option to the scrolledtext class. This way,
if a user wants to always see the text added via "insert()", it will be
visible.
--
components: Tkinter
messages: 81248
nosy: ringhome
severity:
New submission from David Christian :
in telnetlib's process_rawq, rawq_getchar() returns a bytes object of
length 1.
However, that buffer is then compared directly against the variable IAC,
which is the integer 255. This is always false, as bytes([255]) != 255.
Checked svn and looks
David Christian added the comment:
The result of this bug is that any callback set via
set_option_negotiation_callback will not be called.
___
Python tracker
<http://bugs.python.org/issue5
David Margrave added the comment:
I'm not down in the weeds on this one at the moment (it was a long time
ago and I've mostly forgotten about it), but recall that I agreed with
jjlee's 3/15/07 annotation:
http://bugs.python.org/msg31276
At least, I was able to get my applica
New submission from David Jones :
When using the wave module to output wave files, the output file cannot
be a Unix pipeline.
Example. The following program outputs a (trivial) wave file on stdout:
#!/usr/bin/env python
import sys
import wave
w = wave.open(sys.stdout, 'w')
w.setn
David Jones added the comment:
Attached is a patch which is a diff from this version of wave.py :
http://svn.python.org/view/*checkout*/python/trunk/Lib/wave.py?rev=54394
--
keywords: +patch
Added file: http://bugs.python.org/file13011/wave-20090210.patch
David Jones added the comment:
On 10 Feb 2009, at 12:28, Guilherme Polo wrote:
>
> Guilherme Polo added the comment:
>
> Wouldn't it be better if you only ignored the 'illegal seek' error
> instead of ignoring any ioerror (should it even be always discarded)
David Jones added the comment:
On 10 Feb 2009, at 12:28, Guilherme Polo wrote:
>
> Guilherme Polo added the comment:
>
> I'm really unsure about the proposed patch.
Perhaps my example was too trivial. The point is that if you call
setnframes then you can get wave.py to a
David Jones added the comment:
On 10 Feb 2009, at 13:02, David Jones wrote:
>
> I also note that my patch can be improved by removing its last 11
> lines.
Er, no it can't. What was I thinking?
___
Python tracker
<http://bugs.pyt
David Jones added the comment:
On 10 Feb 2009, at 16:57, Guilherme Polo wrote:
>
> Guilherme Polo added the comment:
>
> Now, is there some problem if we remove the calls to the "tell" method
> in _write_header ? See patch attached (tests ar
David Jones added the comment:
On 10 Feb 2009, at 21:15, David Jones wrote:
>
> David Jones added the comment:
>
> On 10 Feb 2009, at 16:57, Guilherme Polo wrote:
>
>>
>> Guilherme Polo added the comment:
>>
>> Now, is there some problem if we remove th
David Jones added the comment:
The following program does a very basic do-i-get-back-what-i-wrote test.
sunau can't cope; I am investigating.
#!/usr/bin/env python
# $Id$
# Audio File Tests
import aifc
import sunau
import wave
import struct
import sys
from StringIO import StringIO
f
New submission from David Christian :
The ssl.py makefile function returns a socket._fileobject object with a
reference to itself, and also increments the makefile_refs variable.
However, the _fileobject is created with the parameter close=False,
which means that when you call _fileobject.close
Changes by David Christian :
--
components: +Library (Lib)
keywords: +patch
type: -> resource usage
Added file: http://bugs.python.org/file13061/ssl.py.patch
___
Python tracker
<http://bugs.python.org/iss
Changes by David Christian :
--
keywords: +patch
Added file: http://bugs.python.org/file13062/telnetlib.patch
___
Python tracker
<http://bugs.python.org/issue5
David Jones added the comment:
On 12 Feb 2009, at 09:00, David Jones wrote:
>
> David Jones added the comment:
>
> The following program does a very basic do-i-get-back-what-i-wrote
> test.
> sunau can't cope; I am investigating.
I see. sunau uses mu-law compression
David Christian added the comment:
True. It turns out that there are other uses of a bytes string when a
byte is required in that same routine. I've patched up those as well.
Looks what we really need is a test of this function. I'll work on th
Changes by David Christian :
Added file: http://bugs.python.org/file13099/telnetlib.patch
___
Python tracker
<http://bugs.python.org/issue5188>
___
___
Python-bugs-list m
New submission from David M. :
Awaiting multiple times on a single task that failed with an exception results
in an unbounded increase in memory usage. Enough repeated "await"s of the task
can result in an OOM.
The same pattern on a task that didn't raise an exception beha
New submission from David Robertson :
Originally written up at the typeshed repo:
https://github.com/python/typeshed/issues/7513. The conclusion was that this is
a bug in the implementation rather than an incorrect annotation.
To my surprise, I discovered in
https://github.com/matrix-org
Change by David Foster :
--
nosy: +David Foster
___
Python tracker
<https://bugs.python.org/issue47087>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by David Goncalves :
--
nosy: +dpg
nosy_count: 6.0 -> 7.0
pull_requests: +30282
pull_request: https://github.com/python/cpython/pull/32207
___
Python tracker
<https://bugs.python.org/issu
Change by David Goncalves :
--
nosy: +dpg
nosy_count: 9.0 -> 10.0
pull_requests: +30316
pull_request: https://github.com/python/cpython/pull/32245
___
Python tracker
<https://bugs.python.org/issu
Change by David Goncalves :
--
nosy: +dpg
nosy_count: 8.0 -> 9.0
pull_requests: +30340
pull_request: https://github.com/python/cpython/pull/32279
___
Python tracker
<https://bugs.python.org/issu
601 - 700 of 5935 matches
Mail list logo