[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
New submission from Jonathan : The following two strings are identical other than the text "UNIQUESTRING". UNIQUESTRING is at the start of first and at the end of second. Running the below gives the following output: 0.99830220713073 0.99830220713073 0.02376910016977928

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
Jonathan added the comment: (Like the idiot I am, the example code is wrong. `autojunk` parameter should *not* be set for either of them to get the stated wrong results). In place of "UNIQUESTRING", any unique 3 character string triggers it (QQQ, EEE, ZQU...). And in those cases

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-06 Thread Jonathan
Jonathan added the comment: Gah. I mean 0.008 in both directions. I'm just going to be quiet now. :-) -- ___ Python tracker <https://bugs.python.org/is

[issue46667] SequenceMatcher & autojunk - false negative

2022-02-07 Thread Jonathan
Jonathan added the comment: I still don't get how UNIQUESTRING is the longest even with autojunk=True, but that's an implementation detail and I'll trust you that it's working as expected. Given this, I'd suggest the following then: * `Autojunk=False` should be t

[issue46802] Wrong result unpacking binary data with ctypes bitfield.

2022-02-19 Thread Jonathan
New submission from Jonathan : I have issues unpacking binary data, produced by C++. The appended jupyter notebook shows the problem. It is also uploaded to github gist: https://gist.github.com/helo9/04125ae67b493e505d5dce4b254a2ccc -- components: ctypes files

[issue46802] Wrong result unpacking binary data with ctypes bitfield.

2022-02-19 Thread Jonathan
Change by Jonathan : -- nosy: -helo9 ___ Python tracker <https://bugs.python.org/issue46802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46802] Wrong result unpacking binary data with ctypes bitfield.

2022-02-19 Thread Jonathan
Jonathan added the comment: True, have to admit, that I forgot to search first, that really looks like it is the same problem, especially when looking at https://bugs.python.org/msg289212. Would say this one can be closed. -- nosy: +helo9 stage: -> resolved status: open ->

[issue2628] ftplib Persistent data connection

2008-05-12 Thread Jonathan
Changes by Jonathan <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10311/ftplib.py.blockmode.patch.2 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2628] ftplib Persistent data connection

2008-05-12 Thread Jonathan
Changes by Jonathan <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10312/ftplib.rst.blockmode.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2628] ftplib Persistent data connection

2008-05-12 Thread Jonathan
Jonathan <[EMAIL PROTECTED]> added the comment: I've attached two new files. The first swaps the array.array usage for struct.unpack. The second simply modifies the rst documentation. I'm not sure how we'd do any tests for FTP without making use of an actual server. In a q

[issue2628] ftplib Persistent data connection

2008-04-13 Thread Jonathan
New submission from Jonathan <[EMAIL PROTECTED]>: About a year ago I found myself fighting a broken FTP server that couldn't handle multiple passive data transfers through a firewall or NATed connection. Thankfully, this same problem server supports block transmission mode, which allo

[issue2628] ftplib Persistent data connection

2008-04-13 Thread Jonathan
Jonathan <[EMAIL PROTECTED]> added the comment: Here's the debug output when the transfers are going well. Added file: http://bugs.python.org/file10026/debug.log __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2628] ftplib Persistent data connection

