Re: Python / Debian package dependencies

2008-11-20 Thread Steven Samuel Cole
Hey Paul thanks for your reply! :-) 2008/11/21 Paul Boddie [EMAIL PROTECTED]: Are you saying that psycopg2 needs setuptools for the setup.py script to work? This isn't generally the case (or wasn't), but maybe the entry point is a setuptools thing which would then demand that software's

Re: Problem with writing fast UDP server

2008-11-20 Thread John Nagle
Gabriel Genellina wrote: En Thu, 20 Nov 2008 14:24:20 -0200, Krzysztof Retel [EMAIL PROTECTED] escribió: On Nov 20, 4:00 pm, [EMAIL PROTECTED] wrote: On 20 Nov, 16:03, Krzysztof Retel [EMAIL PROTECTED] wrote: I am struggling writing fast UDP server. It has to handle around 1 UDP packets

Re: Tyrton ERP 1.0 released

2008-11-20 Thread CL (Ciu Loeng) Lam
HiCould the trython use the Oracle instead of the default postgresql ? 2008/11/19 erp software [EMAIL PROTECTED] On Nov 18, 3:26 pm, Hartmut Goebel [EMAIL PROTECTED] wrote: On behalf of the Tryton team I'm proud to announce Tryton 1.0, an Open Source application platform and ERP. It

Re: How to run a python app in the background?

2008-11-20 Thread Aaron Brady
On Nov 20, 6:13 pm, [EMAIL PROTECTED] wrote: I'm a beginning programmer writing a tiny app with a TkInter GUI. Desired functionality: When the user enters a time interval, I want the windows to disappear, and the program to lie dormant until the scheduled time (currently using sched module),

Re: Module Structure/Import Design Problem

2008-11-20 Thread Rafe
On Nov 21, 1:39 am, Steve Holden [EMAIL PROTECTED] wrote: Rafe wrote: Hi, I am in a situation where I feel I am being forced to abandon a clean module structure in favor of a large single module. If anyone can save my sanity here I would be forever grateful. My problem is that classes

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-20 Thread Steven D'Aprano
On Wed, 19 Nov 2008 10:05:23 -0800, Dennis Lee Bieber wrote: Do you really want a default argument that changes value depending upon actions performed in the /surrounding/ scope? And if you do, it is easy to get: default_y = something def parrot(x, y=None): if y is None: y =

Re: Module Structure/Import Design Problem

2008-11-20 Thread Rafe
On Nov 21, 2:36 am, Stef Mientki [EMAIL PROTECTED] wrote: I'm not an expert, I even don't fully understand your problem, but having struggled with imports in the past, I've a solution now, which seems to work quit well. That's not very helpful, is it? Were you planning to keep the

Re: Programming exercises/challenges

