[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Here is a module that solves this problem if the tests are run with the fullcoverage directory at the front of the PYTHONPATH, like this: PYTHONPATH=Tools/fullcoverage ./python -m coverage run --pylib Lib/test/regrtest.py

[issue10592] pprint module doesn't work well with OrderedDicts

2011-03-03 Thread Craig McQueen
Changes by Craig McQueen pyt...@craig.mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10592 ___ ___ Python

Python 32-bit on Windows 64-bit

2011-02-11 Thread Craig Yoshida
and have 4GB of RAM. Thanks, -Craig -- http://mail.python.org/mailman/listinfo/python-list

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
. This means that some examples, such as themultiprocessing.Pool examples will not work in the interactive interpreter. Thanks. On Jan 27, 2011, at 6:39 AM, Philip Semanchuk wrote: On Jan 25, 2011, at 8:19 PM, Craig Yoshioka wrote: Hi all, I could really use some help with a problem

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
: On Jan 27, 2011, at 1:12 PM, Craig Yoshioka wrote: The code will be multi-platform. The OSXisms are there as an example, though I am developing on OS X machine. I've distilled my problem down to a simpler case, so hopefully that'll help troubleshoot. I have 2 files: test.py

Re: documentation / reference help

2011-01-25 Thread Craig Leffel
Where does it return the value to? What do I need to put in the calling function so that I can use that value? I need a variable name to refer to. Shouldn't I have to define that variable someplace? Littlefield, Tyler ty...@tysdomain.com wrote in message

help with multiprocessing pool

2011-01-25 Thread Craig Yoshioka
Hi all, I could really use some help with a problem I'm having. I wrote a function that can take a pattern of actions and it apply it to the filesystem. It takes a list of starting paths, and a pattern like this: pattern = { InGlob('Test/**'):{

[issue10979] setUpClass exception causes explosion with -b

2011-01-21 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: Normally, unittest cleanly reports an exception in a setUpClass method. But if I place the attached test in a directory by itself and then run python -m unittest discover -b from inside of the same directory, then instead

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: If you try doing msg.as_string() to a MIMEMultipart message that has not been given a boundary, then it dies with this exception: Traceback (most recent call last): File mime_gen_alt.py, line 40, in module print

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Here is a patch that fixes the problem. The problem probably only occurs if the MIMEMultipart is actually given several MIME parts to use in its interior. -- keywords: +patch Added file: http://bugs.python.org/file20391

[issue9196] Improve docs for string interpolation %s re Unicode strings

2011-01-09 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I'm attaching a file that I used (in Python 2.x). It's a little rough--I manually commented and uncommented various lines to see what would change under various circumstances. But at least you should be able to see what I was doing

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-12-26 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I should be able to attach my test code. But it is at my work, and I'm on holidays for 2 more weeks. Sorry 'bout that! I do assume that Python 3 greatly simplifies this. -- ___ Python

Python changes

2010-10-28 Thread Craig McRoberts
has it changed in my ten years' absence? I've already resigned myself to starting over from the beginning, but are my books from that time period even worth using now? Thanks so much. Craig McRoberts -- http://mail.python.org/mailman/listinfo/python-list

Re: Python changes

2010-10-28 Thread Craig McRoberts
Thanks for the prompt replies. Sounds like it's time to hit a bookstore. Craig McRoberts -- http://mail.python.org/mailman/listinfo/python-list

Re: Python changes

2010-10-28 Thread Craig McRoberts
Oh, I like to browse brick-and-mortar enough. But it's been forever since I've bought something there. Craig McRoberts On Oct 28, 2010, at 15:16, Teenan t33...@gmail.com wrote: On Thu, 2010-10-28 at 15:03 -0400, Craig McRoberts wrote: Thanks for the prompt replies. Sounds like it's time

[issue5131] pprint doesn't know how to print a defaultdict

2010-10-01 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: Terry J. Reedy (terry.reedy) wrote: IMHO pprint should be able to make a decent job of all the built in types Agreed, already true as far as I know, and irrelevant. This issue is not about built-in types in the builtins module

[issue5131] pprint doesn't know how to print a defaultdict

2010-09-29 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: Raymond Hettinger (rhettinger) wrote: Ben, I don't think there is any value is opening more issues like pprint-doesn't-handle-object-x (named tuples, defautdicts, deques, generators, etc). As it is currently designed, pprint doesn't

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-05 Thread Craig de Stigter
Craig de Stigter craig...@gmail.com added the comment: Hi, sorry no I haven't had time to add a real test for this -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9720

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-03 Thread Craig de Stigter
Craig de Stigter craig...@gmail.com added the comment: Yes, the bug still exists in Python 3.1.2. However, struct.pack() no longer silently ignores overflow, so I get this error instead: z.write('foo.txt') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib

[issue9723] pipes.quote() needs to be documented

2010-08-31 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: The only way to safely build shell command lines from inside of Python — which is necessary when sending commands across SSH, since that behaves like os.system() rather than like subprocess.call() — is to use the wonderful

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-08-30 Thread Craig de Stigter
New submission from Craig de Stigter craig...@gmail.com: Steps to reproduce: # create a large (4gb) file f = open('foo.txt', 'wb') text = 'a' * 1024**2 for i in xrange(5 * 1024): f.write(text) f.close() # now zip the file import zipfile z = zipfile.ZipFile('foo.zip', mode='w', allowZip64

ANN: Cython 0.13 released!

2010-08-25 Thread Craig Citro
contributed to this release, including: * David Barnett * Stefan Behnel * Chuck Blake * Robert Bradshaw * Craig Citro * Bryan Cole * Lisandro Dalcin * Eric Firing * Danilo Freitas * Christoph Gohlke * Dag Sverre Seljebotn * Kurt Smith * Erik Tollerud * Carl Witty -cc -- http

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: I think the fact that sqlite may not be using the warnings properly is independent of this problem. Warnings should be filterable, but if sqlite isn't notifying them properly - that would be a different bug. BTW I came across

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: Reading PEP 0249 I can see Gerhard is correct, this patch would violate the PEP. I think that the PEP is slightly flawed in that users are encouraged to raise exceptions called Warning. IMHO a Warning is never an exceptional condition

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-04 Thread Nick Craig-Wood
New submission from Nick Craig-Wood n...@craig-wood.com: sqlite3.Warning isnt a subclass of exceptions.Warning This causes this problem when trying to filter warnings import sqlite3 as DB from warnings import filterwarnings filterwarnings(always, category=DB.Warning) Traceback (most recent

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-04 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: I've attached a patch to fix the issue along with a revised test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9510

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-04 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: I re-worked the patch for python 3.x (py3k branch) - the other was for 2.x (trunk) Basically the same patch and fixes the issue according to my testing -- Added file: http://bugs.python.org/file18386/sqlite3-warning-fix-py3k.patch

[issue4755] Common path prefix

2010-07-25 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: http://code.activestate.com/recipes/577016-path-entire-split-commonprefix/ -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4755

[issue7639] bdist_msi fails on files with long names

2010-07-23 Thread Craig McQueen
Changes by Craig McQueen pyt...@craig.mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7639 ___ ___ Python-bugs

[issue7696] Improve Memoryview/Buffer documentation

2010-07-19 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I've seen the changes Mr Pitrou made, both for the 2.x and 3.x docs. That's a good improvement--thanks very much. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7696] Improve Memoryview/Buffer documentation

2010-07-11 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: The documentation implies that memoryview always accesses bytes: * len(view) returns the total number of bytes in the memoryview, view. * Taking a single index will return a single byte. But, the following example shows

[issue7696] Improve Memoryview/Buffer documentation

2010-07-11 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: My previous comment was referring to Python 3.x, by the way. Python 2.7 has not implemented the buffer protocol for `array`. -- ___ Python tracker rep...@bugs.python.org http

[issue9195] Link in docs from String Formatting Operations to Template Strings

2010-07-08 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: I stumbled across Template Strings of PEP 292 by accident recently. I'd never heard of it before. I'm familiar with the string interpolation aka String Formatting Operations, and I know to find that in the docs under Standard Types

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-07-08 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: I have just been trying to figure out how string interpolation works for %s, when Unicode strings are involved. It seems it's a bit complicated, but the Python documentation doesn't really describe it. It just says %s converts any

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-07-08 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Another thing I discovered, for Example 1: 4. If test_object.__str__() returns a Unicode object (for some reason), and test_object.__unicode__() does not exist, then the Unicode value from the __str__() call is used

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: To further explain, I had code e.g.: parser.add_option(u'-s', u'--seqfile', dest='seq_file_name', help=u'Write sequence file output to FILE', metavar=u'FILE') I had to remove the unicode designator for the first parameter

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: Working in Japan, I find it very helpful to be able to read full Unicode arguments in Python 2.x under Windows 2000/XP. So I am using the following: http://stackoverflow.com/questions/846850/how-to-read-unicode-characters-from

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: My program currently uses ASCII options, so I can change the Unicode string parameter to byte string. The optparse module still seems to match the option against the incoming Unicode argv, I guess by implicit string conversion

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-07-01 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: A follow-on re the cx_Freeze issue: I looked at the source code, and found it doesn't seem to be doing any thread creation. But I found that in the initscripts/Console.py, there are the following lines: if sys.version_info[:2

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-06-23 Thread Craig Younkins
New submission from Craig Younkins cyounk...@gmail.com: The method in question: http://docs.python.org/library/cgi.html#cgi.escape http://svn.python.org/view/python/tags/r265/Lib/cgi.py?view=markup # at the bottom http://code.python.org/hg/trunk/file/3be6ff1eebac/Lib/cgi.py#l1031 Convert

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-06-23 Thread Craig Younkins
Changes by Craig Younkins cyounk...@gmail.com: -- type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061 ___ ___ Python-bugs-list

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-06-23 Thread Craig Younkins
Craig Younkins cyounk...@gmail.com added the comment: Proof of concept: print body class='%s'/body % cgi.escape(' onload='alert(1);' bad=') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-06-23 Thread Craig Younkins
Craig Younkins cyounk...@gmail.com added the comment: cgi.escape is for HTML attribute escaping only. It is not safe for HTML attribute escaping because it does not encode single quotes. More suitable for HTML would be the correct interpretation rather make the input safe. More suitable

[issue1172711] long long support for array module

2010-06-23 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: So it looks as though this isn't going in to Python 2.7. How about 3.x? -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172711

[issue9066] Standard type codes for array.array, same as struct

2010-06-23 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: The type codes for array.array are platform-dependent. The type codes are similar to those for the struct module. It would be helpful for array.array to adopt the struct module's = format specifier prefix, to specify standard sizes

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-06-15 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: From my limited experience using cx_Freeze 4.1.2 with Python 2.6.5, it seems that this issue is triggered in a cx_Frozen program simply by having `import threading` in the program. I'm not sure what cx_Freeze is doing that makes

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-06-15 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Sorry I should have said, I'm running on Windows 2000 SP4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1596321

lambdas

2010-06-14 Thread Craig Yoshioka
in which to implement this pattern Cheers!, -Craig -- http://mail.python.org/mailman/listinfo/python-list

Re: lambdas

2010-06-14 Thread Craig Yoshioka
Sorry, the first example should be: class Status(object): def __init__(self,definitions): for key,function in definitions: setattr(self,key,property(function)) On Jun 14, 2010, at 3:06 PM, Craig Yoshioka wrote: I'm trying to write a class factory

[issue8820] IDLE not launching correctly

2010-06-03 Thread Jeff Craig
Jeff Craig foxxt...@foxxtrot.net added the comment: I can confirm this behaviour and error. On Windows Server 2008 R2 64-bit. -- nosy: +foxxtrot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820

[issue8820] IDLE not launching correctly

2010-06-03 Thread Jeff Craig
Jeff Craig foxxt...@foxxtrot.net added the comment: Further information, this was an issue for me in 2.6.4, but with 2.6.5 it appears to no longer be an issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: The multiprocessing module uses a bare fork() to create child processes under Linux, so the children get a copy of the entire state of the parent process. But under Windows, child processes are freshly spun-up Python

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Jesse, it's great to learn it's on your wish list too! Should I design the patch so that (a) there is some global in the module that needs tweaking to choose the child creation technique, or (b) that an argument to the Process

[issue8517] Apple Style Guide link is broken in the Documenting Python chapter

2010-04-24 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: On this page, the Style Guide for people who want to try contributing to the Python documentation: docs.python.org/documenting/style.html there is a broken link to the Apple Style Guide. The 2008 edition now seems gone

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-13 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: \MinGW\bin\ld.exe -v GNU ld (GNU Binutils) 2.20 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8384

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-13 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I just realised--I didn't have c:\mingw\bin in my path. Once I added that to the path, then the build worked fine. So I guess the issue is only that the error message is somewhat cryptic

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-04-12 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I tried it in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File C:\Python31\lib\distutils\cygwinccompiler.py, line 280, in __init__ CygwinCCompiler.__init__ (self, verbose

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-12 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: I tried to build a C extension in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File C:\Python31\lib\distutils\cygwinccompiler.py, line 280, in __init__ CygwinCCompiler

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-04-12 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Sure can--done. Issue #8384. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue8264] hasattr doensn't show private (double underscore) attributes exist

2010-03-30 Thread Nick Craig-Wood
New submission from Nick Craig-Wood n...@craig-wood.com: I just spend a while tracking down a bug in my code which turned out to be an unexpected behaviour of hasattr. Running this class Test(object): def __init__(self): self.__private = Hello def test(self): print

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: This bug was confirmed to no longer be present for Python 2.6.4, however it is still present for Python 3.1.1. Could someone with open privileges re-open this please? -- ___ Python tracker

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I ran it as follows: \python31\python.exe setup.py build --compiler=mingw32 --verbose and got: running build running build_py running build_ext building 'cobs._cobsext' extension error: Unable to find vcvarsall.bat If I run

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-18 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: And, I should add, doing nearly the same thing, except with Python 2.6.4, works fine. Same machine, same console window, same path: \python26\python.exe setup.py build --compiler=mingw32 --verbose running build running build_py

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-11 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Not so much of a traceback. But essentially the same final error: running build running build_py running build_ext building 'cobs._cobsext' extension error: Unable to find vcvarsall.bat

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: This still seems to be a bug in Python 3.1.1, does it not? Can this be re-opened? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-11 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: There's also this one which caught me out: def outer(): x = 0 y = (x for i in range(10)) del x # SyntaxError -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http

Re: [PyOpenGL-Users] Mouse wheel events?

2010-02-10 Thread Craig Berry
reported, and everything else seems to be working as expected. Thanks for your help! -- Craig Berry - http://www.cine.net/~cberry/ Lots of things in the universe don’t solve any problems, and nevertheless exist. -- Sean Carroll -- http://mail.python.org/mailman/listinfo/python-list

Re: [PyOpenGL-Users] Mouse wheel events?

2010-02-07 Thread Craig Berry
. I'll look into it. Thanks for the pointer! -- Craig Berry - http://www.cine.net/~cberry/ Lots of things in the universe don’t solve any problems, and nevertheless exist. -- Sean Carroll -- http://mail.python.org/mailman/listinfo/python-list

[issue1205239] Let shift operators take any integer value

2010-01-26 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Thanks, good points. I'm thinking with a C background and the fixed-width data types. The 0xFF could be needed if the data_byte is actually a larger number and you need to ensure only the lowest 8 bits are set. Or, if there is some

[issue1205239] Let shift operators take any integer value

2010-01-26 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: To complete that thought... Since crc 8 could bump the calculation into long territory, for that final mask I guess I'd want to mask and then shift. I.e. rather than crc_mask = ((1 crc_width) - 1) crc = (...) ^ ((crc 8

[issue1205239] Let shift operators take any integer value

2010-01-25 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Just for the record... here is a relevant use case... I'm working on some code for calculating CRCs, and hope to support any CRC width, including CRC-5. This involves, among the calculations: crc (crc_width - 8) The complete

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-01-13 Thread Craig Citro
New submission from Craig Citro craigci...@gmail.com: Currently, it's impossible to use the usual pickle mechanisms to pickle a dynamically created class, even if the user requests a different pickling mechanism via copy_reg. The attached patch makes this customization possible by simply

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-01-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Eric sent a build_ext.py to me and Daniel26 by e-mail. Attached. The idea was to copy it over the one in C:\Python31\Lib\distutils\command. I tried the file that he sent, but I'm getting the same issue that Daniel26 described

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-24 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Eric (keldonin), please consider attaching the file (solution you mentioned) to this issue for the benefit of the rest of us. I'm interested to see it. -- ___ Python tracker rep

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-22 Thread Craig McQueen
Craig McQueen ces-...@mcqueen.id.au added the comment: This seems to be an bug in Python 3.1.1. Is it fixed in the Python 3 code? Is the issue being tracked in a separate issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-15 Thread Craig McQueen
Changes by Craig McQueen ces-...@mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698 ___ ___ Python-bugs-list

[issue6377] distutils compiler switch ignored

2009-12-15 Thread Craig McQueen
Changes by Craig McQueen ces-...@mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6377 ___ ___ Python-bugs-list

Re: ANN: GMPY 1.11rc1 is available

2009-11-30 Thread Nick Craig-Wood
- it is an excellent bit of software! -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

[issue1606092] csv module broken for unicode

2009-11-24 Thread Craig McQueen
Changes by Craig McQueen ces-...@mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1606092 ___ ___ Python-bugs

[issue1606092] csv module broken for unicode

2009-11-24 Thread Craig McQueen
Craig McQueen ces-...@mcqueen.id.au added the comment: I think I see now--it accepts Unicode input, but converts it back to bytes internally using the ASCII codec. So it works as long as the Unicode input contains on ASCII characters. That's a gotcha. It appears that it's been fixed in Python 3

Re: Looking for a pure Python chart drawing module

2009-09-22 Thread Nick Craig-Wood
reportlab... It can plot charts I think, though last time I used it I plotted stuff by hand as I wanted exact control over the layout. I'm not sure of the dependencies though so may not be suitable for your purposes. http://www.reportlab.org/rl_toolkit.html -- Nick Craig-Wood n...@craig-wood.com

Re: including constants

2009-09-14 Thread Nick Craig-Wood
of settings with that name. This has the advantage that you can check everything in. -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: VT100 in Python

2009-09-14 Thread Nick Craig-Wood
VT100 emulator, but I couldn't find it in a brief search just now. You'll find various others (like this one) if you search some more http://svn.python.org/projects/python/branches/string_methods/Demo/cwilib/vt100.py -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick

Re: CPU usage while reading a named pipe

2009-09-13 Thread Nick Craig-Wood
%r:%r % (len(line), line) if __name__ == __main__: import sys main(sys.argv[1]) -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Application-global switches?

2009-09-07 Thread Nick Craig-Wood
config import config if config.debug: # blah This has the advantage that you can define some methods on your config object (eg save). I don't know whether this is best practice but it works for me! -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http

Re: IDE for python similar to visual basic

2009-08-28 Thread Craig
Try wingware i have it and i like it. --- On Fri, 8/28/09, qwe rty hkh00...@gmail.com wrote: From: qwe rty hkh00...@gmail.com Subject: IDE for python similar to visual basic To: python-list@python.org Date: Friday, August 28, 2009, 5:19 PM i have been searching for am IDE for python that

Re: Python on Crays

2009-08-27 Thread Craig
Who the one from wisconsin and did you try the python group in madison maybe they can help. Well i from madison are and i just a newbie with python.What OS you useing? --- On Thu, 8/27/09, Mark Dickinson dicki...@gmail.com wrote: From: Mark Dickinson dicki...@gmail.com Subject: Re: Python on

Re: How to create ones own lib

2009-08-19 Thread Nick Craig-Wood
/ functions in hotte.py then use them like import hotte hotte.MyClass() hotte.my_function() See here for the relevant bit of the tutorial http://docs.python.org/tutorial/modules.html -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org

Re: www.python.org website is down?

2009-08-08 Thread Craig
Yes the same prob. --- On Sat, 8/8/09, Mark Lawrence breamore...@yahoo.co.uk wrote: From: Mark Lawrence breamore...@yahoo.co.uk Subject: Re: www.python.org website is down? To: python-list@python.org Date: Saturday, August 8, 2009, 8:41 AM Caezar wrote: I cannot connect to the official

Re: Semaphore Techniques

2009-07-29 Thread Nick Craig-Wood
(most recent call last): File stdin, line 20, in module File stdin, line 16, in lock_process Exception: Too many instances of me running You could do the same thing with lock files also very easily... -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http

Re: Does python have the capability for driver development ?

2009-07-29 Thread Nick Craig-Wood
can write FUSE (file systems in userspace) drivers in python I believe. Not the same as running in ring0 but in most senses a kernel driver... -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: bad certificate error

2009-07-28 Thread Nick Craig-Wood
? Invalid how? Self signed certificate? Domain mismatch? Expired certificate? -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: bad certificate error

2009-07-28 Thread Nick Craig-Wood
a correctly set up self-signed certificate is fine for dev stuff. I'm certainly too cheap to by real certificates for dev or internal stuff! -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-23 Thread Nick Craig-Wood
possible boards using a combination of back tracking and a genetic algorithm. -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: extract c/cpp include file with regular expression

2009-07-23 Thread Nick Craig-Wood
but instead of producing an object file, it produces a machine readable xml file describing the source. It is used by h2xml.py / xml2py.py to make ctypes header file automatically. -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo

Re: sqlite3 performance problems only in python

2009-07-23 Thread Nick Craig-Wood
, so if that is the problem you could use NAME like '%cis20r%' -- not quite the same, but close! and NAME_ like 'fatigue' instead which might be quicker. Or not ;-) -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Pep 342 (val = yield MyGenerator(foo)), synchronous os.system() that doesn't block gui event loops

2009-07-23 Thread Nick Craig-Wood
, in particular http://twistedmatrix.com/trac/wiki/DeferredGenerator -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for os.listdir() generator

2009-07-23 Thread Nick Craig-Wood
-- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-21 Thread Nick Craig-Wood
if it takes me an hour each cycle ;-) The program is about 700 lines of python (excluding comments). Thanks Nick -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list

Re: ctype performance benchmark

2009-07-17 Thread Nick Craig-Wood
return p.d_name def close(self): Close the directory if self.handle is not NULL: closedir(self.handle) self.handle = NULL def __dealloc__(self): self.close() -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick

<    1   2   3   4   5   6   7   8   9   10   >