No PyPI search for 3.x compatible packages

2009-07-29 Thread Neil Hodgson
There appears to be no way to search PyPI for packages that are compatible with Python 3.x. There are classifiers for 'Programming Language' including 'Programming Language :: Python :: 3' but that seems to be for implementation language since there are so many packages that specify C. There

Re: Does python have the capability for driver development ?

2009-07-29 Thread MalC0de
actually I mean driver programming under Windows operating system, if you know, there's A kit name DDK available at microsoft's website for developing device drivers under C / C++ environment, now i'm working with this kind of toolkit, but when I started programming with Python, I saw this is very

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread alex23
On Jul 30, 3:59 am, dandi kain dandi.k...@gmail.com wrote: What is the functionality of __ or _ , leading or trailing an object , class ot function ? Is it just a naming convention to note special functions and objects , or it really mean someting to Python ? I think everyone else has covered

Re: Does python have the capability for driver development ?

2009-07-29 Thread Marcus Wanner
On 7/29/2009 7:44 PM, Martin P. Hellwig wrote: Rodrigo S Wanderley wrote: cut What about user level device drivers? Think the Python VM could communicate with the driver through the user space API. Is there a Python module for that? Sure why not? Look for example to libusb, which provides

Re: Does python have the capability for driver development ?

2009-07-29 Thread Rodrigo S Wanderley
Martin P. Hellwig martin.hell...@dcuktec.org writes: Python is interpreted, so the first requirement would be that the interpreter (the python VM to be more precise) would run in the kernel or that there is a way for the interpreter to delegate operations to kernel restricted operations. Most

Re: How to gunzip-iterate over a file?

2009-07-29 Thread Paul Rubin
Robert Kern robert.k...@gmail.com writes: f = gzip.open('filename.gz') for line in f: print line or use f.read(nbytes) to read n uncompressed bytes from f. Note that the standard iterator (which iterates over lines) can potentially consume an unbounded amount of memory if the file

Re: If Scheme is so good why MIT drops it?

2009-07-29 Thread greg
Hendrik van Rooyen wrote: And if code is data, where is Pythons ALTER statement? class Duck: def quack(self): print Quack! def moo(): print Moo! def ALTER(obj, name, TO_PROCEED_TO): setattr(obj, name, TO_PROCEED_TO) d = Duck() ALTER(d, 'quack', TO_PROCEED_TO = moo) d.quack() --

Re: Working with platform.system()

2009-07-29 Thread Chris Rebert
On Wed, Jul 29, 2009 at 6:10 AM, v1d4l0k4v1d4l...@gmail.com wrote: Hi! I want to know how I can get different expected return values by platform.system() method. I want to sniff some systems (Linux, Windows, Mac, BSD, Solaris) and I don't know how I can check them correctly. Could you give

Connecting multiple test cases in a sort of pipe

2009-07-29 Thread Raghuram Devarakonda
Hi, I have three functions - create(), list(), and delete(). create() creates a new name in the file system hierarchy while list() displays all such created names and delete() removes them. I would like to write test cases for each of these functions, say, test_create() , test_list(), and

Confessions of a Python fanboy

2009-07-29 Thread r
Hello fellow Pythonista's it's nice to be back after such a long hiatus. I have recently realized my blind love affair with Python was just that. I must admit there are better ways to program. Like your first lay, your first programing language can leave an indelible mark on you, but like all

Re: IDLE Config Problems

2009-07-29 Thread r
On Jul 29, 3:55 pm, Russ Davis russ.da...@njpines.state.nj.us wrote: I am just getting started with Python and have installed v. 2.5.4  Idle version 1.2.4  I can't seem to get the idle to display text.  It seems as if the install went fine.  I start up the idle and the screen is blank.  No

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread Ben Finney
dandi kain dandi.k...@gmail.com writes: What is the functionality of __ or _ , leading or trailing an object , class ot function ? There is no change in functionality. It has some slight effects on import, but as a beginner you shouldn't need to worry about that. Is it just a naming

socket send

2009-07-29 Thread NighterNet
I am trying to figure out how to send text or byte in python 3.1. I am trying to send data to flash socket to get there. I am not sure how to work it. buff= 'id=' , self.id , ':balive=False\n' clientSock.send(buff); -- http://mail.python.org/mailman/listinfo/python-list

Re: Confessions of a Python fanboy

2009-07-29 Thread alex23
On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will look so much cleaner. How do you distinguish between calling a

gamma approximation : what is module cmath and where is it located ?

