Re: Help with some python homework...

2014-02-01 Thread David
On 1 February 2014 14:17, David bouncingc...@gmail.com wrote: Scott's message quoted above did not reach me, only Chris's quote of it, so I say: Scott once you begin a discussion on a mailing list like this one, please make sure that every reply you make goes to python-list@python.org and not

Re: __init__ is the initialiser

2014-02-01 Thread Ethan Furman
On 01/31/2014 09:51 PM, Steven D'Aprano wrote: On Sat, 01 Feb 2014 15:35:17 +1100, Chris Angelico wrote: The two methods could have been done as a single method, __construct__, in which you get passed a cls instead of a self, and you call self=super().__construct__() and then initialize stuff.

Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Terry Reedy
On 2/1/2014 2:26 AM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 4:46 PM, Terry Reedy tjre...@udel.edu wrote: On 1/31/2014 10:36 PM, Chris Angelico wrote: On Sat, Feb 1, 2014 at 1:54 PM, MRAB pyt...@mrabarnett.plus.com wrote: I think that some years ago I heard about a variation on UTF-8

Re: Python shell wont open idle or an exisiting py file

2014-02-01 Thread Chris Angelico
On Sat, Feb 1, 2014 at 7:51 PM, Terry Reedy tjre...@udel.edu wrote: I should have added 'to C itself', as the string terminator. Oh, right. Yes, in that sense \0 is special. It's still wrong that an incoming text string gets interpreted as code, but that's probably just a consequence of the jump

Re: fseek In Compressed Files

2014-02-01 Thread Dave Angel
Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: The size of this file will be 10 GB. The version of Python I am using is 2.7.2. Yes, performance is an important issue. Then the only viable option is to extract the entire file and write it to a temp location. Perhaps as you

C++ to python for LED Matrix

2014-02-01 Thread Liam Knott
Hey folks, So the last week or so I've been searching this site for information on how to control and program a LED Matrix (or a number of them) for a project. A few Topics have caught my eye, with me originally having in mind using a Maxim MAX7221 to control the matrix, but none more than

piping with subprocess

