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

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: @Alex, have you seen http://pythonhosted.org/flufl.i18n/docs/using.html#substitutions-and-placeholders? I really like the brevity, and it is the function that does the magic, so it is fully transparent and you don't need to instantiate string.Tem

[issue19826] Document that bug reporting by email is possible

2013-11-28 Thread anatoly techtonik
New submission from anatoly techtonik: I found this to be convenient: http://techtonik.rainforce.org/2013/11/roundup-tracker-create-issues-by-email.html And this is missing from here: http://docs.python.org/release/2.7/bugs.html#using-the-python-issue-tracker Anf from here: http

[issue19825] test b.p.o email interface

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: Closing by email using [status=closed;resolution=invalid] suffix in header. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue19825] test b.p.o email interface

2013-11-28 Thread anatoly techtonik
New submission from anatoly techtonik: -- anatoly t. -- messages: 204688 nosy: techtonik priority: normal severity: normal status: open title: test b.p.o email interface ___ Python tracker <http://bugs.python.org/issue19

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

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: There is nothing to add to the class itself. It is about expanding docs section with helpful examples. `string.Template` is undervalued, because it is hard to see how it can be more useful than standard string formatting functions. But for people coming

[issue19822] PEP process entrypoint

2013-11-28 Thread anatoly techtonik
anatoly techtonik added the comment: > The ticket has been closed by two people. Why do you keep re-opening the > ticket? Because you're not providing any arguments. If it is not important for you, just ignore. If something is not clear - ask. What you do is just closing the stu