2009-07-29 Thread pdlemper
The following numerical approximation for Euler's Gamma function is found in http://en.wikipedia.org/wiki/Lanczos_approximation from cmath import * # Coefficients used by the GNU Scientific Library g = 7 p = [0.80993, 676.5203681218851, -1259.1392167224028, 771.32342877765313,

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-29 Thread Chris Rebert
On Wed, Jul 29, 2009 at 9:24 PM, pdlem...@earthlink.net wrote: snip But I can't figure out where it gets cmath.    Searching the Python directory reveals no more than a test_cmath.  The only cmath I can find is a header file in another directory  turboc++\Borland\include\ dir(cmath) reveals

Re: Confessions of a Python fanboy

2009-07-29 Thread Chris Rebert
On Wed, Jul 29, 2009 at 9:04 PM, alex23wuwe...@gmail.com wrote: On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-29 Thread Carl Banks
On Jul 29, 9:24 pm, pdlem...@earthlink.net wrote: What is cmath, where did it come from and how does it differ from the standard math module  ? What happened when you did a keyword search for cmath in the Python library documentation? What happened when you entered python cmath in Google?

Re: Confessions of a Python fanboy

2009-07-29 Thread Carl Banks
On Jul 29, 9:04 pm, alex23 wuwe...@gmail.com wrote: On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will look so

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-29 Thread pdlemper
On Wed, 29 Jul 2009 21:36:31 -0700 (PDT), Carl Banks pavlovevide...@gmail.com wrote: On Jul 29, 9:24 pm, pdlem...@earthlink.net wrote: What is cmath, where did it come from and how does it differ from the standard math module  ? What happened when you did a keyword search for cmath in the

Re: IDLE Config Problems

2009-07-29 Thread alex23
On Jul 30, 6:55 am, Russ Davis russ.da...@njpines.state.nj.us wrote: I am just getting started with Python and have installed v. 2.5.4   Idle version 1.2.4  I can't seem to get the idle to display text.  It seems as if the install went fine.  I start up the idle and the screen is blank.  No

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-29 Thread Terry Reedy
pdlem...@earthlink.net wrote: The following numerical approximation for Euler's Gamma function is found in http://en.wikipedia.org/wiki/Lanczos_approximation from cmath import * But I can't figure out where it gets cmath. The Python documentation set has a module index. Really handy. I use

[issue6511] zipfile: Invalid argument when opening zero-sized files