2008-11-20 Thread Edwin
On Nov 20, 6:28 am, [EMAIL PROTECTED] wrote:     a diary manager compatible with my Emacs diary file (sometimes I     don't want to open Emacs for a quick note)     Arnaud You mean that you sometimes don't have emacs open? I am constantly amazed at work that people open a separate emacs

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-20 Thread Steven D'Aprano
On Thu, 20 Nov 2008 14:22:50 +1300, greg wrote: Antoon Pardon wrote: You are changing your argument. In a follow up you made the point that call by value should be as it was intended by the writers of the algol 60 report. No, I was countering the argument that call by value is short for

Re: How to run a python app in the background?

2008-11-20 Thread Steve Holden
Aaron Brady wrote: On Nov 20, 6:13 pm, [EMAIL PROTECTED] wrote: I'm a beginning programmer writing a tiny app with a TkInter GUI. Desired functionality: When the user enters a time interval, I want the windows to disappear, and the program to lie dormant until the scheduled time (currently

Re: How to get the class instance of a passed method ?

2008-11-20 Thread Rafe
On Nov 21, 6:41 am, Stef Mientki [EMAIL PROTECTED] wrote: Christian Heimes wrote: thanks Christian, cheers, Stef OT: Just to pass along some great advice I got recently. Read PEP008. It contains guidelines for formatting your code. - Rafe --

Re: Module Structure/Import Design Problem

2008-11-20 Thread Steve Holden
Rafe wrote: On Nov 21, 1:39 am, Steve Holden [EMAIL PROTECTED] wrote: Rafe wrote: Hi, I am in a situation where I feel I am being forced to abandon a clean module structure in favor of a large single module. If anyone can save my sanity here I would be forever grateful. My problem is that

Re: sorting list of complex numbers

2008-11-20 Thread Steven D'Aprano
On Wed, 19 Nov 2008 18:39:27 -0800, Paul Rubin wrote: Terry Reedy [EMAIL PROTECTED] writes: Do your tuple destructuring in the first statement in your body and nothing will break. Why get rid of a useful feature that unclutters code? Unfortunately, the people who find it useful are a

Re: Problem with writing fast UDP server

2008-11-20 Thread Jean-Paul Calderone
On Fri, 21 Nov 2008 00:20:49 -0200, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 20 Nov 2008 14:24:20 -0200, Krzysztof Retel [EMAIL PROTECTED] escribió: On Nov 20, 4:00 pm, [EMAIL PROTECTED] wrote: On 20 Nov, 16:03, Krzysztof Retel [EMAIL PROTECTED] wrote: I am struggling writing fast

Sending username password to a webpage

2008-11-20 Thread KDawg44
Hi, Is there a way to essentially simulate populating a text box and calling a submit button on a webpage? I want to write an app that gets a users information from a website and then uses that to get information from another site. The first site requires a log in. Thanks for any advice that

Re: Module Structure/Import Design Problem

2008-11-20 Thread Gabriel Genellina
En Thu, 20 Nov 2008 17:36:11 -0200, Stef Mientki [EMAIL PROTECTED] escribió: I'm not an expert, I even don't fully understand your problem, but having struggled with imports in the past, I've a solution now, which seems to work quit well. That's not very helpful, is it? Were you planning to

Re: Sending username password to a webpage

2008-11-20 Thread Chris Rebert
On Thu, Nov 20, 2008 at 7:52 PM, KDawg44 [EMAIL PROTECTED] wrote: Hi, Is there a way to essentially simulate populating a text box and calling a submit button on a webpage? I want to write an app that gets a users information from a website and then uses that to get information from another

Re: function parameter scope python 2.5.2

2008-11-20 Thread Rafe
On Nov 21, 6:31 am, J Kenneth King [EMAIL PROTECTED] wrote: I recently encountered some interesting behaviour that looks like a bug to me, but I can't find the appropriate reference to any specifications to clarify whether it is a bug. Here's the example code to demonstrate the issue: class

Re: Using eval, or something like it...

2008-11-20 Thread Steven D'Aprano
On Thu, 20 Nov 2008 11:12:56 +1000, James Mills wrote: DON'T USE eval! If you're going to make a sweeping generalization like that, at least offer some alternatives, and explain why eval should be avoided. Otherwise your advice is just cargo-cult programming. eval is not inherently bad, it

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-20 Thread Steven D'Aprano
On Wed, 19 Nov 2008 11:26:54 -0800, George Sakkis wrote: On Nov 19, 1:05 pm, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Wed, 19 Nov 2008 05:41:57 -0800 (PST), Rick Giuly [EMAIL PROTECTED] declaimed the following in comp.lang.python: (By better I mean that over many years of time

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-20 Thread Steven D'Aprano
On Wed, 19 Nov 2008 11:20:05 -0500, Terry Reedy wrote: It is useful and convenient to have null values like None, but it isn't useful to say that None is not a value. I never said that. But you've been defending the views of somebody who did. If you're going to play Devil's Advocate for

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-20 Thread John Nagle
Steven D'Aprano wrote: On Thu, 20 Nov 2008 14:22:50 +1300, greg wrote: Antoon Pardon wrote: You are changing your argument. In a follow up you made the point that call by value should be as it was intended by the writers of the algol 60 report. No, I was countering the argument that call by

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-20 Thread Steven D'Aprano
On Thu, 20 Nov 2008 04:42:24 -0800, Aaron Brady wrote: On Nov 19, 7:58 pm, alex23 [EMAIL PROTECTED] wrote: On Nov 20, 10:14 am, Aaron Brady [EMAIL PROTECTED] wrote: If you had a menu in a browser interface that had the items, say, 'Stop' and 'Reload', what would you expect to happen if you

Re: F2PY: Access Fortran module data from multiple python module

2008-11-20 Thread Gabriel Genellina
En Wed, 19 Nov 2008 20:06:37 -0200, Yann Vonder [EMAIL PROTECTED] escribió: Here is a description of what I am trying to implement using F2PY: I have created two python extension modules using F2PY. The first extension module (say fsubr1.so) contains a Fortran module (say tmod) and a

Re: GzipFile as a Context manager

2008-11-20 Thread Gabriel Genellina
En Wed, 19 Nov 2008 17:04:22 -0200, Mikolai Fajer [EMAIL PROTECTED] escribió: Is there a reason that the gzip.GzipFile class does not have __enter__ and __exit__ methods that mimic those of the file object? I expected the following to work but it doesn't: import gzip with

Re: Programming exercises/challenges

2008-11-20 Thread skip
I am constantly amazed at work that people open a separate emacs for each file they want to edit.  Most of them seem not to even know that find-file exists. Edwin Come on mate... it's already a bit hard to post in a non-native Edwin language. As a beginner in Python it's

Re: function parameter scope python 2.5.2

2008-11-20 Thread Steven D'Aprano
On Thu, 20 Nov 2008 18:31:12 -0500, J Kenneth King wrote: Of course I expected that recursive_func() would receive a copy of weird_obj.words but it appears to happily modify the object. I am curious why you thought that. What made you think Python should/did make a copy of weird_obj.words

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-20 Thread Steven D'Aprano
On Fri, 21 Nov 2008 03:32:25 +, Steven D'Aprano wrote: Rather it seems to me that the essence of the idea they had in mind is that call-by-value is equivalent to assignment. You've just *assumed* that assignment in Algol 60 doesn't involving copying. Based on the very little I know

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-20 Thread alex23
On Nov 21, 10:07 am, Aaron Brady [EMAIL PROTECTED] wrote: Why, I would expect the interpreter to define the functions when it first hits the def, that is, at the point of definition. Then why are you arguing that the parameters should be re-defined at the point of calling? --

Re: Problem with writing fast UDP server

2008-11-20 Thread Greg Copeland
On Nov 20, 9:03 am, Krzysztof Retel [EMAIL PROTECTED] wrote: Hi guys, I am struggling writing fast UDP server. It has to handle around 1 UDP packets per second. I started building that with non blocking socket and threads. Unfortunately my approach does not work at all. I wrote a simple

how to run afile with an argument from python IDLE editor

2008-11-20 Thread Seid Mohammed
hi all, I have a problem. when i run a file python xxx.py from a comand line, it just work. But the DOS command line do not support unicode and I want to run it just from the IDLE editor. i can run by pressing F5, but without an argument anybody can hint me how to run with an argument just in

Re: Sending username password to a webpage

2008-11-20 Thread r0g
KDawg44 wrote: Hi, Is there a way to essentially simulate populating a text box and calling a submit button on a webpage? I want to write an app that gets a users information from a website and then uses that to get information from another site. The first site requires a log in.

Re: How to get the class instance of a passed method ?

2008-11-20 Thread Arnaud Delobelle
Christian Heimes [EMAIL PROTECTED] writes: Stef Mientki wrote: hello, if I pass a class method to a function, is it possible to determine the class instance in that function ? class test ( object ) : def My_Method ( self ) : return 22 def do_something ( parameter ) : # here I

Re: function parameter scope python 2.5.2

2008-11-20 Thread Arnaud Delobelle
J Kenneth King [EMAIL PROTECTED] writes: I recently encountered some interesting behaviour that looks like a bug to me, but I can't find the appropriate reference to any specifications to clarify whether it is a bug. Here's the example code to demonstrate the issue: class

capacitor

2008-11-20 Thread anju
A capacitor is an electrical/electronic device that can store energy in the electric field between a pair of conductors (called plates). The process of storing energy in the capacitor is known as charging, and involves electric charges of equal magnitude, but opposite polarity, building up on each

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-20 Thread Chris Rebert
On Thu, Nov 20, 2008 at 9:26 PM, alex23 [EMAIL PROTECTED] wrote: On Nov 21, 10:07 am, Aaron Brady [EMAIL PROTECTED] wrote: Why, I would expect the interpreter to define the functions when it first hits the def, that is, at the point of definition. Then why are you arguing that the parameters

how to run python file from the python IDLE editor

2008-11-20 Thread Seid Mohammed
hi all, I have a problem. when i run a file python xxx.py from a comand line, it just work. But the DOS command line do not support unicode and I want to run it just from the IDLE editor. i can run by pressing F5, but without an argument anybody can hint me how to run with an argument just in

[issue4356] Add key argument to bisect module functions

2008-11-20 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: What about cases where performance is unimportant, or where the key function is fast (e.g. an attribute access)? Then something like bisect(a, x, key=attrgetter('size')) is easy to write and read. Mightn't this be considered good design,

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread kai zhu
New submission from kai zhu [EMAIL PROTECTED]: # super_closure.py class A(object): def foo(self): return super() # remove the closure below # SystemError goes away ??? lambda: self A().foo() when run on 3.0rc1

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread kai zhu
kai zhu [EMAIL PROTECTED] added the comment: here's a printout of bytecode from script s = open(super_closure.py).read() c = compile(s, super_closure.py, exec) t = py3to2.codetree(c) print( t ) codetree( co_argcount = 0, co_cellvars = (), co_code =

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread kai zhu
kai zhu [EMAIL PROTECTED] added the comment: same thing, except w/ closure commented out ( everything is happy) # super_ok.py class A(object): def foo(self): return super() # comment the closure below # SystemError goes away # lambda: self

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread kai zhu
kai zhu [EMAIL PROTECTED] added the comment: oops, sorry reprinted the same code ^^;;; ignore previous post, use this: (sorry again for mucking up this page) # super_ok.py class A(object): def foo(self): return super() # comment the closure below

[issue4361] Docstring for Lib/string.py is outdated

2008-11-20 Thread thp
New submission from thp [EMAIL PROTECTED]: The docstring in Lib/string.py in the source of Python 3.0rc2 is wrong. It currently says lowercase, uppercase and letters where it should say ascii_lowercase, ascii_uppercase and ascii_letters. -- assignee: georg.brandl components:

[issue4356] Add key argument to bisect module functions

2008-11-20 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I had said almost always. Sure, if you don't care about performance or scalability, a key= argument would be a net win. We're responsible for creating an API that steers most programmers in the right direction (Tim sez we read Knuth so you

[issue4356] Add key argument to bisect module functions

2008-11-20 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4356 ___

[issue4356] Add key argument to bisect module functions

2008-11-20 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: One case I've been thinking about is that of maintaining a list of Decimal objects that are sorted by absolute value. For this, having to create a list of (abs(x), x) pairs just seems clumsy compared to using a key argument to bisect.

[issue4362] FileIO object in io module

2008-11-20 Thread David M. Beazley
New submission from David M. Beazley [EMAIL PROTECTED]: The FileIO object defined in the new io library has name and mode properties. However, attempts to access either value result in an AttributeError exception. The C source code in _fileio.c doesn't even implement a name attribute and

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-11-20 Thread David M. Beazley
David M. Beazley [EMAIL PROTECTED] added the comment: Just a quick comment from the Python training universe--this bug makes it impossible to use Python 2.6 in any kind of Python teaching environment where IDLE tends to be used a lot. I'm having to tell students to stick with Python-2.5.2.

[issue4362] FileIO object in io module

2008-11-20 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: This needs to be verified before the next rc gets out. -- nosy: +christian.heimes priority: - release blocker stage: - test needed versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED]

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: In a running frame, f-f_localplus is a vector composed of: - the values of the local variables - the cells containing variables used in a nested closure. - the values of free variables defined in a outer scope. super() needs to access

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Yet another release blocker for Barry. Good work, Amaury. -- assignee: - barry components: -Build nosy: +barry, christian.heimes priority: - release blocker resolution: - accepted stage: - patch review

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-11-20 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: It's still an issue and I like to get it resolved. The site module lets users access information related to my uesr site package directory. In 2.6 the information isn't accessible: $ python3.0 -m site --user-site

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-11-20 Thread Weeble
Changes by Weeble [EMAIL PROTECTED]: -- nosy: +weeble ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1529142 ___ ___ Python-bugs-list mailing list

[issue4354] distutils.command.register is broken

2008-11-20 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: The patch is fine with me. -- assignee: - barry nosy: +barry, christian.heimes priority: - release blocker resolution: - accepted stage: - commit review ___ Python tracker [EMAIL PROTECTED]

[issue4363] Make uuid module functions usable without ctypes

2008-11-20 Thread Dmitry Vasiliev
New submission from Dmitry Vasiliev [EMAIL PROTECTED]: The attached patch removes dependency on ctypes from uuid.uuid1() and uuid.uuid4() functions. -- components: Library (Lib) files: uuid.patch keywords: patch messages: 76107 nosy: hdima severity: normal status: open title: Make uuid

[issue4364] error in multiprocessing docs - rawvalue

2008-11-20 Thread Brian D'Urso
New submission from Brian D'Urso [EMAIL PROTECTED]: There is an error in the multiprocessing package documentation: In the sentence: 'Note that an array of ctypes.c_char has value and rawvalue attributes which allow one to use it to store and retrieve strings.' The error is that 'rawvalue'

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The attached patch is an attempt to set mode and name attributes to all three objects in the IO stack. For example, f = open(foo, U+) f.buffer.name, f.buffer.mode ('foo', 'r+') See also the unit tests. There is a little

[issue4236] Crash when importing builtin module during interpreter shutdown

2008-11-20 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a test case (a.py) which produces a FatalError back to Python 2.4 at least) Added file: http://bugs.python.org/file12073/a.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4236

[issue4365] Add CRT version info in msvcrt module

2008-11-20 Thread Cournapeau David
New submission from Cournapeau David [EMAIL PROTECTED]: This patch if the first part to follow discussion on python-list concerning problems when using distutils.config.try_run with mingw and manifest problems on windows for python 2.6 (or any python built with recent VS). It simply adds

[issue4236] Crash when importing builtin module during interpreter shutdown

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: After consultation with MvL and Crys_ on irc, we've agreed that this should be fixed someday but it's a pathological case that shouldn't hold up the release. I'm lowering to critical because I don't think it should even hold up the final

[issue4306] email package with unicode subject/body

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: I'm rejecting the patch because the old way of making this work still works in Python 3.0. Any larger changes to the API need to be made in the context of redesigning the email package to be byte/str aware. -- resolution: - rejected

[issue4354] distutils.command.register is broken

2008-11-20 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for the patch. Committed as r67298. For some reason, the saved credentials won't be read back in. Not sure whether this is specific to 3.0, though, or part of the new PyPIRC handling. -- status: open - closed

[issue1083] Confusing error message when dividing timedelta using /

2008-11-20 Thread webograph
Changes by webograph [EMAIL PROTECTED]: -- nosy: +webograph ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1083 ___ ___ Python-bugs-list mailing list

[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11

2008-11-20 Thread Akira Kitada
New submission from Akira Kitada [EMAIL PROTECTED]: I get a number of cannot find -lpython2.5 error when building Python 2.5.2 on FreeBSD 2.5.2 with gcc 2.95.4. This problem is only occured when I build it with --enable-shared configure option. This is how you can reproduce this problem. cd

[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11

2008-11-20 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Please try this patch with a clean source tree. It adds the current directory to the library search path. Index: setup.py === --- setup.py(revision 67295) +++ setup.py

[issue4367] Patch for segmentation fault in ast_for_atom

2008-11-20 Thread Giuseppe Ottaviano
New submission from Giuseppe Ottaviano [EMAIL PROTECTED]: Hi all, trying to compile Python 2.6 I got a segmentation fault while byte-compiling the modules. The segmentation fault happened in ast_for_atom, parsing an Unicode entity. I found out that another problem prevented unicodedata to be

[issue4368] a bug in ncurses.h still exist in

2008-11-20 Thread Akira Kitada
Changes by Akira Kitada [EMAIL PROTECTED]: -- nosy: akitada severity: normal status: open title: a bug in ncurses.h still exist in ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4368 ___

[issue4369] Error building to a nonstandard prefix (with patch)

2008-11-20 Thread Giuseppe Ottaviano
New submission from Giuseppe Ottaviano [EMAIL PROTECTED]: Hi all, I am trying to compile python 2.6 using a user directory as prefix. In the the byte-compiling step of install, compileall.py fails to load all the .so modules (it fails for zlib.so and raises an exception for unicodedata.so), so

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

2008-11-20 Thread Akira Kitada
New submission from Akira Kitada [EMAIL PROTECTED]: Excerpt from configure.in # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, # this is fixed in 10.3, which identifies itself as Darwin/7.* # This should hopefully

[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11

2008-11-20 Thread Akira Kitada
Akira Kitada [EMAIL PROTECTED] added the comment: Christian's patch fixed this problem! (tested on 4.11-RELEASE) I'm not sure why the other platforms don't suffer this problem. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4366

[issue4370] warning: unknown conversion type character `z' in format

2008-11-20 Thread Akira Kitada
New submission from Akira Kitada [EMAIL PROTECTED]: Some compilers don't understand %zd format specifer and gcc 2.95.4 is one of them. (You can find more on http://www.and.org/vstr/printf_comparison) When building Python with such compilers, you will see a lot of warning: unknown conversion

[issue4367] Patch for segmentation fault in ast_for_atom

2008-11-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Can you provide the code that caused the seg fault? -- nosy: +benjamin.peterson priority: - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4367

[issue4367] Patch for segmentation fault in ast_for_atom

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I think I got the point: to decode strings like \N{CHARACTER NAME} PyUnicode_DecodeUnicodeEscape imports the unicodedata module. If this fails, PyErr_SetString(PyExc_UnicodeError, some message) is called. The exception will eventually be

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-20 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- keywords: +needs review stage: - commit review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-11-20 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: issue4333 fixes this too, btw ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1447222 ___ ___ Python-bugs-list

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: The patch looks good to me. -- nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4360 ___

[issue4360] SystemError when method has both super() closure

2008-11-20 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- keywords: -needs review stage: patch review - commit review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4360 ___

[issue4367] Patch for segmentation fault in ast_for_atom

2008-11-20 Thread Giuseppe Ottaviano
Giuseppe Ottaviano [EMAIL PROTECTED] added the comment: @amaury: Yes, this is exactly what I noticed. I didn't know how to create an instance of a PyUnicodeErrorObject. BTW, isn't PyErr_SetString used throughout the code? Should all those calls replaced with PyErr_SetObject? @benjamin: The

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-20 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: Here the patch, updated Added file: http://bugs.python.org/file12080/setup_patch.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4117 ___

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: I'm okay with the roundtrip not being supported. One thing I don't quite understand is in the third test, where you're using w+ mode and testing f.buffer.mode and f.buffer.raw.mode is r+. Why is that? -- nosy: +barry

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-20 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: Sorry, but there is a remain from testing different versions of the turtle module in the demo file's import statement. Should read (of course): from turtle import Screen, Turtle, mainloop A corrected version is attached Sorry, again, for the

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: r67300 (with after the fact whitespace normalization of Lib/tests/test_io.py) -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4362

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

2008-11-20 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: You patch is out of date. The current case is for FreeBSD/4.* . -- nosy: +rpetrov ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4368 ___

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

2008-11-20 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: missed target version sorry ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4368 ___ ___ Python-bugs-list

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
New submission from David W. Lambert [EMAIL PROTECTED]: http://docs.python.org/dev/3.0/glossary.html Scanning the glossary reveals... coercion The glossary needs rewritten to eliminate coerce builtin. __future__ Uses example import division, I'd replace it but I don't know what

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- resolution: - fixed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4362 ___ ___ Python-bugs-list

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
Changes by David W. Lambert [EMAIL PROTECTED]: -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4371

[issue4306] email package with unicode subject/body

2008-11-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: I'm rejecting the patch because the old way of making this work still works in Python 3.0. I checked the documentation and there is a section about email: Internationalized headers. I didn't read this section. I just expected that Python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-11-20 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: That does remind me of another problem though - __main__.__file__ isn't currently set correctly when runpy picks up the module to run from inside a zipfile (zipimporter doesn't support runpy/pkgutil's non-standard get_filename() extension to the

[issue4306] email package with unicode subject/body

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 20, 2008, at 5:07 PM, STINNER Victor wrote: STINNER Victor [EMAIL PROTECTED] added the comment: I'm rejecting the patch because the old way of making this work still works in Python

[issue4372] __cmp__ removal not in What's New

2008-11-20 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: What's New in Python 3.0/Common stumbling blocks has this builtin.sorted() and list.sort() no longer accept the cmp argument providing a comparison function. Use the key argument instead. Please add The __cmp__ special method is no longer

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Reopening, since this causes failure in socket.makefile() -- resolution: fixed - status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4362

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This patch addresses the makefile() function and the SocketIO class. Added file: http://bugs.python.org/file12082/socketio_attributes.patch ___ Python tracker [EMAIL PROTECTED]

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Martin, do you still have remarks about this patch? Can we apply it? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4338 ___

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4362 ___ ___

[issue4233] open(0, closefd=False) prints 3 warnings

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Backported to trunk in r67307. But -- do we really want to backport to 2.6? This changes the semantics of closefd, adds a new closefd attribute... Did the rules change for 2.6.1? ___ Python tracker

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4362 ___ ___ Python-bugs-list

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-20 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: The patch is fine, please apply. -- keywords: -needs review resolution: - accepted ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4338 ___

[issue4362] FileIO object in io module

2008-11-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's a patch that makes FileIO accept and return 'b' in its mode string. -- nosy: +benjamin.peterson Added file: http://bugs.python.org/file12083/fileio_always_binary.patch ___ Python tracker

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Fixed in r67308. -- resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4338 ___

<    1   2   3   >