[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread anatoly techtonik
anatoly techtonik added the comment: Memory control over the stuff that Python creates is a practical feature that compensates OS disability for tracking memory usage. If all Python scripts could measure their memory usage, we could see more memory effective and adaptive programs around

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
New submission from anatoly techtonik: Weird bug. Attached are two files: wow.py and wy.py When wow.py is executed - it fails with single ImportError. But when wy.py is executed (which is a simple "import wow" statement) it fails with one ImportError and TypeError

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28353/wow.py ___ Python tracker <http://bugs.python.org/issue16718> ___ ___ Python-bugs-list mailin

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28354/wy.py ___ Python tracker <http://bugs.python.org/issue16718> ___ ___ Python-bugs-list mailin

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
anatoly techtonik added the comment: ...one ImportError and *two* TypeError exceptions. -- ___ Python tracker <http://bugs.python.org/issue16718> ___ ___ Pytho

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
anatoly techtonik added the comment: >py wy.py Traceback (most recent call last): File "wy.py", line 1, in import wow File "E:\scons\wow.py", line 12, in import fail ImportError: No module named fail Error in atexit._run_exitfuncs: Traceback (most recen

[issue16718] Mysterious atexit fail

2012-12-18 Thread anatoly techtonik
anatoly techtonik added the comment: But why _Cleanup is not None when wow.py is executed standalone? -- ___ Python tracker <http://bugs.python.org/issue16

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/3/library/binascii - binascii.hexlify(data) + binascii.hexlify(bytes) tag:easy -- assignee: docs@python components: Documentation messages: 177727 nosy: docs@python, techtonik priority: normal severity: normal status: open

[issue13615] setup.py register fails with -r argument

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: Soo.. -- ___ Python tracker <http://bugs.python.org/issue13615> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16729] Document how to provide defaults for setup.py commands options

2012-12-19 Thread anatoly techtonik
New submission from anatoly techtonik: The way to override defaults for setup.py commands is not documented. For example, to change to name of build and dist dirs from setup.py, the following entry should be added to setup parameters: options={ 'build': {'build_ba

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: In Python 2 there was no 'binary data' type - everything was a string. Now we have string, str, bytearray, array, list of ints. If hexlify is not accepting anything except bytes, it is better be explicit. When porting code from Python 2 the ar

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: Fact no.1: When people use docs as a reference, they don't read top notes. Face no.2: This is not explicit: binascii.hexlify(data) This is: binascii.hexlify(bytes) I understand that you like the wording in description, but can't understand

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: The fact that array.array, bytearray and memoryview are also accepted is a surprise for me. It will help if Python docs contained a definition of what can be considered 'binary data' and link this term from hexlify description to this

[issue16718] Mysterious atexit fail

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: This is not repeatable in Python 3. Is it possible to fix it for Python 2 as well? Is it possible to postpone registration until the import is finished successfully? Or at least give atexit handler a chance to run before global variable stack is purged

[issue16734] Delay interpreter startup phase until script is read

2012-12-19 Thread anatoly techtonik
New submission from anatoly techtonik: Currently, when interpreter is launched it returns immediately to parent process without waiting to read the entrypoint script. This causes problem when you need to remove this script after executing. Is it possible to delay return to child process until

[issue6514] "python -m unittest " does not run any tests

2012-12-20 Thread anatoly techtonik
anatoly techtonik added the comment: The documentation should be fixed then: http://docs.python.org/2/library/unittest#command-line-interface -- nosy: +techtonik ___ Python tracker <http://bugs.python.org/issue6

[issue2721] unittest.makeSuite undocumented and "obsolete" - but what to use instead?

2012-12-20 Thread anatoly techtonik
anatoly techtonik added the comment: What about? suite = unittest.makeSuite(SConfTestCase, 'test_') -- nosy: +techtonik ___ Python tracker <http://bugs.python.

[issue6514] "python -m unittest " does not run any tests

2012-12-20 Thread anatoly techtonik
anatoly techtonik added the comment: > The documentation already covers that "python -m unittest test_module" > usage works only in 2.7+. > > "Changed in version 2.7: In earlier versions it was only possible to > run individual test methods and not modules or c

[issue16689] stdout stderr redirection mess

2012-12-21 Thread anatoly techtonik
anatoly techtonik added the comment: I don't know. I don't write C. -- ___ Python tracker <http://bugs.python.org/issue16689> ___ ___ Python-bugs-l

[issue16689] stdout stderr redirection mess

2012-12-22 Thread anatoly techtonik
anatoly techtonik added the comment: I am not convinced that "won't fix" is the solution. If you're redirecting both output streams to the same destination, you expect that the output will appear in the final file exactly as it appears on the screen. tag:wart -

[issue16689] stdout stderr redirection mess

2012-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: Can Python detect when output file descriptor for both stderr and stdout streams is the same and use the single buffer itself? -- status: closed -> open ___ Python tracker <http://bugs.python.org/issu

[issue16689] stdout stderr redirection mess

2012-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: I need to track issues the same way as you. You act as if the issue is resolved while it is (or rather wasn't) until the last comment that Python is unable to detect if stdout and stderr stream share the same output descriptor. And your separation o

[issue15005] trace corrupts return result on chained execution

2012-12-25 Thread anatoly techtonik
anatoly techtonik added the comment: The trace module helps to gather program flow statistics and see the differences in patterns for large systems when program evolves. In particular, components ported to Python 3 should still behave the same way on Python 2. Right now the behavior under the

[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
New submission from anatoly techtonik: When a Python file is exec()uted, it magically fails to find names in imported modules. The most magical thing in the examples below (b3.py in attach for Python 3) is that first reference to wintypes.LONG in print statement is actually successfull

[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28435/a.py ___ Python tracker <http://bugs.python.org/issue16781> ___ ___ Python-bugs-list mailin

[issue16781] execfile/exec messes up with imports in executed file

2012-12-25 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file28436/b2.py ___ Python tracker <http://bugs.python.org/issue16781> ___ ___ Python-bugs-list mailin

[issue7083] locals() behaviour differs when tracing is in effect

2012-12-25 Thread anatoly techtonik
anatoly techtonik added the comment: I'm 3rd to vote for reopening this issue to clarify documentation or to fix (read below). == Why it is important to fix 1. First personal user story. Until I saw the localstest.py I couldn't figure out what all locals() definitions are tal

[issue16781] execfile/exec execution of class statement does not access locals()

2012-12-25 Thread anatoly techtonik
anatoly techtonik added the comment: The workaround with the best case is a magical knowledge, which many don't possess and don't understand (I still don't get it). It's very tempting to ask why passing explicit namespace is the best solution, but instead I'd like to

[issue7083] locals() behaviour differs when tracing is in effect

2012-12-27 Thread anatoly techtonik
anatoly techtonik added the comment: After a day of meditation I've come to the following definition for locals(): locals() return a dictionary that serves as a cache for current local symbol table. This cache is updated every time locals() is called or when a trace function is a

[issue7083] locals() behaviour differs when tracing is in effect

2013-02-03 Thread anatoly techtonik
anatoly techtonik added the comment: Any progress on that? After a month I am inclined that this behavior should be fixed, not only documented. The correct documentation is: NOTE: The variable returned by locals() is sporadically updated by core interpreter. -- versions: +Python 3.2

[issue19024] Document asterisk (*), splat or star operator

2013-09-15 Thread anatoly techtonik
New submission from anatoly techtonik: I'd say this is a critical documentation bug that leads to head bang when you try to figure out what does '*' in code means. This bug is two fold: 1. Define a dedicated place in documentation for '*' operator with

[issue19024] Document asterisk (*), splat or star operator

2013-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: tag:easy -- ___ Python tracker <http://bugs.python.org/issue19024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
New submission from anatoly techtonik: http://stackoverflow.com/questions/15733558/python-ordereddict-not-keeping-element-order I wonder why OrderedDict accepts dict as parameter in a first place? OD is used when order is important and if plain dict is supplied, the order is lost. >&

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: I don't know if it is bug or feature. There are probably cases when order is not important and OrderedDict is used, but I don't remember any. Too bad Python doesn't have first class ordered mapping type, so that it could report error if unor

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: Is it possible to make strict OrderedDict an optional feature? Like `from features import strict_ordered_dict'? -- status: closed -> pending ___ Python tracker <http://bugs.python.org

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 15, 2013 at 9:25 PM, Raymond Hettinger wrote: > > In general, it is not possible for a hypothetical StrictOrderedDict to know > whether its input was ordered or not. Right. That's why it should not accept input that can onl

[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-21 Thread anatoly techtonik
New submission from anatoly techtonik: I always thought that subprocess is replacing all other methods of executing external programs from Python and it is a preferred way. Perhaps I was not attentive that people isolate: os.system os.spawn* os.popen* and os.exec* While subprocess

[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-21 Thread anatoly techtonik
anatoly techtonik added the comment: tag:easy (meaning, please mark it as easy for OpenHatch robots) -- ___ Python tracker <http://bugs.python.org/issue19

[issue19061] Shelve documentation security warning is not visible

2013-09-21 Thread anatoly techtonik
New submission from anatoly techtonik: This is a follow up to issue #8855. Currently the security warning is completely invisible from Python 2 docs http://docs.python.org/2/library/shelve.html and is located under screen border on Python 3 docs. The proposal is to move warning out of the

[issue19061] Shelve documentation security warning is not visible

2013-09-21 Thread anatoly techtonik
anatoly techtonik added the comment: tag:easy -- ___ Python tracker <http://bugs.python.org/issue19061> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19066] os.execv fails with spaced names on Windows

2013-09-21 Thread anatoly techtonik
New submission from anatoly techtonik: If file to be executed with os.execv on Windows is located in directory with spaces, Python fails. This doesn't fail on Linux. To test, run: testexecv.py spaced testexecv.py is attached. -- components: Library (Lib), Windows

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: The scope of warning is wrong. It is not a warning for open() call, and that's why it is easy to miss. -- ___ Python tracker <http://bugs.python.org/is

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 12:42 PM, Georg Brandl wrote: > Oh, please. It's big and red and directly below the open() description, > how could you miss it? > I believe that it is pretty easy with mobile browser due to screen constraints. Can yo

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: 223 people + me out of 1422 disagree with you both. http://stackoverflow.com/questions/101268/hidden-features-of-python -- ___ Python tracker <http://bugs.python.org/issue19

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: To narrow the point of conflict, I say that argument unpacking *operators* should have a prominent place in Python documentation that people can link to. Current page http://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists is about

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:11 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > > I believe that it is pretty easy with mobile browser due to screen > > constraints. Can you test this on your mobile devices? > > So

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:57 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > > me[1]> open() function description is a wrong place for warning that is > related to a whole module > > you[2]> common, it is vi

[issue18553] os.isatty() is not Unix only

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: > > > I having a snippet to fix that, should I open a new issue for patch? > > Please open a new issue. > Reference is welcome. -- ___ Python tracker <http://bugs.

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/2/faq/gui.html - this page misses info about PySide. -- assignee: docs@python components: Documentation messages: 198279 nosy: docs@python, techtonik priority: normal severity: normal status: open title: Add PySide to GUI FAQ

[issue15329] clarify which deque methods are thread-safe

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: So, is deque a faster replacement for Queue.Queue or not? -- nosy: +techtonik ___ Python tracker <http://bugs.python.org/issue15

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: If only wiki had a theme like Sphinx docs.. But I agree that static FAQ look dead compared to wiki or stackoverflow. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19089] Windows: Broken Ctrl-D shortcut on Python 3

2013-09-25 Thread anatoly techtonik
New submission from anatoly techtonik: Ctrl-D shortcut works to terminate session in Python 2 on Windows, and doesn't work with Python 3. -- components: Windows messages: 198393 nosy: techtonik priority: normal severity: normal status: open title: Windows: Broken Ctrl-D shortc

[issue19089] Windows: Broken Ctrl-D shortcut on Python 3

2013-09-25 Thread anatoly techtonik
anatoly techtonik added the comment: Well, it appears that installed IPython brought pyreadline, but I execute it in standard Python shell. I'd vote for this feature by default. Is that possible without readline? -- ___ Python tracker

[issue19089] Windows: Broken Ctrl-D shortcut on Python 3

2013-09-25 Thread anatoly techtonik
anatoly techtonik added the comment: Here is the output of "py -v". -- Added file: http://bugs.python.org/file31868/py_-v.stderr.txt ___ Python tracker <http://bugs.python.o

[issue19089] Windows: Broken Ctrl-D shortcut on Python 3

2013-09-25 Thread anatoly techtonik
anatoly techtonik added the comment: It would be nice if Python supported some cross-platform standard for user interfaces. It is rather annoying to use Ctrl-Z for Python in local window and Ctrl-D for Python in remote console session (which is *nix of course). It becomes even more annoying

[issue19089] Windows: Make Ctrl-D exit key combination cross-platform

2013-09-25 Thread anatoly techtonik
Changes by anatoly techtonik : -- title: Windows: Broken Ctrl-D shortcut on Python 3 -> Windows: Make Ctrl-D exit key combination cross-platform versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issu

[issue19110] PEP-0 history link is broken

2013-09-28 Thread anatoly techtonik
New submission from anatoly techtonik: See http://www.python.org/dev/peps/, click Last-Modified. -- assignee: docs@python components: Documentation messages: 198509 nosy: docs@python, techtonik priority: normal severity: normal status: open title: PEP-0 history link is broken

[issue19110] PEP-0 history link is broken

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: Cool. Even if it is automatically generated, it may worth to commit this file anyway to get browsable HG history about PEP additions/removals. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: I tested with 2.7 and 3.3, but this is true for any version. If the bug is actual for Python 2.6, 3.1 and 3.2 why should I uncheck them? Versions field description doesn't say that I should mark only latest change. In addition, people (unlikely, but

[issue19121] Documentation guidelines enhancements

2013-09-29 Thread anatoly techtonik
New submission from anatoly techtonik: I'll raise some points and then suggest how to fix that. issue19060 it appeared that list of functions that subprocess replaces imbues readers with uncertainty, because this list is not complete. Current http://docs.python.org/devguide/documenting

[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: I would like to know if the list is complete too. It would be extremely awesome if it was complete. This raises a side issue that there seems no guideline to write unambiguous and complete documentation. I spammed the tracker with this stuff in issue19121

[issue19060] docs: note that subprocess doesn't replace os.exec*

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sat, Sep 28, 2013 at 10:30 PM, Terry J. Reedy wrote: > > If a sentence were added, I would simplify it to > "It does not replace os.exec*." or perhaps "os.fork and os.exec*.". I prefer list. It is easier to scan: http://www.n

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: It should be documented somehow then. At least in the field tooltip. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
New submission from anatoly techtonik: os.execv() starts process in background on Windows. Because it inherits stdin/stdout handlers from the process that launched Python interpreter, this becomes a source of numerous weird bugs, from polluting the stdout stream of parent to completely

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: s/same behavior/same command/ -- ___ Python tracker <http://bugs.python.org/issue19124> ___ ___ Python-bugs-list mailin

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file31905/testexecvchild.py ___ Python tracker <http://bugs.python.org/issue19124> ___ ___ Python-bug

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 29, 2013 at 2:05 PM, Richard Oudkerk wrote: > See http://bugs.python.org/issue436259 I am not sure that I should see there. There is discussion of DOS, which is not supported, also some complain about Windows execv function, which depreca

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 29, 2013 at 3:03 PM, Richard Oudkerk wrote: > > _spawn*() and _exec*() are implemented by the C runtime library. spawn*() > and execv() are (deprecated) aliases. It is said that execv() is deprecated, but it is not said that it is

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 29, 2013 at 6:39 PM, Richard Oudkerk wrote: > > Richard Oudkerk added the comment: > > As I wrote in http://bugs.python.org/issue19066, on Windows execv() is > equivalent to > > os.spawnv(os.P_NOWAIT, ...) > os

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: Hey. This ticket is about os.execv failing on spaced paths on Windows. It is not a duplicate of issue19124. -- resolution: duplicate -> status: closed -> open ___ Python tracker <http://bugs.p

[issue19066] os.execv fails with spaced names on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 29, 2013 at 8:48 PM, Richard Oudkerk wrote: > >> Don't we have such function already? I don't see the problem in >> quoting the string. > > No one seems to know how to write such a quoting function. Why escape qu

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 29, 2013 at 8:53 PM, Richard Oudkerk wrote: > > Richard Oudkerk added the comment: > >> Where did you get that info? MSDN is silent about that. >> http://msdn.microsoft.com/en-us/library/886kc0as(v=vs.90).aspx > > Read

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
anatoly techtonik added the comment: I can't use subprocess. These are official "business suite" scripts for Android development from Google. -- ___ Python tracker <http://bugs.pyt

[issue19124] os.execv executes in background on Windows

2013-09-29 Thread anatoly techtonik
Changes by anatoly techtonik : -- resolution: rejected -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue19124> ___ ___ Python-bugs-

[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread anatoly techtonik
New submission from anatoly techtonik: A request to backport issue10730 commit to Python 2.x Why? Google Client API uses mimetype module to detect file types when uploading to Google Drive, and because SVG is missing, it can not be edited after uploading. -- components: Library (Lib

[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread anatoly techtonik
anatoly techtonik added the comment: I am not sure that policy defines anything related to datasets bundled with Python. Even when try to adopt policy reading to this case, it doesn't look like a feature, but a bug fix. SVG is a registered MIME type http://www.w3.org/TR/SVG/mimereg.html

[issue19377] Backport SVG mime type to Python 2

2013-10-30 Thread anatoly techtonik
anatoly techtonik added the comment: I think we are talking about double standards. Why the .xz and .txz are worthy including in 2.7.5 and .svg is not? See issue #16316. http://bugs.python.org/issue15207 will break a lot of this stuff anyway, so I hope it will fix the issue

[issue19454] devguide: Document what a "platform support" is

2013-10-30 Thread anatoly techtonik
New submission from anatoly techtonik: As a followup to issue19377 it would be nice if devguide contained a paragraph to resolve the conflicting point provided by http://bugs.python.org/msg187373 and http://bugs.python.org/msg201141 arguments. -- assignee: docs@python components

[issue19377] Backport SVG mime type to Python 2

2013-10-30 Thread anatoly techtonik
anatoly techtonik added the comment: Added issue19454 to settle this down. -- ___ Python tracker <http://bugs.python.org/issue19377> ___ ___ Python-bugs-list m

[issue19540] PEP339: Fix link to Zephyr ASDL paper

2013-11-09 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: docs@python components: Documentation hgrepos: 213 nosy: docs@python, techtonik priority: normal severity: normal status: open title: PEP339: Fix link to Zephyr ASDL paper ___ Python tracker <h

[issue19541] ast.dump(indent=True) prettyprinting

2013-11-09 Thread anatoly techtonik
New submission from anatoly techtonik: ast.dump needs an indent argument for pretty printing. from pprint import pprint as pp pp(ast.dump(node)) "Assign(targets=[Tuple(elts=[Name(id='d', ctx=Store()), Name(id='m', ctx=Store())], ctx=Store())], value=Call(func=N

[issue12226] use HTTPS by default for uploading packages to pypi

2013-11-10 Thread anatoly techtonik
anatoly techtonik added the comment: How come that this CVE is still present in just released 2.7.6? -- ___ Python tracker <http://bugs.python.org/issue12

[issue13276] bdist_wininst-created installer does not run the postinstallation script when uninstalling

2013-11-10 Thread anatoly techtonik
anatoly techtonik added the comment: Here is workaround, which is - patching distutils - https://code.google.com/p/spyderlib/wiki/PatchingDistutils -- versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue13

[issue19549] PKG-INFO is created with CRLF on Windows

2013-11-10 Thread anatoly techtonik
New submission from anatoly techtonik: When packaging on Windows, sdist creates PKG-INFO, which is different in linefeeds. It will be better if this is consistent between platforms. -- assignee: eric.araujo components: Distutils, Distutils2 messages: 202602 nosy: alexis, eric.araujo

[issue19557] ast - docs for every node type are missing

2013-11-11 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/2/library/ast.html AST module doc is incomplete. To write node visitor, you need to know possible types of parameters and expected values for every node type. They are different. http://hg.python.org/cpython/file/1ee45eb6aab9

[issue19540] PEP339: Fix link to Zephyr ASDL paper

2013-11-14 Thread anatoly techtonik
anatoly techtonik added the comment: It conflicts. =( https://bitbucket.org/rirror/peps/pull-request/1/pep-0339txt-fix-link-to-zephyr-asdl-paper/diff -- ___ Python tracker <http://bugs.python.org/issue19

[issue19608] devguide needs pictures

2013-11-15 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/devguide/ it covers pretty much complicated stuff, which takes a lot of time to grasp. Pictures help to save hours if not weeks. There needs to be some immediate intro picture at the top of front page illustrating transformation of

[issue19608] devguide needs pictures

2013-11-15 Thread anatoly techtonik
anatoly techtonik added the comment: Thanks for the proposal, but you know perfectly that I am not a designer. I don't believe that there are no talented people who find this ticket interesting. You just need to add tag:easy to is (or allow others to do), so it became visible to these p

[issue19541] ast.dump(indent=True) prettyprinting

2013-11-19 Thread anatoly techtonik
anatoly techtonik added the comment: Implemented more advanced interface with filtering and tests - here - https://bitbucket.org/techtonik/astdump/ Right now the output is not so detailed, but it may change if the need arises. -- ___ Python tracker

[issue19557] ast - docs for every node type are missing

2013-11-22 Thread anatoly techtonik
anatoly techtonik added the comment: Neither you nor docs answer the question when Assign node gets Tuple as argument, when List and when Subscript. While it is obvious to you, I personally don't know what a Subscript is. This is the kind of stuff that I'd like to see

[issue19655] Replace the ASDL parser carried with CPython

2013-11-23 Thread anatoly techtonik
anatoly techtonik added the comment: +1 for initiative, points that are nice to be addressed are below. 1. "Python 3.4 with modern idioms" - too Python-specific code raises the barrier. I'd prefer simplicity and portability over modernism. Like how hard is it to port the pars

[issue19557] ast - docs for every node type are missing

2013-11-23 Thread anatoly techtonik
anatoly techtonik added the comment: http://stackoverflow.com/questions/8370132/what-syntax-is-represented-by-an-extslice-node-in-pythons-ast -- ___ Python tracker <http://bugs.python.org/issue19

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: https://greentreesnakes.readthedocs.org/en/latest/ -- ___ Python tracker <http://bugs.python.org/issue19557> ___ ___ Pytho

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: SO link serves a proof that a problem is actual. It is needed, because, for example Brett doesn't think it is important. 2nd link is the same proof, and also an example of documentation wanted. -- ___ P

[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik
anatoly techtonik added the comment: In fact it may be the documentation that could be merged. -- ___ Python tracker <http://bugs.python.org/issue19557> ___ ___

[issue19812] reload() by symbol name

2013-11-27 Thread anatoly techtonik
New submission from anatoly techtonik: It would be nice if reload() supported reloading of symbols imported with "from module import ..." syntax. It is quite useful for development sessions, when you patch and test your function on some set of unexpected input. >>>

[issue19822] PEP process entrypoint

2013-11-28 Thread anatoly techtonik
New submission from anatoly techtonik: https://bitbucket.org/rirror/peps PEP repository readme lacks information about how to send Python Enhancement Proposal step-by-step. 1. hg clone https://bitbucket.org/rirror/peps 2. cd peps 3. # choose number 4. cp ??? pep-{{number}}.txt 5. # commit 6

[issue19822] PEP process entrypoint

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: The "entrypoint" here means the point of entry for new Python Enhancement Proposals. Christian, what you propose is a 4th order link for someone who knows what PEPs are, and clones PEP repository to submit own proposal. What I propose it t

[issue19822] PEP process entrypoint

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: > The process you are describing is not correct. In particular, the discussion > happens before sending in a pull request. Post the link to correct process into README.rst and then this issue can be closed. As for python-dev, I thought it is too o

[issue19824] string.Template: Add PHP-style variable expansion example

2013-11-28 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/2/library/string.html#template-strings This class could be more useful with the following example: >>> from string import Template >>> t = Template('$who likes $what') >>> who = 'tim'

<    2   3   4   5   6   7   8   9   10   >