[issue6964] import new fails

2012-07-22 Thread anatoly techtonik
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

[issue15419] distutils: build_py_2to3 should use a separate build directory

2012-07-22 Thread anatoly techtonik
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

[issue15418] 2to3 docs should mention setup.py fixes required to install compatible packages in Python 3

2012-07-22 Thread anatoly techtonik
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

[issue14979] pdb doc: Explain how to extend debugger instead of sending readers to the source

2012-06-26 Thread anatoly techtonik
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

[issue8355] diff.py to produce unified format by default

2012-06-24 Thread anatoly techtonik
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

[issue8355] diff.py produce unified format by default

2012-06-22 Thread anatoly techtonik
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

[issue7582] Use ISO timestamp in diff.py

2012-06-22 Thread anatoly techtonik
anatoly techtonik added the comment: Thanks. I am glad OS TZ support finally issue took off. =) -- ___ Python tracker <http://bugs.python.org/issue7582> ___ ___

[issue8355] diff.py produce unified format by default

2012-06-22 Thread anatoly techtonik
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

[issue15104] abusive language in __name__ description

2012-06-19 Thread anatoly techtonik
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.

[issue15104] abusive language in __name__ description

2012-06-19 Thread anatoly techtonik
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? -- __

[issue15104] abusive language in __name__ description

2012-06-19 Thread anatoly techtonik
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 <

[issue15104] abusive language in __name__ description

2012-06-19 Thread anatoly techtonik
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

[issue15104] abusive language in __name__ description

2012-06-19 Thread anatoly techtonik
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,

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2012-06-14 Thread anatoly techtonik
anatoly techtonik added the comment: I must add - many times better than no solution at all. -- ___ Python tracker <http://bugs.python.org/issue7584> ___ ___

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2012-06-14 Thread anatoly techtonik
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&#

[issue15060] docs: socket typo

2012-06-13 Thread anatoly techtonik
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

[issue8902] add datetime.time.now() for consistency

2012-06-06 Thread anatoly techtonik
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

[issue8902] add datetime.time.now() for consistency

2012-06-06 Thread anatoly techtonik
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()

[issue15005] trace corrupts return result on chained execution

2012-06-05 Thread anatoly techtonik
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

[issue15005] trace corrupts return result on chained execution

2012-06-05 Thread anatoly techtonik
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

[issue15005] trace corrupts return result on chained execution

2012-06-05 Thread anatoly techtonik
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

[issue15005] trace corrupts return result on chained execution

2012-06-05 Thread anatoly techtonik
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

[issue15005] trace corrupts return result on chained execution

2012-06-05 Thread anatoly techtonik
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

[issue14979] pdb: Link to source

2012-06-01 Thread anatoly techtonik
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

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread anatoly techtonik
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

[issue14948] setup.cfg - rename home_page to homepage

2012-05-28 Thread anatoly techtonik
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

[issue4755] Add function to get common path prefix

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

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-05-21 Thread anatoly techtonik
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

[issue1191964] asynchronous Subprocess

2012-05-21 Thread anatoly techtonik
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

[issue14872] subprocess is not safe from deadlocks

2012-05-21 Thread anatoly techtonik
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

[issue14872] subprocess is not safe from deadlocks

2012-05-21 Thread anatoly techtonik
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

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2012-05-17 Thread anatoly techtonik
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

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2012-05-16 Thread anatoly techtonik
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

[issue1635217] Add example of distutils setup() with "requires" argument

2012-05-16 Thread anatoly techtonik
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

[issue1635217] Add example of distutils setup() with "requires" argument

2012-05-15 Thread anatoly techtonik
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

[issue1635217] Add example of distutils setup() with "requires" argument

2012-05-12 Thread anatoly techtonik
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)"],

[issue14760] logging: make setLevel() return handler itself for chained configuration

2012-05-09 Thread anatoly techtonik
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

[issue14760] logging: make setLevel() return handler itself for chained configuration

2012-05-09 Thread anatoly techtonik
anatoly techtonik added the comment: s/can/can't/ -- ___ Python tracker <http://bugs.python.org/issue14760> ___ ___ Python-bugs-list mailing list Unsubsc

[issue14760] logging: make setLevel() return handler itself for chained configuration

2012-05-09 Thread anatoly techtonik
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

[issue14760] logging: make setLevel() return handler itself for chained configuration

2012-05-09 Thread anatoly techtonik
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

[issue14760] logging: make setLevel() return handler itself for chained configuration

2012-05-09 Thread anatoly techtonik
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

[issue13405] Add DTrace probes

2012-04-13 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: -techtonik ___ Python tracker <http://bugs.python.org/issue13405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14379] Several traceback docs improvements

2012-03-21 Thread anatoly techtonik
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

[issue14345] Document socket.SOL_SOCKET

2012-03-16 Thread anatoly techtonik
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

