[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10576 ___ ___ Python-bugs

[issue9666] 'hasattr' fix to suppress only AttributeError

2010-08-23 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: As discussed on python-dev mailing list (http://mail.python.org/pipermail/python-dev/2010-August/103178.html), 'hasattr' default behaviour should be changed to suppress only AttributeError exceptions. Other should pass through

[issue9695] Return from generators in Python 3.2

2010-08-26 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: The patch is intended to fix behaviour of 'return' statement in python's generators. Please read this message before looking at the patch. http://mail.python.org/pipermail/python-dev/2010-August/103297.html -- components

[issue11682] PEP 380 reference implementation for 3.3

2011-04-26 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___ ___ Python-bugs

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-11-08 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs

[issue11682] PEP 380 reference implementation for 3.3

2011-11-08 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: It looks like there is a memory leak bug (on StopIteration exception instances). Attached is the test to expose it. It seems that adding 'Py_DECREF(e);' after 'PyErr_SetObject(PyExc_StopIteration, e);' in 'genobject.c' fixes the leak

[issue17071] Signature.bind() fails with a keyword argument named self

2013-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: I'll take a look later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17071 ___ ___ Python-bugs-list

[issue17071] Signature.bind() fails with a keyword argument named self

2013-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks Antoine, the patch looks good to me. The only thing I would have done differently myself is to name self as __bind_self__ (with two underscores at the end). Could you please apply the patch? -- ___ Python

[issue10882] Add os.sendfile()

2011-09-01 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10882 ___ ___ Python-bugs

[issue13062] Introspection generator and function closure state

2011-09-29 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13062 ___ ___ Python-bugs

[issue15008] PEP 362 reference implementation for 3.3

2012-06-05 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: This issue will track implementation of PEP 362 functionality. -- components: Library (Lib) files: pep362.1.patch hgrepos: 131 keywords: patch messages: 162377 nosy: Yury.Selivanov, brett.cannon, larry priority: normal severity

[issue15008] PEP 362 reference implementation for 3.3

2012-06-05 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Well, 'Signature' class is unlikely to be used very frequently. So I think it's fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15008

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-06 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14626 ___ ___ Python-bugs

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-13 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Attaching a patch that implements the latest version of the PEP. Quick summary: 1. Ditched Signature.name Signature.qualname 2. Added Signature.__eq__ and __ne__ 3. signature() supports classes, metaclasses, decorated stuff, partials

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-15 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Attaching the new version of the patch. Summary: 1. 'is_*' family was replaced with 'Parameter.kind' 2. 'signature()' function was updated to check for '__wrapped__' attribute in all callables 3. 'is_implemented' - 'implemented' 4. Added

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-18 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New version (pep363.4.patch) Summary: 1. Removed 'Signature.implemented' 2. No more patching built-ins - no issues with shared interpreters 3. Removed 'Signature.format()'. If needed we'll reintroduce it in 3.4 (although we still have

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-18 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Eric, I personally prefer simple 'signature()' more than 'get_signature()'. But I'll ask this question on python-dev on the next PEP update. -- ___ Python tracker rep...@bugs.python.org http

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New patch (pep362.5.patch) Fixed a bug in BoundArguments.args BoundArguments.kwargs -- Added file: http://bugs.python.org/file26052/pep362.5.patch ___ Python tracker rep...@bugs.python.org http

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New patch (pep362.6.patch) Fixed a bug in BoundArguments.args when positional arguments were partially mapped by functools.partial -- Added file: http://bugs.python.org/file26053/pep362.6.patch

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-19 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New patch - pep362.6.patch Ezio, I've eliminated almost all '\'. Test coverage is now almost 100%. -- Added file: http://bugs.python.org/file26055/pep362.6.patch ___ Python tracker rep

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-21 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New patch - pep362.7.patch Summary: 1. Signature Parameter objects are now immutable 2. Signature.replace() and Parameter.replace() 3. Signature has a new default constructor, which accepts parameters list and a return_annotation

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-22 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: New patch - pep362.8.patch One big change (Guido's request) - No more AttributeErrors on missing Parameter.default of Signature.return_annotation. They now will be set to Parameter.empty Signature.empty correspondingly

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-22 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15008

[issue15185] Validate callbacks in 'contextlib.ExitStack.callback()'

2012-06-25 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: With this patch 'contextlib.ExitStack.callback(callback, *args, **kwds)' will validate that the passed callback actually accept the passed '*args' and '**kwds'. P.S. If this patch comes through - I'll create two more issues

[issue8916] Move PEP 362 (function signature objects) into inspect

2012-06-25 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: √Čric, yes, please close it. -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8916

[issue15185] Validate callbacks in 'contextlib.ExitStack.callback()'

2012-06-25 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15185 ___ ___ Python-bugs

[issue15185] Validate callbacks in 'contextlib.ExitStack.callback()'

2012-06-25 Thread Yury Selivanov
Yury Selivanov yselivanov...@gmail.com added the comment: (my previous message edit: no support for 'atexit' - it's implemented in C) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15185

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-16 Thread Yury Selivanov
Yury Selivanov yselivanov...@gmail.com added the comment: Larry, Brett, I compiled the documentation from the PEP (attached as inspect.pep362.1.patch). Please take a look and feel free to add/edit. -- keywords: +patch Added file: http://bugs.python.org/file26410/inspect.pep362.1

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-17 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: -Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15151 ___ ___ Python

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-17 Thread Yury Selivanov
Yury Selivanov yselivanov...@gmail.com added the comment: The new patch version (inspect.pep362.2.patch) includes more examples and includes recommendations to use the Signature Object instead of 'inspect.getfullargsspec'. Please review. -- Added file: http://bugs.python.org

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-17 Thread Yury Selivanov
Yury Selivanov yselivanov...@gmail.com added the comment: New patch version - inspect.pep362.3.patch I decided to put the new doc section above the Classes and functions. The new section is now called Introspecting callables with Signature Object. Aside from that everything is the same

[issue15397] Unbinding of methods

2012-07-19 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___ ___ Python-bugs

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2012-07-20 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___ Python-bugs

[issue15008] PEP 362 Signature Objects reference implementation

2012-07-25 Thread Yury Selivanov
Yury Selivanov yselivanov...@gmail.com added the comment: Benjamin: http://bugs.python.org/issue15151 -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15008

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks a lot for the patch update, Andrew! Please let me glance over it once again today/tomorrow before you commit it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15151

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-08-12 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15627 ___ ___ Python-bugs

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-13 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Andrew. One thing: can you please change: Print all keyword-only arguments without default values: to Example: print all keyword-only arguments without default values: ? -- ___ Python tracker rep

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: WeakSet has a bug in its '__len__' method, where it performs iteration though 'self.data' without ensuring _IterationGuard. This leads to some hard to catch errors with the following traceback: builtins.RuntimeError: Set changed size

[issue14159] __len__ method of weakset

2012-02-29 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Yes, I couldn't reproduce it either. However it frequently occurs on our buildbot, so tomorrow I'll give you an update if this patch resolves the issue or not. In any way, your patch fixes the current implementation at least from

[issue14159] __len__ method of weakset

2012-03-01 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: As expected, it seems that the patch fixes the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14159

[issue14167] document return statement in finally blocks

2012-03-01 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: I think that the documentation should put more emphasis on the `return` statement in a `finally` block. Example: def test(): try: 1/0 finally: return 10 test() 10 I think we need to add a warning

[issue14167] document return statement in finally blocks

2012-03-02 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Well, I guess the best place to put it would be http://docs.python.org/py3k/reference/compound_stmts.html#finally I've attached the patch, please take a look. If it's possible to make it more clear, feel free to rephrase it. But please

[issue14369] make __closure__ writable

2012-03-19 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: __code__ and __closure__ are designed to work together. There is no point in allowing to completely substitute the __code__ object, but protecting the __closure__. -- components: Interpreter Core files: writable_closure.patch

[issue14369] make __closure__ writable

2012-03-19 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Removed file: http://bugs.python.org/file24943/writable_closure.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14369

[issue14369] make __closure__ writable

2012-03-19 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file24946/writable_closure.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14369

[issue14369] make __closure__ writable

2012-03-19 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Updated patch as per Andrew's code review. Thank you. -- Added file: http://bugs.python.org/file24947/writable_closure_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Please update the doc also. I think changing from 'Read-only' to 'Writable' in Doc/reference/datamodel.rst is enough. Updated in writable_closure_03.patch. Thanks. -- Added file: http://bugs.python.org/file24962

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Updated patch per Benjamin's review. See writable_closure_04.patch. -- Added file: http://bugs.python.org/file24975/writable_closure_04.patch ___ Python tracker rep...@bugs.python.org http

[issue14369] make __closure__ writable

2012-03-20 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14369 ___ ___ Python-bugs-list

[issue14397] Use GetTickCount/GetTickCount64 instead of QueryPerformanceCounter for monotonic clock

2012-03-24 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14397 ___ ___ Python-bugs

[issue14397] Use GetTickCount/GetTickCount64 instead of QueryPerformanceCounter for monotonic clock

2012-03-24 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: I vote for adding just one function to the 'time' module: monotonic(), which should exist only if the host OS support it. And I don't see the point of having 'steady()' at all. -- ___ Python

[issue14397] Use GetTickCount/GetTickCount64 instead of QueryPerformanceCounter for monotonic clock

2012-03-24 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: A monotonic clock is not suitable for measuring durations, as it may still jump forward. A steady clock will not. Well, Victor's implementation of 'steady()' is just a tiny wrapper, which uses 'monotonic()' or 'time()' if the former

[issue13903] New shared-keys dictionary implementation

2012-04-12 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs

[issue13903] New shared-keys dictionary implementation

2012-04-23 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: Mark, did you add the test that your patch initially was failing with? http://mail.python.org/pipermail/python-dev/2012-February/116605.html -- ___ Python tracker rep...@bugs.python.org http

[issue14369] make __closure__ writable

2012-04-24 Thread Yury Selivanov
Yury Selivanov yseliva...@gmail.com added the comment: The patch causes crashes. Yes, that's known. First, we need to check, that we can only write tuple of cell objects or None in __closure__ (that's easy to add). Secondly, perhaps, we can check __closure__ correctness each time we

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14660 ___ ___ Python-bugs

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___ ___ Python-bugs

[issue14167] document return statement in finally blocks

2012-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: Can you close this one? It's already merged. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167

[issue14167] document return statement in finally blocks

2012-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: I'll open another issue and will attach a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167

[issue14167] document return statement in finally blocks

2012-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: OK. Attaching the patch. Please review. -- Added file: http://bugs.python.org/file27280/finally_doc_patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167

[issue16028] break in finally discards exception

2012-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: see the issue 14167 -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs

[issue14167] document return statement in finally blocks

2012-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: I don't know why, but it seems that the bug reappeared in 3.3. Examples: 1. --- (python 3.4 from repo) yury@sxair ~/dev/py/python (master) $ ./python.exe Python 3.4.0a0 (default, Oct 5 2012, 15:08:35) [GCC 4.2.1 Compatible Apple Clang 4.1

[issue15111] Wrong ImportError message with importlib

2012-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: Brett, can we patch 3.3 too? (in 3.3.1 version?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
New submission from Yury Selivanov: This patch adds a dropdown to python documentation top toolbar: https://dl.dropbox.com/u/21052/python/p3_doc_dd.png This patch version is for python 3.3 3.4 docs theme, but I can quickly make patches for 3.2-style and below. JavaScript that monitors

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16331 ___ ___ Python-bugs

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: What happens if the module doesn't exist in a previous version or if it has a different name? As I said in the first message: 2) Before making a redirect, is checks that the doc page exists for the selected python version, and if not, then it simply

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: 1) mapping new/renamed/delete files between versions; I think that this dropdown is mostly like to be used to switch between somewhat recent python versions, like '3.2' - '3.3', '2.7' - '3.3', and not between '2.4' - '3.4' And most of the internet links

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: I mostly want to switch between 2.x and 3.x, and several modules got renamed between these versions. There are also new modules on each release (5 new ones in 3.3). To make that work we'll need to have a modules mapping between 2nd and 3rd versions

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, I'm not sure what we should do with #8040. I searched for the existing issue before creating a new one, but obviously failed. Should we just close #8040 and point it to #16331? -- ___ Python tracker rep

[issue16331] Add a version switcher to python docs site

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, Ezio, This one has a patch attached with a relevant discussion review, so I'd close #8040. But if you guys decide to close this one and switch to #8040 - i'm fine. -- ___ Python tracker rep

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, Ezio, I'd like to make the version dropdown to be configurable. The question is--I can add an option (set to False by default) to conf.py. Will you have a way to override it on the 'docs.python.org'? -- nosy: +yselivanov

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: If the issue with patch is closed as duplicate, the patch should be attached to the superseder. Attached now. Although, please don't use it. I'll upload an updated version soon. The patch looks awfully long for such a simple option list. (e.g

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a new patch, with all previous issues resolved. Version dropdown can be enabled by the new 'pydoc_versionswitcher' config property (False by default). Please review and test (I've done lots of testing by injecting the JS on live python docs site

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Adding 'py2_version_switch.patch' patch. Applies on 2.7 -- Added file: http://bugs.python.org/file27738/py2_version_switch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: Added file: http://bugs.python.org/file27739/py3_2_version_switch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Adding 'py3_2_version_switch.patch'. Applies on 3.2 Both patches (for 2.7 3.2) are almost the same as the original patch. Conflicts were trivial. -- ___ Python tracker rep...@bugs.python.org http

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: And 'py3_version_switch.2.patch' is for 3.3/master. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Yury Selivanov
Yury Selivanov added the comment: Found a bug: documentation pages have two toolbars - top and bottom, and as I hadn't noticed the latter, I used a placeholder with #id. This is now fixed. I'm attaching a new version of patch: 'py3_version_switch.3.patch'. I also have updated patches for 3.2

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a simplified version of the patch. I'm OK, but you actually reduced the functionality with saving those 500 bytes. In 'py3_version_switch.3.patch', JS sets the current selected option text to show the the *full* release number. I.e. if you

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Georg, Are you sure you've attached the right one? I don't see a change in the version_switch.js... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Looks good, let's commit it? ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Maybe it's a good idea to modify `url_re` from /\.org\/(py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// to /\.org\/(\d|py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// To be prepared for PEP 430. -- ___ Python tracker rep

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Ezio, Georg's modification introduced one more bug: 1. Documentation for py2 seems to be missing DOCUMENTATION_OPTIONS.RELEASE 2. DOCUMENTATION_OPTIONS.VERSION is in a wrong format for the rest of the script, i.e. 3.3.0 and not 3.3. Before, in my version

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: I think we should also apply patch for 2.6, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: And last bit - are you sure we shouldn't add the switch for 2.5? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: And if you guys can - please re-run the docs generation script manually... As it's showing an incorrect version everywhere. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: It seems that the docs site has old jquery - 1.4, and current JS script uses $.get, which got support for 'error' callbacks only in 1.5 So right now, if a URL doesn't exist for the version the user is about to switch to, it just fails with a JS error. I'm

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: (I'd fix it myself if I could ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list

[issue16377] Fix bisect unittest

2012-10-31 Thread Yury Selivanov
New submission from Yury Selivanov: TestInsort.test_vsBuiltinSort is a bit broken, as it doesn't test insorting `list` objects. Patch attached. -- files: test_bisect.patch keywords: patch messages: 174365 nosy: christian.heimes, georg.brandl, rhettinger, yselivanov priority: normal

[issue16422] Decimal constants should be the same for py c module versions

2012-11-06 Thread Yury Selivanov
New submission from Yury Selivanov: Right now decimal.py defines 'ROUND_DOWN' as 'ROUND_DOWN' (string), whereas C version define it as 1 (integer). While using constant values directly in your code is not a good idea, there is another case where it doesn't work: if you serialize decimal

[issue16422] Decimal constants should be the same for py c module versions

2012-11-06 Thread Yury Selivanov
Yury Selivanov added the comment: Well, I don't care about py 3.2 3.3 pickle compatibility in this particular issue. This one is about compatibility of py c decimal modules in 3.3. -- ___ Python tracker rep...@bugs.python.org http

[issue16422] Decimal constants should be the same for py c module versions

2012-11-06 Thread Yury Selivanov
Yury Selivanov added the comment: Right ;) Is there any chance we can fix that in next 3.3 point release or 3.4? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16422

[issue16431] CDecimal disregards subclass passed into __new__ when value argument is an instance of Decimal

2012-11-07 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16431 ___ ___ Python-bugs

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-25 Thread Yury Selivanov
Yury Selivanov added the comment: This broke a lot of our code, I think that priority needs to be raised to urgent. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19729

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-11 Thread Yury Selivanov
New submission from Yury Selivanov: new and handy functools.partialmethod doesn't fully support inspect.signature. For instance, for the following code: class Spam: def say(self, a, b=1): print(a) hello = functools.partialmethod(say, 'hello') the 'signature

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Congrats on the amazing job you did with the arguments clinic. And if you need any assistance with 'inspect.signature' I'd be glad to help. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http

[issue17373] Add inspect.Signature.from_callable()

2014-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Hi Eric, I'm not sure why do you want this. Having Signature.from_callable does not allow you to change behaviour of 'inspect.signature' function. More over, it creates a confusion about what API should be used - 'inspect.signature

[issue17481] inspect.getfullargspec could use __signature__

2014-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Please consider the attached patch (getargsspec_01.patch). It modifies 'getargspec' and 'getfullargspec' to use the 'inspect.signature' API. The entire test suite passes just fine. This also will address issue #16490. I can also update the docs, if it's

  1   2   3   4   5   6   7   8   9   10   >