[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hi Chris. Today we had python sprint and I've guessed to Anton to refactor the patch in good way with properly setting default values from regrtest.main to argparse args. Then use proper argparse actions for manipulating that args. After all we ca

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2012-12-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue14715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue879399] socket line buffering

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> kristjan.jonsson ___ Python tracker <http://bugs.python.org/issue879399> ___ ___ Python-bugs-list mailing list Un

[issue13582] IDLE and pythonw.exe stderr problem

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue13582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Trung, I think installation procedure is not subject of this issue. If needed please create new one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok. Agree with you. -- ___ Python tracker <http://bugs.python.org/issue16511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well. Do you like to apply Chris patch and wait for next step appear? On Mon, Dec 24, 2012 at 2:33 AM, R. David Murray wrote: > > R. David Murray added the comment: > > I am -1 on doing this as one big refactoring, unless tests are written for

[issue16637] py-bt, py-locals, etc. GDB commands fail with output-radix 16

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16637> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16672] improve tracing performances when f_trace is NULL

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue812369] module shutdown procedure based on GC

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue812369> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14470] Remove using of w9xopen in subprocess module

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks On Mon, Dec 24, 2012 at 6:44 PM, Roundup Robot wrote: > > Roundup Robot added the comment: > > New changeset deee9f0a4b98 by Brian Curtin in branch 'default': > Fix #14470. Remove mentions of w9xpopen on old versions

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you want to keep VS9.0 only? Sounds good to me. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16

[issue16720] Get rid of os.error. Use OSError instead

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close the issue. For future improvements (like ChildProcessError using) please open new one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- components: Library (Lib) keywords: easy nosy: asvetlov priority: normal severity: normal status: open title: Add test coverage for os.removedirs() versions: Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <h

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/issue16775> ___ ___ Pyth

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue16775> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16644] Wrong code in ContextManagerTests.test_invalid_args() in test_subprocess.py

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16644> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions

2012-12-25 Thread Andrew Svetlov
New submission from Andrew Svetlov: c-api docs has no documentation for those public API functions. -- assignee: docs@python components: Documentation keywords: easy messages: 178115 nosy: asvetlov, docs@python priority: normal severity: normal status: open title: Document

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: #16776 created for documenting PyCFunction_New/PyCFunction_NewEx -- ___ Python tracker <http://bugs.python.org/issue15

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16218] Python launcher does not support unicode characters

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, are you done all work for the issue? Can it be closed? -- ___ Python tracker <http://bugs.python.org/issue16218> ___ ___

[issue879399] socket line buffering

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue879399> ___ __

[issue16715] Get rid of IOError. Use OSError instead

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Yes, you right. We use this idiom also for PyAST_CompileEx, PyErr_WarnEx and bunch of functions in ./Include/pythonrun.h 2. Patch is very simple and was available for review almost 3 months. I assumed that developers looked on this and had no objections

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: We need to rename MatchObject to match object than (see #16443) -- ___ Python tracker <http://bugs.python.org/issue16

[issue16443] Add docstrings to regular expression match objects

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in #16760 -- ___ Python tracker <http://bugs.python.org/issue16443> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done -- ___ Python tracker <http://bugs.python.org/issue16760> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker <http://bugs.python.or

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not clean to me: has python3 the same bug? -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue14574> ___ ___

[issue16218] Python launcher does not support unicode characters

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I assign the issue to you than. Is it ok? -- assignee: asvetlov -> haypo ___ Python tracker <http://bugs.python.org/issu

[issue16785] Document the fact that constructing OSError with erron returns subclass if possible

2012-12-26 Thread Andrew Svetlov
New submission from Andrew Svetlov: I mean adding examples for constructions like this: >>> OSError(errno.ENOENT, 'error msg') FileNotFoundError(2, 'error msg') -- assignee: docs@python components: Documentation keywords: easy messages: 178204 nosy: a

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Everything is fine. Close the issue. -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Anton, you are free to make that issue and propose a patch :) -- ___ Python tracker <http://bugs.python.org/issue15302> ___ ___

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New patch is LGTM. -- ___ Python tracker <http://bugs.python.org/issue15302> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Chris, would you commit it? -- ___ Python tracker <http://bugs.python.org/issue15302> ___ ___ Python-bugs-list mailing list Unsub

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with both points -- ___ Python tracker <http://bugs.python.org/issue15302> ___ ___ Python-bugs-list mailing list Unsub

