Change by Zheng SHAO :
--
title: Some Absolute domain name not work in urllib -> Some absolute domain
name not work in urllib
___
Python tracker
<https://bugs.python.org/issu
New submission from Zheng SHAO :
```
import ssl
import urllib.request
url_string = "https://kubernetes.default.svc.cluster.local./api/;
ctx = ssl._create_unverified_context()
with urllib.request.urlopen(url_string, context=ctx) as f:
f.read()
```
In running this sample code wil
with it, so why not make use of it. But my
personal choice will be Sublime and pyCharm or even vim.
Shao Hong
shaohon...@gmail.com
Respect needs to be earned, but honour is an attitude of the heart. Not
everyone will earn your respect, but everyone deserves to be shown honour.
- Anonymous
On Sun, Oct
GOAL:spawn a few greenlet worker deal with the data pop from redis (pop from
redis and then put into queue)
RUNNING ENV: ubuntu 12.04
PYTHON VER: 2.7
GEVENT VER: 1.0 RC2
REDIS VER:2.6.5
REDIS-PY VER:2.7.1
from gevent import monkey; monkey.patch_all()
import gevent
from gevent.pool import Group
hi,
Is there a crawler written by python? anybody can give me more information?
thanks a lot!
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
I am using Python 2.5 and used py_compile to produce a .pyc file. The
script runs well. However, the .pyc keeps running and never stops.
Advices will be deeply appreciated.
Regards.
David
--
http://mail.python.org/mailman/listinfo/python-list
and Windows Server.
Regards.
Shao
--
http://mail.python.org/mailman/listinfo/python-list
*Gabriel Genellina* gagsl-py2 at yahoo.com.ar
python-list%40python.org?Subject=Interesting%20timing%20issue%20I%20noticedIn-Reply-To=
*Wed Apr 16 08:44:10 CEST 2008*
Another thing would be to rearrange the loops so the outer one executes
less times; if you know that borderXsizeX and borderYsizeY
I've written up a stripped down version of the code. I apologize for the bad
coding; I am in a bit of a hurry.
import random
import sys
import time
sizeX = 320
sizeY = 240
borderX = 20
borderY = 20
# generates a zero matrix
def generate_zero():
matrix = [[0 for y in range(sizeY)] for x in
The project I'm working on is motion detection, involving a bit of image
processing. No worries: no image processing background needed.
Suffice to say that I initially wrote a script that goes through every pixel
of a 320x240 picture (turned into an array using PIL) and performs some
Hi all,
I'm a beginner to Python, so please bear with me.
Is there a way of guarenteeing that all created threads in a program are
finished before the main program exits? I know that using join() can
guarentee this, but from the test scripts I've run, it seems like join()
also forces each
On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden [EMAIL PROTECTED] wrote:
Jonathan Shao wrote:
Hi all,
I'm a beginner to Python, so please bear with me.
Is there a way of guarenteeing that all created threads in a program
are finished before the main program exits? I know that using join
12 matches
Mail list logo