u have, as well as details of your availability and any
related work you have done previously (GitHub, LinkedIn links, etc). If you
would like to find out more about this opportunity, please contact us at
jessielisbetfrance at gmail (dot) com or on IRC in #tahoe-lafs on Freenode.
J
thon.org/pypi>
You can contribute to its development on GitHub
<https://github.com/LeastAuthority/txkube>.
Thanks to Least Authority TFA GmbH <https://leastauthority.com/> for
sponsoring this development and to Craig Rodrigues for his efforts on
Python 3 porting work.
Jean-Paul
anks to everyone who contributed and to Least Authority TFA GmbH
<https://leastauthority.com/> for sponsoring my work on this release.
Jean-Paul
--
https://mail.python.org/mailman/listinfo/python-list
yPI <https://pypi.python.org/pypi/kubetop> and
GitHub <https://github.com/LeastAuthority/kubetop>. Install it in the
usual way:
pip install kubetop
Thanks to Least Authority Enterprises <https://leastauthority.com/> for
sponsoring this development.
Jean-Paul Calderone
http
://pypi.python.org/pypi>.
You can contribute to its development on GitHub
<https://github.com/LeastAuthority/txkube>.
Thanks to Least Authority Enterprises <https://leastauthority.com/> for
sponsoring this development.
Jean-Paul Calderone
http://as.ynchrono.us/
--
https://mail.python.org/mailman/listinfo/python-list
GitHub for issues and source control
<https://github.com/twisted/txaws> (https://github.com/twisted/txaws).
Since the last release, the following enhancements have been made:
- Jean-Paul Calderone added basic Route53 support.
- Mark Williams add Auth v4, now used by the S3 an
nd fix this issue and to publish this new
release.
Jean-Paul
--
https://mail.python.org/mailman/listinfo/python-list
prise.adbapi,
which wraps the module in an asynchronous API (implemented using a
thread pool).
Since the calls all happen in separate threads, it doesn't matter that
they block.
If you're not talking about a SQL database or a DB-API module, maybe
be more
specific about the kind o
not sure what the listDeferred is there for.
Deferreds are a good abstraction for "do one thing and then tell
me what the result was". You have a different sort of thing here,
where there isn't much of a result (sending to tcp probably always
works until you lose your connection). A method call works well
for that.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 6, 4:44 am, AndDM wrote:
> On Jul 5, 4:08 pm, Jean-Paul Calderone
> wrote:
>
>
>
> > On Jul 5, 4:52 am, Andrea Di Mario wrote:
>
> > > Hi, I'm a new python user and I'm writing a small web service with ssl.
> > > I want us
ty certificates". `wrap_socket` accepts a
`ca_certs` argument. See
http://docs.python.org/library/ssl.html#ssl-certificates
for details about that argument.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
e iteration to the next,
> so a complete name lookup is required at each iteration. This is very
> useful sometimes, but affects performance a lot.
>
And even the original example, with only + and * can have side-
effects. Who knows how a defines __add__?
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
for
> each number.
>
> Uuid apparently uses machine internals etc etc to try and produce randomness,
> but urandom and similar can block so are probably not entirely suitable.
/dev/urandom does not block, that's the point of it as compared to /
dev/random.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
10 bytes enough to thwart your attackers? Hard to say, what does
an attack look like?
If you want the full 16 bytes of unpredictability, why don't you just
read 16 bytes from
/dev/urandom and forget about all the other stuff?
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
results = "_" + results
> return results
>
> but if somebody already has war-hardened code they'd be willing
> to share, I'd appreciate any thoughts.
>
There's http://pypi.python.org/pypi/filepath/0.1 (taken from
twisted.python.filepath).
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
m the messages in this thread if you managed to
get
that approach working. The most commonly encountered problem with
this
approach is that it means that any blocking (eg I/O) operation in
progress
won't be interrupted and you'll have to wait for it to complete
normally.
In this case, it soun
>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> s.connect(('1.2.3.4', 1234))
>>> s.getsockname()
('192.168.1.148', 47679)
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ese PEPs to provide compliant packages.
> While its not that important for pure-python modules, anything tied to
> C-API better be documented, or it becomes a nightmare to keep
> non-CPython version having identical interface.
>
Unit tests actually serve this purpose much better than do PE
mport TestCase
from twisted.test.proto_helpers import StringTransport
from yourapp import Handler # Or a better name
class HandlerTests(TestCase):
def test_someMessage(self):
"""
When the "X" message is received, the "Y" response is sent
back.
"""
transport = StringTransport()
protocol = Handler()
protocol.makeConnection(transport)
protocol.dataReceived("X")
self.assertEqual(transport.value(), "Y")
Hope this helps,
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
his. Your server accepts arbitrary code from clients and
executes it. It is completely insecure. Do not use pickle and
sockets together. Notice the large red box at the top of .
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
quot;Exactly one of a, b, c or d must be true.")
>
> I guess I never thought about it, but there isn't an 'xor' operator to
> go along with 'or' and 'and'. Must not be something I need very often.
>
You also can't evaluate xor without ev
an CPU bound
>
> Threads are also useful for user interaction (i.e. GUI apps).
>
I suppose that's why most GUI toolkits use a multithreaded model.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
d behavior.
>
C and C++ have standards, and the standards describe what they don't
define.
Python has implementations. The defined behavior is whatever the
implementation does. Until someone changes it to do something else.
It's not much of a comparison.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ends how and why it
happens, and whether it prevents your application from working
properly.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
le your socket I/O asynchronously; but I don't enough about Python to
> get the mixed behavior you'd want.
>
> I think that there's an asynchronous all-Python MySQL library, but I'm not
> sure. Maybe one day I can open source my asynchronous MySQL C library. (I
> always recommend people to use PostgreSQL, though; which is superior in
> almost every way, especially the C client library and the wire protocol.)
There's the very new <https://github.com/hybridlogic/txMySQL>.
There's also
<http://pypi.python.org/pypi/txpostgres>.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 11, 5:52 am, "Charles Fox (Sheffield)"
wrote:
> On Feb 10, 6:22 pm, Jean-Paul Calderone
> wrote:
>
>
>
>
>
>
>
>
>
> > On Feb 10, 12:21 pm, "Charles Fox (Sheffield)"
> > wrote:
>
> > > On Feb 10, 3:43 pm,
On Feb 10, 12:21 pm, "Charles Fox (Sheffield)"
wrote:
> On Feb 10, 3:43 pm, Jean-Paul Calderone
> wrote:
>
>
>
>
>
>
>
>
>
> > On Feb 10, 9:30 am, "Charles Fox (Sheffield)"
> > wrote:
>
> > > Hi guys,
> > >
from possible bugs where the data gets corrupted by the
code
that operates on it, since there's only one copy shared amongst all
your
tests. Is there some other benefit that the shared memory approach
gives
you?
Of course, adding unit tests that exercise your code on a smaller data
set
migh
On Feb 8, 7:12 pm, Paul Rubin wrote:
> But the refcount scheme is just an implementation hack
> that gets rationalized way too much. I hope PyPy abandons it.
Done. :)
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ltiple interpreters in a single process.
However,
you cannot have your cake and eat it too. If you create multiple
interpreters,
then why do you think you'll be able to share objects between them for
free?
In what sense would you have *multiple* interpreters in that scenario?
You will need some
://docs.python.org/library/socket.html#socket.AF_UNIX
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
by the first router that sees them). You
just need to make a different decision at the first hop. You can do
this with the SO_BINDTODEVICE option on a raw socket. But this
probably also requires administrative privileges.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 1, 2:01 pm, Gelonida wrote:
> On 02/01/2011 03:07 AM, Jean-Paul Calderone wrote:
>
>
>
> > On Jan 31, 5:28 pm, Gelonida wrote:
> >> Hi,
>
> >> Normally I use following code snippet to quickly test a wsgi module
> >> wit
ave a module named "foo" that defines
an "application" name, you would pass "foo.application".
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 4, 12:31 pm, Fuzzyman wrote:
> On Jan 4, 3:31 pm, Roy Smith wrote:
>
>
>
> > In article
> > <2ebc11a5-1b45-4faa-97b9-c84f0db01...@k22g2000yqh.googlegroups.com>,
>
> > Fuzzyman wrote:
> > > It is unsafe to terminate an os level thread at an arbitrary point
> > > because it may be executin
On Jan 3, 6:17 pm, Adam Skutt wrote:
> On Jan 3, 5:24 pm, Jean-Paul Calderone
> wrote:
>
> > Of course. The whole point here is not about threads vs processes.
> > It's about shared memory concurrency vs non-shared memory
> > concurrency. You can implement
On Jan 3, 4:17 pm, Adam Skutt wrote:
> On Jan 3, 4:06 pm, Jean-Paul Calderone
> wrote:
>
>
>
> > > Multiple processes, ok, but then regarding processes' interruption
> > > there will be the same problems pointed out by using threads?
>
> > No.
e tooking too much time, which
> > > solution do you propose?
>
> > If possible, use multiple processes instead.
>
> > Diez- Nascondi testo citato
>
> > - Mostra testo citato -
>
> Multiple processes, ok, but then regarding processes' interruption
> there will be the same problems pointed out by using threads?
>
No. Processes can be terminated easily on all major platforms. See
`os.kill`.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
cts, however, is an issue of larger scope than mere portability.
> ;)
>
The PyPy JIT supports x86_64. It's still being improved, but it does
provide real speedups in some cases already.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 9, 8:15 pm, Paulo da Silva
wrote:
> Hi.
>
> Is there a python library/module to handle both the server and client
> sides of dns protocol?
>
> I have googled for it but I only found client side ones (at least from
> the superficial readings I did).
>
> Thanks.
Twisted Names is one such lib
completely accurate. It *is* possible to write a JIT
compiler
for a Python runtime which has fast path code for the common case, the
case
where the meaning of "+" doesn't change between every opcode. PyPy
has
produced some pretty good results with this approach.
For those who haven't seen it yet, http://speed.pypy.org/ has some
graphs
which reflect fairly well on PyPy's performance for benchmarks that
are not
entirely dissimilar to real world code.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
und.
When running as root, or when running on Windows, twistd does not add
the working directory to sys.path.
So with all that in mind, the solution should be pretty clear - just
set PYTHONPATH to include MyServerApp.
This variation of twistd behavior is pretty confusing, and I think a
future ver
ng to have them drag you down. Fortunately the PyPy team is
making great progress in implementing a runtime that transparently
sheds
those dynamic features when running a program that doesn't take
advantage
of them.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
d here because getting a real reference from a weakref increases a
> reference counter. Maybe another option would be to store reference
> counters not in objects, but in a separate array to minimize number of
> memory pages they occupy...
It might be interesting to try with Jython or PyPy.
On Nov 10, 9:23 pm, Tim Roberts wrote:
> Mag Gam wrote:
>
> >I am measuring the round trip time using tcpdump. The C version is
> >giving me around 80 microseconds (average) and the python is giving me
> >close to 300 microseconds (average).
>
> If you need the performance of a compiled language,
d calls with an IP address. If
you're not passing an IP address here, then the Python version has to
do a name lookup for each send, I bet your C version is not.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
gt; page:
>
> https://launchpad.net/pyopenssl/main/0.11
>
It was helpfully pointed out to me that I forgot to mention that the
Python 3.2
support in this release of pyOpenSSL was made possible by a grant from
the Python
Software Foundation.
> Enjoy,
> Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 29, 10:08 am, Adam Tauno Williams
wrote:
> signal handler to do something smart in the case of a "-15" [for which
> there isn't really a thread equivalent - can you sent a SystemV style
> signal to an individual thread in a process? I don't think so.]
Yes
On Oct 1, 10:35 am, Antoine Pitrou wrote:
> On Thu, 30 Sep 2010 07:01:09 -0700 (PDT)
>
> Jean-Paul Calderone wrote:
>
> > But signal dispositions are inherited by child processes. So you run
> > ping from your short Python program, and it inherits SIGPIPE being
> >
t, but appreciate any/all advice)
>
Linux has /proc/self/fd and OS X has /dev/fd. Those both suppose you
have some way of determining which file descriptor corresponds to the
socket or sockets that the library is using, of course. Vastly better
would be to convince the author to expose that information via a real
API.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 30, 9:08 am, David wrote:
> On Wed, Sep 29, 2010 at 6:49 PM, John Nagle wrote:
> > Python's signal handling for multithread and multiprocess programs
> > leaves something to be desired.
>
> Thanks for the confirmation (that I'm not missing something obvious).
>
> I've reported a bug for
why, rather than
> waiting until all the tests are done.
>
> I've searched the doc and even looked at the code, and it seems the
> answer is no, but I'm just wondering if I'm missing something.
>
> Thanks!
>
> Margie
trial (Twisted's test runner) has
an https server, that
> supports wsgi modules
>
> TIA
You could do this with Twisted:
twistd -n web --https 443 --certificate server.pem --privkey
server.key --wsgi your.application
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ded to let OpenSSL make the decision about whether
to accept the certificate or not.
Either M2Crypto or pyOpenSSL will let you ignore verification errors. The
new ssl module in Python 2.6 may also as well.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
y2exe doesn't really change the performance characteristics of a Python
application at all - for better or for worse.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
d somehow prevent I/O from
being serviced? I'm not sure why, as long as the implementation pays
attention to I/O events.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
following paper:
Yes, it'd be good for Python to expose setresuid. The best course of
action is to file a ticket in the issue tracker. Things will be sped
along if you also attach a patch implementing the change. :)
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
e)
With the result of BarGonk.frobnicate.__doc__ being set to:
Frobnicate this gonk.
This implementation takes the warble into consideration.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
with whichever versions of Python you want to support.
Tools like Hudson (<https://hudson.dev.java.net/>) and BuildBot
(<http://buildbot.net/>) can help with this.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ureCanvas(fig)
canvas.set_size_request(640, 480)
fig.savefig("foo.png")
Hope this helps,
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
that rely
on technical details you know nothing about?
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
x.com/trac/
http://twistedmatrix.com/projects/core/documentation/howto/servers.html
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
7;t a good way to make a web server with Twisted. Take a look at
http://twistedmatrix.com/projects/web/documentation/howto/using-twistedweb.html
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
bout APIs and ctypes deals with ABIs.
http://pypi.python.org/pypi/ctypes_configure/0.1 helps with the problem,
and is a bit more accessible than gccxml.
It is basically correct to say that using ctypes without using something
like gccxml or ctypes_configure will give you non-portable code.
Jean-Paul
On Fri, 12 Jun 2009 22:54:14 +0900, David Cournapeau wrote:
On Fri, Jun 12, 2009 at 9:50 PM, Jean-Paul Calderone wrote:
On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac wrote:
On 6/12/2009 5:55 AM Virgil Stokes apparently wrote:
Any suggestions on installing matplotlib for Python 2.6.2 on a
, the people responsible for how CPython builds on Windows
don't seem to consider this an issue.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
, and I would be surprised if anybody else
on this list has done so in the past, in a context other than debugging.
So, do you mind sharing your current problem? Maybe then it'll make more
sense why one might want to do this.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
at's a recipe for failure.
Minimizing differences between development and deployment is a *great*
thing. There are certainly cases where differences are necessary, but
one should strive to make them the exception, not the rule.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
;.
However, I think it was right before. Consider:
def foo():
yield
Now, is `foo´ a generator? If so, what is `foo()´?
With the "generator function"/"generator" terminology, it is unambiguous
to say "`foo´ is a generator function and `foo()´ is a generator".
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
/howto/udp.html
You can trivially change the first example to handle multiple sockets -
just add more reactor.listenUDP calls.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 12 May 2009 14:30:04 -0500, Nick Craig-Wood wrote:
Gabriel wrote:
Jean-Paul Calderone escribió:
> None of the reactors in Twisted are restartable. You can run and
stop them
> once. After you've stopped a reactor, you cannot run it again. This is
> the
> caus
table. You can run and stop them
once. After you've stopped a reactor, you cannot run it again. This is the
cause of your problem.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
---
--
Piet van Oostrum
URL:http://pietvanoostrum.com[PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
Thanks Everyone By your guidance the code worked fine
I can send mails in multi threaded environment.
Is this only way to send mails concurrently or any other method
aviable?
Here's another way:
from twisted.mail.smtp import sendmail
from twisted.internet import reactor
from twisted.python.log import err
MAILSERVER = ...
listTo = [...]
FROM = ...
MSGBODY = ...
done = sendmail(MAILSERVER, FROM, listTo, MSGBODY)
done.addErrback(err)
done.addCallback(lambda ignored: reactor.stop())
reactor.run()
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
https://bugs.launchpad.net/pyopenssl
Jean-Paul Calderone
--
http://mail.python.org/mailman/listinfo/python-list
nting
many (but not all) of the features of the terminal. You can find the API
documentation online:
http://twistedmatrix.com/documents/current/api/twisted.conch.insults.html
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 23 Apr 2009 15:21:21 -0700 (PDT), grocery_stocker
wrote:
Say I have a script that fetches data from a website every hour. Is
there a general solution or is the solution operating system specific?
General solution to what problem?
Jean-Paul
--
http://mail.python.org/mailman/listinfo
ill probably produce significantly better results.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 22 Apr 2009 20:50:51 +0200, Christian Heimes wrote:
Jean-Paul Calderone wrote:
I'm not sure what the easiest way to determine whether Python has found
gethostbyname_r or not on your system is. The configure script used to
build Python will probably tell, but I doubt you have
rolled by system configuration in various ways,
and may do more than just DNS lookups (in fact, it may even be
configured not to use DNS at all!). But it's pretty close, and may
be close enough for your purposes.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ncies is always a tricky and in need of careful weighting
thing to do.
This has been discussion in detail on python-dev (more than once, I think,
even). Here's the top of one such thread:
http://mail.python.org/pipermail/python-dev/2008-November/083315.html
Jean-Paul
--
http://mai
ho its Daddy is?
Inspecting the call stack or the execution context to decide what to do is
a really awful idea. It's complicated to implement, complicated to maintain,
complicated to read, and there's no reason to do it. Just do the simple
thing - add a parameter or make two separate
rol of an application using
the BSD socket API.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 25 Mar 2009 22:23:25 -0700, John Nagle wrote:
Jean-Paul Calderone wrote:
On Tue, 24 Mar 2009 22:20:49 -0700, John Nagle wrote:
Jean-Paul Calderone wrote:
On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood
wrote:
Jean-Paul Calderone wrote:
[snip]
After bringing in all the
On Tue, 24 Mar 2009 22:20:49 -0700, John Nagle wrote:
Jean-Paul Calderone wrote:
On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood
wrote:
Jean-Paul Calderone wrote:
[snip]
After bringing in all the heavy machinery of Twisted,
you're still polling at 10Hz. That's disappointi
://twistedmatrix.com/trac/wiki/TwistedTrial
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney
wrote:
Jean-Paul Calderone writes:
[snip]
An additional feature which would be useful for the library to
provide, however, would be the setting of euid and egid instead of
uid and gid. This is necessary, for example, to write an SSH daemon
onds, an 1875% improvement.
Surely you mean a 94.7% improvement?
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood wrote:
Jean-Paul Calderone wrote:
[snip]
In the case of a TCP to serial forwarder, you don't actually have to
implement either a producer or a consumer, since both the TCP connection
and the serial connection are already both prod
ets paused, and when the buffer is empty
again, it gets resumed.
Hope this helps!
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 22 Mar 2009 03:13:36 -0700 (PDT), Nick Timkovich
wrote:
On Mar 21, 9:19 pm, Jean-Paul Calderone wrote:
On Sat, 21 Mar 2009 13:52:21 -0700 (PDT), Nick Timkovich
wrote:
>I've been working on a program that will talk to an embedded device
>over the serial port, using some b
On Sun, 22 Mar 2009 10:19:58 +1100, Ben Finney
wrote:
Jean-Paul Calderone writes:
The biggest shortcoming seems to be a complete lack of unit tests.
A full unit test suite is in the source distribution's ‘tests/’
directory. You can run it with ‘python ./setup.py test’.
Of course th
t you integrate with a
GUI toolkit. Since Twisted encourages you to write programs which deal
with things asynchronously in a single thread, if you use it, your
concerns about data exchange, locking, and timing should be addressed
as a simple consequence of your overall program structure.
Je
ed as could be (it's also only 14 lines long).
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ust surely
fail. For example, uid/gid setting is broken.
I'd recommend adding an automated test suite, fixing all the issues that
come up during that process, and then asking for scrutiny again.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
processes instead,
if there really is more hardware that's sitting idle with your single
threaded version.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 17 Mar 2009 15:17:56 + (UTC), "R. David Murray"
wrote:
Jean-Paul Calderone wrote:
On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh wrote:
>> This isn't exactly how things work. The server *sends* you bytes. It can
>> send you a lot at once. To some exte
etter choice for me, except that Python is
much more elegant. :-)
I'm sure people will tell you that this is a good use of threads and that
Python is up to the task. I think it's a bad use of threads, but with a
different approach, I still think Python is up to the task.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
ntrol (you might have something like 32kb or 64kb level
control).
What abt in Python3 ?
It seems to have some header like the one below : b'b495 - binary mode
with 46229 bytes ? Or is it something else ?
That's just a bug in urllib in Python 3.0.
Jean-Paul
--
http://mail.python.org/mai
is to work around a bug in
CPython on Windows where a process in a blocking read cannot be interrupted
by C-c in the console? If that's the case, there may be other approaches
to solving the problem (like fixing the bug in CPython which causes this).
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
en you can probably see the behavior you were expecting.
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 684 matches
Mail list logo