[issue13198] Remove duplicate definition of write_record_file

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close as out of date. Packaging has been removed from stdlib. -- nosy: +asvetlov resolution: -> out of date stage: patch review -> status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12944] Accept arbitrary files for packaging's upload command

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close as out of date since packaging has been removed from stdlib. -- nosy: +asvetlov resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue15422] Get rid of PyCFunction_New macro

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Georg, I've followed your instructions. Close the issue again. Thanks for mentorship. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http:

[issue16644] Wrong code in ContextManagerTests.test_invalid_args() in test_subprocess.py

2012-12-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Serhiy. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good step! -- ___ Python tracker <http://bugs.python.org/issue15302> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16799] switch regrtest from getopt options to argparse Namespace

2012-12-28 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16799> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16758] SubprocessStartupError

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I guess it is actually firewall. -- nosy: +asvetlov type: performance -> behavior ___ Python tracker <http://bugs.python.org/issu

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with you, Hynek. It should be fixed in 3.4 only (and change should be well documented). -- ___ Python tracker <http://bugs.python.org/issue15

[issue16782] No curses.initwin: Incorrect package docstring for curses

2012-12-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in active development branches. Thanks. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16782> ___ ___

[issue16782] No curses.initwin: Incorrect package docstring for curses

2012-12-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker <http://bugs.python.or

[issue16434] SocketServer call shutdown in the wrong way

2012-12-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Move to pending until additional info will be provided. Required short test to reproduce the problem. -- status: open -> pending ___ Python tracker <http://bugs.python.org/issu

[issue16731] xxlimited/xxmodule docstrings ambiguous

2012-12-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16731> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16817> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-12-30 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue15083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16715] Get rid of IOError. Use OSError instead

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's not a typo. 1. LoadError is inherited from OSError so LoadError exception is also caught. 2. Pointed code just resets cookie state and reraises exception, exception type is saved. The code is correct from my perspe

[issue13198] Remove duplicate definition of write_record_file

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Eric, if you want to keep distutils2 issues on the tracker for a while — I'm ok with that. -- ___ Python tracker <http://bugs.python.org/is

[issue16218] Python launcher does not support unicode characters

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- ___ Python tracker <http://bugs.python.org/issue16218> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like the proposition in general, but files should be synchronized first. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16

[issue16715] Get rid of IOError. Use OSError instead

2013-01-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: LoadError was IOError descendant, now OSError is directly specified. If somebody want to change base class for LoadError he should to update the code in several places in http/cookiejar.py. The docstring for FileCookieJar.revert directly specifies possible

[issue16715] Get rid of IOError. Use OSError instead

2013-01-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please email python-dev if you think LoadError should be directly specified. -- ___ Python tracker <http://bugs.python.org/issue16

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed. Thanks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue16932] urlparse fails at parsing "www.python.org:80/"

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16932> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Regenerating idle.txt and committing it is fine to me. -- ___ Python tracker <http://bugs.python.org/issue16893> ___ ___ Pytho

[issue15539] Fixing Tools/scripts/pindent.py

2013-01-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it fixed now? -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue15539> ___ ___ Python-bugs-list mailin

[issue16823] Python crashes on running tkinter code with threads

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16887> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16901] In http.cookiejar.FileCookieJar() the .load() and .revert() methods don't work

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16901> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16921> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16935> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15436] __sizeof__ is not documented

