[issue29211] assertRaises with exceptions re-raised from a generator kills generator

2017-01-08 Thread Andrew Dalke
New submission from Andrew Dalke: The unittest assertRaises/assertRaisesRegex implementation calls traceback.clear_frames() because of issue9815 ("assertRaises as a context manager keeps tracebacks and frames alive"). However, if the traceback is from an exception created in a

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Andrew Dunai
Andrew Dunai added the comment: Isn't this intended? According to https://docs.python.org/2/library/glob.html and wiki, typical UNIX glob pattern does not have the reqursive matching operator (`**`). -- nosy: +Andrew Dunai ___ Python tracker

[issue29534] _decimal difference with _pydecimal

2017-02-13 Thread Andrew Nester
Andrew Nester added the comment: I've just added PR for this issue. -- nosy: +andrewnester pull_requests: +51 ___ Python tracker <http://bugs.python.org/is

[issue29534] _decimal difference with _pydecimal

2017-02-13 Thread Andrew Nester
Andrew Nester added the comment: actually, it's more related to subclassing, because the problem comes from the fact that before the fix __init__ method receives value as int not Decimal if int passed to from_float call. That's why only subclasses of Decimal can see difference in

[issue29534] _decimal difference with _pydecimal

2017-02-13 Thread Andrew Nester
Andrew Nester added the comment: Agree about surprising behaviour but I guess it's better to fix it as other issue because it could break BC in some cases. At least it needs to be investigated. For now I would like to stick with same behaviour for _decimal and _pyde

[issue29534] _decimal difference with _pydecimal

2017-02-13 Thread Andrew Nester
Andrew Nester added the comment: thanks for your notes, it's absolutely fine and I agree with you :) -- ___ Python tracker <http://bugs.python.org/is

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-13 Thread Andrew Nester
Andrew Nester added the comment: I've just added PR implementing alternative version provided by R. David Murray as more simple and straight-forward one. -- nosy: +andrewnester pull_requests: +53 ___ Python tracker <http://bugs.py

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-15 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +76 ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-15 Thread Andrew Nester
Andrew Nester added the comment: I've just added PR fixing this. -- nosy: +andrewnester ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Pytho

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-15 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +80 ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-15 Thread Andrew Nester
Andrew Nester added the comment: Ive just added alternative PR that drops inner brackets. So we've got options to choose! -- ___ Python tracker <http://bugs.python.org/is

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-16 Thread Andrew Nester
Andrew Nester added the comment: any updates on this? -- ___ Python tracker <http://bugs.python.org/issue29553> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-16 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +96 ___ Python tracker <http://bugs.python.org/issue29573> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-16 Thread Andrew Nester
Andrew Nester added the comment: I've just added PR fixing this issue. -- nosy: +andrewnester ___ Python tracker <http://bugs.python.org/issue29573> ___ ___

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-19 Thread Andrew Nester
Andrew Nester added the comment: any updates on this? :) -- ___ Python tracker <http://bugs.python.org/issue29573> ___ ___ Python-bugs-list mailing list Unsub

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Andrew Nester
Andrew Nester added the comment: Adding new argument sucs as format= or compact= will make API more complicated. In addition it's not easy and has obvious how to handle situations wheb we have both separatots= and format= argument

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-26 Thread Andrew Nester
Andrew Nester added the comment: some updates? -- ___ Python tracker <http://bugs.python.org/issue29573> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-26 Thread Andrew Nester
Andrew Nester added the comment: JFYI, from my perspective as a developer PR 120 is more preferred one. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread Andrew Nester
Changes by Andrew Nester : -- pull_requests: +326 ___ Python tracker <http://bugs.python.org/issue29678> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread Andrew Nester
Andrew Nester added the comment: Thanks for reporting! Just added PR fixing this. -- nosy: +andrewnester ___ Python tracker <http://bugs.python.org/issue29

[issue27230] Calculation involving mpmath gives wrong result with Python 3.6 and correct result with 2.7

2016-06-05 Thread Andrew Lyasoff
New submission from Andrew Lyasoff: A particular numerical expression involving mpmath produces the wrong result when evaluated with Python 3.5 and produces the correct result when evaluated with Python 2.7. The expression involves the commonly used erf (error) function. -- components

