Senthil Kumaran orsent...@gmail.com added the comment:
Fixed and committed in revision 85125.
Actually, this changes the behavior of BaseHTTPServer a little and adds two new
methods to the code, so I don't think, this should be back-ported to 2.7 and
3.1. If older code were to encounter the
New submission from David wizza...@gmail.com:
Hi, I mentioned this on the mailing list over here:
http://mail.python.org/pipermail/python-list/2010-September/1256407.html
I think it's a Python bug, so reposting it here:
-
Hi there, I have a strange situation.
If I do this:
1.
Mark Dickinson dicki...@gmail.com added the comment:
Delphi uses the following code at initialization.
Yep. That would explain the problem. On x86 machines, Python's
string-to-float and float-to-string conversions require that the x87 FPU has
precision set to 53 bits rather than 64 bits
Mark Dickinson dicki...@gmail.com added the comment:
[Eric]
There's no doubt a performance issue with doing so, although someone
would have to measure that. It may well be swamped by the memory
allocation, etc. that is going on at the same time and so won't matter.
Yes, I think changing the
Mark Dickinson dicki...@gmail.com added the comment:
It looks like you may need to override these macros for PyScripter.
Stupid. Of course, this isn't an option if you're using the existing Python
dll directly.
For PyScripter, can you alter your Delphi layer to drop back to the normal
Alexander Dreyer adre...@gmx.de added the comment:
The idea is, that an environment variable can be set globally by the
master-build system or the packaging system. In contrary, the --no-user-cfg
switch has to be added to the build description of each individial package. For
strongly
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
New submission from STINNER Victor victor.stin...@haypocalc.com:
On UNIX/BSD systems, Python decodes arguments with the locale encoding,
whereas subprocess encodes arguments with the fileystem encoding. If both
Nir Aides n...@winpdb.org added the comment:
Hi Antoine,
BufferedIOBase is not documented to have peek():
http://docs.python.org/dev/py3k/library/io.html
Small note about patch:
1) IOError string says read() on write-only..., should be peek() on
write-only... ?
2) Should be min() in
Alexander Dreyer adre...@gmx.de added the comment:
Of course, I mean: The error will *not* be detected...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9309
___
Michael Brickenstein brickenst...@mfo.de added the comment:
Actually, Sage acts in a similar way like virtualenvs do.
In fact, config files are also a problem for virtualenv, see second red box
here:
http://wiki.pylonshq.com/display/pylonscookbook/Using+a+Virtualenv+Sandbox
cite:
---
STINNER Victor victor.stin...@haypocalc.com added the comment:
The problem with command line arguments is that they don't necessarily
have just one encoding (just like env vars may well use more than
one encoding) on Unix platforms.
The issue #8776 proposes the creation of sys.argv.
When
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. Do you want to work on a patch?
--
components: +Library (Lib) -Extension Modules
nosy: +eric.araujo, orsenthil
stage: - needs patch
versions: +Python 3.2
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
The problem with command line arguments is that they don't necessarily
have just one encoding (just like env vars may well use more than
one
Geoffrey Bache gjb1...@users.sourceforge.net added the comment:
Thanks for the tips, looks like we have the basis for a solid workaround here.
Perhaps that could be encapsulated and added as sys.raw_argv or something in
future?
--
___
Python
New submission from anatoly techtonik techto...@gmail.com:
That's very annoying that distutils asks to save your pass when uploading to
PyPI, but refuses to upload if you refuse. So you end up with storing your
password in cleartext.
Try the next command to see what I mean:
setup.py register
Stefan Krah stefan-use...@bytereef.org added the comment:
I wonder if calling _Py_SET_53BIT_PRECISION_START/_Py_SET_53BIT_PRECISION_END
every time will have any measurable effect on performance. First, string
conversions have a lot of overhead already. Then, for compilers that already
set the
Tim Golden m...@timgolden.me.uk added the comment:
Suggest you raise a separate feature-request issue for that, Geoff, perhaps
offering the two implementations described. Perhaps raise it it on python-ideas
first to gauge reactions. I'm +0 myself since it's so easy to do anyway and I
don't
STINNER Victor victor.stin...@haypocalc.com added the comment:
Extract of an interesting message (msg111432) of #8775 (issue specific to Mac
OS X):
A system where the filesystem encoding doesn't match the locale encoding is
hard to get right. While it would be possible to add
STINNER Victor victor.stin...@haypocalc.com added the comment:
A system where the filesystem encoding doesn't match the locale
encoding is hard to get right.
Mmmh. The problem is maybe that the new PYTHONFSENCODING environment variable
(added by #8622) introduced an horrible inconstency
Nick Coghlan ncogh...@gmail.com added the comment:
From a function *user* perspective, the latter API (bytes-bytes, str-str) is
exactly what I'm doing.
Antoine's point is that there are two ways to achieve that:
Option 1 (what my patch currently does):
- provide bytes and str variants of all
STINNER Victor victor.stin...@haypocalc.com added the comment:
Option 2 (the alternative Antoine suggested and I'm considering):
- decode ... to str ...
- ... objects are encoded back to actual bytes before
they are returned
In this case, you have to be very careful to not mix str and
Stefan Krah stefan-use...@bytereef.org added the comment:
I benchmarked _PyOS_ascii_strtod without the macros, with the macros
and with always calling both fnstcw/fldcw. There is no real difference:
import timeit
s = str(38210.0)
t = timeit.Timer(stmt=s)
t.timeit(number=1000)
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the numbers, Stefan.
What about in the reverse direction (string to float)? I don't expect any real
difference there, either, but it would be good to check.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Whoops; that *was* string to float. How about float to string?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9980
___
Ole Laursen o...@iola.dk added the comment:
Just came across this bug, I don't want to reopen this or anything, but
regarding the SSE2 code I couldn't help thinking that why can't you just detect
the presence of SSE2 when the interpreter starts up and then switch
implementations based on
Nick Coghlan ncogh...@gmail.com added the comment:
Yeah, the general implementation concept I'm thinking of going with for option
2 will use a few helper functions:
url, coerced_to_str = _coerce_to_str(url)
if coerced_to_str:
param = _force_to_str(param) # as appropriate
...
return
Fred L. Drake, Jr. fdr...@acm.org added the comment:
At this point, I'm more in favor of adopting something closer to the setuptools
scripts based on console_scripts entry points, and dropping old-style scripts
entirely (most *because* of the issues I mentioned at the start).
--
Fred L. Drake, Jr. fdr...@acm.org added the comment:
As noted in issue 976869, I'm very much in the camp of entry-point based
generated scripts, which should clearly use the right line endings for the host
platform.
Hacking around with the file copy just doesn't make sense moving forward.
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9873
___
___
Python-bugs-list
New submission from Arnon Yaari wiggi...@gmail.com:
binascii is currently bytes-only, although the a in a2b\b2a should refer to
unicode strings.
This patch fixes all a2b functions to take str type and all b2a functions to
return str types.
This was discussed several times, for example:
Mark Dickinson dicki...@gmail.com added the comment:
I would feel more comfortable if the correct FPU state is guaranteed.
I agree, in principle. In practice there are some thorny issues to deal with,
and things to think about:
(1) The method for getting and setting the FPU precision varies
Stefan Krah stefan-use...@bytereef.org added the comment:
Mark Dickinson rep...@bugs.python.org wrote:
Whoops; that *was* string to float. How about float to string?
These are the results for format_float_short. The first one is quite funny:
If the control word is left as is (64-bit prec on
Stefan Krah stefan-use...@bytereef.org added the comment:
The tracker swallowed some parts of my mail:
In general, execution times for _Py_dg_dtoa vary quite a bit depending on
the number that is converted:
s = str(1.5e300)
t = timeit.Timer(stmt=s)
t.timeit(number=1000)
New submission from Ivo van der Wijk python@in.m3r.nl:
This issue is also discussed on Stackoverflow:
http://stackoverflow.com/q/3828611/320057
The following code
def top(deck):
pass
def b():
global deck
results in the error SyntaxError: name 'deck' is local and global (slightly
Jeremy Hylton jhyl...@gmail.com added the comment:
Let me fix that.
--
nosy: +Jeremy.Hylton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9997
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9994
___
___
Python-bugs-list
v_peter leanmeandonothingmach...@gmail.com added the comment:
Which branches should i make patches for then? release27-maint and
release31-maint?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9042
Stefan Krah stefan-use...@bytereef.org added the comment:
On an older Celeron platform the differences are up to 7%, but again,
the number that is converted has a far greater impact:
None:
=
s = str(38210.0)
t = timeit.Timer(stmt=s)
t.timeit(number=100)
3.277189016342163
Tim Peters tim.pet...@gmail.com added the comment:
About thread state, the C standard is no help. That's an OS decision. All
OSes I'm aware of do save/restore FPU state across thread switches. Doesn't
mean all OSes do, just that I don't know of an exception.
--
nosy: +tim_one
Antoine Pitrou pit...@free.fr added the comment:
There's a configure-time check that works out whether resetting the
precision is necessary; if so, the precision is changed before each
conversion and reverted again afterwards
How about doing the check in Py_Initialize() instead? Then it
Kiriakos Vlahos pyscrip...@gmail.com added the comment:
For PyScripter, can you alter your Delphi layer to drop back to the normal
default 53-bit precision before calling any Python stuff?
Yes sure. That is how I traced the source of the problem.
--
New submission from Jonathan Niehof jnie...@lanl.gov:
It's come up on occasion (#2936,
http://osdir.com/ml/python.ctypes/2008-05/msg00046.html) that ctypes
find_library doesn't search LD_LIBRARY_PATH for libraries, which is different
behaviour from the runtime linker. The attached patch adds
Kiriakos Vlahos pyscrip...@gmail.com added the comment:
How about doing the check in Py_Initialize() instead? Then it will work for
embedders too.
It is not good practice for DLLs to change the FPU control word when loaded,
because the host application may have set it to a specific value for a
Kiriakos Vlahos pyscrip...@gmail.com added the comment:
How about doing the check in Py_Initialize() instead? Then it will work for
embedders too.
It is not good practice for DLLs to change the FPU control word when loaded,
because the host application may have set it to a specific value for a
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +flox, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9996
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Regardless of the various arguments, I think it is too late to break
compatibility again, by disallowing bytes input, or changing the output type.
What we could do is allow str arguments to a2b_ functions, with the restriction
that the argument
Éric Araujo mer...@netwok.org added the comment:
It looks like this should be solved in Sphinx. Can you report this on its
tracker at Bitbucket? Thanks.
--
nosy: +eric.araujo, georg.brandl
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9977
___
___
Python-bugs-list
New submission from R. David Murray rdmur...@bitdance.com:
In investigating issue 9993, I noticed that test_shutil wants to test things
that require cross-file-system links, and arranges to have such links by
creating a files and directories in the cwd and using tempfile. Presumably the
hope
Martin v. Löwis mar...@v.loewis.de added the comment:
-1 on this patch; I think any change must get consensus on python-dev first,
and there is no point in resolving this in the bug tracker. If no agreement can
be found (which is actually likely), a PEP needs to be written.
My personal
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
When porting pypy to 2.7, we found that many tests actually exercise features
specific to CPython, either the garbage collector, or the precise memory layout
(__sizeof__).
They should be marked as such, and skipped when run with
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello Jan,
I noticed this bug and I wondered: what's your opinion now?
Optparse is deprecated and it will be replaced by argparse, so I'm not sure
it's interesting to introduce a new feature (the format_usage() method) but
it might still be
Gregory P. Smith g...@krypto.org added the comment:
can i have you do another experiment here?
after you ssh r...@testbox /tmp/test.{py,sh} can you:
1) login to testbox, run pstree -p
2) run an strace -p pid_of_python_or_bash strace_for_foo.out (for each of the
test.py and test.sh processes)
Jean-Paul Calderone inva...@example.invalid added the comment:
fwiw http://mail.python.org/pipermail/python-list/2010-September/1256545.html
--
nosy: +exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9994
Gregory P. Smith g...@krypto.org added the comment:
Ah right, thanks. I added a restore_signals=True argument to Popen in Python
3.2's subprocess module that does what you want:
http://docs.python.org/dev/library/subprocess.html
The way to emulate that in earlier versions is to use a
R. David Murray rdmur...@bitdance.com added the comment:
I can confirm that the tests fail before the patch (but if an only if /tmp is a
different file system from the one where the build is, see issue ) and pass
after the patch. The patch itself looks good to me and does accord better
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9996
___
___
Antoine Pitrou pit...@free.fr added the comment:
Hir Nir,
BufferedIOBase is not documented to have peek():
http://docs.python.org/dev/py3k/library/io.html
Ah, you're right.
Small note about patch:
1) IOError string says read() on write-only..., should be peek() on
write-only... ?
Jonathan Niehof jnie...@lanl.gov added the comment:
Might it make sense to skip-decorate those tests which require
cross-filesystem? Put a test above the TestMove definition which compares
tempfile.gettempdir() and os.path.dirname(__file__).
I don't know of an out-of-the-box function to see
New submission from Lenard Lindstrom le...@telus.net:
Python 3.2a2+ (py3k:85072M, Sep 29 2010, 12:11:17) (from SVN)
[GCC 4.4.5 20100728 (prerelease)] on linux2 (Debian squeeze)
The ~Py_buffer.obj field is undocumented. Yet memoryview, that acts as a
wrapper, includes the field in gc traversal.
Changes by Dan Uznanski duznan...@gmail.com:
--
nosy: +dan.uznanski
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9997
___
___
Python-bugs-list
Benjamin Peterson benja...@python.org added the comment:
This seems rather open-ended and all-encompassing. Wouldn't it be better to
have individual issues for specific tests?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Antoine: Thanks for the correction. I was mistaken about versions some months
ago and wrote such misleading comments in a handful of bugs. It has been
corrected in some of them but not all.
v_peter: You don’t have to do anything, it’s the job
Éric Araujo mer...@netwok.org added the comment:
(I’m not sure my last line is unambiguous. I meant : Don’t worry, this will
get in shortly.)
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9042
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
attached a patch that adds the exiting methods (exit() and error()) to argparse
documentation.
Regards,
Sandro
--
keywords: +patch
nosy: +sandro.tosi
Added file: http://bugs.python.org/file19070/issue9112-py3k.patch
Barry A. Warsaw ba...@python.org added the comment:
I have a some code available for review here:
http://codereview.appspot.com/2340041/
I've actually gone down a farther path than I originally intended, but I do
kind of like where this is heading. It will allow me to install different
New submission from joblack johannes.bl...@gmail.com:
I tried to install the 32 Bit Python 2.7 Version (32 Bit version because of
some 32 bit plugins) on a Windows Server 2008 DataCenter R2 and short at the
end it throws the attached error message.
Have you tried your Python 2.7 on a Windows
Changes by joblack johannes.bl...@gmail.com:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10002
___
___
Python-bugs-list
Barry A. Warsaw ba...@python.org added the comment:
dmalcom and doko remind me that we need to handle the .so when --enable-shared
is included
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
Yotam Medini yo...@users.sourceforge.net added the comment:
The HTMLParser.py fails when inside
script ... /script
it can fooled by JavaScript with less-than '' conditional expressions.
In the attached example:
$ tar tvzf lt-in-script-example.tgz | cut -c24-
796 2010-09-30 16:52 h2t.py
Yotam Medini yo...@users.sourceforge.net added the comment:
The attached suggested patch fixes the problems shown in msg117762.
--
Added file: http://bugs.python.org/file19073/HTMLParser.diff
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw ba...@python.org added the comment:
doko so -Wl,-h soname is what counts [17:48]
doko barry: and it would be good to have this soname available in this new
module too [17:49]
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
Please run msiexec /i python-2.7.msi /l*v python.log, and compress and attach
the resulting log file.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10002
Changes by Antoine Pitrou pit...@free.fr:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9962
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch fixing these issues.
--
Added file: http://bugs.python.org/file19074/gzipfixup.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9962
joblack johannes.bl...@gmail.com added the comment:
requested log file
--
title: Installer doesn't install on Windows Server 2008 DataCenter R2 -
requested log file
Added file: http://bugs.python.org/file19075/python.zip
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
In this specific run, the critical error was this:
MSI (s) (38:74) [00:36:38:068]: Assembly Error:Der angeforderte Vorgang war
nicht erfolgreich. Es ist ein Systemneustart erforderlich, um die
durchgeführten Änderungen rückgängig zu
Changes by Martin v. Löwis mar...@v.loewis.de:
--
title: requested log file - Installer doesn't install on Windows Server 2008
DataCenter R2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10002
New submission from Martin gzl...@googlemail.com:
The change in response to bug 9324 breaks bzr on windows as we use
signal.SIGBREAK to listen for a ctrl+break keyboard press.
Although SIGBREAK is not documented as valid on:
http://msdn.microsoft.com/library/xdkz3x12
It does in fact work and
Antoine Pitrou pit...@free.fr added the comment:
The recommended way is to use PyBuffer_FillInfo() (and then fill in any
additional data if necessary), which will set the pointer and incref it itself.
I agree all this is a bit poorly documented.
--
assignee: - d...@python
components:
Martin gzl...@googlemail.com added the comment:
Also, the test seems to set signal handlers and never unset them, which I've
also corrected.
--
keywords: +patch
Added file: http://bugs.python.org/file19076/sigbreak_windows_10003.patch
___
Python
Changes by Brian Curtin cur...@acm.org:
--
assignee: - brian.curtin
resolution: - accepted
stage: - patch review
type: - behavior
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10003
joblack johannes.bl...@gmail.com added the comment:
cbs.log
--
title: Installer doesn't install on Windows Server 2008 DataCenter R2 - cbs.log
Added file: http://bugs.python.org/file19077/CBS.zip
___
Python tracker rep...@bugs.python.org
Steve Holden st...@holdenweb.com added the comment:
Of course, but better some record than none due to the overwhelming nature of
the task. At least someone else can carry the torch from here.
--
nosy: +holdenweb
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
New version of the patch that adds many more tests, and handles non-ASCII bytes
in header values by changing them to '?'s when the header value is retrieved as
a string. I think I'm half done. Still to do: generate_bytes, and the doc
Alexis Metaireau ametair...@gmail.com added the comment:
Please, can you be a bit more precise about the missing features ? I'll be glad
to cover them.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8190
MunSic JEONG rus...@gmail.com added the comment:
belopolsky
I am little worried about my words. I made patch against 2.7-maint branch. But
I recognized that patch is not following rules, because of your guidance. Then
I uploaded another patch against py3k branch again. and
R. David Murray rdmur...@bitdance.com added the comment:
Please don't change the subject, it changes the bug title, which makes the bug
report less useful :)
--
nosy: +r.david.murray
title: cbs.log - Installer doesn't install on Windows Server 2008 DataCenter R2
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment:
I can confirm this bug. Attached is the test case.
--
keywords: +patch
nosy: +jfinkels
Added file: http://bugs.python.org/file19079/issue1050268.testcase.patch
___
Python tracker
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment:
There seems to be a test case for this:
http://svn.python.org/view/python/trunk/Lib/distutils/tests/test_sysconfig.py?view=diffr1=73340r2=73341
--
nosy: +jfinkels
___
Python
90 matches
Mail list logo