Proxysite open facebook ,myaspace,.....etc

2009-09-19 Thread mido mido
Proxysite open facebook ,myaspace,.etc http://proxypop.110mb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Finding application data after install - a solution?

2009-09-19 Thread Wolodja Wentland
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: *

control CPU usage

2009-09-19 Thread kakarukeys
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,

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
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

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
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

Re: control CPU usage

2009-09-19 Thread Sean DiZazzo
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

Re: How to install pysqlite?

2009-09-19 Thread Diez B. Roggisch
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

python profiling for a XML parser program

2009-09-19 Thread MacRules
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

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
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

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
Never mind, guys I finally got things working. Woo hoo -- http://mail.python.org/mailman/listinfo/python-list

Re: python profiling for a XML parser program

2009-09-19 Thread Diez B. Roggisch
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

Re: python profiling for a XML parser program

2009-09-19 Thread Paul Boddie
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

on package import, have it conditionally import a subpackage

2009-09-19 Thread Gabriel Rossetti
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

Re: How to install pysqlite?

2009-09-19 Thread Daniel Fetchinson
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.

Comparison of parsers in python?

2009-09-19 Thread Peng Yu
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread Daniel Fetchinson
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

Re: python profiling for a XML parser program

2009-09-19 Thread MacRules
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

Re: Creating a local variable scope.

2009-09-19 Thread Ethan Furman
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

Re: control CPU usage

2009-09-19 Thread Dave Angel
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread Robert Kern
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

Re: Granularity of OSError

2009-09-19 Thread kj
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 --

Re: Comparison of parsers in python?

2009-09-19 Thread Robert Kern
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.

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread Diez B. Roggisch
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

OK to memoize re objects?

2009-09-19 Thread kj
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,

Re: An assessment of the Unicode standard

2009-09-19 Thread Terry Reedy
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread exarkun
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread Robert Kern
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

Re: OK to memoize re objects?

2009-09-19 Thread Robert Kern
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

Re: An assessment of the Unicode standard

2009-09-19 Thread r
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

Re: class initialization problem

2009-09-19 Thread Tim Roberts
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread Daniel Fetchinson
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

Re: Granularity of OSError

2009-09-19 Thread MRAB
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(...),

Re: Comparison of parsers in python?

2009-09-19 Thread Peng Yu
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,

Re: Granularity of OSError

2009-09-19 Thread Grant Edwards
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

How to change string or number passed as argument?

2009-09-19 Thread Peng Yu
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

Re: How to change string or number passed as argument?

2009-09-19 Thread Tim Chase
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

Am I doing this wrong? Why does this seem so clumsy (time, datetime vs. DateTime)

2009-09-19 Thread Schif Schaf
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(

Can print() be reloaded for a user defined class?

2009-09-19 Thread Peng Yu
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

Re: Can print() be reloaded for a user defined class?

2009-09-19 Thread r
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

Re: Can print() be reloaded for a user defined class?

2009-09-19 Thread Peng Yu
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

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-19 Thread John Nagle
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

Re: Am I doing this wrong? Why does this seem so clumsy (time, datetime vs. DateTime)

2009-09-19 Thread Carl Banks
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

Re: Can print() be reloaded for a user defined class?

2009-09-19 Thread r
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.

Re: control CPU usage

2009-09-19 Thread Jiang Fung Wong
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

urllib2, https and gzipped files

2009-09-19 Thread Barry
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

What are the naming convention for private member variable, and private and public member function?

2009-09-19 Thread Peng Yu
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

Re: Comparison of parsers in python?

2009-09-19 Thread TerryP
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

How to get the minimum number that can be represented?

2009-09-19 Thread Peng Yu
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

Re: Am I doing this wrong? Why does this seem so clumsy (time, datetime vs. DateTime)

2009-09-19 Thread John Yeung
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

Re: Am I doing this wrong? Why does this seem so clumsy (time, datetime vs. DateTime)

2009-09-19 Thread Skye sh...@#$
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

Re: detmining name during an assignment

2009-09-19 Thread Jerry Hill
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

Re: What are the naming convention for private member variable, and private and public member function?

2009-09-19 Thread Daniel Fetchinson
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

Re: How to get the minimum number that can be represented?

2009-09-19 Thread Daniel Fetchinson
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

[issue6944] socket.getnameinfo raises SystemError on bogus input

2009-09-19 Thread Marien Zwart
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

[issue6944] socket.getnameinfo raises SystemError on bogus input

2009-09-19 Thread Georg Brandl
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

[issue6943] setup.py fails to find headers of system libffi

2009-09-19 Thread Georg Brandl
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

[issue6942] email.generator.Generator memory consumption

2009-09-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6942 ___ ___

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Armin Ronacher
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

[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Hirokazu Yamamoto
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:

[issue6947] Fix distutils test on windows (SO extension)

2009-09-19 Thread Hirokazu Yamamoto
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

[issue6947] Fix distutils test on windows (SO extension)

2009-09-19 Thread Tarek Ziadé
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 ___

[issue6925] Doc for locals and vars

2009-09-19 Thread Georg Brandl
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

[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Georg Brandl
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 ___

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Georg Brandl
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

[issue6941] Socket error when launching IDL

2009-09-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6941 ___ ___ Python-bugs-list

[issue6948] list

2009-09-19 Thread kewlar
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

[issue6948] list

2009-09-19 Thread Mark Dickinson
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:

[issue6943] setup.py fails to find headers of system libffi

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue6941] Socket error when launching IDLE

2009-09-19 Thread chuck
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

[issue6941] Socket error when launching IDLE

2009-09-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6941 ___ ___

[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread R. David Murray
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

[issue6950] online documentation error: PyObject* PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len)

2009-09-19 Thread kai zhu
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:

[issue6950] online documentation error: PyObject* PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len)

2009-09-19 Thread Ezio Melotti
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

[issue6839] zipfile can't extract file

2009-09-19 Thread Jan Hosang
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

[issue6918] ctypes compilation error on SnowLeopard

2009-09-19 Thread Thomas Heller
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:

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-19 Thread Gawain Bolton
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 -

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-09-19 Thread Jean-Paul Calderone
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

[issue5727] doctest pdb readline broken

2009-09-19 Thread Sriram
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

[issue6925] Doc for locals and vars

2009-09-19 Thread Terry J. Reedy
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

[issue6869] Embedded python crashed on 4th run, if ctypes is used

2009-09-19 Thread Hirokazu Yamamoto
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