anatoly techtonik <[EMAIL PROTECTED]> added the comment:
The same issue in "Roundup Tracker" bugtracker
http://sourceforge.net/tracker2/index.php?func=detail&aid=1163804&group_id=31577&atid=402788
___
Python tracker <[EMAIL PROT
New submission from anatoly techtonik <[EMAIL PROTECTED]>:
Distutils SIG pages contain largely outdated information.
http://www.python.org/community/sigs/current/distutils-sig/
It would be good to replace CVS instructions with SVN, add wiki link,
mark download page as "archived v
anatoly techtonik <[EMAIL PROTECTED]> added the comment:
flomana: Have you tried installing Python in c:\python26\ ? If that
didn't help then it is better start a new issue.
--
nosy: +techtonik
___
Python tracker <[EMAIL PRO
anatoly techtonik <[EMAIL PROTECTED]> added the comment:
Duplicate of #706263
--
nosy: +techtonik
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.
anatoly techtonik <[EMAIL PROTECTED]> added the comment:
With Python 2.6 the support for Windows 95, 98, ME and NT4 has been
dropped. But it is not only that - I would advise closing as "won't fix"
for same reason as listed in aforementioned bug #216289 comment
http://bu
anatoly techtonik <[EMAIL PROTECTED]> added the comment:
The idea with "-x" option and renaming .py to .bat is nice, but if I
want to execute the script with another version of Python or manually
without -x option I may become confused.
Would it be better to provide separat
New submission from anatoly techtonik :
optparse documentation misses reference for at least these three methods:
print_help()
print_usage()
print_version()
--
assignee: georg.brandl
components: Documentation
messages: 77622
nosy: georg.brandl, techtonik
severity: normal
status: open
New submission from anatoly techtonik :
When tarfile is directed to create tar.gz compressed archive file in a
path different from current, it saves full path information in .gz
header where only filename is required.
This causes problems with decompression utilities, such as 7zip. The
Changes by anatoly techtonik :
--
keywords: +patch
Added file: http://bugs.python.org/file12452/tarfile.directory.fix.diff
___
Python tracker
<http://bugs.python.org/issue4
anatoly techtonik added the comment:
Please reopen this bug. issue#1886 is different it take a long time
until it is committed.
I attach patch from Giampaolo here.
--
keywords: +patch
nosy: +techtonik
versions: +Python 2.5, Python 2.7
Added file: http://bugs.python.org/file12455
anatoly techtonik added the comment:
I attach an improved patch1886.use.tarfile.module.diff that fixes all
bugs addressed in this issue.
It also removes second call to compression program leaving that
privilege to tar.
> I notice that the archive generated by tarfile module looks
> dif
anatoly techtonik added the comment:
Oh, my mistake - the bug with extra dir component in archive is in issue4750
Second shell call to compression program is removed only for the case
when tarfile or any of required compression modules are not available
anatoly techtonik added the comment:
What are the systems where does this original tar still exist as a
default utility?
If there is no tarfile module on this systems and "tar" version is so
old then you need a more modern system to wrap your releases or more
modern "tar"
anatoly techtonik added the comment:
7zip can decompress both, but it still creates "dist/" directory when
decompressing file that is made with Python.
I've noticed this bug with extra path component is actual with "tar" +
"gzip" under windows. If they are e
anatoly techtonik added the comment:
Roumen, could you be more specific about what are you trying to say with
this 200kB piece of code? Was it the intention to post a link to man or
another piece of spec?
___
Python tracker
<http://bugs.python.org/issue1
anatoly techtonik added the comment:
For MSYS gzip added a bugreport here:
https://sourceforge.net/tracker2/index.php?func=detail&aid=2474481&group_id=2435&atid=102435
___
Python tracker
<http://bugs.pytho
anatoly techtonik added the comment:
I attach patch for Python 2.6 gzip
I clarified the meaning of self.name to be the basename corresponding to
FNAME field in GZIP file header.
There is a trace of deprecated gzip.filename API - I haven't found any
references to it in documentation,
anatoly techtonik added the comment:
I attach for Python 2.5 as well. People will use gzip module for a long
time to build packages and patch will help them to get correct archives.
Added file: http://bugs.python.org/file12490/python25.issue4750.diff
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
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:
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
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 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:
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:
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:
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
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.
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 :
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
Changes by anatoly techtonik :
--
nosy: -techtonik
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from anatoly techtonik:
http://docs.python.org/2/library/glob.html
and
http://docs.python.org/2/library/fnmatch.html
both lack ability to do case-insensitive search for filenames. Due to this
difference, scripts that work ok on Windows start produce surprises on Linux
anatoly techtonik added the comment:
https://gist.github.com/techtonik/5694830
--
___
Python tracker
<http://bugs.python.org/issue18123>
___
___
Python-bugs-list m
anatoly techtonik added the comment:
This should have been backported to Python 2. I expect some related attacks on
EuroPython.
--
___
Python tracker
<http://bugs.python.org/issue12
anatoly techtonik added the comment:
If somebody sponsor my visit to EuroPython, I will dedicate some time to
prepare a demo uploading rogue packages using sniffed credentials over WiFi
without owner's consent. After moving to CDN no upload logs are available, so
it is even more secur
anatoly techtonik added the comment:
The only thing that can save the docs is pictures. Or tables.
+-+---+
| | universal_newlines = True |
+--+-+---+
|Py.2 | str | str
anatoly techtonik added the comment:
On Thu, Jun 13, 2013 at 9:20 AM, Ezio Melotti wrote:
>
> Also in the Python 3 docs we don't compare the current behavior with
> Python 2.
>
That's most unfortunate. Major PITA comes from attempts
anatoly techtonik added the comment:
_failed_ attempts to port existing code.
--
___
Python tracker
<http://bugs.python.org/issue17860>
___
___
Python-bugs-list m
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
There should be an easy way to restore file attributes.
--
___
Python tracker
<http://bugs.python.org/issue15795>
___
___
New submission from anatoly techtonik:
zipfile doesn't restore file attributes when extracting. Documentation should
at least contain example how to do this manually, because the ony way to do
this - through ZipInfo.external_attr is too cryptic.
--
assignee: docs@python
compo
anatoly techtonik added the comment:
Here is the doc -
http://stackoverflow.com/questions/434641/how-do-i-set-permissions-attributes-on-a-file-in-a-zip-file-using-pythons-zip/6297838#6297838
--
___
Python tracker
<http://bugs.python.org/issue18
anatoly techtonik added the comment:
3.4+ feature is not a replacement for proper documentation for 2.7-3.4
--
resolution: duplicate ->
___
Python tracker
<http://bugs.python.org/issu
New submission from anatoly techtonik:
(, '0755')
(, '0644')
Traceback (most recent call last):
File "./tools/bootstrap.py", line 185, in extract_zip
os.fchmod(outfile, unixperm)
TypeError: an integer is required
Here the integer that is required i
anatoly techtonik added the comment:
>>> v = open("VERSION")
>>> import os
>>> os.fchmod(v, 0664)
Traceback (most recent call last):
File "", line 1, in
TypeError: an integer is required
--
status: pending -> open
___
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
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:
..and still I miss:
with os.chdir(path):
do_something()
--
___
Python tracker
<http://bugs.python.org/issue9097>
___
___
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:
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.
>
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13276>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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:
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:
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:
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
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue5845>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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:
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:
If you need a better use case for DictRecord, urlparse is another one.
--
___
Python tracker
<http://bugs.python.org/issue18
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:\&
Changes by anatoly techtonik :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
None that I know of.
--
___
Python tracker
<http://bugs.python.org/issue18553>
___
___
Python-bugs-list mailing list
Unsub
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
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
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:
s/can/can't/
--
___
Python tracker
<http://bugs.python.org/issue14760>
___
___
Python-bugs-list mailing list
Unsubsc
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:
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:
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:
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:
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:
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
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:
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
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
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
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue4755>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 :
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
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
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
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:
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:
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:
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:
And I certainly don't agree with you that usability changes in API are not use
cases.
--
___
Python tracker
<http://bugs.python.org/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:
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
anatoly techtonik added the comment:
I must add - many times better than no solution at all.
--
___
Python tracker
<http://bugs.python.org/issue7584>
___
___
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:
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
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:
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?
--
__
401 - 500 of 977 matches
Mail list logo