Re: Python Database Apps

2007-09-12 Thread Prateek
On Sep 13, 4:55 am, Ed Leafe [EMAIL PROTECTED] wrote: On Sep 12, 2007, at 10:53 AM, [EMAIL PROTECTED] wrote: Thanks for ideas Ed. I am checking out dabo now. I do have a few questions about it. Packaging. Is it easy to package into a quick install for windows. The users are going to

Re: unexpected behavior: did i create a pointer?

2007-09-12 Thread Gabriel Genellina
En Wed, 12 Sep 2007 08:30:14 -0300, Bruno Desthuilliers [EMAIL PROTECTED] escribi�: neoedmund a écrit : On Sep 7, 4:07 pm, gu [EMAIL PROTECTED] wrote: (snip pb and code) now, in the second for cycle and in functionA() i only 'touch' copyOfA (altering it). as i don't touch the variable

Re: Error in random module, bad installation?

2007-09-12 Thread Tim Roberts
Andrew F [EMAIL PROTECTED] wrote: I'm a linux user and I just upgraded from 2.1 to 2.5 and changed the location of a number of libraries and tools. So far I've tracked most errors, but this one has me scratching my head : $ which python /usr/local/bin/python $ echo $PYTHONPATH

Re: newbie: self.member syntax seems /really/ annoying

2007-09-12 Thread Michele Simionato
On Sep 12, 1:05 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: Making, say, 'a' hiddenly mean 'x.a', within a function, requires a decorator that suitably rewrites the function's bytecode... (after which, it WOULD still be terrible and horrible and not to be used, just as you say, but it might

Re: Implementing a fixed size stack for an RPN Calculator

2007-09-12 Thread [EMAIL PROTECTED]
On Sep 12, 2:55 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 12 Sep 2007 20:55:22 +, [EMAIL PROTECTED] wrote: I have implemented an RPN calculator in python but now I would like to make the stack size fixed. how can I transform the user's RPN expression from a stack

Parallel/Multiprocessing script design question

2007-09-12 Thread Amit N
Hi guys, I tend to ramble, and I am afraid none of you busy experts will bother reading my long post, so I will try to summarize it first: 1. I have a script that processes ~10GB of data daily, and runs for a long time that I need to parallelize on a multicpu/multicore system. I am trying to

Re: Is the wxPython list down?

2007-09-12 Thread Frank Millman
Chris Mellon wrote: Frank Millman wrote: I noticed that cvs seems to be down as well - maybe it was on the same server. CVS is down because wx has moved to SVN, which is still up and running fine. svn.wxwidgets.org. Thanks, Chris, I found it. However, the 'Browse sources' link on

Re: Car-ac-systems

2007-09-12 Thread nebulous99
On Sep 11, 9:35 am, John Timney \(MVP\) [EMAIL PROTECTED] wrote: How do I control one with C# then! Thats not on your site, clearly not everything I need to know then. Waste of a site! C# is just as off topic in comp.lang.java.programmer as car air- conditioning systems. The latter, however,

