[issue33546] asyncio.Condition should become awaitable in 3.9

2018-05-16 Thread Jason Fried
New submission from Jason Fried : In 3.9 we can remove the deprecated pattern for accepting __enter__ and __exit__ for locks. This will free up __await__ for Condition to use for replacing .wait() which is wart from before awaitables. My new proposed behavior is await cond which would be

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-21 Thread Jason Fried
Jason Fried added the comment: For loops not supporting this throwing NotImplmentedError from the method to enable reentrancy seems appropriate. "You should convert all your stack to async functions..." That may not be practical for large code bases in transition to asyncio. The

[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-22 Thread Jason Haydaman
Change by Jason Haydaman : -- keywords: +patch pull_requests: +6690 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33238> ___ ___ Py

[issue33776] Segfault when passing invalid argument to asyncio.ensure_future

2018-06-05 Thread Jason McKellar
New submission from Jason McKellar : If time.monotonic() is yielded from a generator that is passed to asyncio.ensure_future a segfault occurs when it's scheduled. The example below shows time.monotonic called in the generator, however the segfault will also occur if a function is c

[issue33864] collections.abc.ByteString does not register memoryview

2018-06-14 Thread Jason Fried
New submission from Jason Fried : Looking at the typing Module docs in the section for ByteString This type represents the types bytes, bytearray, and memoryview. But collections.abc.ByteString does not have memoryview registered. Is it because memoryview doesn't support .

[issue34425] :s formatting broken for objects without __format__

2018-08-17 Thread Jason Spencer
New submission from Jason Spencer : Objects with __str__ but WITHOUT __format__ are string-convertible and default-to-str formattable. But the explicit use of '{:s}' as a format string fails to format these objects as expected. Either it is no longer the case that '{}&

[issue34425] :s formatting broken for objects without __format__

2018-08-20 Thread Jason Spencer
Jason Spencer added the comment: Then I would argue that it is at least a documentation bug. The 3.6 format spec mini language still claims that {} is equivalent to {:s}, which now is only conditionally true. I would also argue that having different behavior for {} and {:s}, which are

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-07-27 Thread Jason Myers
Jason Myers added the comment: The attached file contains a simple test for this code to make sure the test runner is being applied. I've never submitted anything before, so it might be totally naive. -- nosy: +jasonamyers Added file: http://bugs.python.org/file31059/test.

[issue8536] Support new features of ZLIB 1.2.6

2012-04-19 Thread Jason Killen
Jason Killen added the comment: Given I'm new I wouldn't say I "evaluated" the usefulness of the new functions but I have given them a look and didn't see anything obvious. If thats good enough great, if not then hopefully someone with a little more exp

[issue13756] Python3.2.2 make fail on cygwin

2012-06-11 Thread Jason Tishler
Jason Tishler added the comment: I offer the attached patch for consideration. AFAICT, only the Makefile.pre.in and build_ext.py changes are required. I included the makesetup change for completeness and to be consistent with the other changes. -- keywords: +patch nosy: +jlt63

[issue15047] Cygwin install (regen) problem

2012-06-11 Thread Jason Tishler
New submission from Jason Tishler : The Cygwin build is failing during make install -- specifically, during the regen step: [snip] mkdir /home/jt/src/cygwin/cygwin-packages/1.7/python3-test/python-3.2.3-1/src/Python-3.2.3/Lib/plat-cygwin cp /home/jt/src/cygwin/cygwin-packages/1.7/python3

[issue15047] Cygwin install (regen) problem

2012-06-14 Thread Jason Tishler
Jason Tishler added the comment: The problem is due to Cygwin's automatic ".exe" extension handling. See the attached patch (i.e., code comment) for the details. Is this patch acceptable? -- keywords: +patch stage: -> patch review type: -> behavior Added file: h

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

2012-07-03 Thread Jason Spiro
Jason Spiro added the comment: Just a few comments on your new UI design <http://i.imgur.com/415Y1.png>: == Suggestion 1 == It seems, from your screenshot, that you plan to hide the [ Next > ] and [ Cancel ] buttons, and show your [ Yes ] and [ No ] buttons instead. This is doing

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

2012-07-04 Thread Jason Spiro
Jason Spiro added the comment: I'm glad you're willing to consider using a checkbox. It seems to fit better with the wizard paradigm, where there are always [ < Back ], [ Next > ], and [ Cancel ] buttons onscreen. OK, I acknowledge that a lot of third-party software still dep

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

2012-07-04 Thread Jason Spiro
Jason Spiro added the comment: Adding Python to the end of the PATH would very much help Windows non-experts who don't even know what a PATH is. IMO, when Python 3.4 comes out, it'd make sense add Python to the end of the PATH by default. This'd help those non-experts a lot. O

[issue15551] Unit tests that return generators silently fail

2012-08-03 Thread Jason Baker
New submission from Jason Baker: The following test will pass silently: class SomeTest(unittest.TestCase): def testSomething(self): yield 1 self.fail() -- components: None messages: 167340 nosy: Jason.Baker priority: normal severity: normal status: open

[issue15551] Unit tests that return generators silently fail

2012-08-03 Thread Jason Baker
Jason Baker added the comment: I can play this game too! Since generator functions do nothing when used as a unittest test method, there is no value in having a test method that is a generator function. Therefore, it is an error to give a test method that is a generator function. Since it

[issue15551] Unit tests that return generators silently fail

2012-08-03 Thread Jason Baker
Jason Baker added the comment: Who expects this behavior? Can you give me an example of when someone would rely upon a generator test to do nothing? -- ___ Python tracker <http://bugs.python.org/issue15

[issue15551] Unit tests that return generators silently fail

2012-08-03 Thread Jason Baker
Jason Baker added the comment: I would like to verify this. Link the specification, and highlight where it says that the expected behavior for a test method that is a generator function is to do nothing. -- ___ Python tracker <h

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-05-22 Thread Jason Browne
Changes by Jason Browne : -- nosy: +cdspace ___ Python tracker <http://bugs.python.org/issue21261> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3871] cross and native build of python for mingw* hosts

2012-12-14 Thread Jason Huntley
Jason Huntley added the comment: I'm attempting to build Python-3.3.0 with mingw64. I get a minute or two into the build and fail with this error: ./Include/pythonrun.h:178:1: warning: function declaration isn't a prototype [-W strict-prototypes] ./Modules/getpath.c: In functi

[issue3871] cross and native build of python for mingw* hosts

2012-12-28 Thread Jason Huntley
Jason Huntley added the comment: Finally! I was able to get all building on mingw64, gcc 4.7.2, and python 3.3. I had to take everybody's work here a little further, and I have produced a new patch which will build python33 using the latest minw64 compiler in an msys environment. I c

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Finally! I was able to get all building on mingw64, gcc 4.7.2, and python 3.3. I had to take everybody's work here a little further, and I have produced a new patch which will build python33 using the latest minw64 compiler in an msys environment. I c

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Hey Guys, I've furthered the progress of the patch I've been working on. THis patch builds Python3.3 in mingw64 & msys using gcc 4.7.2 compiler. This patch can also enable and build the following modules: ctypes bz2 multiprocessing sqlite3 ss

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Changes by Jason Huntley : Removed file: http://bugs.python.org/file28699/py3k-20121227-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___ Pytho

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Hey Guys, I've furthered the progress of the patch I've been working on. THis patch builds Python3.3 in mingw64 & msys using gcc 4.7.2 compiler. This patch can also enable and build the following modules: ctypes bz2 multiprocessing sqlite3 ss

[issue16939] Broken link in 14. Cryptographic Service

2013-01-11 Thread Jason Alvarado
New submission from Jason Alvarado: http://docs.python.org/3.1/library/crypto.html The link to A.M, Kuchling URL is broken http://www.amk.ca/python/code/crypto.html -- assignee: docs@python components: Documentation messages: 179758 nosy: Jason.Alvarado, docs@python priority: normal

[issue13756] Python3.2.2 make fail on cygwin

2013-02-01 Thread Jason Tishler
Jason Tishler added the comment: > Is this still an issue on 3.3/3.4? I presume so. > Does the patch still work? I haven't tried it on 3.3 yet, so I don't know if it will apply cleanly. -- ___ Python tracker <http://bugs.py

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread Jason Stumpf
New submission from Jason Stumpf: >>> re.match('(a|ab)*',('aba')).group(0) 'a' According to the documentation, the * should match as many repetitions as possible. 2 are possible, it matches 1. Reversing the order of the operands of | changes the b

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread Jason Stumpf
Changes by Jason Stumpf : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett ___ Python tracker <http://bugs.python.org/issue19055> ___ ___ Pytho

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread Jason Stumpf
Jason Stumpf added the comment: Even with the documentation to |, the documentation to * is wrong. >>> re.match('(a|ab)*c',('abac')).group(0) 'abac' >From the doc: In general, if a string p matches A and another string q matches >B, the string pq w

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread Jason Stumpf
Jason Stumpf added the comment: Sorry, that implication was backwards. I don't think I can prove from just the documentation that '(a|ab)*' can match 'aba' in certain contexts. If the docs said: "* attempts to match again after each match of the preceding r

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread Jason Stumpf
Jason Stumpf added the comment: I understand what's happening, but that is not what the documentation describes. If the behaviour is correct, the documentation is incorrect. -- ___ Python tracker <http://bugs.python.org/is

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-20 Thread Jason Stumpf
Jason Stumpf added the comment: I like that clearer description. "as produce matches" is more correct than "as possible". -- ___ Python tracker <http://bug

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread Jason Yeo
New submission from Jason Yeo: My university uses python to teach sorting algorithms. It will be great if the turtledemo comes with a visualization of some of the algorithms. I have attached a patch for it. -- components: Demos and Tools files: animation.diff keywords: patch messages

[issue19129] 6.2.1. Regular Expression Syntax flags

2013-09-29 Thread Jason Smestad
New submission from Jason Smestad: In the Python 3.3.2 documentation in the section "6.2.1. Regular Expression Syntax" subsection "(?aiLmsux)" it describes flags that are set by extention notation. 6 of the flags are described in detail with links for each flag, but

[issue17618] base85 encoding

2013-10-05 Thread Jason Stokes
Jason Stokes added the comment: What issues are there with the implementation as it stands? I am happy to contribute (as I need to code a base36 implementation myself, and it's basically the same work) but it looks like the existing implementation is fine, except possibly some people

[issue19351] python msi installers - silent mode

2013-10-22 Thread Jason Bray
New submission from Jason Bray: Hello, I am working in an IT group, attempting to automate our management of python. This issue applies to both Python 3.4 and Python 2.7.5 and Python 2.7.4 On a Windows machine (both 7 and 8.1 have been tested) when python msi's are installed from the co

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-11-05 Thread Jason Myers
Jason Myers added the comment: This is a patch based on terry.reedy 's suggestion -- keywords: +patch nosy: +Jason.Myers Added file: http://bugs.python.org/file32514/docstring.patch ___ Python tracker <http://bugs.python.org/is

[issue19075] Add sorting algorithm visualization to turtledemo

2013-11-16 Thread Jason Yeo
Jason Yeo added the comment: > Nothing much AFAIK, except that someone must be willing to maintain the code. I wrote the code, I guess I should be the one maintaining this. I am new to this, what must I look out for if I want to maintain t

[issue2233] Makefile.pre.in contains extra slash before $(DESTDIR) which can cause Cygwin build to fail

2014-07-10 Thread Jason Tishler
Jason Tishler added the comment: AFAICT, yes. -- ___ Python tracker <http://bugs.python.org/issue2233> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-07-23 Thread Jason Heeris
New submission from Jason Heeris: As per issue 5701, the zipfile.ZipFile.read() method will throw a NotImplementedError if the compression scheme is not supported. However, there is no mention of this possibility in the documentation for the read() method. I would suggest, say, "Calling

[issue19996] httplib infinite read on invalid header

2014-08-02 Thread Jason Robinson
Jason Robinson added the comment: I took the patches and verified that; * running the new tests without the changed code in Lib/email/feedparser.py (head) and Lib/httplib.py, Lib/rfc822.py (2.7) fails both the new tests. * running the new tests with the changed code passes the tests (on both

[issue17762] platform.linux_distribution() should honor /etc/os-release

2014-08-02 Thread Jason Robinson
Jason Robinson added the comment: platform.linux_distribution is being deprecated in 3.5 and removed in 3.6 as stated in comment http://bugs.python.org/issue1322#msg207427 in issue #1322 I'm guessing this issue should be closed when that patch is merged in? -- nosy: +ja

[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2014-08-02 Thread Jason Robinson
Jason Robinson added the comment: platform.linux_distribution is being deprecated in 3.5 and removed in 3.6 as stated in comment http://bugs.python.org/issue1322#msg207427 in issue #1322 I'm guessing this issue should be closed when that patch is merged in? -- nosy: +ezio.me

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-02 Thread Jason Robinson
Jason Robinson added the comment: Here is a patch that hopefully does what was intended. All the tests passed locally, hopefully the tests we're adapted correctly to the new location of the files. My first patch :) I added a new "data" file 'doctest_DocFileSuite_test.txt&

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: @Ezio I am pretty sure it was read(). I couldn't submit the file I used as an example, so I'll see if I can construct a minimal example to post here. -- ___ Python tracker <http://bugs.python.o

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Jason Heeris
Changes by Jason Heeris : Added file: http://bugs.python.org/file36279/Scheme.zip ___ Python tracker <http://bugs.python.org/issue22046> ___ ___ Python-bugs-list mailin

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Jason Heeris
Changes by Jason Heeris : Added file: http://bugs.python.org/file36280/zftest.py ___ Python tracker <http://bugs.python.org/issue22046> ___ ___ Python-bugs-list mailin

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: Okay, I've attached two files: 1. Scheme.zip, from issue 5701 2. "zftest.py", a script that you run in the same dir as "Scheme.zip" to produce this: $ python zftest.py Extracting: 1!SCHEME.Z64 Traceback (most recent call last): Fil

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: Sorry, that was run with Python 2.7.5+ on Ubuntu. -- ___ Python tracker <http://bugs.python.org/issue22046> ___ ___ Python-bug

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-06 Thread Jason Heeris
Jason Heeris added the comment: > Python documentation never document all possible exceptions raised by a > method. No, but clearly *some* exceptions are documented, and presumably there's some reasoning behind which are and aren't. In this case, the NotImplemented error is

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-07 Thread Jason Robinson
Jason Robinson added the comment: Ezio, here are new versions of the patch. This time I used `hg mv` command to move the files to the new location and then copied over the correct versions. It does look though to me that there is no difference except timestamps. I will upload also a --git

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-08-07 Thread Jason Robinson
Jason Robinson added the comment: Here is the `hg diff --git` patch. Hope this one applies :) -- Added file: http://bugs.python.org/file36303/issue15907_3.patch ___ Python tracker <http://bugs.python.org/issue15

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Jason Nadeau
New submission from Jason Nadeau: I found it was useful to me to calculate and return an IPv6Address instance of the solicited multicast address for a particular IPv6Address. So I have created patch to do so. I am pretty new to programming in general so critiques are totally welcome

[issue6418] unittest.TestProgram change breaks nose

2009-07-04 Thread Jason Pellerin
Changes by Jason Pellerin : -- keywords: +patch Added file: http://bugs.python.org/file14452/6418.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6513] Standard Library, Warnings, 28.5.4, example fails

2009-07-18 Thread Jason Tiller
New submission from Jason Tiller : The example provided in section 28.5.4 (warnings) of the Standard Library documentation fails. This example assumes that the context manager instance ('w' in "warnings.catch_warnings(record=True) as w") supplies a list of objects, each

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Jason Montleon
Changes by Jason Montleon : -- nosy: +xaoslaad ___ Python tracker <http://bugs.python.org/issue6802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-23 Thread Jason Davies
Jason Davies added the comment: Note: in case I didn't make it clear, the fix is to remove the offending try/except handler and let the broken pipe error propagate. -- ___ Python tracker <http://bugs.python.org/i

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-23 Thread Jason Davies
New submission from Jason Davies : I came across this bug when trying to use CouchDB-Python to PUT an attachment using HTTP authentication (using the httplib2 library). Essentially what httplib2 does is this: 1. Attempt PUT with no auth credentials 2. If a 401 response is received, try again

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
New submission from Jason Gervich : The Shell menu is missing from the menu bar in the Edit Window of Ubuntu Linux IDLE. It is described in the help but is not implemented. It is there is the various windows versions I've seen. Why is this missing and will it be fixed? -- compo

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
Jason Gervich added the comment: Thank you. I tried it from the command line and you are right. IDLE runs with the Shell menu. 1.Do you know why this is being done in Ubuntu? That is, why are they setting up the menu this way? 2. Is it a bug or a "feature?" Should be reported a an

[issue6171] Class Browser selection in Ubuntu

2009-06-01 Thread Jason Gervich
New submission from Jason Gervich : When sing IDLE in Ubuntu (Jaunty) if you open the Class Browser and double click on a class or function name, the corresponding section is highlighted in the code in the Editor Window. If you again double click on another class or function name, the new code

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Jason Gervich
Jason Gervich added the comment: Again, thanks for your prompt explanation. It's odd, but when I went to use Ubuntu's menu modification tool, the command displayed in the dialog didn't show the -n option. But when I added the Python launcher to the panel and viewed the launch

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Jason Kankiewicz added the comment: I've attached a patch, based on the original, that will fix distutils for both GCC and ICC. -- nosy: +jkankiewicz Added file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch ___ Python tr

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Changes by Jason Kankiewicz : Removed file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch ___ Python tracker <http://bugs.python.org/issue1254

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Jason Kankiewicz added the comment: I've updated my patch to resemble the patch from issue1032 and also because profiling showed that using str.__contains__ is more efficient than using str.find. -- Added file: http://bugs.python.org/file14251/distutils-rpath-gcc_and_icc.

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-10 Thread Jason Kankiewicz
Jason Kankiewicz added the comment: Seo, This ticket specifies Python-2.6 as the only version so using "any" didn't seem to be a problem. I was not aware of PEP 291 until you mentioned it and, in order to maintain compatibility with Python-2.3, the generator expression w

[issue6418] unittest.TestProgram change breaks nose

2009-07-04 Thread Jason Pellerin
New submission from Jason Pellerin : This changeset: http://hg.python.org/cpython/rev/c3fb79d1c036 breaks nose, as it changes the behavior of unittest.TestProgram in a non-backwards-compatible way. Previously, when called like: TestProgram(testRunner=None) self.testRunner would be None when

[issue9271] Python throws `IOError: [Errno 27] File too large' on long file names

2010-07-15 Thread Jason Gross
New submission from Jason Gross : On attempting to open files with sufficiently long file names, python throws IOError: [Errno 27] File too large. This is misleading, and perhaps should be relabeled as 'File name too long.' I have only tested this on unix with Python 2.5.2. This

[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.

2010-08-03 Thread Jason Williams
Jason Williams added the comment: I'd argue that since the recipient has little control over incorrect header padding, the traditional approach with e-mail is to fix-up bad encoding...and this ia bug. -- ___ Python tracker <http://bugs.py

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-08 Thread Jason Madden
Changes by Jason Madden : -- nosy: +jmadden ___ Python tracker <http://bugs.python.org/issue28147> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29229] incompatible: unittest.mock.sentinel and multiprocessing.Pool.map()

2017-01-10 Thread Jason Curtis
New submission from Jason Curtis: When a sentinel object from unittest.mock.sentinel is passed through a multiprocessing.Pool.map, I expect it to still be comparable. As a user, I'd like to be able to write a unit test using sentinels on my unparallelized code, and then see that the

[issue29229] incompatible: unittest.mock.sentinel and multiprocessing.Pool.map()

2017-01-10 Thread Jason Curtis
Jason Curtis added the comment: sounds right; closing as a duplicate of issue20804 -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue29364] msilib Fetch raises MSIError rather than return None

2017-01-24 Thread Jason Matthew
New submission from Jason Matthew: Fairly new to MSIs here. Working towards extracting the same information which is available via Orca graphical interfaces. I believe I've hit a bug within _msi.View class, namely the inability to safely determine the number of records in my r

[issue29364] msilib Fetch raises MSIError rather than return None

2017-02-01 Thread Jason Matthew
Jason Matthew added the comment: Thanks for pointing that one out Berker. I agree, this is a dup. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue27194] Tarfile superfluous truncate calls slows extraction.

2016-06-02 Thread Jason Fried
New submission from Jason Fried: With large tar file extracts I noticed that tarfile was slower than it should be. Seems in linux that for large files (10MB) truncate is not always a free operation even when it should be a no-op. ex: File is already 10mb seek to end and truncate. I created

[issue27194] Tarfile superfluous truncate calls slows extraction.

2016-06-02 Thread Jason Fried
Jason Fried added the comment: I ran this on Linux ext4. I didn't see much improvement on OSX with SSD. -- Added file: http://bugs.python.org/file43139/test.py ___ Python tracker <http://bugs.python.org/is

[issue27199] TarFile expose copyfileobj bufsize to improve throughput

2016-06-03 Thread Jason Fried
New submission from Jason Fried: The default of 16k while good for memory usage it is not well suited for all cases. if we increased this to 4MB we saw a pretty large improvement to tar file creation and extraction on linux servers. For a 1gb tar file containing 1024 random files each of 10MB

[issue27199] TarFile expose copyfileobj bufsize to improve throughput

2016-06-03 Thread Jason Fried
Changes by Jason Fried : -- keywords: +patch Added file: http://bugs.python.org/file43159/copybufsize.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-08-26 Thread Jason Yu
New submission from Jason Yu: Hello all, The official doc describes `Pool.map(func, iterable[, chunksize])` as "A parallel equivalent of the map() built-in function.". Since the function signature of `map` is `map(function, iterable, ...)`, I hereby suggest that `Pool.map` sho

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Jason Ward
Changes by Jason Ward : -- keywords: +patch Added file: http://bugs.python.org/file29471/17470.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Jason Ward
Changes by Jason Ward : -- nosy: +Jason.Ward ___ Python tracker <http://bugs.python.org/issue17470> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17341] Poor error message when compiling invalid regex

2013-04-13 Thread Jason Michalski
Changes by Jason Michalski : -- keywords: +patch Added file: http://bugs.python.org/file29802/cpython-3.3-17341.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17341] Poor error message when compiling invalid regex

2013-04-13 Thread Jason Michalski
Changes by Jason Michalski : Added file: http://bugs.python.org/file29803/cpython-2.7-17341.patch ___ Python tracker <http://bugs.python.org/issue17341> ___ ___ Python-bug

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Jason Michalski
Jason Michalski added the comment: I worked on a patch that allows NUL padding for longs, floats and complex numbers. It seems NUL was being used as a sentinel in the format string parsing when no padding character is given. It was then replaced with a space in each call to fill_padding if it

[issue18016] subprocess should open stdin in mode w+b on windows

2013-05-19 Thread Jason Gross
New submission from Jason Gross: Files opened on Windows in mode 'wb' have a limit on the number of characters that can be written to them (at once?); attempting to write too many bytes gives the confusing error “IOError: [Errno 22] Invalid argument”. See http://support.mic

[issue14574] SocketServer doesn't handle client disconnects properly

2015-10-13 Thread Jason Morawski
Jason Morawski added the comment: Found another issue with this in 2.7 If the socket.error gets raised from the call to self.wfile.flush(), then when self.wfile.close() is called, self.wfile.flush() is called a second time if self.wfile._wbuf is not empty. This will raise the socket.error

[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-04 Thread Jason Sachs
Jason Sachs added the comment: sample file attached containing VerbatimParser -- Added file: http://bugs.python.org/file41496/test2.py ___ Python tracker <http://bugs.python.org/issue26

[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-04 Thread Jason Sachs
New submission from Jason Sachs: The HTMLParser class (https://docs.python.org/2/library/htmlparser.html) is lacking a few features to reconstruct input exactly. For the most part it can do this, but I found two items where it falls short (there may be others): - There is a get_starttag_text

[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-04 Thread Jason Sachs
Jason Sachs added the comment: sample file test1.html attached. When running test2.py on it, the output is identical except for two things: test1.html contains test1b.html contains test1.html contains end tags that are capitalized e.g. or have spaces test1b.html contains end tags that

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-05 Thread Jason Madden
Changes by Jason Madden : -- nosy: +jmadden ___ Python tracker <http://bugs.python.org/issue25940> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26591] datetime datetime.time to datetime.time comparison does nothing

2016-03-19 Thread jason crockett
New submission from jason crockett: if datetime.time(#blah) > datetime.time(#blah): [a][b] does nothing.. it doesnt raise an error. it doesnt run the if function even though the printout of variables compared says it should. 22:15:00 [a] 16:00:00 [b] True 22

[issue26630] Windows EXE extension installers not finding 32bit Python 3.5 installation

2016-03-23 Thread Jason Erickson
New submission from Jason Erickson: On both 64 and 32 bit Windows OSes, the 32bit version of Python 3.5 is unable to install extensions created with the command: setup.py bdist_wininst To reproduce, install the 32bit version of Python 3.5 and run the .exe installation for an extension, such

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-04-03 Thread Jason Madden
Jason Madden added the comment: gevent has another simple reproducer for this. I do believe it's not gevent's fault, the fault is in the standard library; SimpleHandler._write needs to loop until `sent += self.stdeout.write(data)` is `len(data)`. I have written up more on this

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-04-03 Thread Jason Madden
Jason Madden added the comment: Django uses a `wsgiref.simple_server` to serve requests, which in turn uses `socketserver.StreamRequestHandler` to implement its `WSGIRequestHandler`. That base class explicitly turns off buffering for writes (`wbufsize = 0` is the class default which gets

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-04-03 Thread Jason Madden
Jason Madden added the comment: Is there an expected `self.stdout` implementation that doesn't return the number of bytes it writes? `sys.stdout` does, as does `io.RawIOBase`. It doesn't seem clear to me that practically speaking there's a compatibility problem with req

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-04-03 Thread Jason Madden
Jason Madden added the comment: `self.stdin` and `self.stderr` are documented to be `wsgi.input` and `wsgi.errors`, which are both described as "file-like" objects, meaning that the `write` method should return bytes written. It seems like the same could reasonably be said to b

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-04-03 Thread Jason Madden
Jason Madden added the comment: I'm sorry, I'm still not following the argument that `write` is likely to return nothing. `RawIOBase` and `BufferedIOBase` both document that `write` must return the number of written bytes; if you don't return that, you break anything that ass

[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

2016-05-16 Thread Jason Curtis
Jason Curtis added the comment: This is still an issue with operator.attrgetter in 3.4.3, even after clearing sys.modules['_operator']: $ python3 Python 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC 4.8.4] on linux Type "help", "copyright", "credits

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