anatoly techtonik added the comment:
Damn it. I've run 2to3 during setup.py phase and went smoothly, but when I run
examples the package fails.
It should at least warn about this "import new". It should not be that hard to
catch.
--
n
New submission from anatoly techtonik :
This scenario fails:
python setup.py install
python3 setup.py install
Because it seems like code once built for Python 2 is not rebuild when
installing for Python 3.
--
assignee: eric.araujo
components: Distutils, Distutils2
messages: 166109
New submission from anatoly techtonik :
http://docs.python.org/py3k/library/2to3.html
should mention the practice of running 2to3 in setup.py for codebase
compatible with both Python 2 and Python 3.
--
assignee: docs@python
components: Documentation
messages: 166108
nosy: docs
anatoly techtonik added the comment:
I agree that reading the source doesn't make it clear how to extend or use PDB,
so I've changed the title. High level overview is required.
I think an example would really help there. For instance a simple execution
scroller - analogue of `pytho
anatoly techtonik added the comment:
Eric, you're refering to argument:
> -1 Even if diff.py is not exaclty a diff replacement, it still makes
> sense to emulate what's in people's minds.
Could you explain it in your own words, because I don't posess the skills to
anatoly techtonik added the comment:
> The reasons for rejecting this still apply.
Which specifically are valid for 3.3?
--
___
Python tracker
<http://bugs.python.org/iss
anatoly techtonik added the comment:
Thanks. I am glad OS TZ support finally issue took off. =)
--
___
Python tracker
<http://bugs.python.org/issue7582>
___
___
anatoly techtonik added the comment:
Reopening for Python 3. Does anybody still use context diffs nowadays?
--
status: closed -> open
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/iss
anatoly techtonik added the comment:
Now I get it. That's much better. Thanks. =)
After rereading the description with this new info I spot that __main__ is
called a module, which is not true, because it is only a module name. It makes
sense to enclose it in quotes in title as well.
anatoly techtonik added the comment:
Ok, the "language is not clear enough" is the queasily polite, serious and
corteous substitution for "abusive language" in the title of this issue.
Can you translate it to simple english?
--
__
anatoly techtonik added the comment:
Maybe "abusive language" is not the right translation from Russian. It could be
"coarse language" or "foul language".
--
___
Python tracker
<
anatoly techtonik added the comment:
It is abusive for those who don't get the meaning. Can you translate it to
simple english?
--
___
Python tracker
<http://bugs.python.org/is
New submission from anatoly techtonik :
http://docs.python.org/library/__main__.html
"It is this environment in which the idiomatic “conditional script” stanza
causes a script to run"
?!?
--
assignee: docs@python
components: Documentation
messages: 163140
nosy: docs@python,
anatoly techtonik added the comment:
I must add - many times better than no solution at all.
--
___
Python tracker
<http://bugs.python.org/issue7584>
___
___
anatoly techtonik added the comment:
On Wed, Jul 14, 2010 at 1:52 AM, Alexander Belopolsky
wrote:
> I am still -1 on adding specialized formatting methods to the datetime class.
> I think this should be done in specialized modules.
No problem - add "formats" module and I
New submission from anatoly techtonik :
http://docs.python.org/library/socket.html
s/integral/integer/
--
assignee: docs@python
components: Documentation
messages: 162720
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: docs: socket typo
anatoly techtonik added the comment:
And I certainly don't agree with you that usability changes in API are not use
cases.
--
___
Python tracker
<http://bugs.python.org/i
anatoly techtonik added the comment:
I'd say no consensus was reached due to lack of participation. My enthusiasm
was killed by the issue8903 resolution.
My opinion is that:
datetime.time.now()
is much better than:
datetime.datetime.now()
anatoly techtonik added the comment:
The fix for saving/restoring trace function belong to subprocess module.
Python2 only issue will be actual when you have to port Python2 only app where
it works ok to the Python3 where it doesn't work even if it executes
success
anatoly techtonik added the comment:
Is it possible to pause trace and resume after the exec call? Between some
missing instructions from subprocess internals and traceability of the Python
programs I'd choose the latter.
It can be even more actual for people tracing program execution i
anatoly techtonik added the comment:
OMG. =) Is it possible to fix it somehow? Postpone output collection until the
very exec() call? Or provide a different stream for collecting output?
--
___
Python tracker
<http://bugs.python.org/issue15
anatoly techtonik added the comment:
The behavior repeats with PyPy 1.8.0, and doesn't repeat with Python 3.
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/is
New submission from anatoly techtonik :
This code dumps a lot of internal source code info when executed with trace as:
python -m trace --trace file2.py
---[file2.py]
import subprocess
def ret():
output = subprocess.check_output(['hg', 'id', '-nib'])
p
New submission from anatoly techtonik :
http://docs.python.org/library/pdb.html#pdb.Pdb
Documentation for pdb says: "The debugger is extensible — it is actually
defined as the class Pdb. This is currently undocumented but easily understood
by reading the source."
There should a l
anatoly techtonik added the comment:
1. Why not to add aliases?
2. Why not to postpone it to 3.4?
3. Why PEP change is a heavy process? Can we lighten it? (where is the
description is PEP change process at all)
--
status: closed -> pend
New submission from anatoly techtonik :
home_page is too conservative, ugly and requires more time typing. "home page"
is also 2.15 times less popular that "homepage" spelling
http://www.google.com/trends/?q=%22home+page%22,+%22homepage%22
Writing setup.cfg files for hum
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue4755>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik :
http://docs.python.org/library/subprocess.html#exceptions documentation is
wrong at least for the case when shell=True on Linux. An attempt to execute a
non-existent file with:
process = subprocess.Popen("sdfsdf", shell=True, stdout=subpr
anatoly techtonik added the comment:
What is the status? What is required to get this into 3.3? See also issue14872.
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue1191
anatoly techtonik added the comment:
The problem with memory is more actual for machines with SSD where swap is
usually turned off and /tmp files are located on memory disk. Hitting memory
limit often means hard reset.
My process is pretty generic that uses all streams, and I don't kno
New submission from anatoly techtonik :
There is no way to write a program in Python capable to process large/unlimited
output coming from a subprocess stream without deadlocks.
http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate
"Note The data read is buffer
anatoly techtonik added the comment:
I am trying to get what's the proposed standard for users right now? How are
you going to define dependencies in distutils2?
--
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
PEP 345 completely misses practical side. I need to specify dependencies for my
package, so that people who checked out the source code could run `pip install
.` in virtualenv and get everything fetched.
People reading the docs are more practical. What is
anatoly techtonik added the comment:
You've nailed it. I think it is important to know that `requires` is unused.
Still this parameter is already present in documentation and causes a lot of
trouble (at first I thought there is a bug with pip).
Can we still have proper comment explainin
anatoly techtonik added the comment:
It doesn't seem that requires parameter is honored by pip. Should we document
install_requires instead?
--
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
I still need requires example - here.
http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
- after "Dependencies.." paragraph. =)
setup(...,
requires=["somepackage (>1.0, !=1.5)"],
anatoly techtonik added the comment:
Well, there is argparse, but it doesn't support method chaining. Whatever, it
is just a proposal. If consistency inside stdlib covers calling conventions for
bundled user-level libs - I am fine with
anatoly techtonik added the comment:
s/can/can't/
--
___
Python tracker
<http://bugs.python.org/issue14760>
___
___
Python-bugs-list mailing list
Unsubsc
anatoly techtonik added the comment:
Well, I can remember any other widely used high level objects from stdlib
either. HTTP servers perhaps, but they are in a poor state.
--
___
Python tracker
<http://bugs.python.org/issue14
anatoly techtonik added the comment:
List is a standard type and it have None returned for a reson. Logging is a
library with its own semantic and high level object. Here you don't need to
return None to explicitly say that the object was modified in
New submission from anatoly techtonik :
It would be convenient if instead of:
hdlr = logging.StreamHandler()
hglr.setLevel(logging.DEBUG)
root.addHandler(hdlr)
it would be possible to write:
root.addHandler(logging.StreamHandler().setLevel(logging.DEBUG
Changes by anatoly techtonik :
--
nosy: -techtonik
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik :
Some notes about current `traceback` documentation:
http://docs.python.org/library/traceback.html
1. It needs a mentioning that traceback module works with traceback objects and
frame objects
2. Functions that work with frames should probably be grouped
New submission from anatoly techtonik :
socket.get/setsockopt() docs can be improved by providing description for
SOL_SOCKET constant, and link to source code for other level constants and
socket level options.
--
assignee: docs@python
components: Documentation
messages: 156140
nosy
New submission from anatoly techtonik :
main.py below fails to execute local.py, which work ok (outputs '2') when
processed directly in console.
Docs are not explaining anything. They spread fear and uncertainty around
locals, but nothing is said why globals may fail.
http://docs.
anatoly techtonik added the comment:
Perfectionist in me says that now copy.copy theory should be diluted with
examples for those who can't grasp the concept of "binding of variables", but
the patch perfectly covers the original use
anatoly techtonik added the comment:
All right, I've found some time to grep conversation related to COLUMNS/ROWS
environment/shell variable.
+1 for low level system wrapper to get current stdout console size
-1 on COLUMN/ROWS "business logic"
My user story 001:
I need exa
anatoly techtonik added the comment:
On Tue, Jan 31, 2012 at 7:48 PM, Zbyszek Szmek wrote:
>
> Zbyszek Szmek added the comment:
>
> > the Python script is executed. Will get_terminal_size()
> > return new value?
> Please see previous discussion and the docs (and the
anatoly techtonik added the comment:
What happens with COLUMNS env variables if terminal is resized after the Python
script is executed. Will get_terminal_size() return new value?
--
___
Python tracker
<http://bugs.python.org/issue13
anatoly techtonik added the comment:
Terminal stuff is irrelevant to `shutil`, which is the module for 'High-level
file operations' and deserve a separate module named 'console'.
Why? Because terminal size is only relevant when you want to page output. The
next step w
anatoly techtonik added the comment:
What do you mean by saying it is not limited for interactive use? I thought it
is used to provide command prompt for typing commands. What other use cases
does it support?
--
status: pending -> open
___
Pyt
New submission from anatoly techtonik :
http://docs.python.org/library/cmd.html#
Documentation for cmd module is poor to explain the value of this module to
users. Intro is too abstract - phrase "simple framework for writing
line-oriented command interpreters" doesn't mean muc
anatoly techtonik added the comment:
I am an almost complete 0 in C system programming and in DTrace matters,
but I feel like DTrace has a potential to help me understand internal
CPython processes better. If maintenance of the code with DTrace is hard,
there are several ways to make it easier
anatoly techtonik added the comment:
I am not discussing "printing to file", so my 0.02 is that "flush=True" should
be made default for print() with sys.stdout, because it is probably what users
expect when calling this function.
If somebody needs buffering/cache or more
anatoly techtonik added the comment:
> Making documentation for simple print() statement overloaded with low level
> buffering details makes language seem overly complicated for new users.
Why don't anybody require referenc
anatoly techtonik added the comment:
On Mon, Jan 9, 2012 at 2:03 PM, Terry J. Reedy wrote:
>
> Terry J. Reedy added the comment:
>
> No, I don't think so. Another issue will not magically create more time
> for anyone.
>
But anyone will waste less time to get to th
anatoly techtonik added the comment:
I've tried to switch to Python 3 once more and stumbled upon this problem once
more.
Seems like this regression got stale. Last Victor's proposal seems reasonable
for me. Should we open a new, more clear bug report and clos
anatoly techtonik added the comment:
Can't test right now.
--
___
Python tracker
<http://bugs.python.org/issue13615>
___
___
Python-bugs-list mailing list
anatoly techtonik added the comment:
On Fri, Dec 23, 2011 at 10:35 PM, Antoine Pitrou wrote:
> > os.rename(overwrite=False) by default will do less harm than the
> opposite,
>
> Disagreed.
>
Fine. No arguments == no consensus.
> > Then I believe that having a small ch
anatoly techtonik added the comment:
2011/12/23 Charles-François Natali
>
> Charles-François Natali added the comment:
>
> > I propose quite the opposite. rename() should not overwrite existing
> > files by default.
>
> 1. That's not what I understood from:
anatoly techtonik added the comment:
2011/12/23 Charles-François Natali
>
> > One of the Python advantages is providing predictable cross-platform
> > behavior. If we can't introduce nice API without BC break, it is not
> > a reason to introduce ulgy API.
>
> W
anatoly techtonik added the comment:
One of the Python advantages is providing predictable cross-platform behavior.
If we can't introduce nice API without BC break, it is not a reason to
introduce ulgy API.
--
___
Python tracker
anatoly techtonik added the comment:
os.rename(overwrite=True) to produce consistent cross-platform behavior.
--
___
Python tracker
<http://bugs.python.org/issue8
New submission from anatoly techtonik :
http://docs.python.org/library/termios.html is missing documentation for ICANON
flag used to put terminal to "raw" mode.
It is also worth to place `termios` raw/canonical mode equivalent on `tty`
pages, so that people porting C code to Py
anatoly techtonik added the comment:
s/commit/comment/ sry.
--
___
Python tracker
<http://bugs.python.org/issue13614>
___
___
Python-bugs-list mailing list
Unsub
anatoly techtonik added the comment:
A good analysis of the issue is made by Jason Conti at Ubuntu bug report
mentioned in the first commit.
--
title: `setup.py register` fails with traceback -> `setup.py register` fails if
long_description contains
anatoly techtonik added the comment:
Ubuntu 11.10
--
___
Python tracker
<http://bugs.python.org/issue13615>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik :
$ python setup.py sdist register -r https://pypi.python.org/pypi upload
...
Creating tar archive
removing 'pager-0.2' (and everything under it)
running register
Traceback (most recent call last):
File "setup.py", line 17, in
New submission from anatoly techtonik :
It seems that invalid ReST in long_description causes traceback in distutils
`register` command. See attached log.
More details:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/905500
--
assignee: tarek
components: Distutils
files
anatoly techtonik added the comment:
On Mon, Dec 12, 2011 at 6:26 PM, Antoine Pitrou wrote:
>
> I am not disputing the flexibility of dtrace. However, it is also
> platform-specific, and needs you to learn a dedicated programming
> language and API.
If it is flexible, then I w
anatoly techtonik added the comment:
On Mon, Dec 12, 2011 at 6:11 PM, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> > How different is the performance cost of this solution compared
> > to inserting DTrace probe for the same purpose?
>
> DTrac
anatoly techtonik added the comment:
How different is the performance cost of this solution compared to inserting
DTrace probe for the same purpose?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13
anatoly techtonik added the comment:
2011/12/12 Charles-François Natali
>
> Charles-François Natali added the comment:
>
> > Alan, I would open a new issue tracking this one and posting a patch
> there, if I were you.
> >
> > Previous DTRACE attempts failed be
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
I would revert this patch (leaving several test cases though) until a proper
fix is available.
--
___
Python tracker
<http://bugs.python.org/issue4
anatoly techtonik added the comment:
Just to me it clear - why do you want warn() to be removed aside from code
duplication?
My argument to leave it and document is that it is convenient and makes lines
shorter (and won't break existing code). From logging module I also see that
ther
anatoly techtonik added the comment:
./trac/env.py:self.log.warn('base_url option not set in
configuration, '
./trac/env.py:self.log.warn('Couldn\'t write sample configuration
file (%s)', e,
./trac/web/main.py:##env.l
anatoly techtonik added the comment:
I've got a traceback, because forgot to implement this method in logging
wrapper. It should be either deprecated and removed or documented.
--
status: closed -> open
___
Python tracker
<http://bugs
New submission from anatoly techtonik :
No docs for logging.warn() alias.
--
assignee: docs@python
components: Documentation
messages: 146039
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: logging.warn() is not documented
versions: Python 2.7, Python
New submission from anatoly techtonik :
http://docs.python.org/library/sys.html#sys.settrace
While writing settrace function you need to know what kind of data is expected
and how to get more information about it. Current documentation for
sys.settrace doesn't give too much answer
anatoly techtonik added the comment:
List not only needs to be joined, it should be quoted as well. But the biggest
problem will be the change of behavior between Python versions which may
confuse users even more.
Perhaps it's a good time to start embedding 'best practice' re
anatoly techtonik added the comment:
On Mon, Oct 17, 2011 at 3:24 PM, STINNER Victor wrote:
>
>> Certainly not right now as I don't have development environment setup
>
> See our development guide to get such environment:
> http://docs.python.org/devguide/setup.html
anatoly techtonik added the comment:
Oh, sorry - my attention span is limited under time pressure. #7839 is related,
of course. There is a lot of comments, so I'll take a look at it later.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
No. I won't be fixed in 2.7 anyway, and if it can not be fixed, it should be
documented at least.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
Certainly not right now as I don't have development environment setup. Perhaps
in a few days if somebody pings me. It could be a lot easier with online
editor, of course - http://code.google.com/p/pydotorg/issues/detail
anatoly techtonik added the comment:
Although they both touch the same components, they are completely different
user stories.
--
___
Python tracker
<http://bugs.python.org/issue13
anatoly techtonik added the comment:
Looks like a can of worms. For now I'll be pretty fine if this stuff is at
least properly documented.
--
___
Python tracker
<http://bugs.python.org/is
New submission from anatoly techtonik :
subprocess.Popen(args, shell=shell) is implicitly inconsistent on Unix:
1. when shell=False, the args should be a list or you'll lose program options
2. when shell=True, the args should be a string or your program options will
be passed to shell i
New submission from anatoly techtonik :
The reason I ask is this changeset -
http://code.google.com/p/spyderlib/source/detail?spec=svne5d86b685619a470d593aa5f9ee360ba60779bc1&r=323c6c697f045166e384cdc15803d40eebed0a2b
- seems like without shell=True, subprocess.Popen is unable to
New submission from anatoly techtonik :
For UNIX, it is said that if shell=False then you need to pass `args` as a list
(if you want to pass any parameters to executable). Is that true for Windows
(and perhaps other platforms) as well?
Again, for UNIX it is said that with shell=True, and args
anatoly techtonik added the comment:
There were no request to change the behaviour, because there is already this
closed issue where it is clearly said that this won't be fixed.
However, this doesn't cancel the fact that logging package needs enhancements
to be more pythonic (i.e.
anatoly techtonik added the comment:
I know that it is by design, but from all logging users you may be the only one
who keeps this behaviour in mind. The message why basicConfig() failed will be
more user-friendly.
--
___
Python tracker
<h
anatoly techtonik added the comment:
Can basicConfig() report its failure with DEBUG level when called twice?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue1164
anatoly techtonik added the comment:
I understand your desire to keep the tracker clean, but I'd like that another
person closes this issue. Maybe he will have another opinion.
--
resolution: invalid ->
status: closed -> languishing
___
anatoly techtonik added the comment:
If changing behavior of console is not possible now, schedule it for python4.
http://stackoverflow.com/questions/1392413/calculating-a-directory-size-using-python/1392549#1392549
--
___
Python tracker
<h
New submission from anatoly techtonik :
This is self-explanative. Function definitions are identical. Syntax error
caused by the absence of empty line after the function definition.
Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "
anatoly techtonik added the comment:
On Thu, Sep 15, 2011 at 10:42 PM, Alexander Belopolsky
wrote:
>
> Shouldn't we say "datetime and time" instead of "date and time"?
> There is no tzinfo attribute in date objects.
Does that mean that if aware `datetime` is
anatoly techtonik added the comment:
The point was:
1. Create an anchor to definition of "naive" object
2. Create an anchor to definition of "aware" object
3. Make definitions stand out from the inline text
4. Create cross-references for "naive" and "aware&qu
New submission from anatoly techtonik :
In optparse module doc this two classes are referenced, but not documented:
http://docs.python.org/library/optparse.html
--
components: Library (Lib)
messages: 143888
nosy: techtonik
priority: normal
severity: normal
status: open
title
anatoly techtonik added the comment:
ISTM that this code works ok.
data = open('data.raw', 'rb').read()
ret = checkBuffer(data, len(data))
You need to make sure that checkBuffer doesn't try to modify memory though. For
mutable memory blocks
301 - 400 of 977 matches
Mail list logo