[issue32514] 0x80070002 - The system cannot find the file specified

2022-02-20 Thread John
Change by John : Removed file: https://bugs.python.org/file47373/Python 3.6.4 (32-bit)_20180107153053_000_core_JustForMe[3206].log ___ Python tracker <https://bugs.python.org/issue32

[issue32514] 0x80070002 - The system cannot find the file specified

2022-02-20 Thread John
Change by John : Removed file: https://bugs.python.org/file47370/Python 3.6.4 (32-bit)_20180107153053[3191].log ___ Python tracker <https://bugs.python.org/issue32

[issue11230] "Full unicode import system" not in 3.2

2011-07-05 Thread John
John added the comment: Sorry for the long delay. haypo wrote: Can you propose a sentence which is more clear about bytes/Unicode? On this page: http://www.python.org/download/releases/3.2/ is this line: "- countless fixes regarding bytes/string issues; among them full support for a

[issue11136] imaplib IMAP4_SSL shutdown gets socket error in py 3.2

2011-02-06 Thread John
New submission from John : windows vista Python 3.2 rc2 situation: connected to gmail with IMAP4_SSL, did stuff, and finally IMAP4_SSL.close() IMAP4_SSL.logout() IMAP4_SSL.shutdown() shutdown() gets this error: socket.error: [Errno 10038] An operation was attempted on something that is not

[issue11137] clarify use of imaplib IMAP4(_SSL) shutdown

2011-02-06 Thread John
New submission from John : Attempting IMAP4_SSL.shutdown() after IMAP4_SSL.logout() throws an error because the socket is already closed. (I cannot test with plain IMAP4.) Please add appropriate notice, perhaps under IMAP4.shutdown(). Perhaps something like "If you do not use open(), a

[issue11230] "Full unicode import system" not in 3.2

2011-02-16 Thread John
New submission from John : A few months ago I read that in 3.2 it will be possible to import modules that are located on paths containing any unicode character. (more precisely, with chars not in the local code page) After an hour or two trying to get this to work in 3.2rc3, I went looking

[issue11230] "Full unicode import system" not in 3.2

2011-02-17 Thread John
John added the comment: Victor asked "Which web page should updated/fixed?" Answer: The Python 3.2 download page. But what should it say? The main point is that people like me, who remember seeing a statement about this a few months ago, may expect unicode to work in every c

[issue4002] A Bug in the Documentation

2008-09-30 Thread John
New submission from John <[EMAIL PROTECTED]>: Hello, I've found a little bug in the documentation again and I wanna report it. Please navigate to where the built-in property() function is documented and look at the beginning of the 3rd code snippet: class C(object): def __

[issue4009] A Minor Glitch in the Documentation

2008-10-01 Thread John
New submission from John <[EMAIL PROTECTED]>: Hello, I don't know why my previous bug report was ignored, but I must report this. Since this is a minor glitch, I hope it will be fixed. Please be so kind and fix this. Please go here and see the 3rd code example: http://docs.python.

[issue4110] A minor slip while typing

2008-10-12 Thread John
New submission from John <[EMAIL PROTECTED]>: Hello, please let me focus your attention to a little slip that was made while typing a code example in the Python 3.0 documentation. Please visit the link http://docs.python.org/dev/3.0/library/functions.html?highlight=property#property

[issue43849] Typo in calendar doc

2021-04-14 Thread John
New submission from John : I believe the parenthesis in calendar.firstweekday() should be removed. As it is, it produces 'int' cannot be called. -- assignee: docs@python components: Documentation messages: 391098 nosy: JohnCC330, docs@python priority: normal severity: nor

[issue43849] Typo in calendar doc

2021-04-14 Thread John
John added the comment: Sorry for the noise. My confusion. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32812] edited code only runs after closing and re-opening Python.

2018-02-09 Thread john
New submission from john : For some reason, whenever I make a change to my code in Python, I have to restart Python for the change to take effect. Otherwise Python just runs whatever the code was when I opened the .py file. Worth noting is that this has not always been true, and is not always

[issue32812] edited code only runs after closing and re-opening Python.