2009-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Oh, this was done with r74246, I just forgot to mention it. Anyway all changes in trunk are regularly merged into py3k. -- ___ Python tracker rep...@bugs.python.org

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Ezio Melotti asked (on #python-dev) why the Decimal constructor doesn't accept decimal digits other than 0-9. As far as I can tell there's no good reason for it not to. Moreover, the standard on which the decimal module is based

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch -- keywords: +patch Added file: http://bugs.python.org/file14593/issue6595.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6595

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: +1 The standard recommends it, and the other numeric types support it, so Decimal should as well. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6595

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Since you're calling int() on the result, can't this code: self._int = str(int((intpart+fracpart).lstrip('0') or '0')) just be: self._int = str(int(intpart+fracpart)) ? And here, you already know diag is not None, so do you need the or '0' part?

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
New submission from Anton rk3...@gmail.com: This code gives HTTP Error 500 on CentOS: - import urllib2 url = 'http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1' t = urllib2.urlopen(url).read() - tcpdump:

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
Changes by Anton rk3...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596 ___ ___ Python-bugs-list mailing list

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

2009-07-29 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: Removed file: http://bugs.python.org/file14592/issue2636-20090729.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636

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

2009-07-29 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Unfortunately I found a bug in regex.py, caused when I made it compatible with Python 2.5. :-( issue2636-20090729.zip is now corrected. -- Added file: http://bugs.python.org/file14594/issue2636-20090729.zip

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2009-07-29 Thread Nick
Nick nick_bo...@fastmail.fm added the comment: I've stumbled head-first into this bug trying to build ctypes 1.0.2, as required by the python Shapely GIS library for an important Zope project I've been working on. It's a real surprise to see this bug even exists (since 2006!). I don't

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-29 Thread Nir Soffer
Nir Soffer nir...@gmail.com added the comment: I'll check the patch this week. The asyncore framework has low level events - handle_read_event, handle_write_event and handle_expt_event - these events are not used for reading, writing and OOB - they are just responsible to call the high

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

2009-07-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Apparently Perl has a quite comprehensive set of tests at http://perl5.git.perl.org/perl.git/blob/HEAD:/t/op/re_tests . If we want the engine to be Perl-compatible, it might be a good idea to reuse (part of) their tests (if their license

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The new unit tests pass without modifying the library. Could you include a case that fails with the current version? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue6593] Documentation: gettext install link

2009-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74252. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6593 ___

[issue6591] add reference to fcntl.ioctl in the socket module

2009-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, committed in r74253. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6591 ___

[issue6586] Documentation of os.write and os.read are inaccurate.

2009-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74254. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6586 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: I can't add a test for that without changing unrelated behaviour in the library that is already known to work fine or checking the string value of the raised exception, which seems like a bad idea, even though it would work. If a character

[issue6336] nb_divide missing in docs

2009-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74256. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6336 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If it may be noisy where it was silent before, then add one of those cases and make sure the noise doesn't happen before your fix, and does happen after. If you have to check the value of the exception string for other tests, then do so.

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What is the correct behavior for something like this? base64.b64decode('!') 2.6 silently returns ''. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: According to the documentation cited by Seo Sanghyeon in the first post, A TypeError is raised if s were incorrectly padded or if there are non-alphabet characters present in the string. The valid range of characters is [A-Za-z0-9], and one

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: R. David Murray, should I update the patches for both the pure-Python solution and the C solution, or is one domain preferable here? The Python-based solution keeps all of the invalid-character TypeErrors collected in the same module, but the

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Therefore, '!' should fail with a TypeError Here is your test case! Errors should never pass silently. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Amaury is probably better qualified to answer that question, but I would think the C code version is preferable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14586/1466065[2.7].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14587/1466065[3.2].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14588/1466065[2.7-pure-python].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14589/1466065[3.2-pure-python].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 Also, I would like to see this backported. We've long promised that any variance with the spec will be treated as a bugfix. The change won't break any existing code. -- nosy: +rhettinger

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I've dig into the history of the file and found this change: http://svn.python.org/view?view=revrevision=13939 - Illegal padding is now ignored. (Recommendation by GvR.) The motivation at the time was based on the general Internet

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Perhaps Guido remembers why the decision was made. -- nosy: +gvanrossum, pitrou versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: I'll hold off on uploading new patches until someone makes a decision, then. It seems like, perhaps, simply amending the documentation would be sufficient, since this behaviour shouldn't break any valid messages that might reach this module.

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It turns out that the RFC is unambiguous on this point. Quoting the base64 section of RFC 2045: The encoded output stream must be represented in lines of no more than 76 characters each. All line breaks or other characters not

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: RFC 3548, referenced by the base64 module's docs, has a rather different statement on how invalid characters should be treated. From 2.3 Interpretation of non-alphabet characters in encoded data: Implementations MUST reject the encoding

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-29 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Originally, handle_expt_event() was described as handles OOB data or exceptions, but over-using handle_expt_event() as an error/close handler is a bad idea. The function asyncore.readwrite() (called by asyncore.poll2())

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-29 Thread Josiah Carlson
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net: Removed file: http://bugs.python.org/file14581/asyncore_fix_refused.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6550 ___

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-29 Thread Josiah Carlson
Changes by Josiah Carlson josiahcarl...@users.sourceforge.net: Removed file: http://bugs.python.org/file14585/asyncore_fix_refused-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6550 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a documentation patch indicating that the ignore-invalid-characters behaviour is intentional, citing relevant RFCs for support. Patch built against Python 2.7, r74261. -- Added file:

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a documentation patch indicating that the ignore-invalid-characters behaviour is intentional, citing relevant RFCs for support. Patch built against Python 3.2, r74261. -- Added file:

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___ ___ Python-bugs-list

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. But if the module is used outside of MIME (which it can be, and in fact is in the stdlib itself), then an error must be raised in order to comply with that RFC. So it sounds like we really ought to have that flag. And I was even

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: It isn't written that only MIME may ignore such content. The key terms there are 'may' and 'explicitly states otherwise'. If the documentation is clear, then all future application developers will know to check for validity using a regular

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What C compiler have you been using? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If the documentation is clear, then all future application developers will know to check for validity using a regular expression like '^[A-Za-z0-9+/\r\n]+={0,2}$'. Any existing applications in which validity matters should already have a

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: And if the flag defaults to the current behavior that should satisfy the backward compatiblity issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065

[issue6275] let unittest.assertRaises() return the exception object caught

2009-07-29 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda draghu...@gmail.com: -- nosy: +draghuram ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6275 ___ ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14597/1466065[2.7].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Changes by Neil Tallim red.hamst...@gmail.com: Removed file: http://bugs.python.org/file14598/1466065[3.2].diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[issue5833] readline update

2009-07-29 Thread Dror Levin
Dror Levin sp...@psybear.com added the comment: Arch Linux devs have split the patch and applied only the extra-space fix, which is what I'm attaching now. I've compiled Python 2.6.2 on Gentoo with this patch and can report it works well (I tested with ipython). -- Added file:

[issue1466065] base64 module ignores non-alphabet characters

2009-07-29 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a documentation/unit-test/solution patch that adds a validate=False parameter to the b64decode function of Lib/base64.py, which may be set to True to have invalid base64 content be rejected with a TypeError. Patch built against

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
Anton rk3...@gmail.com added the comment: % gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --enable-shared --enable-threads=posix --enable- checking=release --with-system-zlib

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-07-29 Thread John Levon
John Levon movem...@users.sourceforge.net added the comment: Any progress on this regression? A patch is available... thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1975 ___

[issue5738] multiprocessing example wrong

2009-07-29 Thread Justin MacCallum
Justin MacCallum justin.maccal...@me.com added the comment: I think this should either be fixed or removed from the documentation. It is very confusing as is. I have next to no idea what I'm doing, but I've attached a patch that allows this code to function, at least sort of. You can now

[issue6597] Deprecate iterable.next in Python 2.6.x when called with -3 option ?

2009-07-29 Thread Matthew Russell
Changes by Matthew Russell matt.horiz...@gmail.com: -- title: Depricate iterable.next in Python 2.6.x when called with -3 option - Deprecate iterable.next in Python 2.6.x when called with -3 option ? ___ Python tracker rep...@bugs.python.org

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-07-29 Thread Michael Hudson
New submission from Michael Hudson m...@users.sourceforge.net: If you call email.utils.make_msgid a number of times within the same second, the uniqueness of the results depends on random.randint(10) returning different values each time. A little mathematics proves that you don't have to

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-07-29 Thread Michael Hudson
Michael Hudson m...@users.sourceforge.net added the comment: A higher resolution timer would also help, of course. (Thanks to James Knight for the prod). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598

[issue6599] 2to3 test_print_function_option fails on Windows

2009-07-29 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: test_print_function_option is failing on Windows. Patch attached. Output of failure: C:python test.py test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ... snip\2to3\lib2to3\refactor.py:194: DeprecationWarning: the

[issue6600] MemoryError in AiX 64-bit build

2009-07-29 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: (currently investigating the root cause of this issue...) bash-2.04$ build/py2_6_2-aix5-powerpc-apy26-rrun/python/python -c open ('/tmp/test', 'w') Traceback (most recent call last): File string, line 1, in module MemoryError

[issue5093] 2to3 with a pipe on non-ASCII script

2009-07-29 Thread James Abbatiello
James Abbatiello abb...@gmail.com added the comment: The --no-diffs option was recently added which looks like a good workaround. Here's an attempt at a solution. If sys.stdout has an encoding set then use that, just as is being done now. If there is no encoding (implying ascii) then use the

[issue6600] MemoryError in AiX 64-bit build

2009-07-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: I suspect this is related to http://mail.python.org/pipermail/python- bugs-list/2003-November/021158.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6600

[issue6600] MemoryError in AiX 64-bit build

2009-07-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: I localized the error to line 248 in http://svn.python.org/view/python/ branches/release26-maint/Objects/fileobject.c?annotate=68135#248 (brandl's change made 3 years ago) static PyObject * open_the_file(PyFileObject *f, char

[issue6600] MemoryError in AiX 64-bit build

2009-07-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Interesting. If add the line: newmode = PyMem_MALLOC(4); next to the existing line: newmode = PyMem_MALLOC(strlen(mode) + 3); there is no MemoryError! -- ___ Python tracker

[issue6526] importlib.import_module affects permissions of .pyc files subsequently created by import

2009-07-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file14527/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6526 ___

[issue6600] MemoryError in AiX 64-bit build

2009-07-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: This is strange .. the attached patch (reverses operands to +) fixes the issue. -- Added file: http://bugs.python.org/file14605/patch ___ Python tracker rep...@bugs.python.org

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-29 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: I ran into this problem, too. It took me a long time to track down the segfaults. It's really bad to pass in None and have the system pick some random address instead of 0. I looked at the attached patch, and it seems to me the only

[issue6526] importlib.import_module affects permissions of .pyc files subsequently created by import

2009-07-29 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So removing the built-in, frozen, and extension importers did not stop the bug from happening. Calling importlib._bootstrap._PyFileFinder directly does not trigger the bug, even when trying with a finder for '.' first. And having sys.path be

<    1   2