[issue1481347] parse_makefile doesn't handle $$ correctly

2010-09-30 Thread Jeffrey Finkelstein
Jeffrey Finkelstein 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=diff&r1=73340&r2=73341 -- nosy: +jfinkels ___ Python tracker

[issue1050268] rfc822.parseaddr is broken, breaks sendmail call in smtplib

2010-09-30 Thread Jeffrey Finkelstein
Jeffrey Finkelstein 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

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-09-30 Thread R. David Murray
R. David Murray 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 ___ Pyt

[issue6608] asctime does not check its input

2010-09-30 Thread MunSic JEONG
MunSic JEONG 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 issue6608-p3k.patch could be appli

[issue8190] Add a PyPI XML-RPC client module

2010-09-30 Thread Alexis Metaireau
Alexis Metaireau added the comment: Please, can you be a bit more precise about the missing features ? I'll be glad to cover them. -- ___ Python tracker ___

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-09-30 Thread R. David Murray
R. David Murray 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 updates. By the way,

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Steve Holden
Steve Holden 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

[issue10002] cbs.log

2010-09-30 Thread joblack
joblack 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 __

[issue10003] signal.SIGBREAK regression on windows

2010-09-30 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin resolution: -> accepted stage: -> patch review type: -> behavior versions: -Python 3.3 ___ Python tracker ___

[issue10003] signal.SIGBREAK regression on windows

2010-09-30 Thread Martin
Martin 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 tracker

[issue10001] ~Py_buffer.obj field is undocumented, though not hidden

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou 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: +Documentatio

[issue10003] signal.SIGBREAK regression on windows

2010-09-30 Thread Martin
New submission from Martin : 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: It does in fact work and corresponds to CTRL_B

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-09-30 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- title: requested log file -> Installer doesn't install on Windows Server 2008 DataCenter R2 ___ Python tracker ___ __

[issue10002] requested log file

2010-09-30 Thread Martin v . Löwis
Martin v. Löwis 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 machen. So please do reb

[issue10002] requested log file

2010-09-30 Thread joblack
joblack 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

[issue9962] GzipFile doesn't have peek()

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch fixing these issues. -- Added file: http://bugs.python.org/file19074/gzipfixup.patch ___ Python tracker ___

[issue9962] GzipFile doesn't have peek()

2010-09-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-09-30 Thread Martin v . Löwis
Martin v. Löwis 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 _

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: so -Wl,-h is what counts [17:48] barry: and it would be good to have this soname available in this new module too [17:49] -- ___ Python tracker _

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2010-09-30 Thread Yotam Medini
Yotam Medini added the comment: The attached suggested patch fixes the problems shown in msg117762. -- Added file: http://bugs.python.org/file19073/HTMLParser.diff ___ Python tracker _

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2010-09-30 Thread Yotam Medini
Yotam Medini added the comment: The HTMLParser.py fails when inside ... 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 23678 2010-09-30 16:39 t.html here'

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: dmalcom and doko remind me that we need to handle the .so when --enable-shared is included -- ___ Python tracker ___ _

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-09-30 Thread joblack
Changes by joblack : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-09-30 Thread joblack
New submission from joblack : 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 Server 2008 R2?

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-30 Thread Barry A. Warsaw
Barry A. Warsaw 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 Python builds of the

[issue9112] argparse missing documentation for error() method

2010-09-30 Thread Sandro Tosi
Sandro Tosi 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 __

[issue9042] Gettext cache and classes

2010-09-30 Thread Éric Araujo
Éric Araujo 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 ___ __

[issue9042] Gettext cache and classes

2010-09-30 Thread Éric Araujo
Éric Araujo 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 of the committer

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Benjamin Peterson
Benjamin Peterson 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 _

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-09-30 Thread Dan Uznanski
Changes by Dan Uznanski : -- nosy: +dan.uznanski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10001] ~Py_buffer.obj field is undocumented, though not hidden

2010-09-30 Thread Lenard Lindstrom
New submission from Lenard Lindstrom : 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. Also, if the fi

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they pruport to test)

2010-09-30 Thread Jonathan Niehof
Jonathan Niehof 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 if two paths are o

[issue9962] GzipFile doesn't have peek()

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou 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..." ? Indeed. >

[issue9996] binascii should convert unicode strings

2010-09-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9993] shutil.move fails on symlink source

2010-09-30 Thread R. David Murray
R. David Murray 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 with how 'mv' works. -

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Gregory P. Smith
Gregory P. Smith 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 preexec_fn to restore

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: fwiw http://mail.python.org/pipermail/python-list/2010-September/1256545.html -- nosy: +exarkun ___ Python tracker ___

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Gregory P. Smith
Gregory P. Smith 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) 3) interrupt

[issue6253] optparse.OptionParser.get_usage uses wrong formatter

2010-09-30 Thread Sandro Tosi
Sandro Tosi 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 interesting to fix

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : 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 pypy. -- messa

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Martin v . Löwis
Martin v. Löwis 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 favorite would be to a) l

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they pruport to test)

