anatoly techtonik added the comment:
Yes. You're missing the second case. In:
> regrtest [options] test_file.test_method
You don't specify class name. This saves some time you need to navigate and
copy/paste name of container class. It will save more time if masks are used by
New submission from anatoly techtonik :
>From xml.etree.ElementTree.Element docs it is not obvious that find() and
>fundall() functions all return immediate children of current element.
--
messages: 129845
nosy: techtonik
priority: normal
severity: normal
status: open
Changes by anatoly techtonik :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
See also http://diveintopython3.org/xml.html#xml-find
--
___
Python tracker
<http://bugs.python.org/issue11366>
___
___
Pytho
New submission from anatoly techtonik :
ElementTree.find(path) docs say:
"Finds the first toplevel element with given tag. Same as getroot().find(path).
path is the element to look for."
That's not true. path can take the form of "//tag" to find any child element
wit
New submission from anatoly techtonik :
There is no way to get parent element from xml.etree.ElementTree.Element. This
is one of the essential functions for XML support.
--
components: XML
messages: 129848
nosy: techtonik
priority: normal
severity: normal
status: open
title
anatoly techtonik added the comment:
That's not a good reason to close report. Such limitations of
xml.etree.ElementTree should be at least documented properlt. And even
documented it is still a valid feature request for standard library. Not for
current implementation, but perhap
New submission from anatoly techtonik :
TextTestRunner has a run method, which is not documented. It is also is not
clear how to add suite to TextTestRunner to be executed later by unittest.main()
--
assignee: docs@python
components: Documentation, Tests
messages: 129988
nosy: docs
New submission from anatoly techtonik :
I can't find a way to execute DocTests contained in a separate README.txt file
using unittest.main() function. That doesn't allow to control verbosity for
debugging.
I am doing it this way in the tests.py
import doctest
import unittest
i
New submission from anatoly techtonik :
doctest module need to parse -h/--help parameters, and accept flags like
ELLIPSIS from command line. Otherwise it very hard to debug tests like
contained in the attached README.
It is also worth to make it parameter compatible with unittest.main
New submission from anatoly techtonik :
Changelog for Python 3.2 contains this paragraph:
"- Issue #7962: The Demo directory is gone. Most of the old and unmaintained
demos have been removed, others integrated in documentation or a new Tools/demo
subdirectory."
However, there i
anatoly techtonik added the comment:
Not present on Windows. See also issue #11394
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue10
anatoly techtonik added the comment:
See also #10502.
--
___
Python tracker
<http://bugs.python.org/issue11394>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
I still struggling to find a way to apply
http://effbot.org/zone/element.htm#accessing-parents in my specific case.
Unfortunately, it doesn't seem trivial to me.
--
___
Python tracker
<http://bugs.py
anatoly techtonik added the comment:
Explicit request for inclusion? What kind of bureaucracy are you up to?
Do you have a full list of missing or not included directories for various
distributions? I'm sure many are curious to review
anatoly techtonik added the comment:
Something to think about for future examples.
--
___
Python tracker
<http://bugs.python.org/issue11385>
___
___
Python-bug
anatoly techtonik added the comment:
I need to execute doctests along with unit tests from test suite contained in
tests.py file and control verbosity parameter in case something goes wrong.
--
___
Python tracker
<http://bugs.python.org/issue11
New submission from anatoly techtonik :
print() function for some reason buffers output on Windows if end!='\n'.
In attached examples "Processing.. " string is shown in Python 3.2 only after
the actual processing is finished, while in Python 2.6 it is shown befor
Changes by anatoly techtonik :
Added file: http://bugs.python.org/file21334/printtest2.py
___
Python tracker
<http://bugs.python.org/issue11633>
___
___
Python-bugs-list m
anatoly techtonik added the comment:
>From my perspective it is a regression on Windows and a bug in Linux version
>of Python 2.x, which unfortunately can not be fixed, because of 2.x release
>process.
If the fact that print statement doesn't output anything when called is not
anatoly techtonik added the comment:
How about making print() user-friendly with flushing after every call, and if
you want explicitly want speed - use buffered sys.stdout.write/flush()?
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
You must realize that the most common use case for print(..., end!='\n') is
when you want to notify user about intermediate progress of a very long
operation.
Making documentation for simple print() statement overloaded with low level
bufferi
New submission from anatoly techtonik :
2to3 converts raw_input() calls into input(), and input() runs all user data
through eval(). This opens a hole in previously secure Python2.x applications.
Is the author of this change aware of the issue?
--
components: 2to3 (2.x to 3.0
Changes by anatoly techtonik :
Added file: http://bugs.python.org/file21348/python3-security.py
___
Python tracker
<http://bugs.python.org/issue11641>
___
___
Python-bug
anatoly techtonik added the comment:
Sorry. I've incidentally run converted file with Python 2.x.
To avoid future confusions, should there be a reference in 2to3 docs to the
behavior change for input() function?
>From http://docs.python.org/library/2to3#2to3fixer-raw_input t
New submission from anatoly techtonik :
Docs say that input() should strip trailing newline, but on Windows it doesn't
happen.
http://docs.python.org/py3k/library/functions.html#input
Python 2.x Windows
>>> raw_input()
xyz
'xyz'
>>>
Python 3
New submission from anatoly techtonik :
http://docs.python.org/library/2to3.html#using-2to3 contains an example.py
sample which is claimed to be Python 2.x source, but that's not true:
def greet(name):
print "Hello, {0}!".format(name)
print "What's your name?"
Changes by anatoly techtonik :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker
<http://bugs.python.org/issu
New submission from anatoly techtonik :
msvcrt function calls need to be renamed to unicode equivalents, because now
they return bytes, which doesn't support string methods used to process the
output (e.g. lower()).
http://docs.python.org/py3k/library/msvcrt.html
msvcrt.
anatoly techtonik added the comment:
Then the docs should say that this is the 2.6 code, not 2.x
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
I can't find where it is recommended to move code to Python 2.7 before porting.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
There is no such PEP - http://www.python.org/dev/peps/pep-0397/
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard wrote:
>
> I see though that vi puts the full name and version before the usage (which
> is currently impossible in argparse):
That was exactly my use case, which I'd say is very common for s
anatoly techtonik added the comment:
On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard wrote:
> I guess we could add, say, a headline= option to ArgumentParser which would
> then be printed before the usage message if it's really crucial to have that
> message first... I'
anatoly techtonik added the comment:
On Sat, Mar 26, 2011 at 2:28 PM, Steven Bethard wrote:
>
> I'm not sure about the usage_template approach - seems like it might be hard
> to make it work, while still supporting formatter_class. (Though maybe it's
> not so bad sin
Changes by anatoly techtonik :
--
assignee: -> docs@python
components: +Devguide, Documentation -None
nosy: +docs@python
title: Add "communication" FAQ to devguide -> Devguide: Add "communication" FAQ
___
Python tracke
anatoly techtonik added the comment:
Is there any tool to see how it works step-by-step. The whole stuff is
extremely interesting, but I can't fit all the details of AST processing in my
head.
--
nosy: +techtonik
___
Python tracker
New submission from anatoly techtonik :
I've just realized that unittest doesn't provide a way to test arguments of
exception thrown during assertRaises check.
--
components: Tests
messages: 132919
nosy: techtonik
priority: normal
severity: normal
status: open
title:
anatoly techtonik added the comment:
Looks like a hack (and not the obvious one). I guess no asserts return values
like this, so that usage is not really intuitive for me.
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
I found that successful assert in twisted returns exception object. But thanks
for workaround anyway.
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
I've also found #9587. Now I wonder how many people requested return vs
context, and how many would vote for one vs another. Nothing personal - just a
pure curiosity.
--
___
Python tracker
anatoly techtonik added the comment:
Thanks for clarification, Ezio. I am still using Python 2.7 - that's why I've
missed this part.
--
___
Python tracker
<http://bugs.python.o
anatoly techtonik added the comment:
Is there any workaround we can use in setup.py to set correct version for
build_msi subcommand only?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue6
anatoly techtonik added the comment:
Metadata can be automatically figured out using regexp matching like
^\d+(\.\d+){2,3}, but for explicit handling there should be should some
callback or msi-specific version property in metadata. In the end it is pretty
logical if binary distribution
anatoly techtonik added the comment:
Wrong code. The last line in the bdist_msi_version_hack override should be:
self.distribution.metadata.version = saved
--
___
Python tracker
<http://bugs.python.org/issue6
anatoly techtonik added the comment:
The above workaround still doesn't isolate version modification to bdist_msi
command, because bdist_msi is calling `build` and `install` targets before
doing its own stuff.
Any ideas how to override version for MSI without copying while `bdis
anatoly techtonik added the comment:
s/while/whole/
Sorry.
--
___
Python tracker
<http://bugs.python.org/issue6040>
___
___
Python-bugs-list mailing list
Unsub
New submission from anatoly techtonik :
types.MethodType(function, instance) is used as a replacement for
new.instancemethod(function, instance, class), but this usage is not documented.
--
assignee: docs@python
components: Documentation
messages: 133089
nosy: docs@python, techtonik
anatoly techtonik added the comment:
All right. The ultimate solution:
{{{
# Imports for converting version to MSI format for bdist_msi
from distutils.command.bdist_msi import bdist_msi
import inspect
import types
...
class bdist_msi_patch_version(bdist_msi):
""" MSI b
anatoly techtonik added the comment:
2011/4/6 Jesús Cea Avión :
>
> Jesús Cea Avión added the comment:
>
> Some more references:
>
> Read the notes under the slides:
> https://dgl.cx/2011/01/dtrace-and-perl
>
> https://dgl.cx/dtrace
>
> http://dtrace.org/blog
anatoly techtonik added the comment:
Is it possible to add tl;dr chapter to this document. I am especially
interested in extensive logging (to debug problems etc.)
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
Message is classified as spam. I am not sure if you see it.
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
Nevermind about #6040 - I just used the same technique to provide a workaround
and then remembered I've seen this recipe on StackOverflow.
To me types is the right place, because that's exactly where are you sent from
the docs of new module:
anatoly techtonik added the comment:
What for? IIUC, it won't be fixed in distutils anyway.
--
___
Python tracker
<http://bugs.python.org/issue6040>
___
___
anatoly techtonik added the comment:
Feel free to copy this report for a clear user story -
http://twistedmatrix.com/trac/ticket/5024
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from anatoly techtonik :
The following command is broken on Python 2.5/2.6
python -m unittest test_file
It outputs
--
Ran 0 tests in 0.000s
OK
But in Python 2.7 the same command works
New submission from anatoly techtonik :
http://docs.python.org/install/index.html#how-installation-works
Correct standard installation location for third-party modules on Windows for
Python 2.x is
prefix/Lib/site-packages
--
assignee: docs@python
components: Documentation
messages
anatoly techtonik added the comment:
Other Windows prefixes are probably wrong too.
--
___
Python tracker
<http://bugs.python.org/issue11834>
___
___
Python-bug
anatoly techtonik added the comment:
How about 'easy' keyword?
--
___
Python tracker
<http://bugs.python.org/issue11834>
___
___
Python-bugs-l
anatoly techtonik added the comment:
Target auditory for the `easy` keyword are largely unaware of this fact. It
also may keep people off if they run into uneasy doc problem.
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
JSON is not file format, it is data-interchange format.
--
___
Python tracker
<http://bugs.python.org/issue9101>
___
___
anatoly techtonik added the comment:
Right.
--
___
Python tracker
<http://bugs.python.org/issue9101>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
But having a reference from File Formats will help people find this information
easier.
--
___
Python tracker
<http://bugs.python.org/issue9
anatoly techtonik added the comment:
These people look for alternative configuration format to .ini, for example.
--
___
Python tracker
<http://bugs.python.org/issue9
anatoly techtonik added the comment:
Wow. That's much better - python makes progress. Does this `robot` stuff flies
back to Roundup? Is it possible to specify "closes bug #9101" directly in
commit message?
--
___
Python
anatoly techtonik added the comment:
Awesome. Especially links to actual changesets. BTW, there are only backport
commits - where is the notification about the main one?
--
___
Python tracker
<http://bugs.python.org/issue9
anatoly techtonik added the comment:
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue9101>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
#6514 is to make `-m unittest` work run on 2.5/2.6.
This bug is not to fix it, but to stop displaying confusing messages. It will
be enough to exit with a message like:
"`-m unittest` call is not supported in Python 2.5/2.6 - use something else
anatoly techtonik added the comment:
I need a "why-python-suxx" keyword to point people with dumb questions about
why they should not use specific Python versions to a query that lists all
sensitive issues for this specific version that won't be fixed due to security
anatoly techtonik added the comment:
I know. But stuff like this is necessary for proper release management and
future planning. Using "why-python-suxx per module" ™ metric, it is possible to
pinpoint badly designed parts that should be removed or replaced
New submission from anatoly techtonik :
I want to be able to jump from latest Python 2 docs to the same page in stable
Python 3 doc in one click. E.g. from http://docs.python.org/library/string.html
to http://docs.python.org/py3k/library/strings.html
--
assignee: docs@python
anatoly techtonik added the comment:
sorry, to http://docs.python.org/py3k/library/string.html
--
___
Python tracker
<http://bugs.python.org/issue11911>
___
___
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue8040>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik :
I know this is a minor bug, but still.. Windows allows creation of filenames
like "use MoveBufferArea " (note space at the end). When such file is present
in current directory, `setup.py sdist` fails with `error: use MoveBufferArea :
The sys
Changes by anatoly techtonik :
--
title: fail if file with space at the end is present -> fail on filename with
space at the end
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
The mere presence of this file in directory with setup.py files this error. It
is not added in any files.
--
___
Python tracker
<http://bugs.python.org/issue11
anatoly techtonik added the comment:
>python setup.py sdist
{{{
Distribution.parse_config_files():
options (after parsing config files):
no commands known yet
options (after parsing command line):
option dict for 'sdist' command:
{}
running sdist
Distribution.get_command_ob
anatoly techtonik added the comment:
It's always a pleasure. ;)
--
___
Python tracker
<http://bugs.python.org/issue11834>
___
___
Python-bugs-list m
New submission from anatoly techtonik :
On Windows, if Python is unable to find its .dll it crashes badly. This affects
`vurtualenv` project that doesn't copy .dll file. It would be more user
friendly if python.exe launcher could detect this situation and fail gracefully.
Such kind of dy
anatoly techtonik added the comment:
pythonXX.dll is missing. Virtualenv copies python.exe, which is only 25kB long.
It works only if pythonXX.dll is present in system PATH - either installed into
Windows\System32 or comes with Mercurial, Bazaar or other frozen app install
anatoly techtonik added the comment:
As for PEPs I think you've meant PEP 397
http://www.python.org/dev/peps/pep-0397/ which is tl; dr for the moment.
--
___
Python tracker
<http://bugs.python.org/is
New submission from anatoly techtonik :
Currently, PEPs have only hash number, which doesn't explain about how many
changes were done to the PEP since my last review. It will be convenient to
have consecutive revision number for PEP edits and link it to short history log
(like wiki hi
anatoly techtonik added the comment:
Reopening as I believe the issue is hijacked. Virtualenv is just an example and
the fix is discussed on its mailing list.
This issue is about that Python interpreter is not self-contained, not
portable, i.e. split into python.exe and pythonXX.dll The only
anatoly techtonik added the comment:
On Mon, Nov 22, 2010 at 3:59 PM, Éric Araujo wrote:
>
> Using either /home/user or tempfile depending on the example seems good to me.
There is no /home/user on Windows.
--
___
Python tracker
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
This one is bug.
--
___
Python tracker
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
As I can't reopen this issue, I'd like to ask for another opinion before
closing this ticket. I think it's closed prematurely. For the bare minimum
there should be a link to corresponding issue in dis
New submission from anatoly techtonik :
http://docs.python.org/library/queue.html
--
assignee: d...@python
components: Documentation
messages: 123677
nosy: d...@python, techtonik
priority: normal
severity: normal
status: open
title: Link to source code is broken
versions: Python 2.7
New submission from anatoly techtonik :
When a new revision is committed to documentation, it will be nice to have hook
scripts that start documentation build process on development server.
Another hook script may also analyze commit message, extract ticket number,
branch and revision from
New submission from anatoly techtonik :
When searching docs (e.g. for
http://docs.python.org/dev/search.html?q=unicode&check_keywords=yes&area=default)
I'd like to filter out C API.
--
assignee: d...@python
components: Documentation
messages: 123719
nosy: d...@pyth
anatoly techtonik added the comment:
label:interop
--
___
Python tracker
<http://bugs.python.org/issue10670>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue8927>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik :
When an extension could not be loaded, because it requires some DLL that is
missing, Python shows the following error message:
ImportError: DLL load failed: The specified module could not be found.
It will help tremendously in debugging extension
New submission from anatoly techtonik :
Need documentation for ImportError parameters and exception instance attributes.
--
assignee: d...@python
components: Documentation
messages: 125655
nosy: d...@python, techtonik
priority: normal
severity: normal
status: open
title: documentation
New submission from anatoly techtonik :
Need ImportError.module attribute to get the name of failed import. Right now
it requires parsing ImportError.args that is presented in form "('No module
named zqwer',)" that is not pythonic.
--
messages: 125656
nosy: techto
anatoly techtonik added the comment:
Thanks for the pointer. I couldn't find it myself.
--
___
Python tracker
<http://bugs.python.org/issue10857>
___
___
anatoly techtonik added the comment:
I think we should investigate deeper why this enhancement request didn't get
into Python 3.
Another user story is: "from xxx import yyy", if yyy not found, the args
message is ('cannot import name yyy',)
Python4?
label:api
--
anatoly techtonik added the comment:
Can you cross reference the part of code where this error is catched?
Why Python can't get information about the reason .DLL is not loaded?
Is it at least possible to add a hook point at the exact time the import fails
to insert component that is ab
anatoly techtonik added the comment:
ImportError has args and message attributes containing failed module name.
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
I see. But depends.exe dependency walker somehow finds the exact code that is
failing, so there should be a way to do extra investigation in case of error.
py2exe has a custom .dll loader that bypasses LoadLibrary(Ex) calls from that I
can see at http
101 - 200 of 977 matches
Mail list logo