[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Andrew Cameron
New submission from Andrew Cameron: The documentation for Mutable Sequence Types states that, for operation: s.extend(x) or s += t the expected result is: for the most part the same as s[len(s):len(s)] = x Note that if you perform operation 's += t' the result is not the same as &#x

[issue27886] Docs: the difference between rename and replace is not obvious

2016-08-28 Thread Andrew Svetlov
New submission from Andrew Svetlov: Hi. On reading the doc for pathlib I've stuck with `.rename()` and `.replace()` (https://docs.python.org/3/library/pathlib.html#pathlib.Path.rename). What's the difference? Going to pathlib's source code I've figured out that metho

[issue27886] Docs: the difference between rename and replace is not obvious

2016-08-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Just keeping the reference to `os.rename()`: https://docs.python.org/3/library/os.html#os.rename Aha, `os.rename` says: "On Unix, if dst exists and is a file, it will be replaced silently if the user has permission." and "On Windows, if dst

[issue14191] argparse doesn't allow optionals within positionals

2013-02-13 Thread Andrew McNabb
Changes by Andrew McNabb : -- nosy: +amcnabb ___ Python tracker <http://bugs.python.org/issue14191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2013-02-13 Thread Andrew McNabb
Changes by Andrew McNabb : -- nosy: +amcnabb ___ Python tracker <http://bugs.python.org/issue15258> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17215] documentation misprints

2013-02-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. July, would you fill Licence agreement http://www.python.org/psf/contrib/? -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python track

[issue17246] cgitb fails when frame arguments are deleted (due to inspect bug I think)

2013-02-19 Thread Andrew Lutomirski
New submission from Andrew Lutomirski: inspect.formatargvalues assumes (incorrectly) that every argument in args is a key in values. This isn't very hard to break -- see the attachment for a complete example. -- components: Library (Lib) files: test_cgitb.py messages: 182446

[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

2013-02-27 Thread Andrew Jaffe
Andrew Jaffe added the comment: Was this actually fixed? As per <http://bugs.python.org/issue16848> it affects "python-config --ldflags" which is used by various build systems. -- nosy: +Andrew.Jaffe ___ Python tracker <htt

[issue16848] Mac OS X: python-config --ldflags and location of Python.framework

2013-02-27 Thread Andrew Jaffe
Andrew Jaffe added the comment: Will this be fixed? I note that the related LINKFORSHARED bug (which causes this, I think) is marked as resolved. -- nosy: +Andrew.Jaffe ___ Python tracker <http://bugs.python.org/issue16

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17338> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17330] Stop checking for directory cache invalidation in importlib

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17351] Remove explicit "object" inheritance in Python 3 docs

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17365] Remove Python 2 code from test_print

2013-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Terry. The patch LGTM except unicode literals part. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue17373] Add inspect.Signature.from_callable()

2013-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree in general, but you need to update the docs also. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue17385] Use deque instead of list the threading.Condition waiter queue

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17385> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17423] libffi on 32bit is broken on linux

2013-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17423> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch is welcome -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17462> ___ ___ Python-bugs-list mailin

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: asvetlov priority: normal severity: normal status: open title: Fix test discovery for test_pdb.py versions: Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue17

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

2013-03-18 Thread Andrew Gorcester
Andrew Gorcester added the comment: Product of the #pycon 2013 sprint with r.david.murray's assistance. This implements the list of results as per tarek's suggested 1/ behavior in cases where ignore_errors=True. Parameters accepted are not changed; return value is changed from

[issue5993] python produces zombie in webbrowser.open

2013-03-19 Thread Andrew Gorcester
Andrew Gorcester added the comment: I was able to reproduce on Ubuntu with Python 3.4 compiled from trunk 2013-03-17, but only with Firefox and not with Chrome. -- nosy: +andrewsg ___ Python tracker <http://bugs.python.org/issue5

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: what is rietveld? and why is this marked as "easy"? it seems like it involves issues that aren't described well in the spec - it requires some kind of canonical way to describe urls with (and without) parameters to solve completely. -

[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke
andrew cooke added the comment: thanks (only subscribed to this now, so no previous email). my guess is that google are assuming a dumb regexp so http://example.com/foo? in a rule does not match http://example.com/foo and also i realised that http://google.com/robots.txt doesn&#

[issue17365] Remove Python 2 code from test_print

2013-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Berker -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16432] Template strings documentation in Python 3 refers to % substitution in present tense

2013-04-05 Thread Andrew Gorcester
Changes by Andrew Gorcester : -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/issue16432> ___ ___ Python-bugs-