2008-11-24 Thread Jonathan
Jonathan <[EMAIL PROTECTED]> added the comment: Yeah, I'm glad to see a test suite. I've only skimmed the test, but it seems like an excellent starting point. Initial thoughts for updating the tests: - Need a cmd_mode to handle the MODE command. - Suite cmd_retr logic n

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan
New submission from Jonathan : Python is inconsistent in how it handles errors that have some unicode characters. It works to screen but fails to log This works: ``` >>> import logging >>> logging.error('จุด1') ERROR:root:จุด1 ``` The following bre

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan
Jonathan added the comment: It definitely claims to be "utf-8" in NotePad++. I've attached it if you want to double-check. (Windows 7) -- Added file: https://bugs.python.org/file48380/my_log.log ___ Python tracker <https

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan
Jonathan added the comment: Thank you for your comments but this wasn't a question and I maintain this is a bug, or at least undesirable behaviour. I'd consider it a bug in my own software. Reasoning: * It's an inconsistent default with the logging to screen. This causes m

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan
Jonathan added the comment: > Did you look at the basicConfig documentation before raising this issue? This seems like an attempt at victim blaming. But yes, I did. In fact, this is now the third time I've looked at that page - once before raising this issue, once before my previo

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Jonathan
Jonathan added the comment: > I have no idea what you mean by this. I don't see how I can be clearer. What are the reasons for NOT implementing logging to file be unicode as a default? Logging to screen is unicode as a default. What are the reasons for not wanting consistency? &g

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Jonathan
Jonathan added the comment: > Learning is not a waste of time. You're entitled to your opinion, but this is > not a bug in logging. We'll have to agree to disagree. I agree and value learning a great deal. However learning should happen on your own time, NOT when a program

[issue37563] Documentation - default for StreamHandler

2019-07-11 Thread Jonathan
New submission from Jonathan : https://docs.python.org/2/library/logging.handlers.html https://docs.python.org/3/library/logging.handlers.html Both say: """class logging.StreamHandler(stream=None) Returns a new instance of the StreamHandler class. If stream is specified, the

[issue37563] Documentation - default for StreamHandler

2019-07-11 Thread Jonathan
Change by Jonathan : -- status: -> open ___ Python tracker <https://bugs.python.org/issue37563> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: > The devil is in the detail. If stream=sys.stderr is specified, that takes > effect at import time. If stream=None is specified and the implementation > chooses to treat that as sys.stderr, that takes effect at the time of the > call. The two are no

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: > I'm not sure your tone is particularly constructive here. Apologies, my bad. > Which code are you looking at? The documentation code: `class logging.StreamHandler(stream=None)`. Sorry, I don't know what you'd call that. I'm not re