2010-09-30 Thread R. David Murray
New submission from R. David Murray : 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 (and the comments mak

[issue9977] TestCase.assertItemsEqual's description of differences

2010-09-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9986] PDF files of python docs have text missing

2010-09-30 Thread Éric Araujo
Éric Araujo 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 _

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou 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 must not contai

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9980] str(float) failure

2010-09-30 Thread Kiriakos Vlahos
Kiriakos Vlahos 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 good reason.

[issue9980] str(float) failure

2010-09-30 Thread Kiriakos Vlahos
Kiriakos Vlahos 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 good reason.

[issue9998] find_library should search LD_LIBRARY_PATH on linux

2010-09-30 Thread Jonathan Niehof
New submission from Jonathan Niehof : 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 this search. Unf

[issue9980] str(float) failure

2010-09-30 Thread Kiriakos Vlahos
Kiriakos Vlahos 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. -- ___ Python t

[issue9980] str(float) failure

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou 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 will work for

[issue9980] str(float) failure

2010-09-30 Thread Tim Peters
Tim Peters 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 _

[issue9980] str(float) failure

2010-09-30 Thread Stefan Krah
Stefan Krah 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 >>> t.timeit(number=1

[issue9042] Gettext cache and classes

2010-09-30 Thread v_peter
v_peter added the comment: Which branches should i make patches for then? release27-maint and release31-maint? -- ___ Python tracker ___

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-09-30 Thread Jeremy Hylton
Jeremy Hylton added the comment: Let me fix that. -- nosy: +Jeremy.Hylton ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-09-30 Thread Ivo van der Wijk
New submission from Ivo van der Wijk : 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 different for 3.x

[issue9980] str(float) failure

2010-09-30 Thread Stefan Krah
Stefan Krah 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) 5.09749007225036

[issue9980] str(float) failure

2010-09-30 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson 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 Linux), _Py_dg_dtoa apparently requires more it

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson 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 from platform to

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Arnon Yaari
New submission from Arnon Yaari : 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: http://www.gossamer-thre

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-30 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue870479] Scripts need platform-dependent handling

2010-09-30 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. 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. -- _

[issue976869] Stripping script extensions with distutils

2010-09-30 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. 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). -- _

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-30 Thread Nick Coghlan
Nick Coghlan 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 _undo_coercion(result, coe

[issue1580] Use shorter float repr when possible

2010-09-30 Thread Ole Laursen
Ole Laursen 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 that? I think tha

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; that *was* string to float. How about float to string? -- ___ Python tracker ___ ___ Pytho

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson 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

[issue9980] str(float) failure

2010-09-30 Thread Stefan Krah
Stefan Krah 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) t.timeit(number=1000) t.timeit(n

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-30 Thread STINNER Victor
STINNER Victor 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 bytes decoded to str u

[issue9873] Allow bytes in some APIs that use string literals internally

2010-09-30 Thread Nick Coghlan
Nick Coghlan 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 constants - cho

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-09-30 Thread STINNER Victor
STINNER Victor 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 between Python and other appli

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-09-30 Thread STINNER Victor
STINNER Victor 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 sys.cmdlineencoding that doesn't actually

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-30 Thread Tim Golden
Tim Golden 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 know how common a requi

[issue9980] str(float) failure

2010-09-30 Thread Stefan Krah
Stefan Krah 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 correct control word, only

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-09-30 Thread anatoly techtonik
New submission from anatoly techtonik : 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 sdist upload -

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-30 Thread Geoffrey Bache
Geoffrey Bache 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 tracker

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-09-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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

[issue9968] Let cgi.FieldStorage have named uploaded file

2010-09-30 Thread Éric Araujo
Éric Araujo 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

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-09-30 Thread STINNER Victor
STINNER Victor 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 using path and file names

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-09-30 Thread Michael Brickenstein
Michael Brickenstein 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: --- Virtualenv is currently inco

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-09-30 Thread Alexander Dreyer
Alexander Dreyer added the comment: Of course, I mean: The error will *not* be detected... -- ___ Python tracker ___ ___ Python-bugs-l

[issue9962] GzipFile doesn't have peek()

2010-09-30 Thread Nir Aides
Nir Aides 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 self._read(max(self.m

[issue9992] Command line arguments are not correctly decoded if locale and fileystem encodings are different

2010-09-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > On UNIX/BSD systems, Python decodes arguments with the locale encoding, > whereas subprocess encodes arguments with the fileystem encoding. If both > encodings are differents, we have a p

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-09-30 Thread Alexander Dreyer
Alexander Dreyer 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 community-driven projec

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson 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 default 53-bit precisi

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson 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 FPU state involv

[issue9980] str(float) failure

2010-09-30 Thread Mark Dickinson
Mark Dickinson 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 (and also that the F

[issue9994] Python becoming orphaned over ssh

2010-09-30 Thread David
New submission from David : 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. Make a script /tmp/te