[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2008-09-15 Thread jeff
New submission from jeff <[EMAIL PROTECTED]>: the unknown_decl function is critical to dealing with MS Office generated HTML files. There's no documentation of that. The default behavior of the function is to error, which is reasonable, but it should be stated in the do

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-06-17 Thread jeff
jeff added the comment: On Wed, Jun 16, 2010 at 5:55 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Documentation issues should be component: documentation rather than library. > When submitting one, please at least indicate the module or class concerned.

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-27 Thread jeff
jeff added the comment: On Thu, Jun 17, 2010 at 3:30 PM, Terry J. Reedy wrote: > In order for the doc maintainers to add an entry, someone knowledgeable must > write it. Your paragraph of explanation is a start, but more editing is > needed. > > Looking at dir(html.parser.

[issue46830] Add Find functionality to Squeezed Text viewer

2022-02-22 Thread Jeff Cagle
New submission from Jeff Cagle : Squeezed text output currently opens in a viewer whose only functionality is scrolling. Adding the Find widget a la IDLE would make the viewer much more useful. -- assignee: terry.reedy components: IDLE messages: 413761 nosy: Jeff.Cagle, terry.reedy

[issue12890] cgitb displays tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil added the comment: Is there anything else needed here? -- ___ Python tracker <http://bugs.python.org/issue12890> ___ ___ Python-bugs-list mailin

[issue12890] cgitb displays tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil added the comment: I didn't add one initially as I was just changing output format and not actual behavior. I guess I could add something to ensure it doesn't regress? I'll make sure there's coverage to begin with. -- __

[issue12890] cgitb displays tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil added the comment: Test to ensure html isn't included when the formatting is text. I don't seem to be able to update the stage. -- Added file: http://bugs.python.org/file23731/head-cgitb-display-tests.patch ___ Python trac

[issue12890] cgitb displays tags when executed in text mode

2011-11-20 Thread Jeff McNeil
Jeff McNeil added the comment: Added everything to one file. Updated tests to also include a logdir argument as that is required to trigger the original bug. Weeded out a spurious write that occurred when format was set to text. -- Added file: http://bugs.python.org/file23737/head

[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Jeff McNeil
Changes by Jeff McNeil : Added file: http://bugs.python.org/file23743/head-cgitb-display.patch ___ Python tracker <http://bugs.python.org/issue12890> ___ ___ Python-bug

[issue13685] argparse does not sanitize help strings for % signs

2011-12-30 Thread Jeff Yurkiw
New submission from Jeff Yurkiw : I discovered this while programming the command line interface for a python program that can take a passed argument and throw it into the 'where like' clause of a SQL expression (intended for a postgresql database). The wildcard character for

[issue13685] argparse does not sanitize help strings for % signs

2012-01-03 Thread Jeff Yurkiw
Jeff Yurkiw added the comment: That would probably work too. -- ___ Python tracker <http://bugs.python.org/issue13685> ___ ___ Python-bugs-list mailing list Unsub

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-06 Thread jeff deifik
jeff deifik added the comment: There are many possible solutions to this problem. Personally, I think mine is the simplest, though it changes the API. However, there have been several suggestions on simple fixes that don't change the API, all of which fix the resource leak. Doing no

[issue12365] URLopener should support context manager protocol

2011-06-19 Thread Jeff McNeil
New submission from Jeff McNeil : Per discussion within Issue10050, URLopener ought to support the context manager protocol. That allows more idiomatic usage and doesn't require calls to contextlib.closing for use with the 'with' statement. If agreed, I&#x

[issue12365] URLopener should support context manager protocol

2011-06-19 Thread Jeff McNeil
Changes by Jeff McNeil : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue12365> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12365] URLopener should support context manager protocol

2011-06-19 Thread Jeff McNeil
Jeff McNeil added the comment: In looking at this again, I may have spoken too soon. It seems that addinfobase & HTTPResponse already handle this. As this is what's returned by the opener, then what I was shooting for should already be handled. -- status: open

[issue12365] URLopener should support context manager protocol

2011-06-20 Thread Jeff McNeil
Jeff McNeil added the comment: Isn't that snippet (contextlib.closing(...)) passing the result of urllib.urlopen to closing? The urlopen call is a factory function of sorts, so there's really no context to manage on its part? Maybe it's just a matter of making that clear? I

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Jeff Blaine added the comment: FWIW, this same problem exists with 2.7.1, compiled by myself, and only on some Solaris 10 boxes of ours that have not had a lot of recent patching. == On an old-ish Solaris 10 box: % /tmp

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Changes by Jeff Blaine : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue12013> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12890] cgitb displays tags when executed in text mode

2011-09-02 Thread Jeff McNeil
New submission from Jeff McNeil : If cgitb.enable is ran with a logdir set and a format='text' argument, then a trailing message is printed that includes tags. This should only happen if the format requested is HTML. The following tiny script shows the problem: import cgitb cg

[issue1429] FD leak in SocketServer

2010-09-18 Thread Jeff McNeil
Jeff McNeil added the comment: I'll see if I can get it to reproduce and put a patch together. -- ___ Python tracker <http://bugs.python.org/issue1429> ___ ___

[issue6327] [mimetext] long lines get cut with exclamation mark and newline

2010-11-17 Thread Jeff Hull
Jeff Hull added the comment: I also have this problem with text getting replaced with the exclamation point. I am using this class. from email.MIMEText import MIMEText Perhaps it didn't work for you because you didn't send it via email. try this code msgAlternative = MIM

[issue1429] FD leak in SocketServer

2011-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: I entirely forgot I had signed up to look, my apologies. I'm going through this w/ what's lying on Mercurial's tip, I can't reproduce it at all. I can raise exceptions of various flavors from within the handle method of a StreamRequestHand

[issue6911] Document changes in asynchat

2011-03-14 Thread Jeff Ramnani
Jeff Ramnani added the comment: This patch could no longer be applied cleanly on the 2.7 branch. I have updated the patch so it applies cleanly to commit 22f991bb9b0b on the 2.7 branch. -- nosy: +jramnani Added file: http://bugs.python.org/file21116/asynchat-docs.patch

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-03-14 Thread Jeff Ramnani
Jeff Ramnani added the comment: This patch applies cleanly as of rev 89af3880ca57 on branch default. After applying the patch, I had two unit test failures when running, "/python.exe -m test -v test_distutils", on OS X 10.6. The tests were failing because they were not look

[issue8158] Docstring of optparse.OptionParser incomplete

2011-03-14 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've read through the doc and the code. All keyword arguments for OptionParser.__init__() are in the documentation for branches 2.7 and default (as of ecc176488349). Does that mean this issue can be closed? -- nosy: +jra

[issue9362] Make exit/quit hint more novice friendly

2011-03-14 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've checked Lib/site.py and it tells the user to use 'Ctrl-Z' to exit the prompt when they are running Windows. Perhaps this means we can close the ticket, since discussion on this issue seems to have dissipated? --

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff ___ Python tracker <http://bugs.python.org/issue11563> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Jeff McNeil added the comment: So, I've been meaning to get more into contributing back to Python and I found this one somewhat interesting. As it turns out, even the following simple script raises the same warning: [jeff@martian cpython]$ ./python -c 'import urll

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Jeff McNeil
Jeff McNeil added the comment: So, it turned out to be more complicated than that. The HTTPConnection object returns an HTTPResponse, but never closes the underlying socket after calling makesock. Since persistent connections aren't supported, nothing actually closes the socket i

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-17 Thread Jeff McNeil
Jeff McNeil added the comment: Sounds good. I'll look at doing that, too. -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue11563> ___ ___

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-17 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff ___ Python tracker <http://bugs.python.org/issue10050> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Alright, attaching a patch that reworks urlretrieve to use urlopen internal to urllib.request. 1. I dropped the local caching as it isn't turned on by default anyway (and isn't really documented). 2. Updated documentation to reflect caching chan

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Made recommended changes. Moved to NamedTemporaryFile. I don't think the spooled file makes sense here as the existing protocol provides a filename in the returned tuple, not a f.l.o. As far as the description? Here are a couple suggestions: 1. URL Retr

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Made requested change to Synopsis/Description. -- Added file: http://bugs.python.org/file21287/issue10050.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Jeff McNeil
Jeff McNeil added the comment: I'll make those changes, sure. I had the same thought re: block size, but I was trying to keep inline with what the current function did. -- ___ Python tracker <http://bugs.python.org/is

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Jeff McNeil
Jeff McNeil added the comment: Take four! Includes Antoine's suggestions. I changed the callback to return (block num, read size, file size) as opposed to (block num, block size, file size) as this seems to make more sense. I appreciate the back and forth. I'd be happy to cre

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-20 Thread Jeff McNeil
Jeff McNeil added the comment: I'm not exactly sure what the steps are with respect to the DeprecationWarning. Is the common case just to raise the warning in the __init__ method? Are there related documentation changes? Thanks again! Learning a ton. Hopefully the next patch I submit wi

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-21 Thread Jeff McNeil
Jeff McNeil added the comment: Just wanted to check so this doesn't sit with people waiting on me. Is there anything else I need/should do to this patch? Little unclear on how to handle the deprecation process. -- ___ Python tracker

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-03-28 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've reviewed your patch and it looks good. I appreciate the review and cleanup. The tests succeed for me after applying your patch. I also tested with PYTHONOPTIMIZE and PYTHONDONTWRITEBYTECODE and got the output I exp

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-30 Thread Jeff McNeil
Jeff McNeil added the comment: I'd be happy to pick some of that stuff up. I'd like to address separately as it keeps fewer concerns in this one patch. I'll grab them once they're created. -- ___ Python tracker <http://bug

[issue8158] Docstring of optparse.OptionParser incomplete

2011-03-30 Thread Jeff Ramnani
Jeff Ramnani added the comment: You are correct. I have added 'description' to the docstring of the OptionParser class for 2.7 and default (python3 tip). Here is the patch for python3 tip. -- keywords: +patch Added file: http://bugs.python.org/file21486/issue8151-def

[issue8158] Docstring of optparse.OptionParser incomplete

2011-03-30 Thread Jeff Ramnani
Jeff Ramnani added the comment: Attaching the same patch for 2.7. -- Added file: http://bugs.python.org/file21487/issue8151-2.7.patch ___ Python tracker <http://bugs.python.org/issue8

[issue7443] test.support.unlink issue on Windows platform

2011-04-01 Thread Jeff Dean
Jeff Dean added the comment: > * Patch Py_DeleteFileW in posixmodule.c so that it renames before > deleting: should solve the problem overall but obviously has a > possible wider impact, in general and on performance in particular. > This rename might be a simple rename-to-guid

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-07 Thread jeff deifik
New submission from jeff deifik : I have a program which calls filecmp.cmp a lot. It runs out of memory. I read the source to filecmp, and then I periodically set filecmp._cache = {} Without doing this, filecmp's cache uses up all the memory in the computer. There needs to be a docum

[issue2624] swig support in distutils should use the build and temp dirs

2010-12-03 Thread Jeff Laughlin
Changes by Jeff Laughlin : -- nosy: +Jeff.Laughlin ___ Python tracker <http://bugs.python.org/issue2624> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1016626] distutils support for swig is under par

2010-12-03 Thread Jeff Laughlin
Changes by Jeff Laughlin : -- nosy: +Jeff.Laughlin ___ Python tracker <http://bugs.python.org/issue1016626> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3472] Updates to "Macintosh Library Modules" Section 1.1

2008-07-30 Thread Jeff Rodman
New submission from Jeff Rodman <[EMAIL PROTECTED]>: Change current introduction in 1.1 WAS: Mac OS X 10.4 comes with Python 2.3 pre-installed by Apple. However, you are encouraged to install the most recent version of Python from the Python website (http://www.python.org). A ``uni

[issue3689] reversed() not working as intended on lists

2008-08-26 Thread Jeff Hall
New submission from Jeff Hall <[EMAIL PROTECTED]>: reversed() built in is not functioning correctly with list (specifically with len() ) l = [1,2,3,4] rl = reversed(l) type(rl) vs. strings and tuples which just return 'reverse' objects listreverseiterators apparently have

[issue8311] wave module sets data subchunk size incorrectly when writing wav file

2010-04-04 Thread Jeff Pursell
New submission from Jeff Pursell : I tried to create a 4 second file and only heard the first 2 seconds. The file size was correct for a 44.1 kHz, 16 bit mono file at 4 seconds, but both aplay and audactiy ignored the second half of the file. I went to this page https://ccrma.stanford.edu

[issue8311] wave module sets data subchunk size incorrectly when writing wav file

2010-04-04 Thread Jeff Pursell
Jeff Pursell added the comment: Here's my fix. The left file is the original and the right file is my version. Perhaps someone should check this patch on a big endian machine to make sure there are no issues there. I do not anticipate any issues. 416c416 < nframes =

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2010-04-27 Thread Jeff Binder
New submission from Jeff Binder : Building Python 3.1.2 on Cygwin 1.7, I got errors in main.c stemming from a warning: PATH_MAX redefined (see attached log). I got around this by commenting out the #define. I don't know if the best solution is #ifndef, #undef, or something else. .

[issue8556] Confusing string formatting examples

2010-04-27 Thread Jeff McNeil
New submission from Jeff McNeil : I was going through the string formatting examples this evening and noticed this: print '%(language)s has %(#)03d quote types.' % \ {'language': "Python", "#": 2} The example uses a '#' as a map key

[issue1666318] shutil.copytree doesn't preserve directory permissions

2010-04-27 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff -j_mcneil ___ Python tracker <http://bugs.python.org/issue1666318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8556] Confusing string formatting examples

2010-04-30 Thread Jeff McNeil
Jeff McNeil added the comment: Attaching a patch against the trunk, unified format, changed to 'number' as per suggestion. -- versions: +Python 2.7 -Python 2.6 Added file: http://bugs.python.org/file17155/stdtypes.rst.trunk.patch ___ Pyth

[issue1429] FD leak in SocketServer

2010-05-02 Thread Jeff McNeil
Jeff McNeil added the comment: I was toying with adding Unix Socket support for one of our internal tools and I thought I ran into a leak in my own code. Searched the bug tracker and found this. I tried to reproduce, but wasn't able to. Though, if you look at the ThreadingMixIn

[issue1918] weak references are removed before __del__ is called.

2008-01-23 Thread Jeff Foran
New submission from Jeff Foran: Not sure where to put example code, but here it goes: import weakref class MyObj(object): def __init__(self): self.ref = weakref.ref(self) def __del__(self): print "HERE123", self.ref() o = MyObj(

[issue2282] TextIOWrapper.seekable() always returns False

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that fixes this issue and adds a regression test. -- keywords: +patch nosy: +jbalogh Added file: http://bugs.python.org/file9690/issue2282.diff __ Tracker <[EMAIL PROTECTE

[issue2091] file accepts 'rU+' as a mode

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that checks for '+' in the mode string, updates the docs, and tests bad mode strings. -- keywords: +patch nosy: +jbalogh Added file: http://bugs.python.org/file969

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: I've got this one. -- nosy: +jbalogh __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2359> __ _

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that adds the deprecation warnings. It's a bit dirty because there isn't a read or write function anymore, so I had to make stubs that contain the warnings. -- keywords: +patch Added file: http:/

[issue2358] Using sys.exc_clear should raise a Py3K warning

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that raises the warning. Should the method documentation metion the deprecation as well? -- keywords: +patch nosy: +jbalogh Added file: http://bugs.python.org/file9707/issue235

[issue2358] Using sys.exc_clear should raise a Py3K warning

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a fixed patch that follows PEP 7 and updates Misc/NEWS. Added file: http://bugs.python.org/file9708/issue2358-stylefix.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a fixed patch that follows PEP 7. Added file: http://bugs.python.org/file9709/issue2359-stylefix.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2348] Py3K warn using file.softspace

2008-03-17 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that adds {get,set}_attr wrappers for fileobject which warn about softspace usage. -- keywords: +patch nosy: +jbalogh Added file: http://bugs.python.org/file9717/issue234

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: I'll get this one. -- nosy: +jeff.balogh __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2370> __

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that operator.{isCallable,sequenceIncludes}, including tests. -- keywords: +patch Added file: http://bugs.python.org/file9736/issue2370.diff __ Tracker <[EMAIL PROTECTE

[issue2357] sys.exc_{type, values, traceback} should raise a Py3K warning

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that provides fixers for sys.exc_ {type,value,traceback} Added file: http://bugs.python.org/file9749/issue2357.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that implements optional_import(). The only arg included from __import__ is fromfile, as it's the only one I needed to fix up the stdlib. -- keywords: +patch nosy: +jeff.balogh Added file: http://bugs

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that removes ``from _winreg import *`` in test_winreg.py, which will allow usage of optional_import. Added file: http://bugs.python.org/file9757/winreg-refactor.diff __ Tracker &

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that refactors the test_sunaudiodev.py imports. Added file: http://bugs.python.org/file9758/sunaudiodev-refactor.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: The previous winreg refactor patch didn't catch all the changes; attaching a new patch that fixes everything, with help from Trent Nelson. Added file: http://bugs.python.org/file9759/winreg-re

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch, based on the previous patches, that fixes the stdlib to use optional_import where ImportError was raised. These need testing on various platforms to make sure all the ImportErrors are caught. I'm on x86 Linux.

[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-19 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Fixing the compare to raise the warning when cmp != NULL, and adding a test -- keywords: +patch nosy: +jeff.balogh Added file: http://bugs.python.org/file9769/sort-cmp.diff __ Tracker <[EMAIL

[issue2425] test_py3kwarn doesn't use sys.py3kwarning

2008-03-19 Thread Jeff Balogh
New submission from Jeff Balogh <[EMAIL PROTECTED]>: This patch fixes the TODO in test_py3kwarn -- components: Tests files: py3kwarn-refactor.diff keywords: patch messages: 64073 nosy: brett.cannon, jeff.balogh severity: normal status: open title: test_py3kwarn doesn

[issue2358] Using sys.exc_clear should raise a Py3K warning

2008-03-19 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9707/issue2358.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2358> __

[issue2348] Py3K warn using file.softspace

2008-03-19 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9717/issue2348.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2348> __

[issue2348] Py3K warn using file.softspace

2008-03-19 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Here's a new patch that uses PyErr_WarnEx, has a test, and even updates Misc/NEWS. Added file: http://bugs.python.org/file9774/issue2348.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2381] test_subprocess fails if your sys.executable is on a path with a space in it

2008-03-19 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: The patch works for me, and doesn't change anything except the test strings. Not having spaces in your path also helps. ;) -- nosy: +jeff.balogh __ Tracker <[EMAIL PROTECTED]> <ht

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-19 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a revised patch that has a ``warnsunchanged`` test case. Added file: http://bugs.python.org/file9779/issue2370.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-19 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9736/issue2370.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2370> __

[issue2359] A Py3K warning for array.array.{read,write} is needed

2008-03-20 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9702/issue2359.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2359> __

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-20 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Attaching a patch that adds deprecation warnings in trunk. Added file: http://bugs.python.org/file9787/operator-warnings.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2640] "excel" csv option generates multiple lines

2008-04-15 Thread Jeff Hall
New submission from Jeff Hall <[EMAIL PROTECTED]>: Current: csv.py indicates lineterminator = '\r\n' Issue: looks fine in notepad but when pulled into excel (office 2003) extra lines are added Resolution: should read lineterminator = '\r' -- components: Extensi

[issue2640] "excel" csv option generates multiple lines

2008-04-16 Thread Jeff Hall
Jeff Hall <[EMAIL PROTECTED]> added the comment: you're absolutely correct, i apologize. On Tue, Apr 15, 2008 at 7:40 PM, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > Skip Montanaro <[EMAIL PROTECTED]> added the comment: > > What platform are you on? Did y

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-05-06 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9779/issue2370.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2370> __

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-05-06 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: doh! Attaching a new patch that actually contains a fixer. Added file: http://bugs.python.org/file10205/issue2370.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-05-06 Thread Jeff Balogh
Changes by Jeff Balogh <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9787/operator-warnings.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-05-06 Thread Jeff Balogh
Jeff Balogh <[EMAIL PROTECTED]> added the comment: Updating the deprecation warnings patch to use PyErr_WarnPy3k and apply correctly against current trunk. Added file: http://bugs.python.org/file10206/operator-warnings.diff __ Tracker <[EMAIL PROTECTE

[issue4534] problem with str.join

2008-12-04 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: I compiled python 3.0 on a cygwin platform. Here is my modest function: def List_to_String(lis): #return str.join(lis, '') # This is fast, but seems broke in 3.0 s = ''

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
Changes by jeff deifik <[EMAIL PROTECTED]>: -- title: problem with str.join -> problem with str.join - should work with list input, error says requires 'str' object ___ Python tracker <[EMAIL PROTECTED]> <http

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: Thanks. I want to learn what is wrong with the code I have though. My main goal is to understand python 3.0 better, rather than fixing a specific problem. ___ Python tracker <[EMAIL PROTECTE

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: Yes, it was import string string.join(lis, '') I am still a bit confused though. Why doesn't my code of str.join(lis, '') work? I don't think str is a reserved word. I suppose that python might be able

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-05 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: I fixed the code as follows: return str.join('',lis) I think it is readable, and I understand it. Thanks everyone for clarifying everything ___ Python tracker <[EMAIL PROTECTED]> &

[issue4557] array('c') in python 3.0 produces error, doc says it is ok

2008-12-05 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: def char_sieve(): char_data = array('c') ... produces: File ".../prime.py", line 78, in char_sieve char_data = array('c') ValueError: bad typecode (must be b, B, u, h, H, i, I, l, L, f or d)

[issue4571] write to stdout in binary mode - is it possible?

2008-12-06 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: I have a program that needs to output binary data to stdout. I don't want to convert it to a string. for example something like sys.stdout.write('0o377') to write a byte with all the bits turned on. When I try this

[issue4571] write to stdout in binary mode - is it possible?

2008-12-07 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: I don't consider sys.stdout.buffer.write(b'abc') to be an acceptable solution. There are many programs that need to produce binary output with standard output. Consider uudecode and similar programs. There needs to be

[issue4588] Need a way to make my own bytes

2008-12-07 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: I want to make my own data of types bytes in order to write it out. For example, I want to write out the bytes 0..9 #!/usr/bin/env python3.0 foo = b'' for i in range (0,10): foo += i #sys.stdout.buffer.write(foo) H

[issue4588] Need a way to make my own bytes

2008-12-07 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: Doesn't work. #!/usr/bin/env python3.0 import sys foo = b'' for i in range (0,10): foo += bytes(i) sys.stdout.buffer.write(foo) produces a binary file of 45 bytes. Here is a hex dump (the '.' represent unpr

[issue4755] Common path prefix

2008-12-29 Thread Jeff Hall
Changes by Jeff Hall : -- nosy: +laxrulz777 ___ Python tracker <http://bugs.python.org/issue4755> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37886] PyStructSequence_UnnamedField not exported

2019-08-19 Thread Jeff Robbins
New submission from Jeff Robbins : Python 3.8.0b3 has the fixed https://docs.python.org/3/c-api/tuple.html#c.PyStructSequence_NewType, but one of the documented features of PyStructSequence is the special https://docs.python.org/3/c-api/tuple.html#c.PyStructSequence_UnnamedField which is

  1   2   3   4   >