Re: Python is readable

2012-03-21 Thread Steve Howell
On Mar 20, 10:40 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 21, 2012 at 3:58 PM, Steve Howell showel...@yahoo.com wrote: So saying push(stack, item) or push(item, stack) seems very unsophisticated, almost assembly-like in syntax, albeit at a higher level conceptually than

Re: Python is readable

2012-03-21 Thread Chris Angelico
On Wed, Mar 21, 2012 at 5:52 PM, Steve Howell showel...@yahoo.com wrote: On the one hand, you say that push(stack, item) reads quite differently from stack.push(item). On the other hand, you say they are so close to identical as makes no odds. I'm trying to make sense of that.  Are you

Re: Python is readable

2012-03-21 Thread Chris Rebert
On Tue, Mar 20, 2012 at 11:52 PM, Steve Howell showel...@yahoo.com wrote: On Mar 20, 10:40 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 21, 2012 at 3:58 PM, Steve Howell showel...@yahoo.com wrote: So saying push(stack, item) or push(item, stack) seems very unsophisticated, almost

Re: setup.py for an extension

2012-03-21 Thread Richard Thomas
Assuming you have: lib/__init__.py lib/foo.py lib/foo.c Then: from distutils.core import setup, Extension setup(name=lib, packages=[lib], ext_modules=[Extension(lib._foo, [lib/foo.c])]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is readable

2012-03-21 Thread Steve Howell
On Mar 21, 12:16 am, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 20, 2012 at 11:52 PM, Steve Howell showel...@yahoo.com wrote: On Mar 20, 10:40 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Mar 21, 2012 at 3:58 PM, Steve Howell showel...@yahoo.com wrote: So saying push(stack,

Re: Python is readable

2012-03-21 Thread Chris Angelico
On Wed, Mar 21, 2012 at 6:57 PM, Steve Howell showel...@yahoo.com wrote:  verb first: English-imperative (boil water, add noodles/salt, serve in dish) or math-functional, e.g. sum(a,b,c)  verb middle: infix, arithmetic-like (5 plus 4, 10 divided by 2) or English-descriptive (Dog bites man) In

Re: pypi and dependencies

2012-03-21 Thread Diez B. Roggisch
Andrea Crotti andrea.crott...@gmail.com writes: When I publish something on Pypi, is there a way to make it fetch the list of dependencies needed by my project automatically? It would be nice to have it in the Pypi page, without having to look at the actual code.. Any other possible

Re: configobj validation

2012-03-21 Thread Diez B. Roggisch
Andrea Crotti andrea.crott...@gmail.com writes: On 03/19/2012 12:59 PM, Andrea Crotti wrote: I seemed to remember that type validation and type conversion worked out of the box, but now I can't get it working anymore. Shouldn't this simple example actually fail the parsing (instead it

Re: urllib.urlretrieve never returns???

2012-03-21 Thread Laszlo Nagy
On 2012-03-20 22:26, Prasad, Ramit wrote: I just looked at your source file on ActiveState and noticed that you do not import traceback. That is why you are getting the AttributeError. Now you should be getting a much better error once you import it:) Nope. That would result in a NameError.

Re: pypi and dependencies

2012-03-21 Thread Andrea Crotti
On 03/21/2012 11:38 AM, Diez B. Roggisch wrote: Andrea Crottiandrea.crott...@gmail.com writes: When I publish something on Pypi, is there a way to make it fetch the list of dependencies needed by my project automatically? It would be nice to have it in the Pypi page, without having to look

Re: configobj validation

2012-03-21 Thread Andrea Crotti
On 03/21/2012 11:40 AM, Diez B. Roggisch wrote: Andrea Crottiandrea.crott...@gmail.com writes: It works - so why do you bother? And I'm not sure about the above code - AFAIK, validation is a two-step thing: http://www.voidspace.org.uk/python/articles/configobj.shtml#validation Diez I don't

Re: List comprehension/genexp inconsistency.

2012-03-21 Thread J. Cliff Dyer
Thanks, Ian. That does seem to explain it. The inner loop doesn't have access to the class's name space, and of course you can't fix it by referencing Foo.y explicitly, because the class isn't fully defined yet. Ultimately, we realized that the dict should be created in the __init__ method, so

ReportLab alternative for Python3

2012-03-21 Thread Katya
I have a Python3 GUI, where user selects certain values to be statistically evaluated and/or plotted (matplotlib hist). Out of this GUI on user's request I want to create a report, prefferebly in DOC or/and ODT or/and PDF or/and HTML formats. The layout of the report is pretty much fixed, what

class checking its own module for an attribute

2012-03-21 Thread Rod Person
We have a module called constants.py, which contains related to server names, databases, service account users and there passwords. In order to be able to use constants as command line parameters for calling from our batch files I created the class below that checks to make sure the parameter

Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Ralph Heinkel
Hi, when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is trivial, but how do we compile our own C extension? Visual C ++ 2008

Re: Re: Python is readable

2012-03-21 Thread Evan Driscoll
On 01/-10/-28163 01:59 PM, Steve Howell wrote: Code shouldn't necessarily follow the example of English prose, but it seems that English has had some influence: 1 push(stack, item) # Push on the stack the item 2 push(item, stack) # Push the item on the stack 3 stack.push(item) # On

Re: Fast file data retrieval?

2012-03-21 Thread Stefan Behnel
Jorgen Grahn, 13.03.2012 21:44: On Mon, 2012-03-12, MRAB wrote: Probably the best solution is to put it into a database. Have a look at the sqlite3 module. Some people like to use databases for everything, others never use them. I'm in the latter crowd, so to me this sounds as overkill

Re: Python is readable

2012-03-21 Thread Steve Howell
On Mar 21, 9:22 am, Evan Driscoll drisc...@cs.wisc.edu wrote: On 01/-10/-28163 01:59 PM, Steve Howell wrote: Code shouldn't necessarily follow the example of English prose, but it seems that English has had some influence:   1  push(stack, item) # Push on the stack the item   2  

Re: class checking its own module for an attribute

2012-03-21 Thread Chris Rebert
On Wed, Mar 21, 2012 at 8:25 AM, Rod Person rodper...@rodperson.com wrote: snip The question is there a way I can do this with out having to import constants when what it's doing is importing itself. It would seem to me that there should be a way for a module to reference itself. In that

Re: class checking its own module for an attribute

2012-03-21 Thread Peter Otten
Rod Person wrote: We have a module called constants.py, which contains [whatever] related to server names, databases, service account users and their passwords. Passwords? In order to be able to use constants as command line parameters for calling from our batch files I created the class

Re: class checking its own module for an attribute

2012-03-21 Thread Rod Person
On Wed, 21 Mar 2012 09:56:57 -0700 Chris Rebert c...@rebertia.com wrote: On Wed, Mar 21, 2012 at 8:25 AM, Rod Person rodper...@rodperson.com wrote: snip The question is there a way I can do this with out having to import constants when what it's doing is importing itself. It would seem to

Re: class checking its own module for an attribute

2012-03-21 Thread Rod Person
On Wed, 21 Mar 2012 17:59:56 +0100 Peter Otten __pete...@web.de wrote: Rod Person wrote: We have a module called constants.py, which contains [whatever] related to server names, databases, service account users and their passwords. Passwords? Yes, not the best thing, but they are

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Terry Reedy
On 3/21/2012 11:06 AM, Ralph Heinkel wrote: when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is trivial, but how do we compile our

Re: Python is readable

2012-03-21 Thread Nathan Rice
MOAR TROLLING... In my opinion, people who make statements such as #1/2 are imperative, #3 is OO are missing pretty much the entire point of what OO is. OO is much more about semantics and the way code is structured. The difference between #1/2 (especially #1, of course) and #3 is

Re: ReportLab alternative for Python3

2012-03-21 Thread Emile van Sebille
On 3/21/2012 8:15 AM Katya said... Out of this GUI on user's request I want to create a report, prefferebly in DOC or/and ODT or/and PDF or/and HTML formats. ReportLab which seems to be suitable is not ready for Python3. So, any reason why not to just run that part under python2 -- they

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread Thomas Bach
Hi, Ralph Heinkel ralph.hein...@web.de writes: Hi, when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is trivial, but how do

Best way to disconnect from ldap?

2012-03-21 Thread John Gordon
I'm writing an application that interacts with ldap, and I'm looking for advice on how to handle the connection. Specifically, how to close the ldap connection when the application is done. I wrote a class to wrap an LDAP connection, similar to this: import ldap import ConfigParser

Re: Best way to disconnect from ldap?

2012-03-21 Thread J. Cliff Dyer
Write a context manager. Then you just do with MyLDAPWrapper() as ldap ldap.this() ldap.that() and when you leave the scope of the with statement, your ldap __exit__ method will get called regardless of how you left. Cheers, Cliff On Wed, 2012-03-21 at 19:30 +, John Gordon wrote:

Re: Best way to disconnect from ldap?

2012-03-21 Thread Chris Rebert
On Wed, Mar 21, 2012 at 12:30 PM, John Gordon gor...@panix.com wrote: I'm writing an application that interacts with ldap, and I'm looking for advice on how to handle the connection.  Specifically, how to close the ldap connection when the application is done. I wrote a class to wrap an LDAP

Re: Best way to disconnect from ldap?

2012-03-21 Thread Chris Kaynor
On Wed, Mar 21, 2012 at 1:34 PM, Chris Rebert c...@rebertia.com wrote: On Wed, Mar 21, 2012 at 12:30 PM, John Gordon gor...@panix.com wrote: I'm writing an application that interacts with ldap, and I'm looking for advice on how to handle the connection.  Specifically, how to close the ldap

Re: Best way to disconnect from ldap?

2012-03-21 Thread Tim Chase
On 03/21/12 15:54, Chris Kaynor wrote: As Chris Rebert pointed out, there is no guarantee as to when the __del__ method is called. CPython will generally call it immediately, however if there are reference cycles it may never call it And more maddeningly, modules/objects used/called from

Re: Python is readable

2012-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2012 11:22:01 -0500, Evan Driscoll wrote: On 01/-10/-28163 01:59 PM, Steve Howell wrote: Code shouldn't necessarily follow the example of English prose, but it seems that English has had some influence: 1 push(stack, item) # Push on the stack the item 2 push(item,

Re: Compiling Python (modules) on 64bit Windows - which compiler suite?

2012-03-21 Thread cjgohlke
On Wednesday, March 21, 2012 8:06:47 AM UTC-7, Ralph Heinkel wrote: Hi, when processing our mass spectrometry data we are running against the 2GB memory limit on our 32 bit machines. So we are planning to move to 64bit. Downloading and installing the 64bit version of Python for Windows is

Re: Python is readable

2012-03-21 Thread Steve Howell
On Mar 21, 4:34 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Wed, 21 Mar 2012 11:22:01 -0500, Evan Driscoll wrote: On 01/-10/-28163 01:59 PM, Steve Howell wrote: Code shouldn't necessarily follow the example of English prose, but it seems that English has had some

Re: Daemonization / Popen / pipe issue

2012-03-21 Thread Lee Clemens
On 03/18/2012 12:15 AM, Cameron Simpson wrote: BTW, Lee, there is an external module for daemonising things in the UNIX sense: http://pypi.python.org/pypi/python-daemon I recommend you use it. Cheers, I haven't updated the gist yet, but I did try it with the code below - but I get the same

Re: Python is readable

2012-03-21 Thread Steve Howell
On Mar 21, 11:06 am, Nathan Rice nathan.alexander.r...@gmail.com wrote: As for syntax, we have a lot of real domain specific languages, such as English, math and logic. They are vetted, understood and useful outside the context of programming.  We should approach the discussion of language

[issue13959] Re-implement parts of imp in pure Python

2012-03-21 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Of note for my patch is the addition of SUFFIXES and MODE to the 3 main file loader classes. I did this to reverse the dependence on imp.get_suffixes(). As well, a couple of extra functions are added to Python/importlib/_bootstrap.py

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: -if long_xml or text or len(elem): +if text or len(elem) or long_xml: Use alternatives in order of decreasing probability. -- nosy: +storchaka ___ Python tracker

[issue14378] __future__ imports fail when compiling from python ast

2012-03-21 Thread J. D. Bartlett
New submission from J. D. Bartlett j...@bartletts.id.au: GOAL I am trying to compile an AST which contains an ImportFrom node which performs a __future__ import. The ImportFrom node in question is the first node within the AST's body (as it should be, because __future__ imports must occur at

[issue14378] __future__ imports fail when compiling from python ast

2012-03-21 Thread J. D. Bartlett
J. D. Bartlett j...@bartletts.id.au added the comment: Incidentally, the workaround that I'm using for the time being is to run the following code before attempting to compile root_node. for node in ast.walk(root_node): if isinstance(node, ast.ImportFrom) and node.module == '__future__':

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-03-21 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Ok, just for the record: a single __buffer__() special method with delegation-only semantics would also work for Cython. Taking this path would provide a cleaner separation of the (then delegation-only) Python level protocol and

[issue7652] Merge C version of decimal into py3k.

2012-03-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The best thing might be to use Emax=10**8-1 and Emin=-(10**8-1) throughout. I don't think many applications depend on having Emax=10**9-1. If they do, they'll have to use the 64-bit version. 10**6-1 would be another option. The

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-03-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___

[issue14376] sys.exit documents argument as integer but actually requires subtype of int

2012-03-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It would be simple to change line 1112 of pythonrun.c from if (PyInt_Check(value)) to if (PyInt_Check(value) || PyLong_Check(value)) Wouldn't you also have to deal with possible errors from the PyInt_AsLong call? E.g., after

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Thanks to the tests, I found the error. Since the bzip2 is block algorithm, decompressor need to eat a certain amount of data, so it began to return data. Now when reading small chunks turns out premature end of data. I'm working on a

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-03-21 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- nosy: -krisvale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file24982/bzip2_in_zip_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14371 ___

[issue9787] Release the TLS lock during allocations

2012-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Making this low priority since it applies only to platforms without Windows and pthread support. -- priority: normal - low versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue14376] sys.exit documents argument as integer but actually requires subtype of int

2012-03-21 Thread Gareth Rees
Gareth Rees g...@garethrees.org added the comment: Wouldn't you also have to deal with possible errors from the PyInt_AsLong call? Good point. But I note that Python 3 just does exitcode = (int)PyLong_AsLong(value); so maybe it's not important to do error handling here. --

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-03-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The reason I don't particularly like the delegation only API is that the combination of the new memoryview implementation and bytes/mmap/etc to get a flat region of memory to play with means you could do some quite interesting things entirely

[issue14379] Several traceback docs improvements

2012-03-21 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Some notes about current `traceback` documentation: http://docs.python.org/library/traceback.html 1. It needs a mentioning that traceback module works with traceback objects and frame objects 2. Functions that work with frames should

[issue3367] Uninitialized value read in parsetok.c

2012-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a patch for the sysmodule.c problem -- Added file: http://bugs.python.org/file24983/sysmodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-03-21 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a95b19b3b4cd by Andrew Svetlov in branch '3.2': #3573: idle now doesn't hungs if launched as: idle -e directory http://hg.python.org/cpython/rev/a95b19b3b4cd New changeset cdcd1f7f0882 by Andrew Svetlov in branch

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a9be863e5734 by Andrew Svetlov in branch '2.7': #3573: idle now doesn't hungs if launched as: idle -e directory http://hg.python.org/cpython/rev/a9be863e5734 -- ___

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Backported to 3.2 and 2.7 -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3573 ___

[issue7652] Merge C version of decimal into py3k.

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list

[issue5066] IDLE documentation for Unix obsolete/incorrect

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5066 ___ ___ Python-bugs-list

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1053687 ___ ___

[issue7738] IDLE hang when tooltip comes up in Linux

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Works fine on Ubuntu 11.10 with tk 8.5 for 3.2, 2.7 and 3.3 alpha. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7738

[issue14373] C implementation of functools.lru_cache

2012-03-21 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Updated patch to fix a crash if maxsize isn't given, and add a unit test for that. Possible issues: * I've tried to emulate object() by calling PyBaseObject_Type. Not sure if there's a more lightweight object for this that just provides the

[issue14373] C implementation of functools.lru_cache

2012-03-21 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: (Sorry for not replying earlier). I think the main priority here is getting things working, not the tests (so I have little interest in that). First of all, should quopri.encodestring() really return bytes? Everything it returns is ascii

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, a patch won't get committed if it lacks tests, so commit would have to wait until I have time to write some, then. The encode_ methods (from email.encoders) take *message* objects as their arguments. MIMEText internally converts

[issue10469] test_socket fails using Visual Studio 2010

2012-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Added a patch as used by CCP in production. Covers more WSA cases. -- nosy: +krisvale Added file: http://bugs.python.org/file24985/cpython_75849_to_75851.diff ___ Python tracker

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks for applying. Just note that unlike with svn, with hg it is stronly recommended to apply to 3.2 first and forward port to 3.3. Something about the DAGs working better. -- ___ Python tracker

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Will do in next time. Thank you for instructions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3573 ___

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: In fact, there's really no reason to call an encode_ method at all, since if you pass a string to MIMEText when giving it a non-ascii unicode string, it will default to utf-8 and do the appropriate CTE encoding. No, it doesn't: Python

[issue978604] wait_variable hangs at exit

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue978604 ___ ___

[issue7057] tkinter doc: more 3.x updates

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7057 ___ ___ Python-bugs-list

[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5136 ___

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3035 ___ ___ Python-bugs-list

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, you are right. I even noted that bug in my PyCon talk, but immediately forgot about it :( I do intend to fix it. You can get it to work by explicitly passing the charset: x = MIMEText('йцукен', _charset='utf8') str(x)

[issue802310] tkFont may reuse font names

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue802310 ___

[issue7652] Merge C version of decimal into py3k.

2012-03-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 730d5357 by Stefan Krah in branch 'default': Issue #7652: Integrate the decimal floating point libmpdec library to speed http://hg.python.org/cpython/rev/730d5357 -- nosy: +python-dev

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-21 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: The MIMEText class of the email package in Python3 requires that a character set be specified in order for the resulting email to be valid. If no character set is specified, it currently assumes ascii but puts a unicode payload in the

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-21 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: Michael Foord reminded me of this issue recently. It was discussed on pydev a few years back and met with limited enthusiasm. I speak from experience in live production with EVE that this simple change saved us a lot of

[issue14308] '_DummyThread' object has no attribute '_Thread__block'

2012-03-21 Thread Dustin Kirkland
Dustin Kirkland dustin.kirkl...@gmail.com added the comment: Okay, update... I did rebuild all of Python from source (actually, I applied it to the Ubuntu python2.7 package, rebuilt that locally, and then upgraded to the new python2.7 deb's. I could see my change was applied

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Does it not decrease the performance? Falling out integral floating point numbers in the mathematical floating point calculations seems unlikely. I suggest interning integral floats only in conversions str - float and int - float.

[issue12757] undefined name in doctest.py

2012-03-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 64f1b8ad9214 by R David Murray in branch '3.2': #12757: Make doctest skipping in -OO mode work with unittest/regrtest -v http://hg.python.org/cpython/rev/64f1b8ad9214 New changeset ff7957aa01a1 by R David Murray in

[issue12757] undefined name in doctest.py

2012-03-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Since nobody really cares about this issue :), I went ahead and applied the patch that at least avoids the tracebacks. Someone can open a new bug about the duplicated message if they really care. -- resolution: - fixed stage:

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-03-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14078 ___ ___ Python-bugs-list mailing

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14377 ___ ___ Python-bugs-list mailing

[issue7738] IDLE hang when tooltip comes up in Linux

2012-03-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Since most people can't reproduce this problem now, let's assume it was a problem in the particular version of Tk used. If someone can reproduce it with a current IDLE and Tk, please reopen with details. -- nosy: +ned.deily stage: test needed

[issue7738] IDLE hang when tooltip comes up in Linux

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7738 ___ ___ Python-bugs-list

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4652 ___ ___ Python-bugs-list

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This looks like a duplicate of issue 4024. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14381 ___

[issue10118] Tkinter does not find font

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10118 ___ ___

[issue1500773] wm_attributes doesn't take keyword arguments

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1500773 ___ ___

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: I opened my IDLE (v. 3.2.2 windows xp) and pasted in print('ここ') it printed ここ just fine. -- nosy: +weirdink13 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4652

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: alt-c does nothing for me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4652 ___

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: For now unicode BMP has full support in TK while non-BMP characters doesn't works. 'こ' character is BMP symbol: hex(ord('こ')) '0x3053' which is lesser than non-BMP space (starting from 0x1). I have no idea why alt-c doesn't

[issue14376] sys.exit documents argument as integer but actually requires subtype of int

2012-03-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: so maybe it's not important to do error handling here. Hmm, seems it's not. And dealing with OverflowError is hardly likely to be a concern in practice anyway. +1 for the suggested fix. -- ___

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I close this issue because: - current 3.2 and upcoming 3.3 support Japanese characters very well. - there are problems with non-BMP characters not supported currently but it's another issue. See progress of #14200 and others for

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: I would say that alt-c is not a problem at all, but, some people might use 'ç' more that me, (I never have used 'ç' spesificaly) -- ___ Python tracker rep...@bugs.python.org

[issue4333] Reworked Dialog.py

2012-03-21 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4333 ___ ___ Python-bugs-list

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: To add to the other comments, problems with input methods using Python 3 and Tkinter or IDLE are usually platform-specific issues with the implementation of Tk. In particular, the issue Jean-Christophe reported with Python 3.1.1 was very likely due

[issue4652] IDLE does not work with Unicode

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Daniel Swanson, maybe my msg156512 was not obvious. You can use 'ç' without any problem in IDLE — it is BMP character. See http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters for details. tkinter has full support for 'Basic

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Pushed as PendingDepricationWarnings for upcoming 3.3 -- assignee: - asvetlov resolution: - remind stage: patch review - versions: +Python 3.3, Python 3.4 -Python 3.2 ___ Python tracker

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d42f264f291e by Andrew Svetlov in branch 'default': Issue #3035: Unused functions from tkinter are marked as pending peprecated. http://hg.python.org/cpython/rev/d42f264f291e -- nosy: +python-dev

  1   2   >