2014-02-01 Thread Rick Dooling
I spent half a day trying to convert this bash script (on Mac) textutil -convert html $1 -stdout | pandoc -f html -t markdown -o $2 into Python using subprocess pipes. It works if I save the above into a shell script called convert.sh and then do subprocess.check_call([convert.sh, file,

Re: __init__ is the initialiser

2014-02-01 Thread Ned Batchelder
On 1/31/14 10:42 PM, Steven D'Aprano wrote: On Fri, 31 Jan 2014 14:52:15 -0500, Ned Batchelder wrote: Why can't we call __init__ the constructor and __new__ the allocator? __new__ constructs the object, and __init__ initialises it. What's wrong with calling them the constructor and

Re: piping with subprocess

2014-02-01 Thread Peter Otten
Rick Dooling wrote: I spent half a day trying to convert this bash script (on Mac) textutil -convert html $1 -stdout | pandoc -f html -t markdown -o $2 into Python using subprocess pipes. It works if I save the above into a shell script called convert.sh and then do

Re: piping with subprocess

2014-02-01 Thread Daniel da Silva
Try this: from subprocess import check_output import sys check_output(textutil -convert html %s -stdout | pandoc -f html -t markdown -o %s % sys.argv[1:3], shell=True) On Sat, Feb 1, 2014 at 7:19 AM, Rick Dooling rpdool...@gmail.com wrote: I spent half a day trying to convert this bash

Re: piping with subprocess

2014-02-01 Thread Rick Dooling
On Saturday, February 1, 2014 6:54:09 AM UTC-6, Peter Otten wrote: Rick Dooling wrote: I spent half a day trying to convert this bash script (on Mac) textutil -convert html $1 -stdout | pandoc -f html -t markdown -o $2 into Python using subprocess pipes. It

Re: piping with subprocess

2014-02-01 Thread Rick Dooling
On Saturday, February 1, 2014 7:54:34 AM UTC-6, Rick Dooling wrote: On Saturday, February 1, 2014 6:54:09 AM UTC-6, Peter Otten wrote: Rick Dooling wrote: I spent half a day trying to convert this bash script (on Mac) textutil -convert html $1 -stdout

generator slides review

2014-02-01 Thread andrea crotti
I'm giving a talk tomorrow @Fosdem about generators/iterators/iterables.. The slides are here (forgive the strange Chinese characters): https://dl.dropboxusercontent.com/u/3183120/talks/generators/index.html#3 and the code I'm using is:

Re: piping with subprocess

2014-02-01 Thread Mark Lawrence
On 01/02/2014 13:54, Rick Dooling wrote: On Saturday, February 1, 2014 6:54:09 AM UTC-6, Peter Otten wrote: Rick Dooling wrote: I spent half a day trying to convert this bash script (on Mac) textutil -convert html $1 -stdout | pandoc -f html -t markdown -o $2 into Python using

Re: __init__ is the initialiser

2014-02-01 Thread Roy Smith
In article mailman.6275.1391257695.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: The existence of __new__ is an advanced topic that many programmers never encounter. Taking a quick scan through some large projects (Django, edX, SQLAlchemy, mako), the ratio of

Re: __init__ is the initialiser

2014-02-01 Thread Mark Lawrence
On 01/02/2014 14:40, Roy Smith wrote: In article mailman.6275.1391257695.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: The existence of __new__ is an advanced topic that many programmers never encounter. Taking a quick scan through some large projects (Django,

Python prime numbers

2014-02-01 Thread Panagiotis Anastasiou
Hi i'm new in programming and in python and i have an assignment that i cant complete. I have to Write a Python program to compute and print the first 200 prime numbers. The output must be formatted with a title and the prime numbers must be printed in 5 properly aligned columns . I have used

Re: piping with subprocess

2014-02-01 Thread Rick Dooling
On Saturday, February 1, 2014 8:00:59 AM UTC-6, Rick Dooling wrote: On Saturday, February 1, 2014 7:54:34 AM UTC-6, Rick Dooling wrote: On Saturday, February 1, 2014 6:54:09 AM UTC-6, Peter Otten wrote: Rick Dooling wrote: I spent half a day trying to convert this bash script (on

Re: Python prime numbers

2014-02-01 Thread Larry Martell
On Saturday, February 1, 2014, Panagiotis Anastasiou panas...@gmail.com wrote: Hi i'm new in programming and in python and i have an assignment that i cant complete. I have to Write a Python program to compute and print the first 200 prime numbers. The output must be formatted with a title and

Re: piping with subprocess

2014-02-01 Thread Mark Lawrence
On 01/02/2014 15:35, Rick Dooling wrote: Okay, blank lines removed. Apologies. I didn't know Google inserted them. RD No problem, the whole snag is people don't know about this flaw in this tool until they're told about it. -- My fellow Pythonistas, ask not what our language can do for

Re: __init__ is the initialiser

2014-02-01 Thread Roy Smith
On 01/02/2014 14:40, Roy Smith wrote: In article mailman.6275.1391257695.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: The existence of __new__ is an advanced topic that many programmers never encounter. Taking a quick scan through some large projects

Re: generator slides review

2014-02-01 Thread Miki Tebeka
On Saturday, February 1, 2014 6:12:28 AM UTC-8, andrea crotti wrote: I'm giving a talk tomorrow @Fosdem about generators/iterators/iterables.. The slides are here (forgive the strange Chinese characters): https://dl.dropboxusercontent.com/u/3183120/talks/generators/index.html#3

Re: piping with subprocess

2014-02-01 Thread Peter Otten
Rick Dooling wrote: On Saturday, February 1, 2014 6:54:09 AM UTC-6, Peter Otten wrote: Try to convert the example from the above page output=`dmesg | grep hda` # becomes p1 = Popen([dmesg], stdout=PIPE) p2 = Popen([grep, hda], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow

Chris Miles? TGBooleanFormWidget?

2014-02-01 Thread Len Conrad
trying to install zoner. Needs http://www.psychofx.com/TGBooleanFormWidget/http://www.psychofx.com/TGBooleanFormWidget/ but that's giving 502 Bad Gateway can't find TGBooleanFormWidget anywhere else. Suggestions? Thanks Len -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with some python homework...

2014-02-01 Thread Denis McMahon
On Fri, 31 Jan 2014 18:14:31 -0700, Scott W Dunning wrote: little different from a few things you guys had mentioned. For one, I got the correct time by calculating the number of time run and converting that into seconds then back out to hr:mn:sc. I didn’t calculate from midnight. SECONDS

Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
I was wandering if I could dynamically change my GUI and after a few searches on Google found the grid_remove() function. What I'm wandering now is if there is a way to group a lot of widgets up into one, and then use the one grid_remove function which will remove them all. Is it possible to

Re: Help with some python homework...

2014-02-01 Thread Denis McMahon
On Fri, 31 Jan 2014 22:18:34 -0700, Scott W Dunning wrote: Any chance you guys could help with another question I have? Below is a code to a different problem. The only thing I don’t understand is why when calculating the 'discounted price’ you have to subtract 1? Thanks again guys!

Re: Tkinter widgets into classes.

2014-02-01 Thread archie65
On Saturday, 1 February 2014 19:43:18 UTC, Lewis Wood wrote: I was wandering if I could dynamically change my GUI and after a few searches on Google found the grid_remove() function. What I'm wandering now is if there is a way to group a lot of widgets up into one, and then use the one

Re: Tkinter widgets into classes.

2014-02-01 Thread archie65
You become less of a a faget and stop sucking granni tranni pussi dis shud help u lewl -- https://mail.python.org/mailman/listinfo/python-list

Re: __init__ is the initialiser

2014-02-01 Thread Tim Delaney
On 1 February 2014 23:28, Ned Batchelder n...@nedbatchelder.com wrote: You are looking at things from an accurate-down-to-the-last-footnote detailed point of view (and have provided some footnotes!). That's a very valuable and important point of view. It's just not how most programmers

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it be possible for me to use some code which would return True if one of these windows is currently up, or return False if the window is not up? --

Re: Tkinter widgets into classes.

2014-02-01 Thread Dave Angel
Lewis Wood fluttershy...@gmail.com Wrote in message: Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it be possible for me to use some code which would return True if one of these

Re:Python prime numbers

2014-02-01 Thread Dave Angel
Panagiotis Anastasiou panas...@gmail.com Wrote in message: Hi i'm new in programming and in python and i have an assignment that i cant complete. I have to Write a Python program to compute and print the first 200 prime numbers. The output must be formatted with a title and the prime

Re:Python prime numbers

2014-02-01 Thread Dave Angel
Panagiotis Anastasiou panas...@gmail.com Wrote in message: Hi i'm new in programming and in python and i have an assignment that i cant complete. I have to Write a Python program to compute and print the first 200 prime numbers. The output must be formatted with a title and the prime

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
On Saturday, 1 February 2014 21:52:51 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: Oh and another question, say I make another window in the program itself using this: def secondwindow(): root2=Tk() root2.mainloop() Would it

Re: Tkinter widgets into classes.

2014-02-01 Thread Dave Angel
Lewis Wood fluttershy...@gmail.com Wrote in message: (deleting doublespaced googlegroups trash) To put it another way, you only want one mainloop in your code. -- DaveA But I can click the button Multiple times and it will create multiple windows? Not using the function you

Re: Tkinter widgets into classes.

2014-02-01 Thread Lewis Wood
On Saturday, 1 February 2014 22:26:17 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: (deleting doublespaced googlegroups trash) To put it another way, you only want one mainloop in your code. -- DaveA But I can

Re: Python prime numbers

2014-02-01 Thread Wiktor
On Sat, 1 Feb 2014 07:33:47 -0800 (PST), Panagiotis Anastasiou wrote: Hi i'm new in programming and in python and i have an assignment that i cant complete. I have to Write a Python program to compute and print the first 200 prime numbers. The output must be formatted with a title and the

Re: Tkinter widgets into classes.

2014-02-01 Thread albert visser
On Sun, 02 Feb 2014 00:07:00 +0100, Lewis Wood fluttershy...@gmail.com wrote: On Saturday, 1 February 2014 22:26:17 UTC, Dave Angel wrote: Lewis Wood fluttershy...@gmail.com Wrote in message: (snip) DaveA It does, this is the whole code: from tkinter import * root=Tk()

Re: generator slides review

2014-02-01 Thread Terry Reedy
On 2/1/2014 9:12 AM, andrea crotti wrote: I'm giving a talk tomorrow @Fosdem about generators/iterators/iterables.. The slides are here (forgive the strange Chinese characters): https://dl.dropboxusercontent.com/u/3183120/talks/generators/index.html#3 and the code I'm using is:

Re: Tkinter widgets into classes.

2014-02-01 Thread Terry Reedy
Idle, which used tkinter, runs multiple windows in one process with one event loop. There is no reason I know of to run multiple event loops in one process, and if you do, the results will not be documented and might vary between runs or between different systems. Idle can also be run

Re: __init__ is the initialiser

2014-02-01 Thread Steven D'Aprano
On Sun, 02 Feb 2014 07:09:14 +1100, Tim Delaney wrote: On 1 February 2014 23:28, Ned Batchelder n...@nedbatchelder.com wrote: You are looking at things from an accurate-down-to-the-last-footnote detailed point of view (and have provided some footnotes!). That's a very valuable and important

mapping objects

2014-02-01 Thread Rita
Hello, I want to learn more about ORMs so I stumbled upon, SqlAlchemy. If i had a JSON document (or XML, CSV, etc.._) is it possible to convert it to a SQLAlchemy objects? I like the ability to query/filter ( http://docs.sqlalchemy.org/en/rel_0_9/orm/tutorial.html#common-filter-operators) the

Re: C++ to python for LED Matrix

2014-02-01 Thread Michael Torrie
Yes you could use Python for this sort of thing. The link you posted is just using a kernel spi driver that Python can write to just as well as C++ can (via it's /dev/spidev0.0 file). There is a python library that can talk to SPI in Python on the pi:

Re: __init__ is the initialiser

2014-02-01 Thread Ben Finney
Ned Batchelder n...@nedbatchelder.com writes: My summary of our two views is this: I am trying to look at things from a typical programmer's point of view. Do you think the typical programmer will be looking in the language reference? I don't. The existence of __new__ is an advanced topic

Re: Help with some python homework...

2014-02-01 Thread Scott W Dunning
Yeah you’re right I didn’t even notice that. For some reason I just added the 60 instead of using quantity which had been defined. On Feb 1, 2014, at 8:50 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 31 Jan 2014 22:18:34 -0700, Scott W Dunning swdunn...@cox.net declaimed the

Re: mapping objects

2014-02-01 Thread Cameron Simpson
On 01Feb2014 20:46, Rita rmorgan...@gmail.com wrote: I want to learn more about ORMs so I stumbled upon, SqlAlchemy. If i had a JSON document (or XML, CSV, etc.._) is it possible to convert it to a SQLAlchemy objects? I like the ability to query/filter (

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: Another question to consider: is inspect the best place for this? I don't think it is, because (a) It's not really an inspection facility (b) Importing inspect to get this functionality would pull in lots of stuff which wouldn't be used in the typical use

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___ ___

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: OK, I'll take a look tomorrow. Don't think it's related to #20471 though, as in there, if fails to find a signature for the 'builtin.object' (but I may be wrong). -- ___ Python tracker rep...@bugs.python.org

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-02-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18622 ___ ___

[issue20472] test_write_pty() of test_asyncio fails on x86 Tiger 3.x buildbot

2014-02-01 Thread Ned Deily
Ned Deily added the comment: FYI, besides 10.4 (Tiger), the test also fails on OS X 10.5 but appears to pass on 10.6 and later releases. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20472

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: OK, there was no unit-test for this... looking into the problem, the first questing is: why is __text_signature__ is on the '_pickle.Pickler' object, not on '_pickle.Pickler.__init__'? -- ___ Python tracker

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
New submission from Ned Deily: Three send timeout test cases in test_socket were changed by a4e4facad164 for Issue12958 to be expected failures on OS X because of observed failures on the OS X buildbots running OS X 10.6 (Snow Leopard) and earlier. testInterruptedSendTimeout

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- keywords: +patch Added file: http://bugs.python.org/file33842/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file33843/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Removed file: http://bugs.python.org/file33842/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Because slots like tp_init and tp_call don't have docstrings. So it has to go in the class's docstring. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473

[issue12958] test_socket failures on Mac OS X

2014-02-01 Thread Ned Deily
Ned Deily added the comment: FYI, the OS X platform bugs causing the three send timeout test failures were fixed in OS X 10.7 causing those test cases to have previously silently skipped unexpected successes. See Issue20474 for more details. --

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: The build is --without-doc-strings. That should do the trick. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: I meant to say slots like tp_new and tp_init. But fwiw it's true of tp_call too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473 ___

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: And, I don't see how your changes to inspect.py could have caused the failures on the buildbot either. But, then, I don't see how *anything* could cause the failures on the buildbot. And your changes to inspect.py happened at (I think) roughly the same

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Good thinking! I don't know when I can get to it though, maybe Sunday. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: I think you just need to use the @requires_docstrings decorator for the test. -- To me the failure looks expected if there aren't any docstrings. -- ___ Python tracker rep...@bugs.python.org

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Stefan Krah suggests that the failure in 20473 is because that platform builds without docstrings, and the test requires them. So that should be an easy fix. -- ___ Python tracker rep...@bugs.python.org

[issue20456] Argument Clinic rollup patch, 2014/01/31

2014-02-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: The converters argument in command line is still broken. [sky@localhost cpython3.4]$ hg pull -u pulling from http://hg.python.org/cpython searching for changes no changes found [sky@localhost cpython3.4]$ ./python Tools/clinic/clinic.py --converters Legacy

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-01 Thread Hendrik
Hendrik added the comment: I found a solution for reading Safari cookies, but struggling around with hg diff. Because always when i typ hg diff Lib/http/cookiejar.py it returns me the complete file not only my changes.. -- nosy: +Hendrik ___ Python

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Brett Cannon
Brett Cannon added the comment: importlib.util.resolve_name() already exists for resolving an explicit relative import name to an absolute one, so closing this as out of date. -- resolution: - out of date status: open - closed ___ Python tracker

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think Raymond's original concern still applies: The macros do add to the learning curve. I would personally expect that Py_REPLACE(op, op2) does an INCREF on op2, but it does not. Explicit is better than implicit. -- nosy: +loewis

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: importlib.util.resolve_name() already exists But that's not what the proposed functionality is for, is it? This covers finding values inside an imported module which can be accessed via a dotted path from the module globals. -- resolution: out of date

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, I now notice that I was mistaken about this working: ''' import inspect def test_isfunction(): test_isfunction() True return inspect.isfunction(test_isfunction) ''' It only worked in Cython's test suite because its test runner

[issue19683] test_minidom has many empty tests

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset fed468670866 by Mark Dickinson in branch '2.7': Issue #19683: Add __closure__ and other missing attributes to function docs. http://hg.python.org/cpython/rev/fed468670866 -- ___ Python tracker

[issue19863] Missing function attributes in 2.7 docs.

2014-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset fed468670866 by Mark Dickinson in branch '2.7': Issue #19683: Add __closure__ and other missing attributes to function docs. http://hg.python.org/cpython/rev/fed468670866 -- ___ Python tracker

[issue19683] test_minidom has many empty tests

2014-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; wrong issue number. That commit message was for issue 19863. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19683 ___

[issue19863] Missing function attributes in 2.7 docs.

2014-02-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19863 ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: could we please get the option to opt-out of that behaviour, as a extra connection option maybe with the normal python sqlite bindings its impossible to have database migrations work safely which IMHO makes this a potential data-loss issue --

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread R. David Murray
R. David Murray added the comment: Opt out of what behavior? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Brett Cannon
Brett Cannon added the comment: Importlib already has importlib.import_module() (since Python 2.7) and that's as far as I'm willing to go for finding a module by name. Anything past that is a getarr() call on the resulting module and thus not worth adding to importlib. --

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: and thus not worth adding to importlib. Okay, fair enough. It's not purely an import function, though partly related to imports. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12915

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: the sqlite binding deciding how to handle transactions -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2014-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The current os.cpu_count implementation calls sysconf(_SC_NPROCESSORS_ONLN), which is apparently defined under OS X, and returns the number of online CPUs (logical?):

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan Krah suggests that the failure in 20473 is because that platform builds without docstrings, and the test requires them. So that should be an easy fix. Good news ;) OK, I'll decorate the test. Because slots like tp_init and tp_call don't have

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Would this be ok? Probably. I need to take a closer look. I'm not sure I like the idea that Cython functions are chimeras of some sort, i.e. they have a type of python builtin functions, hence, logically, Signature.from_builtin should work on them (and they

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1f214165471 by Yury Selivanov in branch 'default': inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471 http://hg.python.org/cpython/rev/b1f214165471 -- nosy: +python-dev

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Should be OK now. Thank you guys for the report and for the hint of what was going on ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473 ___ ___ Python-bugs-list

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I'm not sure I like the idea that Cython functions are chimeras of some sort, i.e. they have a type of python builtin functions, hence, logically, Signature.from_builtin should work on them (and they have to follow __text_signature__ API), and on the other

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-02-01 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch against 2.7. -- keywords: +patch Added file: http://bugs.python.org/file33845/issue20288.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20288

[issue20445] HAVE_BROKEN_NICE detected incorrectly due to configure.ac typo

2014-02-01 Thread George Kouryachy
George Kouryachy added the comment: Oops, looks like my local build system artifact. Thank you for your attention, all-clear. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20445

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: That's one way of looking at it. The way I see it is that CPython's builtin functions should rather behave exactly like Python functions. The fact that there is such a thing as a __text_signature__ and general special casing of builtins is IMHO a rather

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d50b5851f38 by Ezio Melotti in branch '2.7': #20288: fix handling of invalid numeric charrefs in HTMLParser. http://hg.python.org/cpython/rev/0d50b5851f38 New changeset 32097f193892 by Ezio Melotti in branch '3.3': #20288: fix handling of invalid

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Attached is a minimal patch that does what I think you meant. -- Added file: http://bugs.python.org/file33846/divert_from_builtin.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159

[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

2014-02-01 Thread Paul Sokolovsky
New submission from Paul Sokolovsky: http://docs.python.org/3.3/library/time.html#time.clock says that it's deprecated, but pystone.py in Python-3.4.0b3 tarball still uses it. Please kindly consider switching it to plain time.time() and not to some other novelties. My usecase is: I'm

[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

2014-02-01 Thread Paul Sokolovsky
Changes by Paul Sokolovsky pfal...@users.sourceforge.net: -- components: +Benchmarks versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20475 ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread R. David Murray
R. David Murray added the comment: As noted above you get that by setting isolation_level to None. That feature has always been available. (With isolation_level set to None, the sqlite wrapper module itself never issues any BEGIN statements.) --

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan, Please try the attached patch (sig_cython_01.patch) -- Added file: http://bugs.python.org/file33847/sig_cython_01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159

[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

2014-02-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20475 ___ ___ Python-bugs-list

[issue20400] Add create_read_pipe_protocol/create_write_pipe_protocol to asyncio.SubprocessProtocol

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ac90c0463a by Victor Stinner in branch 'default': Issue #20400: Merge Tulip into Python: add the new asyncio.subprocess module http://hg.python.org/cpython/rev/d7ac90c0463a -- nosy: +python-dev ___

  1   2   >