[issue17206] Py_XDECREF() expands its argument multiple times

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17206> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue1521051> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2013-04-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 4712f9f8a90d, 5e5081cdc086, e4beda7cca2f. Thanks. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17552] socket.sendfile()

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17552> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16705] Use concrete classes inherited from OSError instead of errno check

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +Errno checking replaced by concrete classes inherited from OSError ___ Python tracker <http://bugs.python.org/issue16

[issue17650] There is no exception correspond to errno EROFS

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17650> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16705] Use concrete classes inherited from OSError instead of errno check

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +There is no exception correspond to errno EROFS ___ Python tracker <http://bugs.python.org/issue16705> ___ ___ Pytho

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: NEWS updated, thanks. -- ___ Python tracker <http://bugs.python.org/issue17502> ___ ___ Python-bugs-list mailing list Unsub

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've asked atykhonov for that because we have two sets: 1. Can be done with current exception classes 2. errno values doesn't have concrete OSError inherited exception and we have to make decision: add new exceptions or use errno check. This i

[issue17650] There is no exception correspond to errno EROFS

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry for reopening. Do you really sure that ENOTCONN and EINVAL doesn't worth to have separate sublasses? The same question about Not Supported family. I don't force to make new exception classes, just like to figure out the status quo. If we

[issue17570] Improve devguide Windows instructions

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, but you cannot just rewrite ./python.exe to just python.exe At least in http://docs.python.org/devguide/buildbots you have to make probably three sections: 1. for linux users to use just ./python 2. for Mac ./python.exe 3. for Windows /PCBuild

[issue17650] There is no exception correspond to errno EROFS

2013-04-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok. Antoine's comment is clean. Let's close the issue. -- status: pending -> closed ___ Python tracker <http://bugs.pytho

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like the patch is out-of-date and tests doesn't pass. Would you push updated version? -- ___ Python tracker <http://bugs.python.org/is

[issue13355] random.triangular error when low = high=mode

2013-04-11 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13355] random.triangular error when low = high=mode

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Test for the issue_13355.patch is incorrect, please fix. -- ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Pytho

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've found the stable link to CGI 1.1 spec at http://tools.ietf.org/html/draft-robinson-www-interface-00 Links to spec from the issue looks like broken. Please, can you describe why we need to convert, say, HTTP_USER_AGENT to user-agent? I see in the

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like the patch but please add tests also. We need to put new behavior in stone :) Take a look on comments to the patch also. -- ___ Python tracker <http://bugs.python.org/issue1521

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM, will commit if no objects. Let's leave encoding problems for upcoming issue. Please file new one if needed. -- ___ Python tracker <http://bugs.python.org/is

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Sentil -- ___ Python tracker <http://bugs.python.org/issue900112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17688] Wrong signature for richcmpfunc in documentation

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker <http://bugs.python.or

[issue6696] Profile objects should be documented

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks. -- ___ Python tracker <http://bugs.python.org/issue6696> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed for 3.3 and 3.4. As I see 2.7 has no this problem. Close the issue. Thanks for all. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bug

[issue13355] random.triangular error when low = high=mode

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed. Yuriy Senko, thanks for patch. But, please, be more accurate with tests for another one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue13355] random.triangular error when low = high=mode

2013-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Reverted. Sorry. -- ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2013-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Serhiy. Better to direcly use OSError than IOError alias. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue2

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2013-04-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, PEP3121 patch is not ready yet but PEP384 has been applied. -- ___ Python tracker <http://bugs.python.org/issue15

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-21 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17810> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Actually stdin/stdout/stderr are string streams if universal_newline is True -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue22755] contextlib.closing documentation should use a new example

2014-10-28 Thread Andrew Barnert
Andrew Barnert added the comment: It may be pretty hard to come up with a good example for closing in the stdlib that shouldn't just be turned into a context manager… There are some types where using it in a with statement is sensible, but unusual enough that you might want to ma

[issue22882] [patch] Linux packages you need to compile Python with all dependencies

2014-11-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: For Ubuntu/debian you can just run: $ sudo apt-get build-dep python3 -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue22

[issue22972] Timeout making ajax calls to SimpleHTTPServer from internet explorer

2014-12-01 Thread Andrew Burrows
New submission from Andrew Burrows: I have flask webservice running on windows, run up with `app.run()` which works fine from Chrome but when accessed with IE it sometimes fails with a timeout error. I've managed to reproduce the problem without flask which suggests there is (maybe?)

[issue23057] asyncio loop on Windows should stop on keyboard interrupt

