[issue2304] subprocess under windows fails to quote properly when shell=True

2009-08-12 Thread David Fraser

Changes by David Fraser dav...@sjsoft.com:


--
nosy: +davidfraser

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2304
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers

Chris Withers ch...@simplistix.co.uk added the comment:

I tried to use the following to change the buffersize for a download:

from base64 import encodestring
from httplib import HTTPResponse,HTTPConnection,HTTPSConnection,_UNKNOWN
from datetime import datetime

class FHTTPResponse(HTTPResponse):

def __init__(self, sock, debuglevel=0, strict=0, method=None):
print creating response
self.fp = sock.makefile('rb',4096)
self.debuglevel = debuglevel
self.strict = strict
self._method = method

self.msg = None

# from the Status-Line of the response
self.version = _UNKNOWN # HTTP-Version
self.status = _UNKNOWN  # Status-Code
self.reason = _UNKNOWN  # Reason-Phrase

self.chunked = _UNKNOWN # is chunked being used?
self.chunk_left = _UNKNOWN  # bytes left to read in current 
chunk
self.length = _UNKNOWN  # number of bytes left in 
response
self.will_close = _UNKNOWN  # conn will close at end of 
respons
class FHTTPConnection(HTTPConnection):
response_class = FHTTPResponse

class FHTTPSConnection(HTTPSConnection):
response_class = FHTTPResponse

conn = FHTTPSConnection('localhost')
headers = {}
auth = 'Basic '+encodestring('usernmae:password').strip()
headers['Authorization']=
t = datetime.now()
print t
conn.request('GET','/somefile.zip',None,headers)
print 'request:',datetime.now()-t
response = conn.getresponse()
print 'response:',datetime.now()-t
data = response.read()
print 'read:',datetime.now()-t

..however, I saw absolutely no change in download speed.

Aren, I notice in your pastebin code that you do response.read(10485700) 
in a loop rather than just one response.read(), why is that?

--
nosy: +cjw296

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread David Fraser

New submission from David Fraser dav...@sjsoft.com:

(from
http://stackoverflow.com/questions/1253122/why-does-subprocess-popen-with-shelltrue-work-differently-on-linux-vs-windows/1254322)

When using subprocess.Popen(args, shell=True) to run gcc --version
(just as an example), on Windows we get this:

 from subprocess import Popen
 Popen(['gcc', '--version'], shell=True)
gcc (GCC) 3.4.5 (mingw-vista special r3) ...

So it's nicely printing out the version as I expect. But on Linux we get
this:

 from subprocess import Popen
 Popen(['gcc', '--version'], shell=True)
gcc: no input files

Because gcc hasn't received the --version option.

The docs don't specify exactly what should happen to the args under
Windows, but it does say, on Unix, If args is a sequence, the first
item specifies the command string, and any additional items will be
treated as additional shell arguments. IMHO the Windows way is better,
because it allows you to treat Popen(arglist) calls the same as
Popen(arglist, shell=True) ones.

The strange implementation is actually the UNIX one, which does the
following (where each space separates a different argument):

/bin/sh -c gcc --version

It looks like the correct implementation (at least on Linux) would be:

/bin/sh -c gcc --version gcc --version

Since this would set the command string from the quoted parameters, and
pass the other parameters successfully.

From the sh man page section for -c:

Read commands from the command_string operand instead of from the
standard input. Special parameter 0 will be set from the command_name
operand and the positional parameters ($1, $2, etc.) set from the
remaining argument operands.

This patch seems to fairly simply do the trick, as well as testing it.

--
components: Library (Lib)
files: current-2.6.patch
keywords: patch
messages: 91492
nosy: davidfraser
severity: normal
status: open
title: subprocess doesn't pass arguments correctly on Linux when shell=True
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file14697/current-2.6.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6689
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread David Fraser

Changes by David Fraser dav...@sjsoft.com:


Added file: http://bugs.python.org/file14698/current-3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6689
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I must admit I don't understand the conflict between buffering and
pipelined requests. This is all sequential reading and the buffer should
be transparent, shouldn't it?

--
nosy: +pitrou
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers

Chris Withers ch...@simplistix.co.uk added the comment:

Well, for me, buffer size doesn't appear to have made any difference...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Jeffrey C. Jacobs

Jeffrey C. Jacobs timeho...@users.sourceforge.net added the comment:

/lurk
Re: timings

Thanks for the info, John.  First of all, I really like those tests and
could you please submit a patch or other document so that we could
combine them into the python test suite.

The python test suite, which can be run as part of 'make test' or IIRC
there is a way to run JUST the 2 re test suites which I seem to have
senior moment'd, includes a built-in timing output over some of the
tests, though I don't recall which ones were being timed: standard cases
or pathological (rare) ones.  Either way, we should include some timings
that are of a standard nature in the test suite to make Matthew's and
any other developer's work easier.

So, John, if you are not familiar with the test suite, I can look into
adding the specific cases you've developed into the test suite so we can
have a more representative timing of things.  Remember, though, that
when run as a single instance, at least in the existing engine, the re
compiler caches recent compiles, so repeatedly compiling an expression
flattens the overhead in a single run to a single compile and lookup,
where as your tests recompile at each test (though I'm not sure what
timeit is doing: if it invokes a new instance of python each time, it is
recompiling each time, if it is reusing the instance, it is only
compiling once).

Having not looked at Matthew's regex code recently (nice name, BTW), I
don't know if it also contains the compiled expression cache, in which
case, adding it in might help timings.  Originally, the cache worked by
storing ~100 entries and cleared itself when full; I have a modification
which increases this to 256 (IIRC) and only removes the 128 oldest to
prevent thrashing at the boundary which I think is better if only for a
particular pathological case.

In any case, don't despair at these numbers, Matthew: you have a lot of
time and potentially a lot of ways to make your engine faster by the
time 1.7 alpha is coined.  But also be forewarned, because, knowing what
I know about the current re engine and what it is further capable of, I
don't think your regex will be replacing re in 1.7 if it isn't at least
as fast as the existing engine for some standard set of agreed upon
tests, no matter how many features you can add.  I have no doubt, with a
little extra monkey grease, we could implement all new features in the
existing engine.  I don't want to have to reinvent the wheel, of course,
and if Matthew's engine can pick up some speed everybody wins!  So, keep
up the good work Matthew, as it's greatly appreciated!

Thanks all!

Jeffrey.

lurk

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Remember, though, that
 when run as a single instance, at least in the existing engine, the re
 compiler caches recent compiles, so repeatedly compiling an expression
 flattens the overhead in a single run to a single compile and lookup,
 where as your tests recompile at each test

They don't. The pattern is compiled only once. Please take a look at
http://docs.python.org/library/timeit.html#command-line-interface

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Jeffrey C. Jacobs

Jeffrey C. Jacobs timeho...@users.sourceforge.net added the comment:

Mea culpa et mes apologies,

The '-s' option to John's expressions are indeed executed only once --
they are one-time setup lines.  The final quoted expression is what's
run multiple times.

In other words, improving caching in regex will not help.  sigh

Merci, Antoine!

Jeffrey.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Walter Dörwald

Changes by Walter Dörwald wal...@livinglogic.de:


--
nosy:  -doerwalter

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-12 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

Thanks Rodrigo,  I'll integrate this and check it in.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

The attached patch adds support for nested objects in pyclbr and also in
ClassBrowser.

I have yet to find an optimal way to test this on test_pyclbr (I did
some things here, none very nice), so you will notice tests are missing
on this patch.

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file14699/show_nested_objects.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1612262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Collin Winter

Collin Winter coll...@gmail.com added the comment:

FYI, Unladen Swallow includes several regex benchmark suites: a port of 
V8's regex benchmarks (regex_v8); some of the regexes used when tuning 
the existing sre engine 7-8 years ago (regex_effbot); and a 
regex_compile benchmark that tests regex compilation time.

See http://code.google.com/p/unladen-swallow/wiki/Benchmarks for more 
details, including how to check out and run the benchmark suite. You'll 
need to modify your experimental Python build to have import re import 
the proposed regex engine, rather than _sre. The benchmark command would 
look something like `./perf.py -r -b regex /control/python 
/experiment/python`, which will run all the regex benchmarks in rigorous 
mode. I'll be happy to answer any questions you have about our 
benchmarks.

I'd be very interested to see how the proposed regex engine performs on 
these tests.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3244] multipart/form-data encoding