2018-02-09 Thread john
john added the comment: I apologize, I'm very new to coding so I'm not very familiar with all the terminologies. I'm user Spyder (Python 3.6) on Windows 10. I run my code in Console via highlighting and Shift + Enter. The steps resulting in the error are very straightforwa

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-10-14 Thread John
John added the comment: error message should contain more details about what went wrong and why -- nosy: +lambda ___ Python tracker <http://bugs.python.org/issue2

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-10-06 Thread John
John added the comment: Consider the following generator function similar to the one that started this issue: from __future__ import generator_stop def myzip(*seqs): its = (iter(seq) for seq in seqs) while True: try: yield tuple(next

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-10-06 Thread John
John added the comment: Please ignore my previous comment - now I understood what is going on. The `its` generator is a one-shot iterator so is exhausted the first time the while loop is run. Therefore, on subsequent loops, only empty tuples are yielded. Still learning about generators

[issue16597] close not being called with context manager on IOError when device is full.

2012-12-02 Thread John-John Tedro
New submission from John-John Tedro: In 3.2.2 and 3.2.3 on linux64, when running the following code. try: print("Writing to /dev/full") with open("/dev/full", "w") as f: f.write("Write to full device") except:

[issue16597] file descriptor not being closed with context manager on IOError when device is full

2012-12-02 Thread John-John Tedro
Changes by John-John Tedro : -- title: close not being called with context manager on IOError when device is full. -> file descriptor not being closed with context manager on IOError when device is full ___ Python tracker <http://bugs.pyth

[issue16597] file descriptor not being closed with context manager on IOError when device is full

2012-12-02 Thread John-John Tedro
John-John Tedro added the comment: Originally discovered on http://stackoverflow.com/questions/13649330/what-happens-to-file-descriptors-in-python-3-when-close-fails -- ___ Python tracker <http://bugs.python.org/issue16

[issue45995] string formatting: normalize negative zero

2021-12-11 Thread John Belmonte
Change by John Belmonte : -- keywords: +patch nosy: +jbelmonte nosy_count: 5.0 -> 6.0 pull_requests: +28274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30049 ___ Python tracker <https://bugs.python.org/i

[issue45995] string formatting: normalize negative zero

2021-12-12 Thread John Belmonte
John Belmonte added the comment: > For Decimal, we'd need to "own" the string formatting, taking that > responsibility away from mpdecimal, but there are already other reasons to do > that. After some digging, I believe this is the background on forking pieces of

[issue45995] string formatting: normalize negative zero

2021-12-12 Thread John Belmonte
John Belmonte added the comment: potential short-term solution for Decimal: if negative zero option is set and sign is negative: pre-round into a temp using mpd_qrescale() if mpd_iszero(temp): change sign to positive

[issue45995] string formatting: normalize negative zero

2021-12-14 Thread John Belmonte
John Belmonte added the comment: implemented float and Decimal-- PR is ready for review -- ___ Python tracker <https://bugs.python.org/issue45995> ___ ___ Pytho

[issue45554] multiprocessing exitcode is insufficiently documented

2021-12-16 Thread John Marshall
Change by John Marshall : -- keywords: +patch pull_requests: +28360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30142 ___ Python tracker <https://bugs.python.org/issu

[issue46259] float formatting error?

2022-01-04 Thread John Holman
New submission from John Holman : Example: str(1.12345678901234) Out[24]: '1.123456789011' shouldn't the last digit should be 2? -- messages: 409696 nosy: johngholman priority: normal severity: normal status: open title: float formatting error? type: behavior v

[issue46259] float formatting error?

2022-01-04 Thread John Holman
John Holman added the comment: Thanks - sorry to waste your time. On Tue, 4 Jan 2022 at 18:17, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > The two numbers you gave become the same when rounded to the limited > internal precision

[issue46376] PyMapping_Check returns 1 for list

2022-01-14 Thread John Millikin
Change by John Millikin : -- nosy: -jmillikin ___ Python tracker <https://bugs.python.org/issue46376> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45995] string formatting: normalize negative zero

2022-01-17 Thread John Belmonte
John Belmonte added the comment: Mark, would you give it a review this month? (PR has been marked stale.) -- ___ Python tracker <https://bugs.python.org/issue45

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread John Marshall
John Marshall added the comment: Ping -- This issue has an associated PR that expands the multiprocessing.Process.exitcode documentation to cover normal, sys.exit(), and exception-raised termination of the child process. https://github.com/python/cpython/pull/30142 The PR has been

[issue44408] imaplib fails when server sends extra blank line after literal value

2022-01-19 Thread John L
John L added the comment: It causes an exception and traceback, don't remember which exception six months later. I'll see if I can add a suitable test case to the unit test. -- ___ Python tracker <https://bugs.python.o

[issue45995] string formatting: normalize negative zero

2022-01-22 Thread John Belmonte
John Belmonte added the comment: Thank you Mark and Eric. > I'll note that the paper is proposing a 'z' modifier to the sign, so I guess > for us that would translate to: [sign[optional-z]] instead of just sign. I'd > have to noodle through the differences be

[issue45995] string formatting: normalize negative zero

2022-02-02 Thread John Belmonte
John Belmonte added the comment: PEP at https://github.com/python/peps/pull/2295 -- ___ Python tracker <https://bugs.python.org/issue45995> ___ ___ Python-bug

[issue46715] asyncio.create_unix_server has an off-by-one error concerning the backlog parameter

2022-02-10 Thread John Snow
New submission from John Snow : Hi, asyncio.create_unix_server appears to treat the "backlog" parameter as where 0 means that *no connection will ever possibly be pending*, which (at the very least for UNIX sockets on my machine) is untrue. Consider a (non-asyncio) server: ```pyt

[issue39529] Deprecate get_event_loop()

2022-02-25 Thread John Mellor
Change by John Mellor : -- nosy: +johnmellor ___ Python tracker <https://bugs.python.org/issue39529> ___ ___ Python-bugs-list mailing list Unsubscribe:

Python 2.5, missing KERNEL32.DLL, Win95B

2007-03-12 Thread John Collins
t; Helup! Many thanks, John. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

GetFileAttributesExA and Win95

2007-03-12 Thread John Collins
one please help? Perhaps, Martin v. Löwis? Thank you all& Best Regards, John Collins. [1] -Copy of Previous Q&A on this problem- Category: None Group: None >Status: Open Resolution: Fixed Priority: 7 Submitted By: giomach (giomach) Assigned to: Martin v. L

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-09-15 Thread John Chandler
John Chandler added the comment: Just to let you know I haven't forgotten this! I've been pretty busy recently so might be a while before I implement the changes to the patch suggested in the code review. John -- ___ Python trac

[issue6715] xz compressor support

2011-09-15 Thread John Reese
Changes by John Reese : -- nosy: -jreese ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12911] Expose a private accumulator C API

2011-09-16 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue12911> ___ ___ Python-bugs-list mailing list Unsubsc

[issue13087] C BufferedReader seek() is inconsistent with UnsupportedOperation for unseekable streams

2011-10-01 Thread John O'Connor
New submission from John O'Connor : The C implementation of BufferedReader.seek() does not throw an UnsupportedOperation exception when its underlying stream is unseekable IF the current buffer can accommodate the seek in memory. It probably saves a few cycles for the seekable streams b

[issue12807] Optimization/refactoring for {bytearray, bytes, unicode}.strip()

2011-10-01 Thread John O'Connor
John O'Connor added the comment: The patch no longer applies cleanly. Is there enough interest in this to justify rebasing? -- title: Optimizations for {bytearray,bytes,unicode}.strip() -> Optimization/refactoring for {bytearray,bytes,unicod

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-10-03 Thread John O'Connor
John O'Connor added the comment: Here is an update with the C implementation. I think a working prototype will be helpful before another round on python-dev. I'm not sure how to handle unseekable, non-blocking streams where the read returns before `skip` bytes are exhausted. I

[issue13152] textwrap: support custom tabsize

2011-10-11 Thread John Feuerstein
New submission from John Feuerstein : The textwrap module calls .expandtabs() to expand tabs to spaces. This patch adds support for a custom tabsize, so that .expandtabs(tabsize) is called instead. Includes test case. -- components: Library (Lib) files: textwrap_tabsize.diff keywords

[issue12807] Optimization/refactoring for {bytearray, bytes, unicode}.strip()

2011-10-11 Thread John O'Connor
John O'Connor added the comment: New patch. Please double check the removal of _PyUnicode_XStrip. -- Added file: http://bugs.python.org/file23383/stringlib_strip2.patch ___ Python tracker <http://bugs.python.org/is

[issue12807] Move strip() to stringlib

2011-10-11 Thread John O'Connor
Changes by John O'Connor : -- title: Optimization/refactoring for {bytearray, bytes, unicode}.strip() -> Move strip() to stringlib ___ Python tracker <http://bugs.python.org

[issue13150] Most of Python's startup time is sysconfig

2011-10-12 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue13150> ___ ___ Python-bugs-list mailing list Unsubsc

[issue13217] Missing header dependencies in Makefile

2011-10-18 Thread John O'Connor
New submission from John O'Connor : I think ucs{1,2,4}lib.h, asciilib.h and a few other files should be in the Makefile deps list for unicodeobject.c. Patch included. -- components: Build files: makefile.patch keywords: patch messages: 145881 nosy: haypo, jcon, pitrou pri

[issue13288] SSL module doesn't allow access to cert issuer information

2011-10-28 Thread John Nagle
New submission from John Nagle : The SSL module still doesn't return much information from the certificate. SSLSocket.getpeercert only returns a few basic items about the certificate subject. You can't retrieve issuer information, and you can't get the extensions needed to che

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

2011-10-31 Thread john doe
john doe added the comment: The following piece of code does not seem to be thread-safe: gc.disable() try: os.fork() except: ... If calling subprocess.Popen() is supposed to work from threads without any particular protection, then a lock is needed in subprocess.py: try

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-07 Thread John Feuerstein
Changes by John Feuerstein : -- nosy: +john.feuerstein ___ Python tracker <http://bugs.python.org/issue12567> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13152] textwrap: support custom tabsize

2011-11-07 Thread John Feuerstein
John Feuerstein added the comment: textwrap_tabsize_v2.diff: * Moved the tabsize parameter to the end of the parameter list * Added documentation update * Made the test case more obvious -- Added file: http://bugs.python.org/file23624/textwrap_tabsize_v2.diff

[issue13365] str.expandtabs documentation is wrong

2011-11-07 Thread John Feuerstein
New submission from John Feuerstein : The documentation for str.expandtabs([tabsize]) is wrong: "Return a copy of the string where all tab characters are replaced by one or more spaces, depending on the current column and the given tab size. [...]" This should read "zero

[issue9530] integer undefined behaviors

2011-11-19 Thread John Regehr
John Regehr added the comment: This is great. I'd be happy to re-run the tests sometime, and also we're talking with the LLVM folks about getting our patches into the main LLMM tree. Basically it'll act as a more powerful -ftrapv, and the error message will be much bette

[issue9530] integer undefined behaviors

2011-11-21 Thread John Regehr
John Regehr added the comment: Hi Mark, yes you can run the overflow checker but "easy instructions" depends on whether you feel like building your own LLVM. It is not at all difficult, but it's certainly not as easy as "apt-get install ...". Patch and instr

[issue13521] Make dict.setdefault() atomic

2011-12-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue13521> ___ ___ Python-bugs-list mailing list Unsubsc

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-12-15 Thread John Nagle
John Nagle added the comment: This has nothing to do with Python 3. There's a difference in __str__ handling between Python 2.6 and Python 2.7.2. It's enough to crash BeautifulSoup: [Thread-8] Unexpected EXCEPTION while processing page "http://www.verisign.com": glob

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
John O'Connor added the comment: I started a draft in python. I am attaching the _pyio version along with tests. I will continue work on the C implementation and eventually documentation if this is well received. It seems straightforward, I am interested to see what you guys think.

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
Changes by John O'Connor : Added file: http://bugs.python.org/file22169/issue12053-tests.patch ___ Python tracker <http://bugs.python.org/issue12053> ___ ___ Pytho

[issue12229] Remove unused variable in bufferedio.c

2011-05-31 Thread John O'Connor
New submission from John O'Connor : Remove second (unused) argument to _bufferedreader_peek_unlocked() -- components: IO files: bufferedreader_peek.patch keywords: patch messages: 137391 nosy: haypo, jcon, pitrou priority: normal severity: normal status: open title: Remove u

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

2011-05-31 Thread John O'Connor
John O'Connor added the comment: It seems to me that adding the proper check is a good idea. It also may not be obvious to some that 'U' is now more or less an alias for 'r'. I have updated the patch so that it at least applies. I also removed a redundant `read

[issue1152248] Enhance file.readlines by making line separator selectable

2011-05-31 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsubsc

[issue11197] information leakage with SimpleHTTPServer

2011-05-31 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue11197> ___ ___ Python-bugs-list mailing list Unsubsc

[issue8578] PyWeakref_GetObject

2011-05-31 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue8578> ___ ___ Python-bugs-list mailing list Unsubsc

[issue10399] AST Optimization: inlining of function calls

2011-05-31 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue10399> ___ ___ Python-bugs-list mailing list Unsubsc

[issue9858] Python and C implementations of io are out of sync

2011-06-01 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue9858> ___ ___ Python-bugs-list mailing list Unsubsc

[issue12268] file readline, readlines & readall methods can lose data on EINTR

2011-06-05 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue12268> ___ ___ Python-bugs-list mailing list Unsubsc

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-09 Thread John Edmonds
John Edmonds added the comment: I'd like to try tackling this issue. I've made a patch that moves encode_multipart from upload_docs to the distutils2.command module and changed the register and upload commands to use this function. -- keywords: +patch nosy: +John.Edmonds

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-11 Thread John Edmonds
John Edmonds added the comment: Here is the patch, re-written for the packaging module. -- Added file: http://bugs.python.org/file22330/patch.diff ___ Python tracker <http://bugs.python.org/issue12

[issue1602133] non-framework built python fails to define environ properly

2011-06-16 Thread John Whitney
John Whitney added the comment: I have also been experiencing this problem with _environ (using the latest Python - 2.7.2), and this patch works great. I'd love to see it committed so that I don't have to patch Python. -- nosy: +jjw

[issue5231] Change format of a memoryview

2011-06-20 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue5231> ___ ___ Python-bugs-list mailing list Unsubsc

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-20 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list mailing list Unsubsc

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-25 Thread John Edmonds
John Edmonds added the comment: Thanks for reviewing the patch. I don't believe I received an email for the review. I think I have addressed your comment about the usage of str(body) by removing the call to str() and changing the tests to use byte literals. As for the content-l

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-06-29 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue11549> ___ ___ Python-bugs-list mailing list Unsubsc

[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2011-07-14 Thread John Doe
Changes by John Doe : -- nosy: +John.Doe ___ Python tracker <http://bugs.python.org/issue8728> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12639] msilib Directory.start_component() fails if keyfile is not None

2011-07-25 Thread John Keeping
New submission from John Keeping : If msilib.Directory.start_component() is called with the keyfile argument not None then it attempts to call self.cab.gen_id(self.absolute, keyfile) but the msilib.CAB.gen_id() method takes only two arguments (not three). -- components: Windows files

[issue12688] ConfigParser.__init__(iterpolation=None) documentation != behavior

2011-08-03 Thread John Simon
New submission from John Simon : The ConfigParser docs say that when __init__ is called with interpolation=None, no interpolation occurs. But when this is done in Python 3.2.1, it actually results in an AttributeError upon getting or setting a value, due to self._interpolation being set to

[issue12805] Optimzations for bytes.join() et. al

2011-08-21 Thread John O'Connor
New submission from John O'Connor : I noticed there are a few more common cases that can be sped up in bytes.join(). When: - The sequence length and separator length are both 0 - The separator length is 0 or 1 - The separator string contains only 1 distinct byte These could also be ap

[issue12805] Optimizations for bytes.join() et. al

2011-08-21 Thread John O'Connor
Changes by John O'Connor : -- title: Optimzations for bytes.join() et. al -> Optimizations for bytes.join() et. al ___ Python tracker <http://bugs.python.org

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-21 Thread John O'Connor
New submission from John O'Connor : bytearray() is using a less efficient implementation of split() than its similar friends bytes and unicode. I added a couple extra checks to return early in {bytes,unicode} split(). - if length is 0 - if left strip removed all bytes Looking at jus

[issue11159] Sax parser crashes if given unicode file name

2011-08-21 Thread John Chandler
John Chandler added the comment: Confirmed about not being an issue in Python 3. Just checked with Python 3.3.0a0 and the example works fine - no exception raised. -- nosy: +John.Chandler ___ Python tracker <http://bugs.python.org/issue11

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-08-22 Thread John Chandler
New submission from John Chandler : The Lib/xml/dom/minicompat.py module doesn't appear to have any test coverage, probably because it's not the largest or most exciting of modules! :-) I therefore attach a patch to add test coverage for the EmptyNodeList and NodeList classes. I can

[issue10408] Denser dicts and linear probing

2011-08-23 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue10408> ___ ___ Python-bugs-list mailing list Unsubsc

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-24 Thread John O'Connor
John O'Connor added the comment: You are right about those lines in particular; 'dubious' as you say. Though, the point overall was that the general implementation was noticeably faster (regardless of those smaller changes). However, I do think that the single check for len

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-24 Thread John O'Connor
Changes by John O'Connor : Removed file: http://bugs.python.org/file23040/unnamed ___ Python tracker <http://bugs.python.org/issue12807> ___ ___ Python-bugs-list m

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-24 Thread John O'Connor
John O'Connor added the comment: Antoine Pitrou added the comment: > This looks like a dubious micro-optimization. If len == 0, > all loops will exit early anyway (same for similar snippets in bytesobject.c > and unicodeobject.c). You are right about those lines in particular

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-08-26 Thread John Chandler
John Chandler added the comment: Cool, thanks for the feedback! :-) I'll make the appropriate changes to the tests and add some coverage for defproperty as soon as I can. John -- ___ Python tracker <http://bugs.python.org/is