2014-12-15 Thread Andrew Svetlov
New submission from Andrew Svetlov: See http://stackoverflow.com/questions/27480967/why-does-the-asyncios-event-loop-suppress-the-keyboardinterrupt-on-windows for details -- components: asyncio messages: 232678 nosy: asvetlov, gvanrossum, haypo, yselivanov priority: normal severity

[issue20606] Operator Documentation Example doesn't work

2015-01-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closed -- nosy: +asvetlov resolution: -> duplicate stage: -> resolved superseder: -> operator.setitem example no longer works in Python 3 due to lazy map ___ Python tracker <http://bugs.python.or

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue4395> ___ ___ Python-bug

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue4395> ___ ___ Python-bugs-list mailing list Un

[issue23226] Add float linspace recipe to docs

2015-01-12 Thread Andrew Barnert
New submission from Andrew Barnert: In a recent thread on python-ideas (https://mail.python.org/pipermail/python-ideas/2015-January/030817.html), it was concluded that Python should not have a range-like type for floats in the stdlib, but there should be some simple discussion of the

[issue22729] `wait` and `as_completed` depend on private api

2015-01-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1. Sorry, I don't see the reason for making custom `Future` class. Can you elaborate? -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/is

[issue23226] Add float linspace recipe to docs

2015-01-12 Thread Andrew Barnert
Andrew Barnert added the comment: As suggested by the review: removing unnecessary parenthetical, changing "ulp" to "digit", and fixing the recipe link. -- Added file: http://bugs.python.org/file37685/stdtypes.rst.diff ___ P

[issue23226] Add float linspace recipe to docs

2015-01-13 Thread Andrew Barnert
Andrew Barnert added the comment: So something like the first version below? Or should even the example be inline, as in the second version below? (Apologies if the formatting gets screwed up pasting from docs to bugs.) --- Range objects are inappropriate for non-integral types, especially

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: I guess R. David Murray asked you to make the least minimal change, even it breaks the formatting rules. Paragraph reflow is safe when it's done by the Core Developer but it requires additional check (and probably mercurial conflict errors on merging the c

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm with Antoine. Yes, GIL is extremely important but please don't put GIL mentions everywhere. On Sun, Jan 18, 2015 at 4:39 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Please let's stop it. Mentioning th

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-02-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry. The patch is correct from my perspective if we want to make bdist_install just working. Or as an option I can restore PyCFunction_New function declaration. What do you prefer? -- ___ Python tr

[issue23455] file iterator "deemed broken"; can resume after StopIteration

2015-02-12 Thread Andrew Dalke
New submission from Andrew Dalke: The file iterator is "deemed broken". As I don't think it should be made non-broken, I suggest the documentation should be changed to point out when file iteration is broken. I also think the term 'broken' is a label with needless

[issue23895] python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-05-28 Thread Andrew Stormont
Andrew Stormont added the comment: The -z ignore option is actually exposing issues that could cause a problem at runtime. If the socket module were imported and libsocket/libnsl hadn't already been loaded (i.e pulled in by the loader as a dependency of another module) the loader would

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-08 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue24411> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-08 Thread Andrew Svetlov
New submission from Andrew Svetlov: Now those methods use lock for querying queue size, like def qsize(self): with self.mutex: return self._qsize() The lock is not necessary because thread context switch may be done *after* returning from mutex protected code but

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raymond, is there known custom third-party queue class derived from queue.Queue? I believe all those are in stdlib only. Also locking guarantee is promised by comment in source code only, documentation says nothing about it. I believe proposed change will

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue24400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23895] python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-06-15 Thread Andrew Stormont
Andrew Stormont added the comment: Bump. -- ___ Python tracker <http://bugs.python.org/issue23895> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-06-27 Thread Andrew Turner
New submission from Andrew Turner: The attached patch moves to use the fenv functions on FreeBSD to control the floating-point environment. This will be needed as I don't expect FreeBSD will have these functions on arm64. I would expect a similar change should be applied to any supp

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov: See https://github.com/KeepSafe/aiohttp/issues/497 for the reason. Desctructors and descendant code (`loop.call_exception_handler()`) can be called on interpreter shutdown stage, which leads to printouts like 'None object has no attribute &q

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: > You should try to implement something in aiohttp or even in the application > to cleanup objects at exit. For example, it's probably wrong if you still > have tasks when the event loop is closed. Especially if tasks are still > pending. T

[issue24598] asyncio: add background task detecting reference cycles

2015-09-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue24598> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    25   26   27   28   29   30   31   32   >