2013-01-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue15436> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15443] datetime module has no support for nanoseconds

2013-01-17 Thread Andrew Clegg
Andrew Clegg added the comment: I would like to add a real-world use case I have for nanosecond-precision support. I deal with data loggers that are controlled by GPS clocks, and I am writing some processing software in Python that requires the input of high-precision timestamps for

[issue16985] Docs reference a concrete UTC tzinfo, but none exists

2013-01-18 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue16985> ___ ___ Pyth

[issue17006] Warn users about hashing secrets?

2013-01-21 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17006> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16991] Add OrderedDict written in C

2013-01-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17098] Set __loader__ on modules imported by the C level

2013-02-01 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17098> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-02-01 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16389> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16997] subtests

2013-02-11 Thread Andrew Bennetts
Andrew Bennetts added the comment: googletest (an xUnit style C++ test framework) has an interesting feature: in addition to assertions like ASSERT_EQ(x, y) that stop the test, it has EXPECT_EQ(x, y) etc that will cause the test to fail without causing it to stop. I think this decoupling of

[issue19147] pydoc3 fcntl.flock documentation gives wrong man page section for flock

2013-10-02 Thread Andrew Parker
New submission from Andrew Parker: On my Linux system the docs for fcntl.flock gives me "man 3 flock" for more details: $ pydoc3 fcntl.flock Help on built-in function flock in fcntl: fcntl.flock = flock(...) flock(fd, operation) Perform the lock

[issue19019] Investigate using Apple clang for building OS X installers

2013-10-24 Thread Andrew Barnert
Andrew Barnert added the comment: Now that Xcode 5 is out, and does not have anything named "gcc-4.2" (it _does_ still have something called "gcc", which is now a wrapper around clang instead of a wrapper around llvm-gcc-4.2), this seems a lot more critical, because (a

[issue3353] make built-in tokenizer available via Python C API

2014-06-22 Thread Andrew C
Andrew C added the comment: The previously posted patch has become outdated due to signature changes staring with revision 89f4293 on Nov 12, 2009. Attached is an updated patch. Can it also be confirmed what are the outstanding items for this patch to be applied? Based on the previous logs

[issue3353] make built-in tokenizer available via Python C API

2014-06-22 Thread Andrew C
Changes by Andrew C : Added file: http://bugs.python.org/file35730/82706ea73ada.diff ___ Python tracker <http://bugs.python.org/issue3353> ___ ___ Python-bugs-list mailin

[issue16474] More code coverage for imp module

2014-07-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, I've closed it as out-of-date. -- resolution: -> out of date stage: -> resolved ___ Python tracker <http://bugs.python.

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2014-07-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 71a0743f36db and 06bdd7e8fffd -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3 _

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2014-07-15 Thread Andrew Garner
Andrew Garner added the comment: This seems to be a similar to issue10761 where symlinks are not being overwritten by TarFile.extract but is only an issue in streaming mode and only in python3. To reproduce, attempt to extract a symlink from a tarfile opened with 'r|' and ov

[issue22004] io documentation refers to newline as newlines

2014-07-17 Thread Andrew Barnert
New submission from Andrew Barnert: In at least one place in the io module documentation (io.IOBase.readline), and in the corresponding docstring, the newline parameter to open (and io.open, and io.Foo.__init__) is referred to as "newlines": > The line terminator is always b&#

[issue22004] io documentation refers to newline as newlines

2014-07-17 Thread Andrew Barnert
Andrew Barnert added the comment: Searching the source and the help page, it looks like the one example I gave is the only place it's wrong in each of the two, not one of multiple places. -- ___ Python tracker <http://bugs.python.org/is

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-19 Thread Andrew Barnert
Andrew Barnert added the comment: http://thread.gmane.org/gmane.comp.python.ideas/28310 discusses the same idea. Guido raised a serious problem with either adding an argument to readline and friends, or adding new methods readrecord and friends: It means the hundreds of existing file-like

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-19 Thread Andrew Barnert
Andrew Barnert added the comment: While we're at it, Douglas Alan's solution wouldn't be an ideal solution even if it were a builtin. A fileLineIter obviously doesn't support the stream API. It means you end up with two objects that share the same file, but have separat

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-19 Thread Andrew Barnert
Andrew Barnert added the comment: One last thing, a quick & dirty solution that works today, if you don't mind accessing private internals of stdlib classes, and don't mind giving up the performance of _io for _pyio, and don't need a solution for binary files: cl

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-20 Thread Andrew Barnert
Changes by Andrew Barnert : Added file: http://bugs.python.org/file36008/pep-newline.txt ___ Python tracker <http://bugs.python.org/issue1152248> ___ ___ Python-bug

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-20 Thread Andrew Barnert
Changes by Andrew Barnert : Added file: http://bugs.python.org/file36009/pep-peek.txt ___ Python tracker <http://bugs.python.org/issue1152248> ___ ___ Python-bugs-list m

[issue22037] Poor grammar in asyncio TCP echo client example

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in d19c58e13ac9 Thanks -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.or

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cannot reproduce. -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue22055] Incomplete sentence in asyncio BaseEventLoop doc