[issue12941] add random.pop()

2011-09-08 Thread John Feuerstein
New submission from John Feuerstein : This patch against current hg tip (72314:92842e347d98) adds random.pop(): pop(self, seq) method of Random instance Remove and return a random element from a non-empty sequence. Includes test case. -- components: Library (Lib) files

[issue12941] add random.pop()

2011-09-09 Thread John Feuerstein
John Feuerstein added the comment: > r.pop(random.randrange(0, len(r))) So seq[random.randrange(0, len(seq))] suddenly makes random.choice(seq) obsolete? There is no functional reasoning here, it's convenience for a common operation. > Not all the sequences have a .pop() metho

[issue12941] add random.pop()

2011-09-09 Thread John Feuerstein
John Feuerstein added the comment: > The test doesn't have to check that seq.pop() is working fine (there are > other tests for that) but that it's actually called and that it pops the > right element from the input sequence (and not e.g. from a copy of the > sequenc

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-09-09 Thread John O'Connor
John O'Connor added the comment: Moved {l,r,}strip to stringlib as well as the bloom filters from unicodeobject. I think it cleans things up nicely. Now there is one implementation for all 3 types. This patch also improves performance for bytearray and slightly for bytes. I see no delt

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-09-09 Thread John O'Connor
Changes by John O'Connor : Removed file: http://bugs.python.org/file22982/strip_perf.patch ___ Python tracker <http://bugs.python.org/issue12807> ___ ___ Pytho

[issue877121] configure detects incorrect compiler optimization

2010-08-18 Thread John Levon
John Levon added the comment: That's a little abrupt. Whilst it would be nice if the compiler had a correct return value, it occurs with multiple compilers, and I pointed you to a suitable workaround Python could employ. Even if Studio gets fixed, there are previous releases out there

[issue877121] configure detects incorrect compiler optimization

2010-08-18 Thread John Levon
John Levon added the comment: Even worse, a nasty hack was added just for Intel's compiler as seen in http://bugs.python.org/issue1162001 -- ___ Python tracker <http://bugs.python.org/iss

[issue6715] xz compressor support

2010-08-19 Thread John Reese
Changes by John Reese : -- nosy: +jreese ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1495802] cygwin: popen3 lock up

