RedNotebook 1.5

2012-07-20 Thread Jendrik Seipp
A new RedNotebook version has been released. You can get the tarball, the Windows installer and links to distribution packages at http://rednotebook.sourceforge.net/downloads.html What is RedNotebook? RedNotebook is a **graphical journal** and diary helping you keep track

Re: properly catch SIGTERM

2012-07-20 Thread Dieter Maurer
Eric Frederich eric.freder...@gmail.com writes: ... This seems to work okay but just now I got this while hitting ctrl-c It seems to have caught the signal at or in the middle of a call to sys.stdout.flush() --- Caught SIGTERM; Attempting to quit gracefully --- Traceback (most recent call

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Steven D'Aprano
On Thu, 19 Jul 2012 09:06:45 -0400, Roy Smith wrote: Heh. This reminds me of one of my current pet peeves. I've run across documentation for more than one Python project (django is the one that comes to mind, but I'm sure there's others) which misuse words like set and list. They're often

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Ian Kelly
On Thu, Jul 19, 2012 at 3:01 PM, John Gordon gor...@panix.com wrote: In mailman.2317.1342730879.4697.python-l...@python.org Dennis Lee Bieber wlfr...@ix.netcom.com writes: Sure it terminates...If you don't run out of RAM to represent the number i in question, there's also this heat death

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Devin Jeanpierre
On Thu, Jul 19, 2012 at 5:01 PM, John Gordon gor...@panix.com wrote: Since the current evidence indicates the universe will just keep expanding, it's more of a deep freeze death... Heat death means *lack* of heat. But it doesn't mean low temperature! The term is agnostic as to what the

Re: Finding duplicate file names and modifying them based on elements of the path

2012-07-20 Thread Peter Otten
larry.mart...@gmail.com wrote: It seems that if you do a list(group) you have consumed the list. This screwed me up for a while, and seems very counter-intuitive. Many itertools functions work that way. It allows you to iterate over the items even if there is more data than fits into memory.

Re: Finding duplicate file names and modifying them based on elements of the path

2012-07-20 Thread Paul Rubin
larry.mart...@gmail.com larry.mart...@gmail.com writes: It seems that if you do a list(group) you have consumed the list. This screwed me up for a while, and seems very counter-intuitive. Yes, that is correct, you have to carefully watch where the stuff in the iterators is getting consumed,

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Steven D'Aprano
On Thu, 19 Jul 2012 13:50:36 -0500, Tim Chase wrote: On 07/19/12 13:28, Chris Angelico wrote: On Fri, Jul 20, 2012 at 4:20 AM, Tim Chase python.l...@tim.thechases.com wrote: Sure it terminates...If you don't run out of RAM to represent the number i in question, there's also this heat death

Re: reloading code and multiprocessing

2012-07-20 Thread Chris Angelico
On Thu, Jul 19, 2012 at 8:15 PM, andrea crotti andrea.crott...@gmail.com wrote: We need to be able to reload code on a live system. This live system has a daemon process always running but it runs many subprocesses with multiprocessing, and the subprocesses might have a short life... ... As

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Steven D'Aprano
On Fri, 20 Jul 2012 08:20:57 +1000, Chris Angelico wrote: Since the current evidence indicates the universe will just keep expanding, it's more of a deep freeze death... Heat death means *lack* of heat. The second law of thermodynamics states that energy tends to go from higher

Re: Google the video blah blah jews blah blah 9/11 blah blah conspiracy blah cia blah blah blah zionist blah blah brainwashing blah blah blah

2012-07-20 Thread Steven D'Aprano
On Thu, 19 Jul 2012 10:27:02 -0400, Matty Sarro wrote: I must be a Jew or a traitor as I keep deleting this email. You might be both. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd csv column-name truncation with only one column

2012-07-20 Thread Steven D'Aprano
On Thu, 19 Jul 2012 15:52:12 +0200, Hans Mulder wrote: Perhaps it should be documented that the Sniffer doesn't work on single-column data. If you really need to read a one-column csv file, you'll have to find some other way to produce a Dialect object. Perhaps the predefined 'cvs.excel'

Re: Finding duplicate file names and modifying them based on elements of the path

2012-07-20 Thread Paul Rudin
larry.mart...@gmail.com larry.mart...@gmail.com writes: It seems that if you do a list(group) you have consumed the list. This screwed me up for a while, and seems very counter-intuitive. You've consumed the *group* which is an iterator, in order to construct a list from its elements. Sorry if

Re: Let child process to run while parent is out (multiprocessing)

2012-07-20 Thread Kushal Kumaran
On Fri, Jul 20, 2012 at 2:04 AM, John Wong gokoproj...@gmail.com wrote: def main(...): build_id = create_build_id(...) build_stuff return build_id Suppose build_stuff compiles a C program. It could take days to finish, and notify users their builds are ready. I was thinking

Re: properly catch SIGTERM

2012-07-20 Thread Kushal Kumaran
On Fri, Jul 20, 2012 at 11:39 AM, Dieter Maurer die...@handshake.de wrote: Eric Frederich eric.freder...@gmail.com writes: ... This seems to work okay but just now I got this while hitting ctrl-c It seems to have caught the signal at or in the middle of a call to sys.stdout.flush() ---

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Mark Lawrence
On 19/07/2012 22:13, Ian Kelly wrote: On Thu, Jul 19, 2012 at 3:01 PM, John Gordon gor...@panix.com wrote: In mailman.2317.1342730879.4697.python-l...@python.org Dennis Lee Bieber wlfr...@ix.netcom.com writes: Sure it terminates...If you don't run out of RAM to represent the number i in

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Erik Max Francis
On 07/20/2012 01:11 AM, Steven D'Aprano wrote: On Thu, 19 Jul 2012 13:50:36 -0500, Tim Chase wrote: On 07/19/12 13:28, Chris Angelico wrote: On Fri, Jul 20, 2012 at 4:20 AM, Tim Chase python.l...@tim.thechases.com wrote: Sure it terminates...If you don't run out of RAM to represent the

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Virgil Stokes
On 20-Jul-2012 10:27, Steven D'Aprano wrote: On Fri, 20 Jul 2012 08:20:57 +1000, Chris Angelico wrote: Since the current evidence indicates the universe will just keep expanding, it's more of a deep freeze death... Heat death means *lack* of heat. The second law of thermodynamics

QVariant.toPyObject()

2012-07-20 Thread Wolfgang Rohdewald
toPyObject() is mentioned but undocumented at http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qvariant.html#toPyObject without it being documented, I find it a bit surprising that toPyObject() can return a QString. Of course QString is a python object but then QVariant is too. --

Re: QVariant.toPyObject()

2012-07-20 Thread Vincent Vande Vyvre
On 20/07/12 11:50, Wolfgang Rohdewald wrote: toPyObject() is mentioned but undocumented at http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qvariant.html#toPyObject without it being documented, I find it a bit surprising that toPyObject() can return a QString. Of course QString is a

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread BartC
Erik Max Francis m...@alcyone.com wrote in message news:gskdnwoqpkoovztnnz2dnuvz5s2dn...@giganews.com... On 07/20/2012 01:11 AM, Steven D'Aprano wrote: On Thu, 19 Jul 2012 13:50:36 -0500, Tim Chase wrote: I'm reminded of Graham's Number, which is so large that there aren't enough molecules

Re: best way to handle this in Python

2012-07-20 Thread Rita
Thats an interesting data structure Dennis. I will actually be running this type of query many times preferable in an ad-hoc environment. That makes it tough for sqlite3 since there will be several hundred thousand tuples. On Fri, Jul 20, 2012 at 12:18 AM, Dennis Lee Bieber

logging time format millisecond precision decimalsign

2012-07-20 Thread Alex van der Spek
I use this formatter in logging: formatter = logging.Formatter(fmt='%(asctime)s \t %(name)s \t %(levelname)s \t %(message)s') Sample output: 2012-07-19 21:34:58,382 root INFO Removed - C:\Users\ZDoor\Documents The time stamp has millisecond precision but the decimal separator is a

Re: Google the video blah blah jews blah blah 9/11 blah blah conspiracy blah cia blah blah blah zionist blah blah brainwashing blah blah blah

2012-07-20 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Thu, 19 Jul 2012 10:27:02 -0400, Matty Sarro wrote: I must be a Jew or a traitor as I keep deleting this email. You might be both. URL:https://www.youtube.com/watch?v=7kYVaycn5Fc -- \ “My business is to teach my

Re: properly catch SIGTERM

2012-07-20 Thread Eric Frederich
On Fri, Jul 20, 2012 at 1:51 AM, Jason Friedman ja...@powerpull.net wrote: This seems to work okay but just now I got this while hitting ctrl-c It seems to have caught the signal at or in the middle of a call to sys.stdout.flush() --- Caught SIGTERM; Attempting to quit gracefully ---

Re: logging time format millisecond precision decimalsign

2012-07-20 Thread Peter Otten
Alex van der Spek wrote: I use this formatter in logging: formatter = logging.Formatter(fmt='%(asctime)s \t %(name)s \t %(levelname)s \t %(message)s') Sample output: 2012-07-19 21:34:58,382 root INFO Removed - C:\Users\ZDoor\Documents The time stamp has millisecond precision

Re: Finding duplicate file names and modifying them based on elements of the path

2012-07-20 Thread MRAB
On 20/07/2012 04:07, larry.mart...@gmail.com wrote: [snip] Also, in make_dir5_key the format specifier for strftime should be %y%m %d so they sort properly. Correct. I realised that only some time later, after I'd turned off my computer for the night. :-( --

Re: Odd csv column-name truncation with only one column

2012-07-20 Thread Hans Mulder
On 19/07/12 23:10:04, Dennis Lee Bieber wrote: On Thu, 19 Jul 2012 13:01:37 -0500, Tim Chase python.l...@tim.thechases.com declaimed the following in gmane.comp.python.general: It just seems unfortunate that the sniffer would ever consider [a-zA-Z0-9] as a valid delimiter. +1 I'd

Re: properly catch SIGTERM

2012-07-20 Thread Oscar Benjamin
What about Kushal's suggestion above? Does the following work for you? signal.signal(signal.SIGTERM, my_SIGTERM_handler) signal.siginterrupt(signal.SIGTERM, flag=False) According to the siginterrupt docs ( http://docs.python.org/library/signal.html) Change system call restart behaviour: if flag

Re: Encapsulation, inheritance and polymorphism

2012-07-20 Thread Hans Mulder
On 20/07/12 11:05:09, Virgil Stokes wrote: On 20-Jul-2012 10:27, Steven D'Aprano wrote: On Fri, 20 Jul 2012 08:20:57 +1000, Chris Angelico wrote: Since the current evidence indicates the universe will just keep expanding, it's more of a deep freeze death... Heat death means *lack* of

Re: best way to handle this in Python

2012-07-20 Thread Ian Kelly
On Fri, Jul 20, 2012 at 4:34 AM, Rita rmorgan...@gmail.com wrote: Thats an interesting data structure Dennis. I will actually be running this type of query many times preferable in an ad-hoc environment. That makes it tough for sqlite3 since there will be several hundred thousand tuples.

Re: A thread import problem

2012-07-20 Thread Bruce Sherwood
Dieter Maurer commented the following on my question about a thread import problem: -- In a recent discussion in this list someone mentioned that on module import, you should not start a thread. The reason: apparently, Python uses some kind of locking during import which can

Re: logging time format millisecond precision decimalsign

2012-07-20 Thread David Bolen
Alex van der Spek zd...@xs4all.nl writes: I use this formatter in logging: formatter = logging.Formatter(fmt='%(asctime)s \t %(name)s \t %(levelname)s \t %(message)s') Sample output: 2012-07-19 21:34:58,382 root INFO Removed - C:\Users\ZDoor\Documents The time stamp has

Microsoft: Seeking Devs with All Levels of Experience for NATIONWIDE Remote Research Study

2012-07-20 Thread uccoord
'm with Microsoft User Research and we're looking nationally for developers with all levels of experience (from college graduate to senior developer) for an upcoming remote research study. This is a great opportunity to share feedback with Microsoft User Researchers and have a direct impact on

Newbie question on python programming

2012-07-20 Thread Chris Williams
Hello I hope this is the right newsgroup for this post. I am just starting to learn python programming and it seems very straightforward so far. It seems, however, geared toward doing the sort of programming for terminal output. Is it possible to write the sort of applications you can

ANN: dbf.py 0.94

2012-07-20 Thread Ethan Furman
Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports, comments, and kudos welcome! ;) ~Ethan~ --

