Martin v. Löwis mar...@v.loewis.de added the comment:
Martin, that is an interesting viewpoint, and one I considered, but
didn't state, because it seems much too restrictive. Most CGI
programs are written in scripting languages, not compiled to .exe.
So it seems the solution should allow
Gynvael Coldwind gynv...@gmail.com added the comment:
(since Issue 10491 is superseded by this one, I'll reply here)
As I've said in issue 10491, in my opinion this is not a case of frustrating
users because they have to elevate the console (I think they have to do that in
case of UAC
Martin v. Löwis mar...@v.loewis.de added the comment:
For 3.2, this now fixed in r86681.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10459
___
New submission from Vil viligno...@gmail.com:
scan on msi installer x86 win 3.x python gives Win32/Palevo.DZ worm and erases.
--
messages: 122101
nosy: VilIgnoble
priority: normal
severity: normal
status: open
title: Palevo.DZ worm msix86 installer 3.x installer
type: security
versions:
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
The rest of the code has clearly never had its deficiencies exposed on Windows,
simply because executable() has prevented that. So what the rest of the code
already supports is basically nothing. Reasonable Windows support is
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Senthil Kumaran writes:
I have doubts on the validity of this bug itself.
- First is, query and fragment are usually for the file being served
from the webserver, not on the directories. If there are characters such
as '?' and
New submission from Martin gzl...@googlemail.com:
My build got broken by the change for issue 9981 in revision 86137. The problem
is it adds $(IntDir) to various places in the vcproj file, including the
command line arguments to make_buildinfo, and my svn checkout is under a dir
with a space
Michael Foord mich...@voidspace.org.uk added the comment:
Eli - I quite agree. TestProgram is a *particularly* obscure part of unittest.
A much better solution (well - both would be ideal) would be to refactor the
code so that it isn't so obscure.
TestProgram is an artefact of unittest's
STINNER Victor victor.stin...@haypocalc.com added the comment:
no cookie found, returns ('utf-8', [line1, line2])
I never understood the usage of the second item. IMO it should be None if no
cookie found.
--
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch for 3.1 is r86685. The patch for 2.7 is r86686.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10459
Martin v. Löwis mar...@v.loewis.de added the comment:
Your suggestion of making CGIHTTPRequestHandler easier to subclass is
certainly a good one, and is almost imperative to implement to fix
this bug in a useful manner without implementing an insufficient set
of Windows extensions (for
Martin v. Löwis mar...@v.loewis.de added the comment:
Kristjan, can you take a look?
--
assignee: - krisvale
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10501
___
Changes by Senthil Kumaran orsent...@gmail.com:
--
assignee: facundobatista - orsenthil
nosy: -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1675455
___
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10483
___
___
Python-bugs-list
New submission from Michael Foord mich...@voidspace.org.uk:
Add the unittestgui test runner, built with Tk, to the Tools directory.
It would be good to have this script included in the bin/ directory of the Mac
installer as well.
The unittestgui runner can be found at:
Michael Foord mich...@voidspace.org.uk added the comment:
It will need documenting, or at least pointing to in the documentation,
probably with a note recommending Hudson for production use - unittestgui is a
tool for beginners / convenience.
Note also that Brian Curtin has contributed a
Ole Laursen o...@iola.dk added the comment:
Okay. I can only say that while the current docstrings are likely good
reminders for you, knowing Python in and out, they were pretty useless to me as
documentation, which I believe docstrings should be, they're called docstrings,
after all, not
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Ah yes, spaces in filenames. One always forgets.
Fixed the make_buildinfo.c (quote whole string, not just part of it) and
committed in revision 86689
--
resolution: - accepted
status: open - closed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Actually, I don't think it's a great idea in general to use temporary files for
logging, though of course there are specific cases where one might do this. So
for the logging examples in the docs (which used '/tmp/XXX') I just removed the
Rob Cliffe rob.cli...@btinternet.com added the comment:
Thanks for your work. Glad if I have made a contribution to Python,
however small.
Rob Cliffe
On 22/11/2010 00:26, Éric Araujo wrote:
Éric Araujomer...@netwok.org added the comment:
Thank you. I uploaded your patch to Rietveld and
Rob Cliffe rob.cli...@btinternet.com added the comment:
I would not be at all surprised if my patch could be simplified (in fact
I'd be surprised if it couldn't).
However, I did try out your version on Python 2.5 specifically, and it
did not work for me.
Trying it out on help(Exception), the
New submission from Giampaolo Rodola' g.rod...@gmail.com:
http://docs.python.org/library/os.html#os.getuid
os.getuid() documentation just states:
Return the current process’s user id.
It is not clear, however, whether user id refers to real, effective or saved
user id.
As per:
Éric Araujo mer...@netwok.org added the comment:
New features can only go into 3.2, so you have to test with an updated checkout
of the Subversion branch named py3k. See the link I have in a previous message.
(P.S. Would you be so kind as to edit quoted text out of your replies? It’s
Marc-Andre Lemburg m...@egenix.com added the comment:
I think that's a bug in the resetlocale() API.
The correct way to reset the locale setting to defaults, it to use
setlocale(category, )
The other issues here is that getlocale() appears to return non-ISO language
codes on Windows. If
Ezio Melotti ezio.melo...@gmail.com added the comment:
Committed in r86690 on py3k, blocked in r86691 and r88692 on 3.1/2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9424
___
Wes Chow wes.c...@gmail.com added the comment:
This same bug also exists in HTTPClient, and my patch addresses that.
Addressing it in HTTPClient has a side effect of taking care of it for urllib2
as well (and all future libraries that use HTTPClient).
Even if the urllib2 patch is preferable,
New submission from Johann Hanne pyt...@jf.hanne.name:
There are a number of mingw compile issues which are easily fixed
* some _MSC_VER #if's should be MS_WINDOWS instead
* for cross-compiling, windows.h should be all-lowercase
* mingw has a strcasecmp, so private implementations must not use
Changes by Éric Araujo mer...@netwok.org:
--
stage: unit test needed - patch review
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue940286
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Update: I think also os.getlogin() doc is wrong.
This is what it states (2.7 doc):
Return the name of the user logged in on the controlling terminal of
the process. For most purposes, it is more useful to use the
environment variable
Éric Araujo mer...@netwok.org added the comment:
Whatsnew documents are not edited after the corresponding release is done.
Using either /home/user or tempfile depending on the example seems good to me.
--
stage: needs patch - patch review
___
Changes by And Clover a...@doxdesk.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10490
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
Review time!
+elif [ in text:
+self.matches = self.dict_key_matches(text)
Does this complete only dicts? What about other mappings? What about other
sequences implementing __getitem__? One of the function name and
Éric Araujo mer...@netwok.org added the comment:
I tried to use “make patchcheck” after edits to reST files and it hung. Do you
have the same behavior? I suspect reindent-rst is the culprit.
I’m wondering about the reindenting; other checks in patchcheck don’t edit
files, they just print
R. David Murray rdmur...@bitdance.com added the comment:
I had a report from a user on IRC during the bug weekend that they could not
reproduce the failure on windows. So it may be dependent on the windows
version. That doesn't answer your question of why it hasn't come up before,
though,
anatoly techtonik techto...@gmail.com added the comment:
On Mon, Nov 22, 2010 at 3:59 PM, Éric Araujo rep...@bugs.python.org wrote:
Using either /home/user or tempfile depending on the example seems good to me.
There is no /home/user on Windows.
--
New submission from Stefan Krah stefan-use...@bytereef.org:
On Windows, test_compileall fails due to #10197:
==
FAIL: test_quiet (test.test_compileall.CommandLineTests)
Éric Araujo mer...@netwok.org added the comment:
Can you post on #10453? Thanks in advance.
--
nosy: +eric.araujo
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Add -h/--help option to compileall
Chris Lambacher ch...@kateandchris.net added the comment:
I don't understand what you mean by elides the line breaks in output. They
are still there, you just don't see them as \n because print() is no longer
implicitly converting the bytes to a string (which appears to actually result
in a
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10087
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
On Windows, test_compileall fails due to #10197. The patch uses
subprocess.check_output() instead. Technically, now byte strings
are compared instead of strings, but that should not matter for
the outcome.
--
nosy: +skrah
Added
Antoine Pitrou pit...@free.fr added the comment:
Well, unless someone explains convincingly how the current behaviour is
desireable (rather than misleading and useless), I really think this is
a bug that should be fix (then we can also discuss what the fix should
exactly be).
So
New submission from Tarsis Azevedo tarsis.azev...@gmail.com:
Hi all, when I use argparse in python prompt, and raise a exception, as the
code below:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-i' type=int)
parser.parse_args(['-i', 'a'])
the
Doug Shea doug.s...@gmail.com added the comment:
I have some knowledge of these things, so I'll try to find out what's going on,
but I could also upload output and/or debug files here for you to examine, if
that helps. If you give me the files you'd like to see from my build, or the
commands
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Nov 22, 2010 at 9:48 AM, Chris Lambacher rep...@bugs.python.org wrote:
..
I don't understand what you mean by elides the line breaks in output.
It is actually not that bad:
$ ./python.exe -m calendar -t html| wc
nh2 n...@deditus.de added the comment:
My problem was actually related to the subprocess.Popen I use inside my threads
in combination with signals. As Popen does not spawn a new thread, but a new
process, it completely ignores my locks.
However, it seems impossible to safely unregister
Nick Coghlan ncogh...@gmail.com added the comment:
Temporarily reopening to remind me to switch from using integer constants to
strings (which are much friendlier for debugging purposes).
--
status: closed - open
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Doug: thanks. I think I may just be being stupid here. One thing you might
try is replacing the line
extern double round(double);
in Include/pymath.h, with:
PyAPI_FUNC(double) round(double);
and see if that helps.
--
Doug Shea doug.s...@gmail.com added the comment:
I unpacked a fresh tarball, made this change, then did a ./configure and make
as normal. Exact same error as originally reported. :(
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
What's the objective of this patch? I.e. what precisely is it supposed to
achieve?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10504
Mark Dickinson dicki...@gmail.com added the comment:
Hmm. That's puzzling indeed.
I made a claim earlier that 'round' is already used in Objects/floatobject.c,
but it occurs to me now that that's not true if PY_NO_SHORT_FLOAT_REPR is
#defined.
Could you attach the pyconfig.h file produced
New submission from Dave Malcolm dmalc...@redhat.com:
Misc/NEWS needs to be valid reST.
Issue 10450 identified an issue where it wasn't.
make patchcheck potentially could check the markup of that file, and,
potentially all the other places in the source tree that are supposed to be
valid
Dave Malcolm dmalc...@redhat.com added the comment:
Opened as issue 10507
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10450
___
___
Doug Shea doug.s...@gmail.com added the comment:
Certainly!
--
Added file: http://bugs.python.org/file19773/pyconfig.h
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9742
___
Guido van Rossum gu...@python.org added the comment:
Yes please.
On Mon, Nov 22, 2010 at 7:44 AM, Nick Coghlan rep...@bugs.python.org wrote:
Nick Coghlan ncogh...@gmail.com added the comment:
Temporarily reopening to remind me to switch from using integer constants to
strings (which are
Chris Lambacher ch...@kateandchris.net added the comment:
I am attaching a new patch which fixes the majority of the comments raised.
1. Any suggestions about how to test the output of the console program (the
case that this bug affects) would be appreciated.
2. Agreed, included in the output
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Nov 22, 2010 at 11:55 AM, Chris Lambacher
rep...@bugs.python.org wrote:
..
1. Any suggestions about how to test the output of the console program (the
case that this bug affects)
would be appreciated.
For month
Chris Lambacher ch...@kateandchris.net added the comment:
The test_pydoc method looks workable, but I'll need to come back to it later
because I don't have any more time to work on it today.
--
___
Python tracker rep...@bugs.python.org
Johann Hanne pyt...@jf.hanne.name added the comment:
Python 2.7 will currently not compile with MinGW for the outlined reasons.
* There are several #if defined(_MSC_VER) macros which surround Windows
specific code/preprocessor fragments. But _MSC_VER is only defined with the
Visual Studio
Johann Hanne pyt...@jf.hanne.name added the comment:
What's the objective of this patch? I.e. what precisely is it supposed to
achieve?
So the answer is: It will fix compiling with gcc/MinGW by fixing the 3 issues
described.
--
___
Python
New submission from Jesús Cea Avión j...@jcea.es:
In r85679 Greorg committed a trivial patch to avoid a compiler warning.
I request this (single line fix) to be backported to 2.7.
My argument is that 2.7 is going to be live for quite long, the fix is trivial,
it is already in use in Py3k
New submission from Andreas Stührk andy-pyt...@hammerhartes.de:
If a non-ascii character is found and there isn't an encoding cookie, a
SyntaxError is raised (in `decoding_fgets`) that includes the path of the file
(using ``tok-filename``), but that path is never set. You can easily reproduce
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
keywords: +patch
Added file: http://bugs.python.org/file19775/PyTokenizer_FindEncoding_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10509
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10509
___
Changes by Santoso Wijaya santa@me.com:
--
nosy: +santa4nt
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10506
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Thanks. I'm still stuck, though. Since I'm pretty much at the wild guesses
stage, here's one:
wild idea Perhaps the pymath.o object file isn't being included in the Python
executable at all, because none of its functions are needed. Now
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Wed, Nov 17, 2010 at 5:20 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
-/* Encodes a Unicode object and returns the result as Python string
+/* Encodes a Unicode object and returns the result as Python bytes
Brett Cannon br...@python.org added the comment:
Just ran it without issue after doing an `svn up`.
As for fix vs. not, while fixing indentations and removing trailing whitespace
is nice, it isn't necessary. Both instances should be a rarity (most IDEs will
make sure the situation doesn't
Changes by Barry A. Warsaw ba...@python.org:
Removed file: http://bugs.python.org/file19564/9807.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
___
Barry A. Warsaw ba...@python.org added the comment:
Here's an updated patch which address's Matthias's last concerns.
--
Added file: http://bugs.python.org/file19776/9807.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
SilentGhost michael.mischurow+...@gmail.com added the comment:
In my original post, I mentioned that it might be just a documentation issue.
Could someone confirm that having map object returned is actually causing any
problems?
--
___
Python
Doug Shea doug.s...@gmail.com added the comment:
./python
Python 2.7 (r27:82500, Nov 22 2010, 10:06:14)
[GCC 3.3.2] on sunos5
Type help, copyright, credits or license for more information.
import sys
print sys.float_repr_style
short
So it appears, if I follow you, that PY_NO_SHORT_FLOAT_REPR
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed in r86697 (3.2) and r86698 (3.1).
@Éric: I tried to minimize whitespace changes in the commit, but if you see
indentation that can be improved, let me know and I'll fix it separately.
@SilentGhost: Yes, the
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6878
R. David Murray rdmur...@bitdance.com added the comment:
These are wrappers around the posix functions. As such the unix man pages are
a better authority than the Python docs :) Still, we could certainly improve
the docs.
The getlogin error is probably a miscopy from the man page: the man
R. David Murray rdmur...@bitdance.com added the comment:
This is working as designed. Whether or not the design is correct has been
debated in the past. If you want to re-debate it the appropriate place is
probably python-ideas.
--
nosy: +bethard, r.david.murray
resolution: -
R. David Murray rdmur...@bitdance.com added the comment:
This is a duplicate if issue 9291.
--
nosy: +r.david.murray
stage: - committed/rejected
status: open - closed
superseder: - mimetypes initialization fails on Windows because of non-Latin
characters in registry
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +aclover
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
___
___
Python-bugs-list
Daniel Tavares danielmtava...@gmail.com added the comment:
Hi Jesse,
Any word from PSF board regarding this issue? I was hoping to fix it and have
it be my 1st contribution to Python.
Thanks
--
nosy: +dBugSlayer
___
Python tracker
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Indeed, now that I google for getlogin, it's not easy to figure out what kind
of user it is supposed to return exactly.
For getuid() it seems pretty clear that we're talking about _real_ uid, though.
http://www.manpagez.com/man/2/getuid/
Max Arnold lwa...@gmail.com added the comment:
Our region recently switched to another timezone and I've noticed similar issue
while using Mercurial. There is some (hopefully) useful details:
http://mercurial.selenic.com/bts/issue2511
--
nosy: +LwarX
Jesse Noller jnol...@gmail.com added the comment:
We have to add the BSD header and maintain the copyright clause on all of the
multiprocessing files. Apologies for the delay
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
patchcheck.py is not so complicated; why don't you debug that hangup yourself?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9095
___
Doug Shea doug.s...@gmail.com added the comment:
I don't think there's anything wrong with the setup we've been looking at so
far, per se. The libpython2.7.a file produced has the 'round' function like it
should:
nm libpython2.7.a | grep round
[116] | 1360| 696|FUNC |GLOB |0|2
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9263
___
___
Python-bugs-list mailing
Dave Malcolm dmalc...@redhat.com added the comment:
Attaching a simplified version of the patch; I got rid of the callbacks.
Still doesn't have test cases.
I suspect that the use of __STRING and __PRETTY_FUNCTION__ may be compatibility
issues. I believe that __FILE__ and __LINE__ and
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10504
___
___
Sridhar Ratnakumar sridh...@activestate.com added the comment:
PYTHONIOENCODING=UTF-8 python test2.py does work.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6166
___
Martin gzl...@googlemail.com added the comment:
Thanks. Don't actually need to quote the whole path, but what you've landed
works for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10501
Daniel Stutzbach stutzb...@google.com added the comment:
Amaury Forgeot d'Arc said:
pypy does have a GIL!
D'oh. That shows you how much I know about PyPy. Make that keep in mind that
IronPython doesn't have a GIL. ;)
Brian Quinlan said:
I think that using the number of CPUs for
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I doubt this fix will be enough to fix compilation with mingw32.
But IMO it goes in the right direction.
With this patch, #ifdef MS_WINDOWS has the meaning of linked with some
version of MSVCRT. Do we agree on this, or is another
Martin v. Löwis mar...@v.loewis.de added the comment:
I doubt this fix will be enough to fix compilation with mingw32.
So somebody will have to verify independently. If it fails to fix
the bug completely, it's out of scope for 2.7 (it's out of scope for
2.7.1 IMO either way).
With this
Łukasz Langa luk...@langa.pl added the comment:
Adding a patch implementing the discussed functionality, removing almost all of
the ResourceWarnings raised by zipfile.
--
keywords: +patch
nosy: +lukasz.langa
stage: needs patch - patch review
Added file:
Łukasz Langa luk...@langa.pl added the comment:
Committed in rev 86699.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9846
Daniel Stutzbach stutzb...@google.com added the comment:
I'm starting to get settled in here at Google and finding time to follow up on
everything that got put on hold while moving.
Based on the feedback everyone gave me (thanks!), I greatly revised my script
for comparing the speed of
Changes by Daniel Stutzbach stutzb...@google.com:
Added file: http://bugs.python.org/file19780/sort-faster.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9915
___
Changes by Daniel Stutzbach stutzb...@google.com:
Added file: http://bugs.python.org/file19781/detailed-speed-results.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9915
___
Antoine Pitrou pit...@free.fr added the comment:
Worthwhile trade?
+1 obviously.
Why don't you contribute a list sorting benchmark to the suite in
http://hg.python.org/benchmarks/?
--
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
superseder: documentation for new SSL module - readline configuration for
shared libs w/o curses dependencies
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1676121
Daniel Stutzbach stutzb...@google.com added the comment:
Antoine Pitrou rep...@bugs.python.org wrote:
Why don't you contribute a list sorting benchmark to the suite in
http://hg.python.org/benchmarks/?
I considered that, but I want to separately benchmark sorting different kinds
and
Antoine Pitrou pit...@free.fr added the comment:
Le mardi 23 novembre 2010 à 00:10 +, Daniel Stutzbach a écrit :
Daniel Stutzbach stutzb...@google.com added the comment:
Antoine Pitrou rep...@bugs.python.org wrote:
Why don't you contribute a list sorting benchmark to the suite in
1 - 100 of 125 matches
Mail list logo