Re: Python code-writing for the blind. Was (Re: newbie: stani's pythoneditor if-else)

2007-09-12 Thread Gabriel Genellina
En Tue, 11 Sep 2007 14:28:35 -0300, Hamilton, William [EMAIL PROTECTED] escribi�: Can you set SPE to use a single space rather than the typical four spaces? Python should accept it just fine. You'll still have problems reading other people's code. Maybe you can write a quick script that

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-12 Thread christen
christen added the comment: Bug is still there but pb is solved, simply use oepn('file', 'U') see outputs : fichin=open('test.txt','U') === (2, 5, 0, 'final', 0) 2007-09-12 08:00:43 (500, 9.31236239624) (1000, 22.31236239624) (1500, 35.094000101089478) (2000,

[issue1152] Bug in documentation for SimpleXMLRPCServer

2007-09-12 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1152 __ ___ Python-bugs-list mailing list

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2007-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Attaching the most recent patch (minor update from the second one i sent to the python-3000 mailing list to initialize ob_readonly_exports = 0 in the appropriate places). Current mailing list discussion is pointing out that the name LOCKDATA means something

[issue1153] help(pickle) fails: unorderable types: type() type()

2007-09-12 Thread Marcin 'Qrczak' Kowalczyk
New submission from Marcin 'Qrczak' Kowalczyk: Python 3.0a1 (py3k, Sep 8 2007, 15:57:56) [GCC 4.2.1 20070719 (release) (PLD-Linux)] on linux2 Type help, copyright, credits or license for more information. import pickle help(pickle) Traceback (most recent call last): File stdin, line 1, in

[issue1136] Bdb documentation

2007-09-12 Thread Tim Golden
Tim Golden added the comment: I've reviewed the docs for English and general readability. As mentioned, I've no idea of the tech involved. I did look through the bdb.py source and the existing docs for pdb to get some idea of the terminology used. Ultimately I've changed very little; in a couple

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Cool. This helps track down the bug a bit more; it's either in (our routine) getline_via_fgets or it's in Microsoft's text mode line end translation (which universal newlines bypasses). I'm assigning this to Tim Peters, who probably still has a Windows box

[issue1136] Bdb documentation

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Thanks for reviewing, I'll finish and commit that one shortly. -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1136 __

[issue1154] Carbon.CF memory leak

2007-09-12 Thread hhas
New submission from hhas: CFStringRefObj_Convert leaks memory when passed a str. See attached diff file for patch. -- components: Macintosh files: CFmodule.diff messages: 55843 nosy: hhas severity: normal status: open title: Carbon.CF memory leak type: resource usage versions: Python

[issue1136] Bdb documentation

2007-09-12 Thread Cristina Yenyxe González García
Cristina Yenyxe González García added the comment: Oops, of course a filename should be in canonical form (an absolute name which does not contain repeated path separators or symbolic links)! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1136

[issue1772851] Decimal and long hash, compatibly and efficiently

2007-09-12 Thread ajaksu
ajaksu added the comment: IMHO this patch should be considered for (at least) py3k, in which long becomes the new int. As there is current interest in long/int performance[1] this seems like a good time to raise this kind of issue. Mark, could you please outline the semantic changes

[issue1155] Carbon.CF memory management problem

2007-09-12 Thread hhas
New submission from hhas: While other CF...RefObj_Convert functions return a borrowed object, CFStringRefObj_Convert will return either a new or borrowed CFStringRef depending on the type of value supplied (str, unicode or CFString). As a result, extensions that use CFStringRefObj_Convert

[issue1535659] NNTPS support in nntplib

2007-09-12 Thread Bill Janssen
Bill Janssen added the comment: Georg got it right -- this patch is bogus. I'm going to close it as won't fix. Feel free to re-open it as an RFE with a good patch. -- resolution: - wont fix status: open - closed _ Tracker [EMAIL PROTECTED]

[issue1136] Bdb documentation

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Okay, committed as rev. 58112, 58113. Thank you! -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1136 __

[issue1152] Bug in documentation for SimpleXMLRPCServer

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58114. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1152 __ ___

[issue1122] PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58115, 58116 (2.5). Thanks! -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1122 __

[issue1139] PyFile_Encoding should be PyFile_SetEncoding

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58117, 58118 (2.5). Thanks! -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1139 __

[issue1598083] Top-level exception handler writes to stdout unsafely

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: I'll look into it. -- nosy: +georg.brandl _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1598083 _ ___ Python-bugs-list mailing

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-12 Thread Johann Tonsing
New submission from Johann Tonsing: The document from which http://docs.python.org/lib/os-process.html was generated contains: Note: The standard way to exit is sys.exit(n). _exit() should normally only be used in the child process after a fork(). Should child be replaced with parent? This

[issue1154] Carbon.CF memory leak

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58119, 58120 (2.5). -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1154 __

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: PJE's patch looks good to me too. Stylistic nits: - The proper name of the now-public null importer type ought to be PyNullImporter_Type, to rhyme with e.g. PyString_Type - There's a multi-line if that has the closing parenthesis in an odd place at the

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Assigning to Martin. -- assignee: - loewis nosy: +georg.brandl, loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1156 __ ___

[issue1153] help(pickle) fails: unorderable types: type() type()

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in the repr module (it was calling sorted() on sets and dicts, which is wrong without fallback) in rev. 58122 (trunk), 58123 (2.5) -- will be merged to 3.0 shortly. -- assignee: - georg.brandl nosy: +georg.brandl resolution: - fixed status: open -

[issue1121] Document inspect.getfullargspec()

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Documented in rev. 1121. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1121 __ ___

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: I like this, but the patch has problems: you don't error-check the return value from PyObject_Unicode() or PyUnicode_FromObject() (and why do you need the latter call anyway?) Also in the docstring I would reference str() instead of __str__(). There are also

[issue1777530] ctypes on Solaris

2007-09-12 Thread Thomas Heller
Thomas Heller added the comment: Can someone please test the patch and report back? -- Thanks _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1777530 _ ___

[issue1120] make altinstall installs pydoc, idle, smtpd.py with broken shebang lines

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58125, should be merged to 3k shortly. Thanks! -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1120

[issue1098] decode_unicode doesn't nul-terminate

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: The function in question is in Python/ast.c. Martin, does the string need to be null-terminated or does DecodeUnicodeEscape need to be fixed (since it takes an explicit length argument)? -- assignee: - loewis nosy: +georg.brandl, loewis type: - crash

[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Brett, you recently fixed an infinite recursion crasher, right? -- assignee: - brett.cannon nosy: +brett.cannon _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1686386 _

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed. I'll fix it ASAP. -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1148 __

[issue1019] Cleanup pass on _curses and _curses_panel

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Unfortunately, the patch is hard to review with all the whitespace cleanup distracting from semantic changes. Can you produce a patch with only those changes? -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED]

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58126. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1148 __ ___

[issue1038] [py3k] pdb does not work in python 3000

2007-09-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in rev. 58127. -- assignee: - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1038 __

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: There's one additional issue. If any of the items is a bytes, the call should fail. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1145 __

[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-12 Thread Brett Cannon
Brett Cannon added the comment: So the first example (in msg31624) crashes because of infinite recursion with the repr of exceptions:: #7771 0x00065178 in BaseException_repr (self=0x5dc6b8) at Objects/exceptions.c:128 #7772 0x0001d90c in PyObject_Repr (v=0x5dc6b8) at Objects/object.c:362 #7773

[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-12 Thread Brett Cannon
Changes by Brett Cannon: -- versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1686386 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1772851] Decimal and long hash, compatibly and efficiently

2007-09-12 Thread Mark Dickinson
Mark Dickinson added the comment: To help explain what's going on, here's some Python code. The Python function long_hash1 below has the properties that: (1) long_hash1(n) == hash(n) for almost all integers n, with a

[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-12 Thread Brett Cannon
Brett Cannon added the comment: OK, so I have attached a possible patch. I found out that tuple.__repr__ didn't do anything to prevent infinite recursion since you can't pull it off from Python code. But obviously C code is another matter. =) Same goes for object.__str__; it didn't think

[issue1686386] Python SEGFAULT on tuple.__repr__ and str()

2007-09-12 Thread Brett Cannon
Changes by Brett Cannon: -- title: Python SEGFAULT on invalid superclass access - Python SEGFAULT on tuple.__repr__ and str() _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1686386 _

[issue1772851] Decimal and long hash, compatibly and efficiently

2007-09-12 Thread ajaksu
ajaksu added the comment: Thanks a lot for the explanation. I still think it could be valuable (C?)py3k change (but now for the predictability, as you say :) Regarding the performance of Decimal.__hash__: I believe (int) hash performance would be a moot issue if Decimal.__int__ was (much)

[issue1158] %f format for datetime objects

2007-09-12 Thread Skip Montanaro
New submission from Skip Montanaro: Attached is a patch for py3k which adds a %f format code to its strftime method. When included in a format string it expands to the number of microseconds in the object. date, time and datetime objects all support the format (though I'm not sure what, if

<    1   2   3