[issue14049] execfile() fails on files that use global variables inside functions

2012-02-18 Thread anatoly techtonik
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.

[issue9021] no copy.copy problem description

2012-02-09 Thread anatoly techtonik
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

[issue13609] Add "os.get_terminal_size()" function

2012-02-07 Thread anatoly techtonik
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

[issue13609] Add "os.get_terminal_size()" function

2012-01-31 Thread anatoly techtonik
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

[issue13609] Add "os.get_terminal_size()" function

2012-01-31 Thread anatoly techtonik
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

[issue13609] Add "os.get_terminal_size()" function

2012-01-31 Thread anatoly techtonik
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

[issue13875] cmd: no user documentation

2012-01-26 Thread anatoly techtonik
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

[issue13875] cmd: no user documentation

2012-01-26 Thread anatoly techtonik
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

[issue13405] Add DTrace probes

2012-01-20 Thread anatoly techtonik
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

[issue13761] Add flush keyword to print()

2012-01-12 Thread anatoly techtonik
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

[issue11633] Document that print buffers output when end=''

2012-01-09 Thread anatoly techtonik
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

[issue11633] regression: print buffers output when end=''

2012-01-09 Thread anatoly techtonik
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

[issue11633] regression: print buffers output when end=''

2012-01-09 Thread anatoly techtonik
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

[issue13615] `setup.py register` fails with -r argument

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: Can't test right now. -- ___ Python tracker <http://bugs.python.org/issue13615> ___ ___ Python-bugs-list mailing list

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
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

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
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:

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
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

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
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

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: os.rename(overwrite=True) to produce consistent cross-platform behavior. -- ___ Python tracker <http://bugs.python.org/issue8

[issue13649] termios.ICANON is not documented

2011-12-22 Thread anatoly techtonik
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

[issue13614] `setup.py register` fails if long_description contains RST

2011-12-20 Thread anatoly techtonik
anatoly techtonik added the comment: s/commit/comment/ sry. -- ___ Python tracker <http://bugs.python.org/issue13614> ___ ___ Python-bugs-list mailing list Unsub

[issue13614] `setup.py register` fails if long_description contains RST

2011-12-20 Thread anatoly techtonik
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

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
anatoly techtonik added the comment: Ubuntu 11.10 -- ___ Python tracker <http://bugs.python.org/issue13615> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13615] `setup.py register` fails with -r argument

2011-12-16 Thread anatoly techtonik
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 &#x

[issue13614] `setup.py register` fails with traceback

2011-12-16 Thread anatoly techtonik
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

[issue13405] Add DTrace probes

2011-12-12 Thread anatoly techtonik
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

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread anatoly techtonik
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

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread anatoly techtonik
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

[issue13405] Add DTrace probes

2011-12-12 Thread anatoly techtonik
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

[issue13405] Add DTrace probes

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

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-14 Thread anatoly techtonik
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

[issue13235] logging.warn() is not documented

2011-10-22 Thread anatoly techtonik
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

[issue13235] logging.warn() is not documented

2011-10-20 Thread anatoly techtonik
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

[issue13235] logging.warn() is not documented

2011-10-20 Thread anatoly techtonik
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

[issue13235] logging.warn() is not documented

2011-10-20 Thread anatoly techtonik
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

[issue13231] sys.settrace - document 'some other code blocks' for 'call' event type

2011-10-20 Thread anatoly techtonik
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

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-18 Thread anatoly techtonik
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

[issue13195] subprocess: args with shell=True is not documented on Windows

2011-10-17 Thread anatoly techtonik
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

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-17 Thread anatoly techtonik
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

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-17 Thread anatoly techtonik
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

[issue13195] subprocess: args with shell=True is not documented on Windows

2011-10-17 Thread anatoly techtonik
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

[issue13196] subprocess: undocumented if shell=True is necessary to find executable in Windows PATH

2011-10-17 Thread anatoly techtonik
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

[issue13195] subprocess: args with shell=True is not documented on Windows

2011-10-17 Thread anatoly techtonik
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

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-17 Thread anatoly techtonik
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

[issue13196] subprocess: undocumented if shell=True is necessary to find executable in Windows PATH

2011-10-17 Thread anatoly techtonik
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

[issue13195] subprocess: args with shell=True is not documented on Windows

2011-10-17 Thread anatoly techtonik
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

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
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.

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
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

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
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

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-23 Thread anatoly techtonik
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 ___

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-19 Thread anatoly techtonik
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

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-19 Thread anatoly techtonik
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 "

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread anatoly techtonik
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

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-12 Thread anatoly techtonik
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

[issue12962] TitledHelpFormatter and IndentedHelpFormatter are not documented

2011-09-12 Thread anatoly techtonik
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

[issue12476] ctypes: need example how to pass raw data from Python

2011-07-03 Thread anatoly techtonik
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

<    1   2   3   4   5   6   7   8   9   10   >