2010-08-22 Thread John Pham
John Pham added the comment: last time I use - it is still a problem -- nosy: +jpham Added file: http://bugs.python.org/file18611/unnamed ___ Python tracker <http://bugs.python.org/issue1495

[issue1209447] os.path.join() fails if 2nd arg is a UNC path

2010-08-26 Thread John Ehresman
John Ehresman added the comment: I say close it since it is a change in behavior and shouldn't go in a point release. I'm happy to see it fixed in 3.1. -- status: open -> closed ___ Python tracker <http://bugs.python.

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2010-09-02 Thread John Ehresman
New submission from John Ehresman : .pdb files are not created because /pdb:None is set as an option on line 415 of msvc9compiler.py. Removing the /pdb:None works to write the .pdb file and allow symbols to be loaded in the VS 2008 debugger in the one extension I tried. Anyone know why

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-09-13 Thread John Admanski
New submission from John Admanski : When creating a ZipExtFile through ZipFile.open, the if the original ZipFile object was created with a filename then a new file object will be opened and given to the ZipExtFile to use for its file operations. There is no explicit mechanism that will allow

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-09-13 Thread John Admanski
John Admanski added the comment: I'm not sure that's much of an improvement on the existing behavior, though; as I mentioned you can already work around it by killing all the references to the ZipExtFile and the underlying file object will get automatically closed if the ZipExtF

  1   2   3   4   5   6   7   8   9   10   >