2009-08-12 Thread Bertrand Janin

Changes by Bertrand Janin tamen...@neopulsar.org:


--
nosy: +tamentis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6680] Python 3.1 fails to build when db.h contains non-UTF-8 characters

2009-08-12 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r74357.

--
nosy: +benjamin.peterson
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6680
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1068268] subprocess is not EINTR-safe

2009-08-12 Thread Chad Miller

Chad Miller pyt...@chad.org added the comment:

File
/home/cmiller/work/cabzr/desktopcouch/getport-at-call-time/desktopcouch/start_local_couchdb.py,
line 93, in run_couchdb
retcode = subprocess.call(local_exec)
  File /usr/lib/python2.6/subprocess.py, line 444, in call
return Popen(*popenargs, **kwargs).wait()
  File /usr/lib/python2.6/subprocess.py, line 1123, in wait
pid, sts = os.waitpid(self.pid, 0)
exceptions.OSError: [Errno 4] Interrupted system call

Now what?  The process started, but I have no way of knowing when it
finishes or the exit value when it does, because I don't have access to
the Popen object.  Nor can I even kill it and try again, because I can't
get he process id.

try/except in my code can never help.  It must be put in the stdlib.

Or, if this is too egregious, then the docs should scream that
subprocess.call can never safely be used, and users should avoid it.



  File
/home/cmiller/work/cabzr/desktopcouch/getport-at-call-time/desktopcouch/start_local_couchdb.py,
line 93, in run_couchdb
retcode = subprocess.call(local_exec)
  File /usr/lib/python2.6/subprocess.py, line 444, in call
return Popen(*popenargs, **kwargs).wait()
  File /usr/lib/python2.6/subprocess.py, line 595, in __init__
errread, errwrite)
  File /usr/lib/python2.6/subprocess.py, line 1084, in _execute_child
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
exceptions.OSError: [Errno 4] Interrupted system call


This os.read is a byproduct of something the Popen.__init__
implementation must do, and it is safe for it to continue to get the
information it needs, without the user's knowledge.

The process is started, then this is aborted before the Popen.stdout and
.stderr are set up, leaving the object in a weird state.

--
nosy: +cmiller
Added file: http://bugs.python.org/file14700/trunk-diff-unified.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1068268
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Would you like to contribute a patch?

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6686
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart

Colin Stewart co...@owlfish.com added the comment:

I'm not familiar with the inner workings of the expat integration with
Python, so the attached patches need careful review.

The first patch (expatreader.py.patch) is the minimum to resolve this
issue.  The second patch (expatreader.py.patch2) also exposes the
version and encoding parameters via the Locator2 interface
(http://www.saxproject.org/apidoc/org/xml/sax/ext/Locator2.html), which
I'd recommend including.

--
keywords: +patch
Added file: http://bugs.python.org/file14701/expatreader.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6686
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart

Colin Stewart co...@owlfish.com added the comment:

Adding second patch.

--
Added file: http://bugs.python.org/file14702/expatreader.py.patch2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6686
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6690] BUILD_SET followed by COMPARE_OP (in) can be optimized if all items are consts

2009-08-12 Thread Alex

New submission from Alex alex.gay...@gmail.com:

