Proxysite open facebook ,myaspace,.etc
http://proxypop.110mb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
reliably finding distribution data from your program seems to be an
unsolved issue for programs packaged with distutils.
I have seen a lot of code that manipulates mod.__file__ to solve this
problem, but this *will* break for some installation schemes and has the
following problems:
*
Hi,
When I am running a loop for a long time, calculating heavily, the CPU
usage
is at 100%, making the comp not so responsive. Is there a way to
control the
CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help
although CPU usage level is reduced, but it's unstable.
Regards,
On Sep 19, 7:40 am, Dave Angel da...@ieee.org wrote:
Chuck wrote:
On Sep 12, 3:37 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 9:54 pm, Chris Rebert c...@rebertia.com wrote:
On Fri, Sep 11, 2009 at 7:43 PM, Chuck galois...@gmail.com wrote:
Does anyone know how I should read/download
On Sep 19, 7:40 am, Dave Angel da...@ieee.org wrote:
Chuck wrote:
On Sep 12, 3:37 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 9:54 pm, Chris Rebert c...@rebertia.com wrote:
On Fri, Sep 11, 2009 at 7:43 PM, Chuck galois...@gmail.com wrote:
Does anyone know how I should read/download
On Sep 19, 9:17 am, kakarukeys kakaruk...@gmail.com wrote:
Hi,
When I am running a loop for a long time, calculating heavily, the CPU
usage
is at 100%, making the comp not so responsive. Is there a way to
control the
CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help
Roman Gorbunov schrieb:
Hi all,
I am trying to install pysqlite (Python interface to the SQLite). I
downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I
did the following:
gunzip pysqlite-2.5.5.tar.gz
tar xvf pysqlite-2.5.5.tar
cd pysqlite-2.5.5
python setup.py install
At the
I have a python program doing XML data prasing and write the result to 2
data files; which will be loaded to MySQL.
I ran this.
$ python dealmaker.py
... read data
loop through records
... XML parsing
... write to file1.dat
... write to file2.date
done
Is there a python profiler just like for
On Sep 19, 7:40 am, Dave Angel da...@ieee.org wrote:
Chuck wrote:
On Sep 12, 3:37 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 9:54 pm, Chris Rebert c...@rebertia.com wrote:
On Fri, Sep 11, 2009 at 7:43 PM, Chuck galois...@gmail.com wrote:
Does anyone know how I should read/download
Never mind, guys I finally got things working. Woo hoo
--
http://mail.python.org/mailman/listinfo/python-list
MacRules schrieb:
I have a python program doing XML data prasing and write the result to 2
data files; which will be loaded to MySQL.
I ran this.
$ python dealmaker.py
... read data
loop through records
... XML parsing
... write to file1.dat
... write to file2.date
done
Is there a python
On 19 Sep, 21:19, MacRules macru...@none.com wrote:
Is there a python profiler just like for C program?
And tell me which functions or modules take a long time.
Can you show me URL or link on doing this task?
Having already looked at combining Python profilers with KCachegrind
(as suggested
Hello everyone,
I'd like to ba able to import a package and have it's __init__
conditionally import a subpackage. Suppose that you have this structure :
mybase/
mybase/__init__.py
mybase/mypkg
mybase/mypkg/__init__.py
mybase/mypkg/module0.py
mybase/mypkg/type1
mybase/mypkg/type1/__init__.py
I am trying to install pysqlite (Python interface to the SQLite). I
downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I
did the following:
gunzip pysqlite-2.5.5.tar.gz
tar xvf pysqlite-2.5.5.tar
cd pysqlite-2.5.5
python setup.py install
At the last step I have a problem.
Hi,
I did a google search and found various parser in python that can be
used to parse different files in various situation. I don't see a page
that summarizes and compares all the available parsers in python, from
simple and easy-to-use ones to complex and powerful ones.
I am wondering if
the pyjamas project is taking a slightly different approach to achieve
this same goal: beat the stuffing out of the pyjamas compiler, rather
than hand-write such large sections of code in pure javascript, and
double-run regression tests (once as python, second time converted to
javascript
Paul Boddie wrote:
On 19 Sep, 21:19, MacRules macru...@none.com wrote:
Is there a python profiler just like for C program?
And tell me which functions or modules take a long time.
Can you show me URL or link on doing this task?
Having already looked at combining Python profilers with
Dave Angel wrote:
Johan Grönqvist wrote:
DiZazzo skrev:
I would do something like this:
class Namespace(object):
... pass
...
n = Namespace()
n.f = 2
n.g = 4
print f
Traceback (most recent call last):
File stdin, line 1, in ?
NameError: name 'f' is not defined
print n.f
2
kakarukeys wrote:
Hi,
When I am running a loop for a long time, calculating heavily, the CPU
usage
is at 100%, making the comp not so responsive. Is there a way to
control the
CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help
although CPU usage level is reduced, but it's
Daniel Fetchinson wrote:
the pyjamas project is taking a slightly different approach to achieve
this same goal: beat the stuffing out of the pyjamas compiler, rather
than hand-write such large sections of code in pure javascript, and
double-run regression tests (once as python, second time
In mailman.107.1253369463.2807.python-l...@python.org MRAB
pyt...@mrabarnett.plus.com writes:
If, for example, you're
going to copy a file, it's a good idea to check beforehand that there's
enough space available for the copy.
How do you do that?
TIA,
kynn
--
Peng Yu wrote:
Hi,
I did a google search and found various parser in python that can be
used to parse different files in various situation. I don't see a page
that summarizes and compares all the available parsers in python, from
simple and easy-to-use ones to complex and powerful ones.
Daniel Fetchinson schrieb:
the pyjamas project is taking a slightly different approach to achieve
this same goal: beat the stuffing out of the pyjamas compiler, rather
than hand-write such large sections of code in pure javascript, and
double-run regression tests (once as python, second time
My Python code is filled with assignments of regexp objects to
globals variables at the top level; e.g.:
_spam_re = re.compile('^(?:ham|eggs)$', re.I)
Don't like it. My Perl-pickled brain wishes that re.compile was
a memoizing method, so that I could use it anywhere, even inside
tight loops,
greg wrote:
So in my humble opinion, the strong form of the Sapir-Whorf
hypothesis is bunk. :-)
It also seems not to have been their hypothesis ;-). from
http://en.wikipedia.org/wiki/Sapir-Whorf_hypothesis
Since neither Sapir nor Whorf had ever stated an actual hypothesis,
Lenneberg
On 19 Sep, 11:04 pm, robert.k...@gmail.com wrote:
Daniel Fetchinson wrote:
the pyjamas project is taking a slightly different approach to
achieve
this same goal: beat the stuffing out of the pyjamas compiler,
rather
than hand-write such large sections of code in pure javascript, and
exar...@twistedmatrix.com wrote:
On 19 Sep, 11:04 pm, robert.k...@gmail.com wrote:
Daniel Fetchinson wrote:
the pyjamas project is taking a slightly different approach to achieve
this same goal: beat the stuffing out of the pyjamas compiler, rather
than hand-write such large sections of code
kj wrote:
My Python code is filled with assignments of regexp objects to
globals variables at the top level; e.g.:
_spam_re = re.compile('^(?:ham|eggs)$', re.I)
Don't like it. My Perl-pickled brain wishes that re.compile was
a memoizing method, so that I could use it anywhere, even inside
On Sep 19, 2:12 am, greg g...@cosc.canterbury.ac.nz wrote:
Hendrik van Rooyen wrote:
there would be no way for a language to change
and grow, if it were literally true that you cannot think of something that
you have no word for.
From my own experience, I know that it's possible for
rantingrick rantingr...@gmail.com wrote:
WHY did i need do this you may ask?
I am creating geometry with OpenGL. When you create a face you must
specify a winding order (clockwise or counter clockwise) this winding
order controls which side of the face will be visible (since only one
side of a
the pyjamas project is taking a slightly different approach to achieve
this same goal: beat the stuffing out of the pyjamas compiler, rather
than hand-write such large sections of code in pure javascript, and
double-run regression tests (once as python, second time converted to
javascript
kj wrote:
In mailman.107.1253369463.2807.python-l...@python.org MRAB
pyt...@mrabarnett.plus.com writes:
If, for example, you're
going to copy a file, it's a good idea to check beforehand that there's
enough space available for the copy.
How do you do that?
There's os.statvfs(...),
On Sep 19, 6:05 pm, Robert Kern robert.k...@gmail.com wrote:
Peng Yu wrote:
Hi,
I did a google search and found various parser in python that can be
used to parse different files in various situation. I don't see a page
that summarizes and compares all the available parsers in python,
On 2009-09-20, MRAB pyt...@mrabarnett.plus.com wrote:
kj wrote:
In mailman.107.1253369463.2807.python-l...@python.org MRAB
pyt...@mrabarnett.plus.com writes:
If, for example, you're going to copy a file, it's a good idea
to check beforehand that there's enough space available for
the
Hi,
I know that strings or numbers are immutable when they passed as
arguments to functions. But there are cases that I may want to change
them in a function and propagate the effects outside the function. I
could wrap them in a class, which I feel a little bit tedious. I am
wondering what is the
I know that strings or numbers are immutable when they passed as
arguments to functions. But there are cases that I may want to change
them in a function and propagate the effects outside the function. I
could wrap them in a class, which I feel a little bit tedious. I am
wondering what is the
The other day I needed to convert a date like August 2009 into a
seconds-since-epoch value (this would be for the first day of that
month, at the first second of that day).
In Python, I came up with this:
#!/usr/bin/env python
import datetime
import time
time_in_sse = time.mktime(
Hi,
I have the following code. The last line does not print the members
(x and y) of 'my_bin'. I am wondering if there is a way to reload
the print function for bin, so that the last line print the members of
'my_bin'.
Regards,
Peng
class bin:
def __init__(self, x, y) :
self.x = x
On Sep 19, 9:28 pm, Peng Yu pengyu...@gmail.com wrote:
Hi,
I have the following code. The last line does not print the members
(x and y) of 'my_bin'. I am wondering if there is a way to reload
the print function for bin, so that the last line print the members of
'my_bin'.
Regards,
Peng
On Sep 19, 9:34 pm, r rt8...@gmail.com wrote:
On Sep 19, 9:28 pm, Peng Yu pengyu...@gmail.com wrote:
Hi,
I have the following code. The last line does not print the members
(x and y) of 'my_bin'. I am wondering if there is a way to reload
the print function for bin, so that the last
Daniel Fetchinson wrote:
Barring the unimplemented libraries and bugs, yes. If you read the original
post in this thread, you will see that on the roadmap is running the entire
Python regression suite.
No, it's getting close to running the entire Pyjamas regression suite,
which is
On Sep 19, 7:22 pm, Schif Schaf schifsc...@gmail.com wrote:
The other day I needed to convert a date like August 2009 into a
seconds-since-epoch value (this would be for the first day of that
month, at the first second of that day).
In Python, I came up with this:
#!/usr/bin/env
On Sep 19, 9:53 pm, Peng Yu pengyu...@gmail.com wrote:
(snip)
I want to understand the exact meaning of the last line ('__repr__ =
__str__'). Would you please point me to the section of the python
manual that describes such usage.
simple i assined any call to __repr__ to the __str__ methods.
Dear All,
Thank you for the information. I think I've some idea what the problem is
about after seeing the replies.
More information about my system and my script
PIII 1Ghz, 512MB RAM, Windows XP SP3
The script monitors global input using PyHook,
and calculates on the information collected
I'm trying to use urllib2 to download some gzipped files from an https
server, but I cannot correctly open the file. It happens to be an mbox
file -- a mailing list archive to be exact.
Upon calling open, the file starts to be unzipped. Content-Length is
read as the length of the first post in
Hi,
It says in http://www.python.org/dev/peps/pep-0008/
Method Names and Instance Variables
Use the function naming rules: lowercase with words separated by
underscores as necessary to improve readability.
Use one leading underscore only for non-public methods and
Peng Yu wrote:
This is more a less just a list of parsers. I would like some detailed
guidelines on which one to choose for various parsing problems.
Regards,
Peng
It depends on the parsing problem.
Obviously your not going to use an INI parser to work with XML, or
vice versa. Likewise
Hi,
Suppose I want to define a function that return the minimum number
that can be represented.
def f(x):
#body
That it, if I call f(10), f will return the minimum integer that can
be represented in the machine; if I cal f(10.5), f will return the
minimum float that can be represented in the
On Sep 19, 10:57 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Sep 19, 7:22 pm, Schif Schaf schifsc...@gmail.com wrote:
I *wanted* to just use time.mktime(), but it wouldn't
work unless I could specify the *complete* time tuple
value (who would have all that handy?!).
Was it really
On Sep 19, 7:22 pm, Schif Schaf schifsc...@gmail.com wrote:
The other day I needed to convert a date like August 2009 into a
seconds-since-epoch value (this would be for the first day of that
month, at the first second of that day).
You could use Time::Piece:
[ss...@localhost ~]$ perl
On Fri, Sep 18, 2009 at 6:57 PM, Jamie Riotto jamie.rio...@gmail.com wrote:
However, I'll have to keep looking for a more elegant solution.
Telling a user that typing:
cube1 = Cube(name = cube1) is a good thing because its pythonic is
somehow unsatisfying.
That isn't pythonic. The usual
It says in http://www.python.org/dev/peps/pep-0008/
Method Names and Instance Variables
Use the function naming rules: lowercase with words separated by
underscores as necessary to improve readability.
Use one leading underscore only for non-public methods and
Suppose I want to define a function that return the minimum number
that can be represented.
def f(x):
#body
That it, if I call f(10), f will return the minimum integer that can
be represented in the machine; if I cal f(10.5), f will return the
minimum float that can be represented in
Marien Zwart m_zw...@123mail.org added the comment:
Attaching a less broken patch, after Taggnostr pointed out on irc that
the code I removed is not actually dead. I really don't know why I
thought it was. I did take the opportunity to make it more obvious what
that code is actually checking
Georg Brandl ge...@python.org added the comment:
Adapted the test that expected the SystemError (?!) and committed in
r74943. Will backport to 2.6.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Patch looks OK and works on my system (the listcomp should be wrapped
though).
--
assignee: - loewis
keywords: +easy
nosy: +georg.brandl
priority: - normal
stage: - patch review
type: - compile error
Changes by Georg Brandl ge...@python.org:
--
assignee: - barry
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6942
___
___
New submission from Armin Ronacher armin.ronac...@active-4.com:
Currently pprint does not work on dicts it cannot sort. Because in
Python 3 sorted(x.items()) is no longer guaranteed to work a new sorting
solution has to be found.
--
messages: 92862
nosy: aronacher
severity: normal
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Please see http://docs.python.org/genindex-D.html.
datetime (class in datetime), [1]
links to same address. I think [1] should point to
http://docs.python.org/library/datetime.html#datetime-datetime.
--
assignee:
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
This will fix distutils test error on windows.
--
assignee: tarek
components: Distutils, Tests
files: test_distutils.patch
keywords: patch
messages: 92864
nosy: ocean-city, tarek
severity: normal
status: open
title: Fix
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done, thx
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6947
___
Georg Brandl ge...@python.org added the comment:
I disagree with calling only nonlocal variables but not module variables
'free'. As I quoted from Wikipedia, that restrictive definition is not
agree on by all at all.
But it is the definition that Python uses, at least in the code. I
agree
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r74952.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6946
___
Georg Brandl ge...@python.org added the comment:
A simple fix is to use key=lambda x: (id(type(x)), x). However, that
obviously doesn't work with values of different, but orderable types.
At the moment, I don't see how the Python 2 sort could be implemented
without a cmp() argument to
Changes by Georg Brandl ge...@python.org:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
___
___
Python-bugs-list
New submission from kewlar bolshe...@bk.ru:
a = [[0,0,0],[0,0,0],[0,0,0]]
a
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
a[1][1] = 1
a
[[0, 0, 0], [0, 1, 0], [0, 0, 0]]
b = [[0]*3]*3
b
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
b[1][1] = 1
b
[[0, 1, 0], [0, 1, 0], [0, 1, 0]]
--
messages: 92869
Mark Dickinson dicki...@gmail.com added the comment:
This is not a bug in Python. For general Python questions, please ask on
comp.lang.python.
(If you weren't trying to report a bug in the first place, please could
you explain your purpose in opening this issue.)
--
nosy:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file:
http://bugs.python.org/file14932/python-fix_search_for_libffi_headers.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6943
Changes by chuck jan.hos...@gmail.com:
--
status: pending - open
title: Socket error when launching IDL - Socket error when launching IDLE
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
___
___
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
Python doesn't detect Berkeley DB 4.8. After updating setup.py, _bsddb
module fails to build due to some changes in Berkeley DB.
I'm attaching patch which seems to fix these problems.
Changes in setup.py were made
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - jcea
nosy: +jcea
priority: - normal
stage: - patch review
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6949
New submission from kai zhu kaizhu...@gmail.com:
according to bytearrayobject.c, PyByteArray_Resize should return int (not
PyObject *)
error found @
http://docs.python.org/dev/py3k/c-api/bytearray.html
http://docs.python.org/c-api/bytearray.html
--
assignee: georg.brandl
components:
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is a duplicate of #6881.
--
nosy: +ezio.melotti
resolution: - duplicate
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Jan Hosang jan.hos...@gmail.com added the comment:
I added a patch to replace back slashes by forward slashes in three
places, only one if them actually relevant to the errors in the attached
.zip file.
I kept the exception for mismatching filenames, but if you think it is
appropriate to
Thomas Heller thel...@ctypes.org added the comment:
This one is fixed, isn't it?
See for example the buildbot output at
http://www.python.org/dev/buildbot/2.6/builders/x86%20osx.5%202.6/builds/566/steps/compile/logs/stdio
(Search for building '_ctypes' extension on the page)
--
nosy:
Gawain Bolton gp.bol...@computer.org added the comment:
Here's a modified version of the patch to Objects/intobject.c which
__does__ use the two-digits-at-a-time optimization.
Compared to the int_decimal_conversion_trunk.patch, my tests show a
further 12.5% improvement with two digit numbers -
Jean-Paul Calderone exar...@divmod.com added the comment:
Wouldn't it be nice to add a test for this case, to demonstrate that
non-blocking reads really are possible?
--
nosy: +exarkun
___
Python tracker rep...@bugs.python.org
Sriram sriramrathinav...@yahoo.com added the comment:
Hi,
How about changing pdb's behavior, that it disables readline only if the
passed stream is not the stdout stream?
Also when looking at doctest module, I found that bdb's trace_dispatch
was overridden to set the debugger's output stream
Terry J. Reedy tjre...@udel.edu added the comment:
My point was and is that global variables *are* free variables by the
definition I learned and that I quoted and that in the absence of an
'official' and consistent definition for the purpose of the manual,
(linked to from its usages) people can
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I hope attached patch will fix this issue.
--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file14936/fix_ctypes_crash.patch
___
Python tracker
81 matches
Mail list logo