[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'

[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

[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
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

[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. >>>

[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> ___ ___

[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: 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-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

[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-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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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: 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

[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-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

[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-

[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
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

[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

[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

[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: 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

[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

[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

[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
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

[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

[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

[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

[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

[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

[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

[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

[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

[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: 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: 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
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

[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

[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
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

[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.

[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

[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

[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

[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

[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

[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

[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-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:

[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

[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

[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

[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: 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
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. >&

[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:

[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

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

2013-09-01 Thread anatoly techtonik
anatoly techtonik added the comment: None that I know of. -- ___ Python tracker <http://bugs.python.org/issue18553> ___ ___ Python-bugs-list mailing list Unsub

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

2013-07-25 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker <http://bugs.python.org/issu

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

2013-07-25 Thread anatoly techtonik
New submission from anatoly techtonik: It seems like os.isatty(0) works on Windows too. Documentation says Unix only: http://docs.python.org/2/library/os.html#os.isatty http://docs.python.org/3.4/library/os.html#os.isatty C:\>py -c "import os; print os.isatty(0)" True C:\&

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread anatoly techtonik
anatoly techtonik added the comment: If you need a better use case for DictRecord, urlparse is another one. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread anatoly techtonik
anatoly techtonik added the comment: Do not hijack the issue - value interpretation is the next step, which better keep out of scope for this improvement. termios is a C interface, which documents the meaning of TIOCGWINSZ and has defined names for structure entries, such as lflag. This issue

[issue18535] termios.tcgetattr should return namedtuple

2013-07-23 Thread anatoly techtonik
anatoly techtonik added the comment: I've made my own monster, attached. -- Added file: http://bugs.python.org/file31026/DictRecord.py ___ Python tracker <http://bugs.python.org/is

[issue18535] termios.tcgetattr should return namedtuple

2013-07-23 Thread anatoly techtonik
anatoly techtonik added the comment: Actually namedtuple doesn't suit the use case well. The use case is to read termios config, (re)set flags set it back. The attributes should be mutable. -- ___ Python tracker <http://bugs.python.org/is

[issue18535] termios.tcgetattr should return namedtuple

2013-07-23 Thread anatoly techtonik
New submission from anatoly techtonik: Names of field for tuple returned by tcgetattr are already in documentation at http://docs.python.org/2/library/termios.html It would be nice to get them into code. -- components: Library (Lib) messages: 193595 nosy: techtonik priority: normal

[issue5845] rlcompleter should be enabled automatically

2013-06-26 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker <http://bugs.python.org/issue5845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue706263] print in pythonw raises silent exception when no console available

2013-06-26 Thread anatoly techtonik
anatoly techtonik added the comment: This is still an issue for Python 2 users. Most important that pythonw.exe has a magic ability to fail silently leaving users with no means to create valid bug reports (the reason why StackOverflow questions are downvoted and erased). http://bugs.ascend4

[issue18298] pythonw.exe fails with redirected stderr

2013-06-26 Thread anatoly techtonik
anatoly techtonik added the comment: I am not using pythonw.exe, it is the option users prefer to run the program. pythonw.exe is a binary, how do you propose to patch that? Or is it translated to .exe with RPython? Can you be more specific what shell does not work correctly, what exactly

[issue18298] pythonw.exe fails with redirected stderr

2013-06-25 Thread anatoly techtonik
anatoly techtonik added the comment: It is not about modifying Python in general, it is about patching pythonw.exe or subprocess or documenting how to make subprocess calls compatible with pythonw.exe "don't use pythonw.exe in a console" And how to debug the issue? Maybe th

[issue18298] pythonw.exe fails with redirected stderr

2013-06-25 Thread anatoly techtonik
anatoly techtonik added the comment: This was meant to be a separate issue. :/ -- ___ Python tracker <http://bugs.python.org/issue18298> ___ ___ Python-bugs-list m

[issue18298] pythonw.exe fails with redirected stderr

2013-06-25 Thread anatoly techtonik
anatoly techtonik added the comment: This subprocess.communicate() call fails with pythonw.exe --cut testhg.py-- import subprocess hg = "hg" output, _err = subprocess.Popen([hg, 'id', '-nib'], stdout=subprocess.PIPE).communicate() open(&q

[issue18298] pythonw.exe fails with redirected stderr

2013-06-25 Thread anatoly techtonik
Changes by anatoly techtonik : -- components: +Windows ___ Python tracker <http://bugs.python.org/issue18298> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18298] pythonw.exe fails with redirected stderr

2013-06-25 Thread anatoly techtonik
Changes by anatoly techtonik : -- title: pythonw.exe fails with redirected stdett -> pythonw.exe fails with redirected stderr ___ Python tracker <http://bugs.python.org/issu

[issue18298] pythonw.exe fails with redirected stdett

2013-06-25 Thread anatoly techtonik
New submission from anatoly techtonik: ---cut test.py--- print("-1-") open("-2-", "w").write("-3-") ---cut test.py--- > C:\Python27\pythonw.exe test.py > -4- > type -4- -1- > C:\Python27\pythonw.exe test.py 2> -4- > type -4- close f

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

2013-06-23 Thread anatoly techtonik
anatoly techtonik added the comment: @Pierre.Raybaut: Looking at the stage of this ticker, I believe you need to write unittest. Then attach a patch. If patch is attached, the issue is more visible among developers. -- ___ Python tracker <h

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

2013-06-23 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker <http://bugs.python.org/issue13276> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9097] os.chdir(path) to return current dir

2013-06-23 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Jun 23, 2013 at 4:32 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > > "an anti-pattern" and "encouraging a bad habit" are subjective > non-arguments as long as they fail to answer why. >

[issue9097] os.chdir(path) to return current dir

2013-06-23 Thread anatoly techtonik
anatoly techtonik added the comment: "an anti-pattern" and "encouraging a bad habit" are subjective non-arguments as long as they fail to answer why. With or without the helper you still write this code: prev = os.getcwd() os.chdir(SDKPATH) ... os.chdi

[issue9097] os.chdir(path) to return current dir

2013-06-23 Thread anatoly techtonik
anatoly techtonik added the comment: ..and still I miss: with os.chdir(path): do_something() -- ___ Python tracker <http://bugs.python.org/issue9097> ___ ___

[issue18269] Add new parameter format for converter function w/ position number

2013-06-21 Thread anatoly techtonik
anatoly techtonik added the comment: This is more sophisticated that I thought. Thank for the explanation. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18269] Clarify which integer is required in os.chmod() exception

2013-06-20 Thread anatoly techtonik
anatoly techtonik added the comment: Right. This report is about improving error message. It doesn't say what is expected where. If you have a call like: os.fchmod(outfile, unixperm) it is easy to assume that unixperm is not integer, while in fact the problem is in outfile. This

  1   2   3   4   5   6   7   8   9   10   >