Re: Newbie question on python programming

2012-07-20 Thread Ian Kelly
On Fri, Jul 20, 2012 at 5:38 PM, Chris Williams purplewel...@googlemail.com wrote: Hello I hope this is the right newsgroup for this post. I am just starting to learn python programming and it seems very straightforward so far. It seems, however, geared toward doing the sort of programming

Re: ANN: dbf.py 0.94

2012-07-20 Thread Steven D'Aprano
On Fri, 20 Jul 2012 16:59:21 -0700, Ethan Furman wrote: Getting closer to a stable release. Excellent! That's fantastic news! I've been waiting for a stable release of dbf for months! I just have one question. What is dbf? Latest version has a simpler, cleaner API, and works on PyPy (and

can someone teach me this?

2012-07-20 Thread Menghsiu Lee
Hi, I have tried 1000 times to compile this python file to be an exe file by using py2exe and gui2exe But, it does not work out. I am thinking if there can be some genius teaching me how to make this happen. The link in below is the complete code with all sources. Everything is open to

Re: can someone teach me this?

2012-07-20 Thread rusi
On Jul 21, 7:09 am, Menghsiu Lee menghsiu@gmail.com wrote: can someone teach me this? Lesson 1: Use an informational subject line Lesson 2: Post what you did and what happened -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-07-20 Thread Temia Eszteri
On 21 Jul 2012 00:50:13 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. I don't generally click

Re: ANN: dbf.py 0.94

2012-07-20 Thread Chris Angelico
On Sat, Jul 21, 2012 at 12:56 PM, Temia Eszteri lamial...@cleverpun.com wrote: On 21 Jul 2012 00:50:13 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as

Re: can someone teach me this?

2012-07-20 Thread hamilton
On 7/20/2012 8:09 PM, Menghsiu Lee wrote: Hi, I have tried 1000 times to compile this python file to be an exe file by using py2exe and gui2exe But, it does not work out. I am thinking if there can be some genius teaching me how to make this happen. The link in below is the complete code with

Re: ANN: dbf.py 0.94

2012-07-20 Thread Simon Cropper
On 21/07/12 09:59, Ethan Furman wrote: Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports, comments, and kudos

Re: ANN: dbf.py 0.94

2012-07-20 Thread Steven D'Aprano
On Fri, 20 Jul 2012 19:56:59 -0700, Temia Eszteri wrote: I don't generally click on arbitrary links to find out whether or not the link is something that interests me enough to click on it. Can't really call a cheese shop link arbitrary. It's in the best place it could be for providing info

PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Simon Cropper
Hi, Can you use PyPy as a direct replacement for the normal python or is it a specialized compiler that can only work with libraries that are manipulated to operate within its constraints (if it has any). Are there any issues with using PyPy? For example, if programs are created under PyPy

Re: ANN: dbf.py 0.94

2012-07-20 Thread Temia Eszteri
On Sat, 21 Jul 2012 13:02:55 +1000, Chris Angelico ros...@gmail.com wrote: On Sat, Jul 21, 2012 at 12:56 PM, Temia Eszteri lamial...@cleverpun.com wrote: On 21 Jul 2012 00:50:13 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Latest version has a simpler, cleaner API, and

Re: ANN: dbf.py 0.94

2012-07-20 Thread Ethan Furman
Steven D'Aprano wrote: On Fri, 20 Jul 2012 16:59:21 -0700, Ethan Furman wrote: Getting closer to a stable release. Excellent! That's fantastic news! I've been waiting for a stable release of dbf for months! I just have one question. What is dbf? :) dbf (also known as python dbase) is a

Re: ANN: dbf.py 0.94

2012-07-20 Thread Steven D'Aprano
On Sat, 21 Jul 2012 13:30:40 +1000, Simon Cropper wrote: Works with PyPy, OK. Hopefully works with other implementations, Hm, what does this mean? I guess that Ethan means that his library definitely works with PyPy and CPython, because he has tested it on those, and that he expects that it

Re: ANN: dbf.py 0.94

2012-07-20 Thread Temia Eszteri
On 21 Jul 2012 03:34:44 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: tl;dr Easy there, tiger. No need to get riled up over a single nitpick over phrasing. ~Temia -- Invective! Verb your expletive nouns! -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-07-20 Thread Chris Angelico
On Sat, Jul 21, 2012 at 1:34 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Unless the software is so well-known that everybody knows what it is... I've yet to meet ANY piece of software that's like that. Even with releases of CPython (arguably the primary point of this list) it

Re: PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Alec Taylor
ask on PyPy's list But yes, it is designed as a 1:1 replacement of CPython On Sat, Jul 21, 2012 at 1:35 PM, Simon Cropper simoncrop...@fossworkflowguides.com wrote: Hi, Can you use PyPy as a direct replacement for the normal python or is it a specialized compiler that can only work with

Re: PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Steven D'Aprano
On Sat, 21 Jul 2012 13:35:21 +1000, Simon Cropper wrote: Hi, Can you use PyPy as a direct replacement for the normal python or is it a specialized compiler that can only work with libraries that are manipulated to operate within its constraints (if it has any). PyPy should work perfectly

Re: PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Dan Stromberg
On Fri, Jul 20, 2012 at 8:59 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 21 Jul 2012 13:35:21 +1000, Simon Cropper wrote: Hi, Can you use PyPy as a direct replacement for the normal python or is it a specialized compiler that can only work with libraries

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Whether or not rename is atomic should be irrelevant for test_rename. Test_rename just performs renames in a tight loop and doesn't do concurrent access from another thread. The test result seems to indicate that rename() sometimes

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-20 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Ok, I understand. You're trying to make the getvalue() call cheaper, right? Yes, it saves up to half of time on large data (on Linux). It would be interesting to see the results of these microbenchmarks on Windows. --

[issue15402] Correct __sizeof__ support for struct

2012-07-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: Here is a patch that implements __sizeof__ for struct.Struct. See also issue14596. -- components: Library (Lib) files: struct_sizeof-2.patch keywords: patch messages: 165902 nosy: mark.dickinson, meador.inge, storchaka priority:

[issue14596] struct.unpack memory leak

2012-07-20 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I do think issue (3) should be fixed, but a separate issue should be opened for it. Issue #15402. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14596

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- assignee: eli.bendersky - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15381 ___ ___

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-07-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list

[issue15399] processName key is un-/mis-documented in 2.6 and up

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 204be25f24bd by Vinay Sajip in branch '2.7': Issue #15399: Added versionchanged for processName. http://hg.python.org/cpython/rev/204be25f24bd New changeset 6b771075cfa3 by Vinay Sajip in branch '3.2': Issue #15399:

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: I've updated my patch with the tests for datetime.time.strptime that were missing and also its pure Python implementation. The previous diff also had some issues that I've fixed now: duplicated datetime.strptime method definition in c and the

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi jbo...@gmail.com: Removed file: http://bugs.python.org/file26440/issue1100942_pure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: Sorry. I updated my patch again to fix the exception message for time.strptime in the pure Python version. -- Added file: http://bugs.python.org/file26446/issue1100942_pure.diff ___ Python tracker

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi jbo...@gmail.com: Removed file: http://bugs.python.org/file26445/issue1100942_pure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___

[issue15397] Unbinding of methods

2012-07-20 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Stefan, you right. A bit hairy idiom from my perspective, but it works. Looks like this way used only for PyCFunction_New, all other code follows standard schema with trampoline. -- ___

[issue15400] int('12345L', 10) raises ValueError

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I definitely think this counts as a feature request, and as such should be rejected. I'd expect the 'long' constructor to be able to parse representations of both ints and longs, but I don't see any reason to expect the 'int' constructor to

[issue15400] int('12345L', 10) raises ValueError

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Reclosing this: it's at worst marginally a bug, and not worth the new code that would have to go into 2.7. @Meador: consider also that int accepts float objects, but not string representations of float objects... I don't see any real

[issue15402] Correct __sizeof__ support for struct

2012-07-20 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15402 ___ ___ Python-bugs-list mailing list

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2012-07-20 Thread Ismail Donmez
Changes by Ismail Donmez ism...@namtrac.org: -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9687 ___ ___ Python-bugs-list mailing

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: This issue addresses the file creation portion of issue 15376, which is to refactor the walk_package support code in test_runpy into a common location. -- components: Tests keywords: easy messages: 165910 nosy: cjerdonek

[issue15376] Refactor the test_runpy walk_package support code into a common location

2012-07-20 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I'm going to address this issue in parts to make it easier to review and see what is going on. The first patch I'm uploading shortly here: issue 15403. That issue I created to address just the file creation part of the code. The

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15403 ___ ___

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file26447/issue-15403-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15403

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: Python leaks in method.__repr__ if class has no __name__. Very rare situation. -- assignee: asvetlov components: Interpreter Core files: leak.diff keywords: patch messages: 165913 nosy: asvetlov priority: normal severity:

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: Removed file: http://bugs.python.org/file26448/leak.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: Added file: http://bugs.python.org/file26449/leak.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15391] Add bitlength function to the math module

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Indeed, int.bit_length is the way to do this. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15391 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2012-07-20 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4b724884c81f by Andrew Svetlov in branch '3.2': Issue #15404: Refleak in PyMethodObject repr. http://hg.python.org/cpython/rev/4b724884c81f -- nosy: +python-dev ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - committed/rejected type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The fix would require all of these functions from memoryview.c (3.3): last_dim_is_contiguous cmp_structure copy_base copy_rec copy_buffer How to avoid code duplication? I could move them into abstract.c, but conceptually they're really

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-20 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: You could move PyBuffer_ToContiguous() from abstract.c to memoryview.c. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12834 ___

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-20 Thread Antti Laine
Antti Laine antti.a.la...@iki.fi added the comment: you are changing the signature of decode() and that would be a compatibility problem I was changing the signature of raw_decode(), by adding a(n almost) private keyword. I really don't see how that would affect compatibility. you are

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: You could move PyBuffer_ToContiguous() from abstract.c to memoryview.c. For 3.3 that would be ideal, yes. I asked a while ago on python-dev whether to backport the memoryview rewrite. The general mood was against it. So, for 2.7/3.2 I

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___ ___ Python-bugs-list

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___ ___

[issue15405] Invitation to connect on LinkedIn

2012-07-20 Thread reynaldo
New submission from reynaldo renbe...@gmail.com: LinkedIn Python, I'd like to add you to my professional network on LinkedIn. - reynaldo reynaldo bendijo owner at www.omickiey.com Greater Los Angeles Area Confirm that you know reynaldo bendijo:

[issue15405] Invitation to connect on LinkedIn

2012-07-20 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15405 ___

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oh, wow, that was a *lot* harder than I expected to create a test for - I had to import importlib right at the start of regrtest, as well as tweak the import order in runpy, and doing so actually caused test_import to *crash* completely

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-20 Thread Rafael Caricio
Rafael Caricio raf...@caricio.com added the comment: I had this problem when I run the tests in my machine (Mac OSX 10.6.8). The intermittence happen here. -- nosy: +rafaelcaricio ___ Python tracker rep...@bugs.python.org

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4431dc4bb770 by Nick Coghlan in branch 'default': Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg165921 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That was a *lot* harder than I expected to create a test for - I had to import importlib right at the start of regrtest, as well as tweak the import order in runpy, and doing so actually caused test_import to *crash* completely without the

[issue15400] int('12345L', 10) raises ValueError

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks for the analysis Mark. I agree with your points. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15400 ___

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-20 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: Ronald, I thought it could be an `atomic` issue by the fact that test_rename transforms a filename in tmp and then it change again to the original name. Not being atomic, the rename will not finish the executation of the first one

[issue14562] urllib2 maybe blocks too long with small chunks

2012-07-20 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I had a discussion with Anrs on this, and it went along these lines - I confused the buffering issue (encountered with streaming data) of urllib2 with chunked transfer encoding. The flow will be blocked in the case at the socket level

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-20 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Yesterday I've studied this problem with flavio.ribeiro, and we've started solving it. The result of our progress is available at: issue5758_trace_execute_other_modules_main_v0.patch The problem of our approach is that any code

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: I've updated the patch based on ezio.melotti and berkerpeksag reviews (thanks). It's still missing the modifications proposed on msg107402. -- Added file: http://bugs.python.org/file26452/issue1100942_pure2.diff

  1   2   >