[issue14720] sqlite3 microseconds

2013-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: convert_timestamp() can silently return wrong result if seconds saved with more than millisecond precision (i.e. '2012-04-04 15:06:00.000123456'). I propose or truncate fractional part to 6 digits ('{:06.6}') or explicitly raise an exception if

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: I'm investigating it now and will get back with a revised fully tested patch. Sounds good. FWIW, it only broke on 3.x and default branches, and you can probably reproduce it on my own machine, too, by applying the patch and then running test_netrc. This

[issue14720] sqlite3 microseconds

2013-02-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: Serhiy Storchaka wrote: convert_timestamp() can silently return wrong result if seconds saved with more than millisecond precision (i.e. '2012-04-04 15:06:00.000123456'). I propose or truncate fractional part to 6 digits ('{:06.6}') or explicitly raise an

[issue17284] create mercurial section in devguide's committing.rst

2013-02-24 Thread Chris Jerdonek
New submission from Chris Jerdonek: As discussed in issue 14468, this issue is to reorder the sections in the devguide's committing.rst to create a section dedicated to using Mercurial when committing. The attached patch is adapted from the 2-move_two_sections.diff patch of that issue.

[issue14468] Update cloning guidelines in devguide

2013-02-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: As discussed above and because this comment thread is getting very long, I'm going to start proposing smaller issues off of this one. In this way we can start committing as we reach agreement, and hash out any disagreements in more focused contexts around

[issue13952] mimetypes doesn't recognize .csv

2013-02-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13952 ___ ___ Python-bugs-list

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2013-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for report. Here is a patch which fixes this bug. -- Added file: http://bugs.python.org/file29218/XMLGenerator_fragment-2.7.patch ___ Python tracker rep...@bugs.python.org

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's cumbersome and burdensome because you need for every nonstandard default value: 1) define a class with __repr__(); 2) instantiate a sentinel; 3) check for the sentinel in the function and replace it but an actual value. class _ExternalAttrDefault:

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's particular because there are functions whose signatures can't be expressed with valid Python syntax (dict, range, operator.methodcaller, many curses functions). They required other solution and this more general solution is applicable for the problem

[issue17100] rotating an ordereddict

2013-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps for consistency with popitem() and move_to_end() it is worth to merge rotate_at() and rotate_after() in one method (rotate_to()? move_to()?) with a boolean parameter. -- ___ Python tracker