2014-07-24 Thread Andrew Svetlov
New submission from Andrew Svetlov: Fixed in f578e1d717b7 and f578e1d717b7. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue1234674] filecmp.cmp's "shallow" option

2014-07-26 Thread Andrew Kubera
Andrew Kubera added the comment: Attached is a couple extra tests which run filecmp on two files with different content but the same length and relevant stat() info. This appears to successfully check if the shallow options works correctly. It uses time.sleep(1) to ensure the files start out

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-27 Thread Andrew Barnert
Andrew Barnert added the comment: Akira, your patch does this: -self._writetranslate = newline != '' -self._writenl = newline or os.linesep +self._writetranslate = newline in (None, '\r', '\r\n') +self._writenl = newline if newli

[issue22367] Please add F_OFD_SETLK, etc support to fcntl.lockf

2014-09-08 Thread Andrew Lutomirski
New submission from Andrew Lutomirski: Linux 3.15 and newer support a vastly superior API for file locking, in which locks are owned by open file descriptions instead of by processes. This is how everyone seems to expect POSIX locks to work, but now they can finally work that way. Please

[issue20230] structseq types should expose _fields

2014-01-12 Thread Andrew Barnert
New submission from Andrew Barnert: A PyStructSequence type doesn't expose its field names in any way to Python code (except indirectly, via the repr, which you could parse if you really wanted to…). The docs claim that "Struct sequence objects are the C equivalent of namedtuple

[issue7796] No way to find out if an object is an instance of a namedtuple

2014-01-12 Thread Andrew Barnert
Andrew Barnert added the comment: I believe the structseq issues are a lot easier to solve than the appear. See #20230, which adds a _fields member to every structseq type. Having done that, a NamedTuple ABC works on them just fine. And of course duck typing them without an ABC does too

[issue20230] structseq types should expose _fields

2014-01-12 Thread Andrew Barnert
Andrew Barnert added the comment: After more searching (I should have searched on structseq instead of PyStructSequence…), this might be a dup of #1820. If so, apologies. -- ___ Python tracker <http://bugs.python.org/issue20

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-01-12 Thread Andrew Barnert
Andrew Barnert added the comment: See issue20230, which includes a patch implementing just the first part of part 2 (adding _fields, but not _asdict or _replace). Since this one has been open for 5+ years, if it's not going to be done soon, any chance of the easy (_fields) change

[issue20250] defaultdict docstring neglects the *args

2014-01-13 Thread Andrew Barnert
New submission from Andrew Barnert: The docstring for defaultdict shows only a single argument, default_factory, and gives no clue that you can pass additional arguments: | defaultdict(default_factory) --> dict with default factory | | The default factory is called with

<    23   24   25   26   27   28   29   30   31   32   >