[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: >What fallacy? You appeared to be saying (to paraphrase) "no-one else has ever reported this, so it's never been a problem". That's a fallacy. > I was responding to "does anyone else have opinions on this?" I was asking if an

[issue35301] python.exe crashes - lzma?

2018-11-23 Thread Jonathan
New submission from Jonathan : Python 3.6.3 on Windows 7 64 bit. I keep getting intermittent crashes of Python.exe with my project. The error is below and as best I can see seems to be indicating the issue with the LZMA module. All I'm doing is using it to compress web-pages (typicall

[issue35301] python.exe crashes - lzma?

2018-11-24 Thread Jonathan
Jonathan added the comment: In total my python.exe process crashed 6 times with the exact same error, compressing about 60,000 pages, so about 1 in 10,000 failed. However, I have ran the same process monthly for the last several months and it has never done that before despite processing

[issue36120] Regression - Concurrent Futures

2019-02-26 Thread Jonathan
New submission from Jonathan : I'm using Concurrent Futures to run some work in parallel (futures.ProcessPoolExecutor) on windows 7 x64. The code works fine in 3.6.3, and 3.5.x before that. I've just upgraded to 3.7.2 and it's giving me these errors: Process SpawnProcess-6:

[issue36120] Regression - Concurrent Futures

2019-02-26 Thread Jonathan
Jonathan added the comment: There's also this error too: Traceback (most recent call last): File "c:\_libs\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap self.run() File "c:\_libs\Python37\lib\multiprocessing\process.py", line 99, in r

[issue36120] Regression - Concurrent Futures

2019-02-26 Thread Jonathan
Jonathan added the comment: The "ProcessPoolExecutor Example" on this page breaks for me: https://docs.python.org/3/library/concurrent.futures.html -- ___ Python tracker <https://bugs.python.o

[issue32595] Deque with iterable object as one object

2018-01-18 Thread Jonathan
New submission from Jonathan : Creating a deque with an iterable object creates extra overhead if you want to insert it as one element. e.g: import timeit test1 = ''' str = "x" * 10 lst = [str] ''' test2 = ''' str = "x&quo

[issue32595] Deque with iterable object as one object

2018-01-19 Thread Jonathan
Jonathan added the comment: Hello, I dont know why but yesterday when i appended it behaved like extend. I should sleep more. 2018-01-18 20:27 GMT+00:00 Raymond Hettinger : > > Raymond Hettinger added the comment: > > Sorry Jonathan, this is the way the python containers work

[issue31727] FTP_TLS errors when use certain subcommands

2018-02-27 Thread Jonathan
Jonathan added the comment: Hi Christian - Can you not reproduce it from the code included in my original report? I think that's pretty much all that should be needed, as it's all I was using when I discovered the issue. I figure the hard part will be finding a FTP_TLS server to

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-09 Thread Jonathan
Change by Jonathan : -- versions: +Python 3.5 ___ Python tracker <https://bugs.python.org/issue33034> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-09 Thread Jonathan
New submission from Jonathan : (Confirmed in 2.7.14, 3.5.4, and 3.6.3) I have this really bad URL from a crawl: "http://Server=sde; Service=sde:oracle$sde:oracle11g:geopp; User=bodem; Version=SDE.DEFAULT" if I try and parse it with wither urlparse or urlsplit it works - no errors.

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-09 Thread Jonathan
Jonathan added the comment: Arguably the same logic applies to out-of-range ports: > a = urlsplit('http://example.com:444') > a.port Traceback (most recent call last): File "", line 1, in File "E:\Software\_libs\Python36\lib\urllib\parse.py", li

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-16 Thread Jonathan
Jonathan added the comment: Interesting conversation As I see it, there are two ways to solve this, both discussed above: A) Python can compute and ValueError at parse-time B) Python can ValueError at property-call time. (Current method) But both have Advantages/Disadvantages. A - Pros) - The

[issue33034] urllib.parse.urlparse and urlsplit not raising ValueError for bad port

2018-03-17 Thread Jonathan
Jonathan added the comment: Thanks for the thoughts. If only the exception message changes, that doesn't really address the issue that caused me to raise this - namely that it seems to be inconsistent with how almost every other Python builtin function I've used works. I have to def

[issue33172] Update built-in version of SQLite3

2018-03-28 Thread Jonathan
New submission from Jonathan : The current version of SQLite (in Python 3.6) is 3.7.17 which was released almost 5 years ago - https://www.sqlite.org/releaselog/3_7_17.html Given that user updating of the version of SQLite used by Python is something of a pain (and the process is different

[issue31727] FTP_TLS errors when

2017-10-08 Thread Jonathan
New submission from Jonathan : Using Python 3.6.3. The below issue only happens with FTP_TLS. It works fine via a plain FTP connection. I am connecting to an FTP to using `ftplib` via FTP_TLS. ftps = ftplib.FTP_TLS('example.com', timeout=5) # TLS is more secur

[issue31727] FTP_TLS errors when

2017-10-11 Thread Jonathan
Jonathan added the comment: Just tested this with Python 3.7.0a1. I'm afraid it makes no difference. Exact same error: *cmd* 'LIST' *put* 'LIST\r\n' *get* '150 Accepted data connection\n' *resp* '150 Accepted data connection' Traceback (most r

[issue34011] Default preference not given to venv DLL's

2018-06-30 Thread Jonathan
New submission from Jonathan : I don't know if this is a bug or an odd design decision or just something that hasn't been considered or maybe I'm missing something. On Windows and I create a venv with Python 3.6.3: > python -m venv venv This creates a subdirectory called

[issue7292] Multiprocessing Joinable race condition?

2013-07-02 Thread Jonathan
Jonathan added the comment: I can't even find the code I was having issues with anymore and I'm not doing anything related to this right now. So, unless Ramchandra can still reproduce this I'm going to say go ahead and close it. -- status:

[issue7292] Multiprocessing Joinable race condition?

2009-11-08 Thread Jonathan
New submission from Jonathan : In multiprocessing.JoinableQueue when task_done is called self._unfinished_tasks.acquire(False) is called non-blocking. My program reliably crashes with the "task_done() called too many times" message. If I change the .acquire() call to True (blockin

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan added the comment: #!/usr/bin/env python # This does what you want. Change pydb for pdb if you prefer it. import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile("story.txt",verbose=False,raise_on_error=Tr

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan added the comment: #!/usr/bin/env python # Slight mistake in last post import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile("story.txt",verbose=False,raise_on_error=True) except doctest.UnexpectedException, failure:

[issue5997] strftime is broken

2009-05-11 Thread Jonathan
New submission from Jonathan : [...@jaydee Development]$ cat is-strftime-broken.py #!/usr/bin/env python import subprocess import time date_process = subprocess.Popen( ("date", "+%x"), stdout=subprocess.PIPE) from_date_command = date_process.communicate()[0].rs

[issue5997] strftime is broken

2009-05-11 Thread Jonathan
Jonathan added the comment: Works perfectly now, thank you and sorry for the inaccurate report. -- ___ Python tracker <http://bugs.python.org/issue5997> ___ ___

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
New submission from Jonathan : >>> import time >>> time.strftime("%FT%T%z") '2009-06-01T18:35:42+0100' >>> # Expect to see +0100 >>> time.strftime("%FT%T%z",time.localtime()) '2009-06-01T18:35:42+' >>> time.

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: Actually, I didn't change the DST flag in the second test, the second commented bug is invalid, only the first one is correct. -- ___ Python tracker <http://bugs.python.org/i

[issue6165] strftime incorrectly processes DST flag when passed time touples

2009-06-01 Thread Jonathan
Jonathan added the comment: kludged_zone = ("+" if time.altzone < 0 else '-') + time.strftime("%H%M",time.gmtime(abs(time.altzone))) time_zone_format_string = time_zone_format.replace("%z", kludged_zone) -- __

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2021-12-26 Thread Jonathan Lahav
New submission from Jonathan Lahav : Happens on Windows. Observation: When an expanded Combobox is destroyerd, widgets in the window can't get focus until Alt+Tab forth and back. Buttons can still be clicked, but focus can't be obtained by widgets, entries fro example, not by click

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2022-01-03 Thread Jonathan Lahav
Jonathan Lahav added the comment: Here's a discussion about the issue. I asked about it in comp.lang.tcl: https://groups.google.com/g/comp.lang.tcl/c/C-uQIH-wP5w Someone there explains what's happening. -- ___ Python track

[issue46910] Expect IndentationError, get SyntaxError: 'break' outside loop

2022-03-03 Thread Jonathan Fine
New submission from Jonathan Fine : This arises from a request for help made by Nguyễn Ngọc Tiến to the visually impaired programmers lists, see https://www.freelists.org/post/program-l/python,48. Please keep this in mind. Nguyễn asked for help with the syntax error created by === count = 0

[issue46910] Expect IndentationError, get SyntaxError: 'break' outside loop

2022-03-04 Thread Jonathan Fine
Jonathan Fine added the comment: Many thanks Pablo for the clear explanation. I'd prefer that the issue remain open, as there's an important user experience issue here. I suspect there are other similar examples of how the compiler error messages could be improved. Here'

[issue46910] Expect IndentationError, get SyntaxError: 'break' outside loop

2022-03-07 Thread Jonathan Fine
Jonathan Fine added the comment: My main concern is that the door not be closed on improving the user experience relating to this behaviour of the compiler. This issue was raised as a bug for the compiler (which is C-coded). I'd be very happy for this issue to be closed as 'not

[issue1336] subprocess.Popen hangs when child writes to stderr

2007-10-26 Thread Jonathan Amsterdam
New submission from Jonathan Amsterdam: This is under Linux (2.6). I occasionally see subprocess.Popen() fail to return, and I have finally figured out roughly what's going on. It involves the GC and stderr. 1. os.fork() 2. Parent blocks reading from errpipe_read (subprocess.py:982)

[issue1336] subprocess.Popen hangs when child writes to stderr

2007-10-30 Thread Jonathan Amsterdam
Jonathan Amsterdam added the comment: It's an honor to hear from you, BDFL. I'm just a Python user, not a developer, so the time it would take me to check out, compile, test, etc. would dwarf the change itself (removing two lines from file_dealloc). There is another solution, foll

[issue12930] reindent.py inserts spaces in multiline literals

2011-12-31 Thread Jonathan Rogers
Jonathan Rogers added the comment: I don't think reindent.py should change any bytes inside string literals since it can't know anything about what those strings mean or how they'll be used by the program at run time. Unfortunately, it starts out by unconditionally calling

[issue12930] reindent.py inserts spaces in multiline literals

2011-12-31 Thread Jonathan Rogers
Jonathan Rogers added the comment: Rather than expanding tab characters inside string literals, it's safer to replace them with '\t'. -- Added file: http://bugs.python.org/file24120/save_strings.patch ___ Python tracker <http

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2011-07-25 Thread Jonathan Niehof
Jonathan Niehof added the comment: Yaroslav: does the patch cause problems, or the original issue? If the former, could you be specific so I can try and fix it? -- ___ Python tracker <http://bugs.python.org/issue9

[issue9993] shutil.move fails on symlink source

2011-08-22 Thread Jonathan Niehof
Jonathan Niehof added the comment: Éric, here's a quick docs-only patch against current default...does this do the job? -- Added file: http://bugs.python.org/file23002/shutil_move_doc.patch ___ Python tracker <http://bugs.python.org/i

[issue9993] shutil.move fails on symlink source

2011-08-23 Thread Jonathan Niehof
Jonathan Niehof added the comment: Éric: I think copying a relative symlink should also be relative, and that's the behaviour of this patch. That was the use case that tripped me up with the original behaviour of shutil.move: a relative symlink which was dangling in its original loc

[issue9991] xmlrpc client ssl check faulty

2010-09-29 Thread Jonathan Niehof
New submission from Jonathan Niehof : This has been reported before (#6494, #7987) and closed as "You need to build Python with SSL support." However, this error is raised even if ssl support is included. The SSL check in xmlrpc.client for Python 3.1 is: if not hasattr(socket, &quo

[issue9993] shutil.move fails on symlink source

2010-09-29 Thread Jonathan Niehof
New submission from Jonathan Niehof : shutil.move does not behave as I expect when moving a symlink across filesystems. (This is when src itself is a symlink, not when it is a directory tree including symlinks.) -If src is a symlink to file, rather than moving the symlink, it copies the

[issue9998] find_library should search LD_LIBRARY_PATH on linux

2010-09-30 Thread Jonathan Niehof
New submission from Jonathan Niehof : It's come up on occasion (#2936, http://osdir.com/ml/python.ctypes/2008-05/msg00046.html) that ctypes find_library doesn't search LD_LIBRARY_PATH for libraries, which is different behaviour from the runtime linker. The attached patch adds t

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they pruport to test)

2010-09-30 Thread Jonathan Niehof
Jonathan Niehof added the comment: Might it make sense to skip-decorate those tests which require cross-filesystem? Put a test above the TestMove definition which compares tempfile.gettempdir() and os.path.dirname(__file__). I don't know of an out-of-the-box function to see if two path

[issue9991] xmlrpc client ssl check faulty

2010-10-05 Thread Jonathan Niehof
Changes by Jonathan Niehof : -- nosy: +Jelly.Chen, lister171254 ___ Python tracker <http://bugs.python.org/issue9991> ___ ___ Python-bugs-list mailing list Unsub

[issue11295] On Windows, Python crashes on ANSI / Windows-formatted source files

2011-02-22 Thread Jonathan Hayward
New submission from Jonathan Hayward : So far as I can tell, Python 2.7 crashes on at least some ANSI / Windows \r\n-delimited source files. More specifically, as invoked by Apache as a CGI script, the source file line: import cgi generated an error logged by Apache, complaining that the

[issue11295] On Windows, Python crashes on ANSI / Windows-formatted source files

2011-02-24 Thread Jonathan Hayward
Jonathan Hayward added the comment: Thank you; noted. I'm closing the bug for now at least; I'll reopen it if need be. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.py

[issue11407] unittest.TestCase.run should return result

2011-03-14 Thread Jonathan Hartley
Jonathan Hartley added the comment: Attached patch fixes this. TestCase.run now returns its TestResult object, regardless of whether it was passed in or created internally. Test assertions added for this. Invoking an instance of TestCase already returned the return value of .run, so the

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Jonathan Hartley
Jonathan Hartley added the comment: Is also exhibited by other class variable being used in the 'output' clause of the list comprehension: >>> class C: ... x = 3 ... z = [z*x for z in range(4)] Traceback (most recent call last): File "", line 1, in

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Jonathan White
Changes by Jonathan White : -- nosy: +jwhitecl ___ Python tracker <http://bugs.python.org/issue11835> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-22 Thread Jonathan Hartley
Changes by Jonathan Hartley : -- nosy: +jonathan.hartley ___ Python tracker <http://bugs.python.org/issue9228> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-04-25 Thread Jonathan Hartley
Changes by Jonathan Hartley : -- nosy: +jonathan.hartley ___ Python tracker <http://bugs.python.org/issue3561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-05-10 Thread Jonathan Halcrow
Jonathan Halcrow added the comment: I'm having a problem using the current version (0.1.20110504) with python 2.5 on OSX 10.5. When I try to import regex I get the following import error: dlopen(/python2.5/site-packages/_regex.so, 2): Symbol not found: _re_is_same_char_ign Referenced

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-05-10 Thread Jonathan Halcrow
Jonathan Halcrow added the comment: It seems that _regex_unicode.c is missing from setup.py, adding it to ext_modules fixes my previous issue. -- ___ Python tracker <http://bugs.python.org/issue2

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Jonathan Halcrow
Jonathan Halcrow added the comment: I think I've come across a related problem. I am experiencing a segfault when NFC-normalizing a certain string [1]. The crash occurs with 2.7.1 in OS X (built from source with homebrew). Here is the backtrace: #0 0x0025a96e in _PyUnicode_Resize

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-08 Thread Jonathan Beezley
Changes by Jonathan Beezley : -- nosy: +jbeezley ___ Python tracker <http://bugs.python.org/issue4681> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-16 Thread Jonathan Livni
New submission from Jonathan Livni : all( (x<=y) for x,y in zip(L, L[1:]) ) all([(x<=y) for x,y in zip(L, L[1:])]) Both lines of code above check if L is a non-decreasing list. Both should return the same results. But under some conditions, they don't. I've encountered thi

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-16 Thread Jonathan Livni
Jonathan Livni added the comment: The exact list of decimals doesn't help - I tried taking the list and reproducing the bug with the following short script, but the problem did not reproduced: from decimal import Decimal L = [Decimal('6.700'), Decimal('6.800'),

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-16 Thread Jonathan Livni
Jonathan Livni added the comment: Another note - the original problematic code looks like this: def non_decreasing(L): return all(x<=y for x, y in zip(L, L[1:])) Changing it to: def non_decreasing(L): def f(L): return [x<=y for x, y in zip(L, L[1:])] return a

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-16 Thread Jonathan Livni
Jonathan Livni added the comment: The script I used is a single file single threaded code - but - It uses django's ORM to get the data from a MySQL database. I've reduced the code path to this: import sys,os sys.path.append(os.path.dirname(os.getcwdu())) os.environ['DJANGO_

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-16 Thread Jonathan Livni
Jonathan Livni added the comment: from pylab import * There lies the rub? -- ___ Python tracker <http://bugs.python.org/issue11221> ___ ___ Python-bugs-list m

[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension

2011-02-17 Thread Jonathan Livni
Jonathan Livni added the comment: Let my foolishness be a reminder to all not to use "from [module] import *" After saying that - I believe overloading a built in Python function in a popular package\module is a mistake! I still don't know if pylab's all() is erroneou

[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2008-06-09 Thread Jonathan Lange
New submission from Jonathan Lange <[EMAIL PROTECTED]>: Here's the current message: Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more inf

[issue1291446] SSLObject breaks read semantics

2008-09-03 Thread Jonathan Ellis
Jonathan Ellis <[EMAIL PROTECTED]> added the comment: This is incorrect. Perhaps you are thinking of a raw socket read; a _file-like-object_ read is supposed to return the amount of data requested, unless (a) the socket is in non-blocking mode, or (b) if EOF is reached first.

[issue1291446] SSLObject breaks read semantics

2008-09-03 Thread Jonathan Ellis
Jonathan Ellis <[EMAIL PROTECTED]> added the comment: s/raw socket read/raw socket recv/ ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1291446] SSLObject breaks read semantics

2008-09-04 Thread Jonathan Ellis
Jonathan Ellis <[EMAIL PROTECTED]> added the comment: Here is the exact SSLObject.read documentation from 2.5 (although the bug was filed against 2.4, and 2.6 will be out soon, the docs are the same): - read([n]) If n is provided, read n bytes from the SSL connection, otherwis

[issue1291446] SSLObject breaks read semantics

2008-09-05 Thread Jonathan Ellis
Jonathan Ellis <[EMAIL PROTECTED]> added the comment: Ah, great. I was wondering why you kept talking about SSLSocket instead of SSLObject. "New API in 2.6" is good enough for me. Thanks! ___ Python tracker <[EMAIL PROTECTED]> &

[issue8232] webbrowser open(), open_new(), and open_new_tab() Broken Functionality

2010-03-25 Thread Jonathan Chao
New submission from Jonathan Chao : webbrowser.open(), webbrowser.open_new(), and webbrowser.open_new_tab() all do the exact same thing, regardless of the flags that I set. In Firefox, open('www.google.com', new=0), open_new('www.google.com'), and open_new_tab('

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-14 Thread Jonathan Share
New submission from Jonathan Share: Steps to reproduce == >>> from email.mime.multipart import MIMEMultipart >>> foo = MIMEMultipart() >>> foo.is_multipart() False Expected Result === True should be returned from MIMEMultipart.is_multipar

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-14 Thread Jonathan Share
New submission from Jonathan Share: Steps to Reproduce == >>> from email.mime.multipart import MIMEMultipart >>> from email.mime.text import MIMEText >>> multipart = MIMEMultipart() >>> multipart.set_charset('UTF-8') >>> t

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: Martin, I can almost agree with you _if_ I was setting the Content-Transfer- Encoding myself, however I am not. I am setting the charset and the library chooses an appropriate Content-Transfer-Encoding to represent the mime part with. Currently I can'

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: Attaching a patch for the quick fix I proposed below. I would still like to see some feedback regarding making the design of the mime module more object oriented. email.Message really shouldn't be making assumtions about how subclasses represent their

[issue1822] email.mime.multipart.MIMEMultipart.is_multipart() returns false before items have been added.

2008-01-19 Thread Jonathan Share
Changes by Jonathan Share: -- nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1822> __ ___ Python-bugs-list mailing list Unsubs

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: I'm beginning to realise this is slightly bigger than I first thought ;-) Trying to make a nice test case for this issue, I thought it would be a good idea for the parser to register a defect for invalid content- transfer-encoding so I can test against

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: Run out of time to look at this today. In order to write a nice test case for this issue I need the parser to notice this error in messages. I've filed issue1874 for the parser not reporting the invalid cte in the msg.de

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-01-19 Thread Jonathan Share
New submission from Jonathan Share: Although the documentation of FeedParser states that "It will populate a message object's defects attribute with a list of any problems it found in a message." no defect is found in the test case I am about to upload. The message in the test

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-01-19 Thread Jonathan Share
Changes by Jonathan Share: Added file: http://bugs.python.org/file9227/issue1874.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1874> __ ___ Python-bugs-

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: The attached patch makes this new feature optional, by passing the "empty_element_tag" option to the constructor. -- nosy: +vhata Added file: http://bugs.python.org/file10261/xml.sa

  1   2   3   4   >