[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-02-24 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Added file: http://bugs.python.org/file29219/cgi_subprocess-1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16945 ___

[issue14468] Update cloning guidelines in devguide

2013-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: I'm going to start proposing smaller issues off of this one I still fail to understand what are you trying to achieve. If you want to further dissect my patches, hand picking chunks and reorder them in order to obtain even more patches, I'll just close this

[issue17100] rotating an ordereddict

2013-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps for consistency with popitem() and move_to_end() it is worth to merge rotate_at() and rotate_after() in one method (rotate_to()? move_to()?) with a boolean parameter. Yes, perhaps. rotate_to(last=False) sounds ok, but perhaps a native English speaker

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The proposed patch fixes the backtrace line numbers issue, but it does not fix PyFrame_GetLineNumber() which is the recommended way to get the frame line number. As mentionned in the original message, testing for f-f_trace to implement the f_lineno getter is

[issue17285] subprocess.check_output incorrectly state that output is always bytes

2013-02-24 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur: Documentation states: help( subprocess.check_output ) check_output(*popenargs, timeout=None, **kwargs) Run command with arguments and return its output as a byte string. But the most common usage is: subprocess.check_output( 'echo test',

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-02-24 Thread Takayuki SHIMIZUKAWA
Takayuki SHIMIZUKAWA added the comment: FYI. I was able to build both 32bit/64bit. Python 2.7.3 (32bit) WinXP Professional SP3 (x86) Visual Studio C++ Express 2008 SP1 Microsoft Windows SDK 2008 invoke Windows SDK's `CMD Shell` and do following: C:\tmp setenv /x64 /release C:\tmp set

[issue17192] libffi-3.0.12 import

2013-02-24 Thread Georg Brandl
Georg Brandl added the comment: Updating 3.x branches is fine with me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17192 ___ ___

[issue12226] use HTTPS by default for uploading packages to pypi

2013-02-24 Thread Giovanni Bajo
Giovanni Bajo added the comment: Please notice that a redesign of PyPI and package security is ongoing in catalog-sig. -- nosy: +Giovanni.Bajo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12226

[issue17286] Make subprocess handling text output with universal_newlines more obious

2013-02-24 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur: It tooks me a while to figure out that using universal_newlines was the solution to tell subprocess that I wanted text string output instead of byte string. A search on stackoverflow shows that this issue is common and the solution nearly unknown

[issue11063] uuid.py module import has heavy side effects

2013-02-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: Jyrki, roundup doesn’t seem to recognize you patch so we can’t review it in Rietveld. Could you re-try, maybe using hg? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063

[issue17287] slice inconsistency

2013-02-24 Thread Elazar Gershuni
New submission from Elazar Gershuni: slice behavior is not consistent for negative lower or upper arguments, which could be surprising: 'hello'[:-2] 'hel' 'hello'[:-1] 'hell' 'hello'[:-0] '' this is obvious when written as literal, but not so obvious when using variables in expressions

[issue11063] uuid.py module import has heavy side effects

2013-02-24 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file29189/issue11063_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063 ___

[issue11063] uuid.py module import has heavy side effects

2013-02-24 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Here's a second take on the patch -- Added file: http://bugs.python.org/file29220/issue11063_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063

[issue15305] Test harness unnecessarily disambiguating twice

2013-02-24 Thread Geoff Wilson
Geoff Wilson added the comment: Both are called at different points when running './python.exe -m test -j3': 1. In __main__.py, this is called once at the start of the test run. By putting TESTCWD as the first/name arg, the directory is created. 2. In regrtest.py, the main file is called per

[issue17285] subprocess.check_output incorrectly state that output is always bytes

2013-02-24 Thread R. David Murray
R. David Murray added the comment: IMO the statement should read and return the stdout data. The point is that check_output calls Popen and accepts all its arguments except for stdout, which it handles itself and returns as the result. It would probably be good to then follow that up with

[issue17287] slice inconsistency

2013-02-24 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but this is working as designed, and is a fundamental part of the design of slices. That said, I have no idea what you are referring to by saying it is inconsistent, and what is upper and lower referring to? -- nosy:

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: fix the issue by changing PyFrame_GetLineNumber() and the f_lineno accessors The new patch named traced_frame.patch has been uploaded. Also, now it is not allowed anymore to set the f_lineno attribute of a frame that is not the frame being traced, as f_lasti

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: On python 3.3 and the default branch, the jump from a 'return' fails although the change to f_lineno is validated, see below. This problem does not occur with python 2.7. $ python return.py /tmp/return.py(8)module() - foo() (Pdb) break 5 Breakpoint 1 at

[issue17279] Document which named built-in classes can be subclassed

2013-02-24 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17279 ___ ___ Python-bugs-list

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oops, it occurs too with python 2.7. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17288 ___

[issue17289] readline.set_completer_delims() doesn't play well with others

2013-02-24 Thread Bradley Froehle
New submission from Bradley Froehle: The `readline.set_completer_delims` doesn't play well with others because it assumes that only it ever allocates or modifies the rl_completer_word_break_characters buffer. If other programs modify this value, for example changing it from heap allocated space

[issue10560] Fixes for Windows sources

2013-02-24 Thread Carlo Bramini
Carlo Bramini added the comment: Hello, no problem, the fix on GetModuleHandle() can be avoided without problems if you want. Anyways, although nowadays the hybrid operating systems like Windows 9x/ME are dead and burried, in this particular case I would still suggest to use directly

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-02-24 Thread Brett Cannon
Brett Cannon added the comment: Yep, the patch looks right, Gökcen! If you want to update the tests and docs that would be great, but obviously don't feel obliged to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117

[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-24 Thread Brett Cannon
Brett Cannon added the comment: The docs for NullImporter need to not mention that it is used with sys.path_importer_cache since it isn't. As for sys.path_importer_cache, it should say that None is inserted and not NullImporter. Both need a versionchanged notation of the switch from None to

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-02-24 Thread Gökcen Eraslan
Gökcen Eraslan added the comment: Of course. I have also commented on issue#17116 but I couldn't find the pyexpat test you mentioned. I would like to fix #17116 and #17115 -- ___ Python tracker rep...@bugs.python.org

[issue17116] xml.parsers.expat.(errors|model) don't set the __loader__ attribute

2013-02-24 Thread Brett Cannon
Brett Cannon added the comment: The comment is out of date; I removed the test because it was constantly failing. As for the patch, it looks correct, but I plan to make a change to Python so that __loader__ is set by default (see the dependent issue #17115). If I don't get to that change I

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-02-24 Thread Brett Cannon
Brett Cannon added the comment: Issue #17116 will be fixed by issue #17715 if you decide to tackle it. That bug will require C-level changes to the module type; just FYI. Please consider a PSF contributor form, Gökcen, if you plan to continue to submit code (your importlib.util fixes are

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

2013-02-24 Thread Gökcen Eraslan
Gökcen Eraslan added the comment: I have already given my form to akheron during a Python sprint, I think he will submit it to PSF within a few days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117

[issue15128] inspect raises exception when frames are misleading about source line numbers

2013-02-24 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Use of IOError might be a bit problematic. The find get return IOError if they can't find the source, but for mismatch if the line is not found is not to me an IOError. Btw, to be able to merge your patch, you need to sign the contributor agreement in

[issue11480] Cannot copy a class with a metaclass other than type

2013-02-24 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Hi, to be able to include your patch, could you sign the contributor form, please: http://www.python.org/psf/contrib/ ? -- nosy: +nailor ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11480

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2013-02-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This patch works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___

[issue11480] Cannot copy a class with a metaclass other than type

2013-02-24 Thread Daniel Urban
Daniel Urban added the comment: I did, and I've been told that it has been added to the bug tracker: http://mail.python.org/pipermail/python-committers/2012-May/001987.html -- ___ Python tracker rep...@bugs.python.org

[issue13684] httplib tunnel infinite loop

2013-02-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13684 ___

[issue11480] Cannot copy a class with a metaclass other than type

2013-02-24 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Oh, my bad. The * was not just showing next to your name. Maybe someone with more access rights can help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11480

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-24 Thread netrick
New submission from netrick: Firstly, just to mention - the issue that I will describe doesn't exist in python 2.7. It is python3 and windows related (python 3.3 for sure, didn't test previous). I also tested it on 2 different PCs (one fresh windows install, second long running with different

[issue17291] Login-data raising EOFError

2013-02-24 Thread Riley
New submission from Riley: When running Pywikipediabot and retrieving a password I get the following error: Password for user RileyBot on wiktionary:en: /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal. passwd = fallback_getpass(prompt, stream) Warning:

[issue17291] Login-data raising EOFError

2013-02-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17291 ___ ___ Python-bugs-list

[issue17094] sys._current_frames() reports too many/wrong stack frames

2013-02-24 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks, it's surprising this was never noticed before. Your patch has two issues: - it doesn't clear the thread state before deleting it, which would leak the frame, thread-specific dict, etc - it only clears the thread states after the current thread

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +brian.curtin, terry.reedy, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___

[issue17263] crash when tp_dealloc allows other threads

2013-02-24 Thread Charles-François Natali
Charles-François Natali added the comment: I don't know how OS X crash report works, but it seems to have at least some debug info available, since some ymbols are resolved in the backtrace. You might be able to get more info with gdb, with something like: gdb /path/to/python (gdb) info line

[issue1613500] Write mode option for fileinput module.

2013-02-24 Thread R. David Murray
R. David Murray added the comment: As far as I can see from a quick look, the problem this patch addresses still exists in Python3, and in Python3 it be (more of?) a bug. That is, the output file is opened in text mode, regardless of whether the input mode was text or bytes. I'm not sure

[issue15305] Test harness unnecessarily disambiguating twice

2013-02-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't think support.temp_cwd() should be changed for this issue (or needs to be). Also, changing it in the proposed way could mask errors in the test suite since tests were written against the current behavior. regrtest.py and __main__.py should both

[issue17291] Login-data raising EOFError

2013-02-24 Thread R. David Murray
R. David Murray added the comment: My guess would be that stdin is closed. I doubt that it is a python problem. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17291

[issue17267] datetime.time support for '+' and 'now'

2013-02-24 Thread Joar Wandborg
Joar Wandborg added the comment: I am adding yet another patch. This time it has - TZ-aware tests (datetimetester.TestTimeTZ). - C time_subtract method. - Pure time.__sub__ method. in addition to the previous - Tests for time + timedelta - C time_add - Pure time.__add__ There's one issue

[issue17226] libintl should also check for libiconv

2013-02-24 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: Alan, I was about to file a bug as well because I'm not even getting a libintl dependency to be acknowledged under these build conditions. What versions of gettext and GCC are you using? Ned, not sure if it matters, but the libintl page does specify that

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-24 Thread netrick
netrick added the comment: I just want to add that it *may* be the issue with the new windows launcher introtuced in 3.3. Because in 2.7 everything runs great and running through pythonw command works flawlessy as well. I think it's worth to look into it. --

[issue17226] libintl should also check for libiconv

2013-02-24 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: I would suggest a more straightforward patch. My understanding is that the standard library on the m68k-atari-mint platform does not include the necessary gettext functionality. This functionality is present in glibc, however. A more direct test might

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-24 Thread Birk Nilson
Birk Nilson added the comment: After investigating the issue I have a couple of proposals. Although a bit vague, the documentation of shlex.lineo seems to suggest that it should be incremented immediately on finding a newline character. Changing this to allow wrapped lines within a token

[issue16121] shlex.shlex.error_leader() reports incorrect line number

2013-02-24 Thread R. David Murray
R. David Murray added the comment: Is it necessarily a bug if the behavior is different with posix=True or False? If I understand correctly, non-posix mode is a backward compatibility mode, and really nobody should be using non-posix mode any more :) --

[issue10952] Don't normalize module names to NFKC?

2013-02-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto ishim...@gembook.org: -- nosy: +ishimoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10952 ___ ___ Python-bugs-list

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your indeed cumbersome and overly specific process has almost nothing to do with what I proposed and gave two examples of. Please reread and understand msg178542 before you criticize it. Class octint pythonically solves the octal mode display problem that

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-24 Thread Larry Hastings
Larry Hastings added the comment: FWIW I think the octint class is a great idea. It's nice and localized, and it should have no performance impact and only a small maintenance impact. It'll also preserve the readability of the default if you pull it out with inspect.getfullargspec /

[issue17283] Lib/test/__main__.py should share code with regrtest.py

2013-02-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch. The use of global TEMPDIR isn't ideal. Alternatively, TEMPDIR's value when sysconfig.is_python_build() is true can be set when initially setting TEMPDIR: http://hg.python.org/cpython/file/96f08a22f562/Lib/test/regrtest.py#l203 --

[issue17283] Lib/test/__main__.py should share code with regrtest.py

2013-02-24 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17283 ___

[issue10952] Don't normalize module names to NFKC?

2013-02-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Converting identifiers to NFKC is problematic to work with FULLWIDTH letters such as 'a'(FULLWIDTH LATIN SMALL LETTER A). We can create module named 'aaa.py', but this module could not be imported on all platforms I know. import aaa Traceback (most recent

[issue10952] Don't normalize module names to NFKC?

2013-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10952 ___

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: Even if deprecated it should continue to work (if possible). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17223 ___

[issue10572] Move test sub-packages to Lib/test

2013-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: Naming of files has been kept the same in the move from Lib/sqlite/test, to allow for easier merging of future patches. This should be done with hg mv -- this will also allow to change the name while preserving the history if that's desirable. --

[issue16406] move the Uploading Packages section to distutils/packageindex.rst

2013-02-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching an improved patch. This patch improves the introductory wording, adds some additional hyperlinks, and changes the order of one of the inserted sections. -- Added file: http://bugs.python.org/file29227/issue-16406-4.patch

[issue17283] Lib/test/__main__.py should share code with regrtest.py

2013-02-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a new patch which does not use the global keyword. -- Added file: http://bugs.python.org/file29228/issue-17283-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17283

[issue17292] Autonumbering in string.Formatter doesn't work

2013-02-24 Thread Nathan Binkert
New submission from Nathan Binkert: Autonumbering with string.format does not work as it does in str.format: '{}'.format(1) '1' import string string.Formatter().format('{}', 1) Traceback (most recent call last): File stdin, line 1, in module File /Users/nate/src/python3/Lib/string.py,

[issue17292] Autonumbering in string.Formatter doesn't work

2013-02-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17292 ___ ___ Python-bugs-list mailing list

[issue8936] webbrowser regression on windows

2013-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The regression issue is red herring. An issue should propose new behavior (based on an understanding of the doc and actual current behavior). Then ask: Is the proposed behavior better than the current behavior?, and Is the current behavior a bug?. After

[issue17291] Login-data raising EOFError

2013-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah that looks like stdin was closed or was /dev/null. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17291

[issue17291] Login-data raising EOFError

2013-02-24 Thread Riley
Riley added the comment: The script is being run from a cronjob with saved login data. And thus, there is no stdin for cronjobs as there's no attached terminal. Reopening. -- resolution: invalid - status: closed - open ___ Python tracker

[issue17291] Login-data raising EOFError

2013-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: File /home/riley/pywikipedia/userinterfaces/terminal_interface_base.py, line 129, in input text = getpass.getpass('') you can't call getpass without stdin or a terminal and expect it to do anything. your problem is in the pywikipedia code, not Python's

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, as with all similar subclasses, class op subclass = class unless one explicitly subclasses the answer or overrides the __op__ method to do that for you. class octint(int): 'int that displays as octal' def __str__(self): return oct(self)

[issue10799] Improve webbrowser (.open) doc and behavior

2013-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Before closing #8936, I realized that perhaps my user default browser *is* being called but is returning an error code. It does not really matter, where the error code comes from. I think 'using the default browser' should be expanded to ''using the first

[issue10799] Improve webbrowser (.open) doc and behavior

2013-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I no longer think we should touch the url; just pass it to each browser in turn, as needed, and let the user get the result. -- versions: +Python 3.3, Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue16997] subtests

2013-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: My day job these days is to work on the Beaker test system (http://beaker-project.org). I realised today that it actually includes a direct parallel to Antoine's proposed subtest concept: whereas in unittest, each test currently has exactly one result, in

[issue17293] uuid.getnode() MAC address on AIX

2013-02-24 Thread Aivars Kalvāns
New submission from Aivars Kalvāns: uuid.getnode() on AIX returned random integer. This patch finds MAC in output of `netstat -ia`. Tested on AIX 5.2 -- components: Library (Lib) files: aix_mac.patch keywords: patch messages: 182925 nosy: aivarsk priority: normal severity: normal

[issue10572] Move test sub-packages to Lib/test

2013-02-24 Thread Geoff Wilson
Geoff Wilson added the comment: The move will need to be done by someone with commit access. These patches came from using hg mv. After doing the move, there is some cleanup needed in each. These changes are included in the attached patches. --