[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2008-04-07 Thread David Remahl
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

[issue2586] Integer signedness bugs in zlib modules

2008-04-10 Thread David Remahl
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

[issue2587] PyString_FromStringAndSize() to be considered unsafe

2008-04-10 Thread David Remahl
Changes by David Remahl <[EMAIL PROTECTED]>: -- nosy: +chmod007 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2587> __ ___ Python-bugs

[issue2661] Mapping tests cannot be passed by user implementations

2008-04-19 Thread David Anderson
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

[issue2431] 2to3 is rather slow

2008-04-23 Thread David Wolever
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://

[issue2412] Check 2to3 for support of print function.

2008-04-23 Thread David Wolever
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

[issue2694] msilib file names check too strict ?

2008-04-25 Thread Cournapeau David
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

[issue2695] Ignore case when checking algorithm in urllib2

2008-04-26 Thread david reid
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

[issue2694] msilib file names check too strict ?

2008-04-26 Thread Cournapeau David
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

[issue2694] msilib file names check too strict ?

2008-04-26 Thread Cournapeau David
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

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread david reid
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.

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread david reid
david reid <[EMAIL PROTECTED]> added the comment: Looks like a sensible, simple fix to me :-) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2695> __ __

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-04 Thread david reid
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

[issue1368312] fix for scheme identification in urllib2?

2008-05-04 Thread david reid
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-

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
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

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
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

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread David Fraser
Changes by David Fraser <[EMAIL PROTECTED]>: -- nosy: +davidfraser __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2736> __ ___ Python-bugs

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-11 Thread David Fraser
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

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-12 Thread David Fraser
David Fraser <[EMAIL PROTECTED]> added the comment: Yes that's fantastic, thanks :-) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2809> __ ___ Python

[issue4134] Peephole optimization: returning a temp

2008-10-16 Thread David Turner
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

[issue4134] Peephole optimization: returning a temp

2008-10-16 Thread David Turner
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

[issue4141] Dis docs on CALL_FUNCTION a bit unclear

2008-10-17 Thread David Turner
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

[issue4141] Dis docs on CALL_FUNCTION a bit unclear

2008-10-17 Thread David Turner
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

[issue4220] Builtins treated as free variables?

2008-10-28 Thread David Fugate
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

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2008-11-05 Thread David Turner
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

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2008-11-06 Thread David Turner
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

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2008-11-06 Thread David Turner
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

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2008-11-07 Thread David Turner
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

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2008-11-07 Thread David Turner
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

[issue4327] Patch: simplify complex constant assignment statements

2008-11-14 Thread David Turner
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

[issue4327] Patch: simplify complex constant assignment statements

2008-11-14 Thread David Turner
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

[issue4365] Add CRT version info in msvcrt module

2008-11-20 Thread Cournapeau David
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

[issue4396] parser module fails to validate "with" statements.

2008-11-23 Thread David Binger
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

[issue2736] datetime needs and "epoch" method

2008-11-24 Thread David Fraser
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

[issue4396] parser module fails to validate "with" statements.

2008-11-24 Thread David Binger
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,

[issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread David Turner
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 &

[issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread David Turner
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

[issue2736] datetime needs and "epoch" method

2008-11-24 Thread David Fraser
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

[issue4327] Patch: simplify complex constant assignment statements

2008-11-24 Thread David Turner
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

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread David Schnur
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

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread David Schnur
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

[issue4444] unittest - use contexts to assert exceptions

2008-11-27 Thread David Leonard
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

[issue4709] Mingw-w64 and python on windows x64

2008-12-21 Thread Cournapeau David
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

[issue4728] Endianness and universal builds problems

2008-12-22 Thread Cournapeau David
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

[issue4739] [patch] Let users do help('@') and so on for confusing syntax constructs.

2008-12-24 Thread David Laban
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

[issue4775] Incorrect documentation - UTC time

2008-12-29 Thread David Morley
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

[issue4775] Incorrect documentation - UTC time

2008-12-30 Thread David Morley
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

[issue4775] Incorrect documentation - UTC time

2008-12-30 Thread David Morley
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-30 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-30 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Changes by Cournapeau David : Removed file: http://bugs.python.org/file12503/nan_parse.patch ___ Python tracker <http://bugs.python.org/issue2121> ___ ___ Python-bug

[issue2121] complex constructor doesn't accept string with nan and inf

2008-12-31 Thread Cournapeau David
Changes by Cournapeau David : Removed file: http://bugs.python.org/file12502/nan_parse.patch ___ Python tracker <http://bugs.python.org/issue2121> ___ ___ Python-bug

[issue3959] Add Google's ipaddr.py to the stdlib

2008-12-31 Thread David Moss
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

[issue4799] handling inf/nan in '%f'

2008-12-31 Thread Cournapeau David
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

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-01 Thread David Moss
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

[issue2121] complex constructor doesn't accept string with nan and inf

2009-01-02 Thread Cournapeau David
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

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2009-01-02 Thread David Watson
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

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-04 Thread David Moss
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

[issue1309567] linecache module returns wrong results

2009-01-05 Thread David Zaslavsky
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

[issue2121] complex constructor doesn't accept string with nan and inf

2009-01-06 Thread Cournapeau David
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

[issue2121] complex constructor doesn't accept string with nan and inf

2009-01-06 Thread Cournapeau David
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

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-01-06 Thread David Watson
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

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-01-06 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file12622/minor.diff ___ Python tracker <http://bugs.python.org/issue4859> ___ ___ Python-bugs-list mailin

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-01-06 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file12623/latin1.diff ___ Python tracker <http://bugs.python.org/issue4859> ___ ___ Python-bugs-list mailin

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-01-07 Thread David Watson
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 &

[issue4873] Refcount error and file descriptor leaks in pwd, grp modules

2009-01-07 Thread David Watson
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

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2009-01-12 Thread David Watson
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

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2009-01-12 Thread David Watson
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

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2009-01-12 Thread David Watson
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

[issue5030] Typo in class tkinter.filedialog.Directory prevents compilation

2009-01-21 Thread David Schultz
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

[issue5133] Error with Eval

2009-02-02 Thread David Nicol
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

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-03 Thread David Moss
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

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread David Moss
Changes by David Moss : -- nosy: -drkjam ___ Python tracker <http://bugs.python.org/issue3959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5163] tkinter.scrolledtext: new text is hidden after using insert()

2009-02-05 Thread David Schultz
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:

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-08 Thread David Christian
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

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-08 Thread David Christian
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

[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread David Margrave
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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)

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-11 Thread David Jones
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

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-12 Thread David Jones
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

[issue5238] ssl makefile never closes socket

2009-02-12 Thread David Christian
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

[issue5238] ssl makefile never closes socket

2009-02-12 Thread David Christian
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

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-12 Thread David Christian
Changes by David Christian : -- keywords: +patch Added file: http://bugs.python.org/file13062/telnetlib.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-13 Thread David Jones
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

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-15 Thread David Christian
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

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-15 Thread David Christian
Changes by David Christian : Added file: http://bugs.python.org/file13099/telnetlib.patch ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list m

[issue46954] Awaiting multiple times on same task increases memory usage unboundedly

2022-03-08 Thread David 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

[issue47060] importlib.metadata.version can return None

2022-03-18 Thread David Robertson
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

[issue47087] Implement PEP 655 (Required/NotRequired)

2022-03-21 Thread David Foster
Change by David Foster : -- nosy: +David Foster ___ Python tracker <https://bugs.python.org/issue47087> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14911] generator.throw() documentation inaccurate

2022-03-30 Thread David Goncalves
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

[issue12387] IDLE save keyboard shortcut problem

2022-04-01 Thread David Goncalves
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

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2022-04-02 Thread David Goncalves
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

<    2   3   4   5   6   7   8   9   10   11   >