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
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
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
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
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
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
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'
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
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
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
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.
>>>
anatoly techtonik added the comment:
In fact it may be the documentation that could be merged.
--
___
Python tracker
<http://bugs.python.org/issue19557>
___
___
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
anatoly techtonik added the comment:
https://greentreesnakes.readthedocs.org/en/latest/
--
___
Python tracker
<http://bugs.python.org/issue19557>
___
___
Pytho
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
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
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
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
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
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
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
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
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
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
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
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
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
anatoly techtonik added the comment:
Added issue19454 to settle this down.
--
___
Python tracker
<http://bugs.python.org/issue19377>
___
___
Python-bugs-list m
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
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
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
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
Changes by anatoly techtonik :
--
resolution: rejected ->
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue19124>
___
___
Python-bugs-
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
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
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
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
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
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
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
Changes by anatoly techtonik :
Added file: http://bugs.python.org/file31905/testexecvchild.py
___
Python tracker
<http://bugs.python.org/issue19124>
___
___
Python-bug
anatoly techtonik added the comment:
s/same behavior/same command/
--
___
Python tracker
<http://bugs.python.org/issue19124>
___
___
Python-bugs-list mailin
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
anatoly techtonik added the comment:
It should be documented somehow then. At least in the field tooltip.
--
___
Python tracker
<http://bugs.python.org/issue19
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
anatoly techtonik added the comment:
tag:easy
--
___
Python tracker
<http://bugs.python.org/issue19061>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
tag:easy (meaning, please mark it as easy for OpenHatch robots)
--
___
Python tracker
<http://bugs.python.org/issue19
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
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
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
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
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.
>&
anatoly techtonik added the comment:
tag:easy
--
___
Python tracker
<http://bugs.python.org/issue19024>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
anatoly techtonik added the comment:
None that I know of.
--
___
Python tracker
<http://bugs.python.org/issue18553>
___
___
Python-bugs-list mailing list
Unsub
Changes by anatoly techtonik :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker
<http://bugs.python.org/issu
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:\&
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
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
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
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
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
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue5845>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
anatoly techtonik added the comment:
This was meant to be a separate issue. :/
--
___
Python tracker
<http://bugs.python.org/issue18298>
___
___
Python-bugs-list m
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
Changes by anatoly techtonik :
--
components: +Windows
___
Python tracker
<http://bugs.python.org/issue18298>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by anatoly techtonik :
--
title: pythonw.exe fails with redirected stdett -> pythonw.exe fails with
redirected stderr
___
Python tracker
<http://bugs.python.org/issu
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
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
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13276>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
>
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
anatoly techtonik added the comment:
..and still I miss:
with os.chdir(path):
do_something()
--
___
Python tracker
<http://bugs.python.org/issue9097>
___
___
anatoly techtonik added the comment:
This is more sophisticated that I thought. Thank for the explanation.
--
___
Python tracker
<http://bugs.python.org/issue18
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 - 100 of 977 matches
Mail list logo