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
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
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
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.
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
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list
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
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:
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
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
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
___
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
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
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
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',
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
Georg Brandl added the comment:
Updating 3.x branches is fine with me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17192
___
___
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
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
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
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
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
___
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
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
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
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:
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
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
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17279
___
___
Python-bugs-list
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
___
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
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
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
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
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
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
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
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
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
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
Arfrever Frehtes Taifersar Arahesis added the comment:
This patch works for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1470548
___
___
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
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
___
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
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
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:
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
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
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
___
___
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
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
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
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
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
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
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.
--
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
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
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 :)
--
Changes by Atsuo Ishimoto ishim...@gembook.org:
--
nosy: +ishimoto
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10952
___
___
Python-bugs-list
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
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 /
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
--
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17283
___
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
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
___
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
___
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.
--
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
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
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,
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
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
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
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
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
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)
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
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
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
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
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.
--
82 matches
Mail list logo