Just like we turn BUILD_LIST; COMPARE_OP (in) into a LOAD_CONST if all
the members are consts, we can do the same for BUILD_SET, instead
turning it into a LOAD_CONST of a frozenset.  The following is the
bytecode that is current produced for each datastructure.

 dis.dis(lambda o: o in (1,2,3))
  1   0 LOAD_FAST0 (o) 
  3 LOAD_CONST   3 ((1, 2, 3)) 
  6 COMPARE_OP   6 (in) 
  9 RETURN_VALUE 
 dis.dis(lambda o: o in [1,2,3])
  1   0 LOAD_FAST0 (o) 
  3 LOAD_CONST   3 ((1, 2, 3)) 
  6 COMPARE_OP   6 (in) 
  9 RETURN_VALUE 
 dis.dis(lambda o: o in {1,2,3})
  1   0 LOAD_FAST0 (o) 
  3 LOAD_CONST   0 (1) 
  6 LOAD_CONST   1 (2) 
  9 LOAD_CONST   2 (3) 
 12 BUILD_SET3 
 15 COMPARE_OP   6 (in) 
 18 RETURN_VALUE

--
components: Interpreter Core
messages: 91506
nosy: alex
severity: normal
status: open
title: BUILD_SET followed by COMPARE_OP (in) can be optimized if all items are 
consts
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6690
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6599] 2to3 test_print_function_option fails on Windows

2009-08-12 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r74359.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6599
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo

New submission from Guilherme Polo ggp...@gmail.com:

I have worked on a patch for adding support for nested classes and
nested functions in pyclbr. I believe this might be useful for some
applications, and also for issue1612262.

The patch attached also contains a test and updated documentation.

--
components: Library (Lib)
files: pyclbr_nested_objects.diff
keywords: patch
messages: 91508
nosy: gpolo
severity: normal
status: open
title: Support for nested classes and function for pyclbr
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file14703/pyclbr_nested_objects.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


Removed file: http://bugs.python.org/file14703/pyclbr_nested_objects.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
dependencies: +Support for nested classes and function for pyclbr
Added file: http://bugs.python.org/file14704/classbrowser_nesting_support.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


Removed file: http://bugs.python.org/file14704/classbrowser_nesting_support.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
dependencies:  -Support for nested classes and function for pyclbr
Added file: http://bugs.python.org/file14705/pyclbr_nested_objects.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6691
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

I've removed the previous patch from here and attached an updated one on
issue6691.

Now the patch attached here only contains changes related to
idlelib.ClassBrowser.

--
dependencies: +Support for nested classes and function for pyclbr
Added file: http://bugs.python.org/file14706/classbrowser_nesting_support.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1612262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


Removed file: http://bugs.python.org/file14699/show_nested_objects.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1612262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Ben Hoyt

Changes by Ben Hoyt benh...@gmail.com:


--
nosy: +benhoyt
type: behavior - feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6689
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Ben Hoyt

Ben Hoyt benh...@gmail.com added the comment:

Oops, didn't intend to change the type, changing back.

--
type: feature request - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6689
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Berwyn

Berwyn ber...@brush.co.nz added the comment:

I agree with the patch, and it works fine:
/bin/sh -c gcc --version gcc --version

But I begin to wonder whether bash has a bug since bash only seems to
observe the string, not the parameters after it.  For example:
$ bash -c ./printargs.py abc def ghi jkl
produces:
['./printargs.py', 'abc']

where printargs.py is:
#!/usr/bin/python
import sys
print sys.argv

Just something to be aware of.

--
nosy: +berwyn

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6689
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6692] asyncore kqueue support

2009-08-12 Thread Andrew Azarov

New submission from Andrew Azarov equ...@gmail.com:

Is there a possibility of such feature in the future releases of Python?
Currently I see only select and epoll available, but on FreeBSD 7.2 with
a lot of connections asyncore (1600+ active HTTP connections) has
problems (not giving complete response) with epoll (select is
problematic after 250+ connections (not enough descriptors)).

--
components: Library (Lib)
messages: 91512
nosy: Ikinoki
severity: normal
status: open
title: asyncore kqueue support
type: feature request
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
superseder:  - Idle hangs when given a nonexistent filename.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3573
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2009-08-12 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
superseder: Idle hangs when given a nonexistent filename. - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3573
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4985] Idle hangs when given a nonexistent filename.

2009-08-12 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

Closing this in favour of issue 3573.

--
resolution:  - duplicate
status: open - closed
superseder:  - IDLE hangs when passing invalid command line args 
(directory(ies) instead of file(s))

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4985
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com