[ANN]: circuits 2.1.0 [] (Lightweight Event driven Asynchronous Application Framework)

2013-02-27 Thread James Mills
Hi, I'm pleased to announce the release of circuits 2.1.0 [] This is a minor release which includes some new features and bug fixes. Some of the highlights of this release include: - Python 3 support. - Windows support. - PyPy support. - IPv6 support. - Better WSGI support. - Fully documented

Re: Nuitka now supports Python 3.2

2013-02-27 Thread jmfauth
Fascinating software. Some are building, some are destroying. Py33 timeit.repeat({1:'abc需'}) [0.2573893570572636, 0.24261832285651508, 0.24259548003601594] Py323 timeit.repeat({1:'abc需'}) [0.11000708521282831, 0.0994753634273593, 0.09901023634051853] jmf --

Project Based python tutorials

2013-02-27 Thread Alvin Ghouas
Hi everyone! First of all: Im new to this group and i dont know if there are any rules or jargon around her. If so; pleas fill me in. So, I desided to start learning programming a few months ago and by now i feel pretty confident about the basics of the python language, and programming in

Re: Nuitka now supports Python 3.2

2013-02-27 Thread jmfauth
On 27 fév, 09:21, jmfauth wxjmfa...@gmail.com wrote: Fascinating software. Some are building, some are destroying. Py33 timeit.repeat({1:'abc需'}) [0.2573893570572636, 0.24261832285651508, 0.24259548003601594] Py323 timeit.repeat({1:'abc需'}) [0.11000708521282831,

RE: Project Based python tutorials

2013-02-27 Thread Andriy Kornatskyy
I would advise try answer the question: what is my goal? Don't be surprised that not everyone become a programmer... many people fail and get back to market thinking it was waste of time. Thanks. Andriy Kornatskyy Date: Wed, 27 Feb 2013 00:31:11

Python newbie trying to embed in C++

2013-02-27 Thread Marwan
Hello all, I'm new to Python and just starting to learn it. For he needs of my project, I need to call some specific methods in Python scripts from C++. For now, I just compiled the example in the Python documentation about Pure Embedding to try it out (

What are the Dos and Don'ts

2013-02-27 Thread Sven
Hello, As I am new to this list I was wondering what the rules are about what you can/can't post on this list. Is it general python, i.e. questions, information, links to articles/programs you have written yourself etc are all ok as long as they are Python related or is it more a QA where the

Re: Python newbie trying to embed in C++

2013-02-27 Thread Ian Kelly
On Wed, Feb 27, 2013 at 1:51 AM, Marwan lar...@free.fr wrote: When I run the generated exe, I get errors about the functions not existing... TestPython.exe test Hello AttributeError: 'module' object has no attribute 'Hello' Cannot find function Hello test is the name of a module in the

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Mark Lawrence
On 26/02/2013 12:54, Steven D'Aprano wrote: One week ago, JoePie91 wrote a blog post challenging the Python community and the state of Python documentation, titled: The Python documentation is bad, and you should feel bad.

Re: Nuitka now supports Python 3.2

2013-02-27 Thread Mark Lawrence
On 27/02/2013 08:21, jmfauth wrote: Fascinating software. Some are building, some are destroying. Py33 timeit.repeat({1:'abc需'}) [0.2573893570572636, 0.24261832285651508, 0.24259548003601594] Py323 timeit.repeat({1:'abc需'}) [0.11000708521282831, 0.0994753634273593,

Re: nested loops

2013-02-27 Thread K. Elo
Hi! leonardo tampucciol...@libero.it writes: how can i have it print a row of stars beside each number, like this?: how many seconds?: 5 5 * * * * * 4 * * * * 3 * * * 2 * * 1 * blast off! --- snip --- sec = int(input(How many seconds? )) for i in range(0,sec): print str(sec-i)+:+

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Robin Becker
On 26/02/2013 18:38, Peter Otten wrote: Robin Becker wrote: ...3: $ python -m timeit -s 'from new import instancemethod from math import sqrt class A(int): pass A.m = instancemethod(sqrt, None, A) a = A(42) ' 'a.m()' 100 loops, best of 3: 0.5 usec per loop $ python -m timeit -s

Re: What are the Dos and Don'ts

2013-02-27 Thread Chris Angelico
On Wed, Feb 27, 2013 at 8:19 PM, Sven sven...@gmail.com wrote: Hello, As I am new to this list I was wondering what the rules are about what you can/can't post on this list. ? Is it general python, i.e. questions, information, links to articles/programs you have written yourself etc are all

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Chris Angelico
On Wed, Feb 27, 2013 at 9:36 PM, Robin Becker ro...@reportlab.com wrote: However, in my case the method takes py C utf8 bytes50 20 usec unicode 39 15 here py refers to a native python method and C to the extension method after adding to

Daemonizing an application.

2013-02-27 Thread Gilles Lenfant
Hello, Sorry for the obscure title, but I can't make short to explain what I'm searching for. :) I made an app (kind of proxy) that works without UI within it's process. So far, so good. Now I need to change live some controls of this application, without stopping it. So my app will be

win32com how to catch events

2013-02-27 Thread igorjan2332
Hello, I have a VBS sample code that I need to rewrite into python. It calls a com object which then generates events. My problem is that I don't know how to catch this events. VBS sample looks like this: Set oCOV = WScript.CreateObject( RainbowObjectHandlerSrv.RainbowCOV, oCOV_) ' like

Re: Daemonizing an application.

2013-02-27 Thread Chris Angelico
On Wed, Feb 27, 2013 at 9:52 PM, Gilles Lenfant gilles.lenf...@gmail.com wrote: Hello, Sorry for the obscure title, but I can't make short to explain what I'm searching for. :) I made an app (kind of proxy) that works without UI within it's process. So far, so good. Now I need to change

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Robin Becker
On 27/02/2013 10:49, Chris Angelico wrote: On Wed, Feb 27, 2013 at 9:36 PM, Robin Becker ro...@reportlab.com wrote: However, in my case the method takes py C utf8 bytes50 20 usec unicode 39 15 here py refers to a native python method and C

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Peter Otten
Robin Becker wrote: On 26/02/2013 18:38, Peter Otten wrote: Robin Becker wrote: ...3: $ python -m timeit -s 'from new import instancemethod from math import sqrt class A(int): pass A.m = instancemethod(sqrt, None, A) a = A(42) ' 'a.m()' 100 loops, best of 3: 0.5 usec per

Re: Daemonizing an application.

2013-02-27 Thread Werner Thie
Hi Might be an overkill, but have a look at twisted, http://www.twistedmatrix.com I usually use the spread package for structured communication between partners via localhost What are the best practices to do this ? Examples in a well known Pyhon app I could hack ? Is it possible with

Re: Daemonizing an application.

2013-02-27 Thread Sven
On 27 February 2013 11:03, Chris Angelico ros...@gmail.com wrote: On Wed, Feb 27, 2013 at 9:52 PM, Gilles Lenfant gilles.lenf...@gmail.com wrote: Hello, Sorry for the obscure title, but I can't make short to explain what I'm searching for. :) I made an app (kind of proxy) that works

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Robin Becker
On 27/02/2013 11:14, Peter Otten wrote: I think you misunderstood. You compare the time it takes to run the function coded in C and its Python equivalent -- that difference is indeed significant. indeed. The function call overhead there looks pretty small so perhaps that's the way

Re: Daemonizing an application.

2013-02-27 Thread Jean-Michel Pichavant
- Original Message - Hello, Sorry for the obscure title, but I can't make short to explain what I'm searching for. :) I made an app (kind of proxy) that works without UI within it's process. So far, so good. Now I need to change live some controls of this application, without

Re: Daemonizing an application.

2013-02-27 Thread Gilles Lenfant
Le mercredi 27 février 2013 11:52:19 UTC+1, Gilles Lenfant a écrit : Hello, Hello again, And thanks to all for your pointers and ideas. As the app is already tied to an Unix like OS, I'll go with signal handling first since I can do all I need through reconfiguration (SIGHUP). If I need

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Antoine Pitrou
Steven D'Aprano steve+comp.lang.python at pearwood.info writes: It is valuable to contrast and compare the PHP and Python docs: http://php.net/manual/en/index.php http://www.python.org/doc/ I suppose you should compare it with http://docs.python.org/3/ instead. There's no doubt that one

Re: Daemonizing an application.

2013-02-27 Thread Chris Angelico
On Thu, Feb 28, 2013 at 12:06 AM, Gilles Lenfant gilles.lenf...@gmail.com wrote: Le mercredi 27 février 2013 11:52:19 UTC+1, Gilles Lenfant a écrit : Hello, Hello again, And thanks to all for your pointers and ideas. As the app is already tied to an Unix like OS, I'll go with signal

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Antoine Pitrou
Mitya Sirenef msirenef at lightbird.net writes: I think the issue with python documentation is that it ignores the 95/5 rule: 95% of people who land on a module's page are only looking for 5% of its information. The 95/5 rule is generally a fallacy which ignores that the 5% which the readers

Re: Writing to same file from two threads

2013-02-27 Thread Antoine Pitrou
Jens Thoms Toerring jt at toerring.de writes: Paul Rubin no.email at nospam.invalid wrote: jt at toerring.de (Jens Thoms Toerring) writes: in garbled output (i.e. having some output from A inside a line written by B or vice versae) because the main thread or Yes they do get garbled

Re: Daemonizing an application.

2013-02-27 Thread Vytas D.
Hello, Just recently learned about memory-mapped files (module mmap). If two processes open the same file, this file is mapped for both processes. So at the same time the same memory space can be accesses by two processes. The documentation stated that memory-mapped files can (and are) used for

Re: Daemonizing an application.

2013-02-27 Thread Tarek Ziadé
On 2/27/13 11:52 AM, Gilles Lenfant wrote: Hello, Sorry for the obscure title, but I can't make short to explain what I'm searching for. :) I made an app (kind of proxy) that works without UI within it's process. So far, so good. Now I need to change live some controls of this application,

Re: Daemonizing an application.

2013-02-27 Thread Tarek Ziadé
s/TPC/TCP ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemonizing an application.

2013-02-27 Thread Gilles Lenfant
Le mercredi 27 février 2013 14:55:42 UTC+1, Tarek Ziadé a écrit : On 2/27/13 11:52 AM, Gilles Lenfant wrote: Hello, [...] Thanks in advance fo any pointer. You can have a look at Circus - https://circus.readthedocs.org which is a process manager. circusctl is used to

Re: Python newbie trying to embed in C++

2013-02-27 Thread Christian Gollwitzer
Am 27.02.13 09:51, schrieb Marwan: And I'd appreciate it if you could give me pointers to how to easily call Python from C++. Maybe you can use boost::python? http://www.boost.org/doc/libs/1_53_0/libs/python/doc/ Cave: I haven't used it and don't know if it is up-to-date. Christian

Re: Writing to same file from two threads

2013-02-27 Thread Jens Thoms Toerring
Antoine Pitrou solip...@pitrou.net wrote: Jens Thoms Toerring jt at toerring.de writes: Paul Rubin no.email at nospam.invalid wrote: jt at toerring.de (Jens Thoms Toerring) writes: in garbled output (i.e. having some output from A inside a line written by B or vice versae) because

Django error tracebacks

2013-02-27 Thread John Gordon
I've been developing in Django for a while now and I often find that when there is an exception in a view I'm working on, the error traceback screen does not show the actual error; instead it claims the error occurred in django itself (usually .../django/core/handlers/base.py). Why is this? (I'm

Re: Nuitka now supports Python 3.2

2013-02-27 Thread Michael Torrie
On 02/26/2013 05:18 AM, Steven D'Aprano wrote: Nuitka now supports Python 3.2 syntax and compiles the full CPython 3.2 test suite. Interestingly, GvR seemed to be quite critical of it in his comment at the end of this post:

Re: Nuitka now supports Python 3.2

2013-02-27 Thread Jean-Michel Pichavant
- Original Message - On 02/26/2013 05:18 AM, Steven D'Aprano wrote: Nuitka now supports Python 3.2 syntax and compiles the full CPython 3.2 test suite. Interestingly, GvR seemed to be quite critical of it in his comment at the end of this post:

Re: Python newbie trying to embed in C++

2013-02-27 Thread Terry Reedy
On 2/27/2013 3:51 AM, Marwan wrote: Hello all, I'm new to Python and just starting to learn it. For he needs of my project, I need to call some specific methods in Python scripts from C++. For now, I just compiled the example in the Python documentation about Pure Embedding to try it out (

mp3

2013-02-27 Thread fabriceS
Hi, Is anybody know how to get the lenght (in seconds) of a mp3 file ? I try with pygame.mixer but without success... Thanks Fabrice -- http://mail.python.org/mailman/listinfo/python-list

Re: mp3

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 3:58:03 PM UTC-6, fabriceS wrote: Is anybody know how to get the lenght (in seconds) of a mp3 file ? Well Mp3's have a huge header with tons of info stuffed inside. And i remember seeing a nice recipe on the Python cookbook (or maybe SO) for parsing the data. I

Python Speed

2013-02-27 Thread Terry Reedy
On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread: Some are building, some are destroying. We are still waiting for you to help build a better 3.3+, instead of trying to 'destroy' it with mostly irrelevant cherry-picked benchmarks. Py33 timeit.repeat({1:'abc需'})

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Mitya Sirenef
On 02/27/2013 08:22 AM, Antoine Pitrou wrote: Mitya Sirenef msirenef at lightbird.net writes: I think the issue with python documentation is that it ignores the 95/5 rule: 95% of people who land on a module's page are only looking for 5% of its information. The 95/5 rule is generally a

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 7:22:44 AM UTC-6, Antoine Pitrou wrote: Which means that in the end you would really want a diversity of HOWTOs targeted at different usages of the stdlib. But it is a lot of work to write *and* maintain. So instead we maintain a simple, albeit broken, doc that

ANN: Wing IDE 4.1.11 released

2013-02-27 Thread Wingware
Hi, Wingware has released version 4.1.11 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE provides a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring,

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/26/2013 05:54 AM, Steven D'Aprano wrote: One week ago, JoePie91 wrote a blog post challenging the Python community and the state of Python documentation, titled: The Python documentation is bad, and you should feel bad.

Display video in tkinter?

2013-02-27 Thread eli m
Is there a way to display video (an avi) in tkinter without having to download other modules? If not then are there any other options? -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread alex23
On Feb 27, 1:13 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: Terry (with all due respect), do you /really/ expect that people have the time to open an issue on the bug tracker? If someone can write a paragraph on their blog or this list complaining about a problem, then yes, they have

Re: Python Speed

2013-02-27 Thread Christian Heimes
Am 27.02.2013 23:24, schrieb Terry Reedy: On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread: Some are building, some are destroying. We are still waiting for you to help build a better 3.3+, instead of trying to 'destroy' it with mostly irrelevant cherry-picked benchmarks. PEP 412

Re: mp3

2013-02-27 Thread alex23
On Feb 28, 7:58 am, fabriceS fabrice.sinc...@wanadoo.fr wrote: Is anybody know how to get the lenght (in seconds) of a mp3 file ? Try eyeD3: https://pypi.python.org/pypi/eyeD3 import eyed3 mp3 = eyed3.load(r'pygame\examples\data\house_lo.mp3') mp3.info.time_secs 7 --

Re: Python Speed

2013-02-27 Thread Ian Kelly
On Wed, Feb 27, 2013 at 3:24 PM, Terry Reedy tjre...@udel.edu wrote: Py33 timeit.repeat({1:'abc需'}) [0.2573893570572636, 0.24261832285651508, 0.24259548003601594] On my win system, I get a lower time for this: [0.16579443757208878, 0.1475787649924598, 0.14970205670637426] Py323

Re: Project Based python tutorials

2013-02-27 Thread alex23
On Feb 27, 6:31 pm, Alvin Ghouas alvin.gho...@gmail.com wrote: Yet despite my numerouse web searchs for project based tutorials,i cant seem to find any good ones. Welcome to the python list. Guides on writing large projects are definitely few and far between. I can only think of a few, but

Jim Hodges, 6StringStu, Six String Stu, James Stuart Hodges 3463

2013-02-27 Thread Trailer Trash Suzie
3463 577 SW Dexter Cir, Apt 201 1442 SW Haygood Loop, Apt 101 Lake City, FL 32025 (386) 438-8968 Local PD: (386) 752-4344 From: 6StringStu hawkinn...@nccray.net Newsgroups: alt.social-security-disability Date: Fri, 2 Apr 2010 01:02:30 -0500 Of the three felonies on my record, 1: Violation of

Re: Project Based python tutorials

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 2:31:11 AM UTC-6, Alvin Ghouas wrote: First of all: Im new to this group and i dont know if there are any rules or jargon around her. If so; pleas fill me in. The only rules are there are no rules. All we can hope is that everyone will try to play nicely. If

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Steven D'Aprano
On Wed, 27 Feb 2013 15:20:04 -0800, rurpy wrote: As JoePie91 pointed out, reference material should describe its subject matter completely and accurately. Once documentation has archived that minimum bar of viability, its quality is determined by how effectively it transfers that information

Re: Writing to same file from two threads

2013-02-27 Thread Steven D'Aprano
On Wed, 27 Feb 2013 13:26:18 +, Antoine Pitrou wrote: For the record, binary files are thread-safe in Python 3, but text files are not. Where is this documented please? -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/26/2013 11:43 AM, Terry Reedy wrote: On 2/26/2013 7:54 AM, Steven D'Aprano wrote: One week ago, JoePie91 wrote a blog post challenging the Python community and the state of Python documentation, titled: The Python documentation is bad, and you should feel bad.

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Roy Smith
In article 54967758-e84c-4b9c-a09c-10fbdbec2...@googlegroups.com, Rick Johnson rantingrickjohn...@gmail.com wrote: do you /really/ expect that people have the time to open an issue on the bug tracker? There's a certain amount of socialism involved in OSS. From each according to his

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Mark Lawrence
On 28/02/2013 01:17, ru...@yahoo.com wrote: On 02/26/2013 11:43 AM, Terry Reedy wrote: On 2/26/2013 7:54 AM, Steven D'Aprano wrote: One week ago, JoePie91 wrote a blog post challenging the Python community and the state of Python documentation, titled: The Python documentation is bad, and you

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 5:25:25 PM UTC-6, alex23 wrote: Ranting on public forums is nothing but posturing at best, and at worst an attempt to blackmail-by-shame people into doing something for you. Same goes for calls for the community to fix things. What you call ranting is most times

Re: Python Speed

2013-02-27 Thread Terry Reedy
On 2/27/2013 7:15 PM, Ian Kelly wrote: On Wed, Feb 27, 2013 at 3:24 PM, Terry Reedy tjre...@udel.edu wrote: Py33 timeit.repeat({1:'abc需'}) [0.2573893570572636, 0.24261832285651508, 0.24259548003601594] On my win system, I get a lower time for this: [0.16579443757208878,

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Roy Smith
In article 287852cd-09ee-4768-9591-c1f31fe04...@googlegroups.com, Rick Johnson rantingrickjohn...@gmail.com wrote: When someone tries to offer help, in the form of constructive criticism, and then somebody snaps at them, they then loose the will to help. I myself would love to contribute my

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Terry Reedy
On 2/27/2013 8:17 PM, ru...@yahoo.com wrote: On 02/26/2013 11:43 AM, Terry Reedy wrote: In which JoePie91 writes: ...the community around Python is one of the most hostile and unhelpful communities around any programming-related topic that I have ever seen... To me, this is a lying

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread llanitedave
I just completed my first Python app for public consumption, and I was learning as I was coding. I've played on the outskirts of the language for a few years, but until this project I'd never really immersed myself in it. I ended up being confused a lot. So, I DO have some relevant thoughts:

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Chris Angelico
On Thu, Feb 28, 2013 at 1:05 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: This is why i will AGAIN mention my PyWarts list (Hypothetical at this point). We need an official place for the many problems of Python to be discussed in a fair and open manner. A place that will be open to

Re: Project Based python tutorials

2013-02-27 Thread llanitedave
On Wednesday, February 27, 2013 12:31:11 AM UTC-8, Alvin Ghouas wrote: Hi everyone! First of all: Im new to this group and i dont know if there are any rules or jargon around her. If so; pleas fill me in. So, I desided to start learning programming a few months ago and by now i

Re: Project Based python tutorials

2013-02-27 Thread llanitedave
On Wednesday, February 27, 2013 4:40:41 PM UTC-8, Rick Johnson wrote: Before you decide to start participating in outside projects may we have a list of some of the software you've written for yourself? (With all due respect) I very seriously doubt that someone with only a few months of

How would you do this?

2013-02-27 Thread eli m
How would you find the slope, y intercept, and slope-intercept form equation for a line in python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 8:44:08 PM UTC-6, Chris Angelico wrote: On Thu, Feb 28, 2013 at 1:05 PM, Rick Johnson wrote: This is why i will AGAIN mention my PyWarts list (Hypothetical at this point). We need an official place for the many problems of Python to be discussed in a fair

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread llanitedave
On Wednesday, February 27, 2013 7:43:58 PM UTC-8, Rick Johnson wrote: Python is a great language, but we need diverse ideas to keep the cogs of evolution turning. Guido can start the ball rolling 10 minutes from now, all it will take is for him to make a public announcement... Geez, dude,

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread alex23
On Feb 28, 12:05 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: On Wednesday, February 27, 2013 5:25:25 PM UTC-6, alex23 wrote: Ranting on public forums is nothing but posturing at best, and at worst an attempt to blackmail-by-shame people into doing something for you. Same goes for

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread alex23
On Feb 28, 1:43 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: Guido can start the ball rolling 10 minutes from now, all it will take is for him to make a public announcement... Can you please stop this *constant* insistence that Guido talk to you / do what you think is important? It's

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 10:18:46 PM UTC-6, alex23 wrote: You claim that no one has time to write a bug report. I point out that if they can spend the time ranting about the bug, then they have the time. And i would like to point out that all your nay-saying and condemnations are

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Jason Friedman
Python has a nice Tutorial for beginners. It is an integral part of the doc set. To ignore that (and the indexes) in discussing the usability of Python docs by beginners is to lie. (If beginners who actually read the tutorial have problems with particular paragraphs, improvements can be and

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Chris Angelico
On Thu, Feb 28, 2013 at 3:59 PM, Jason Friedman jsf80...@gmail.com wrote: The lazy and workable approach is to read the module documentation, make a reasonable effort, follow http://www.catb.org/esr/faqs/smart-questions.html, and voilà. The Force is strong with this one. If only others would

How to edit offline vmx file using python

2013-02-27 Thread sasikiran2k7
Hi, I am new to python, how can we edit a .vmx file offline or just simply a file containing the data in the below format. My file sample.vmx contains data pciBridge7.virtualDev = pcieRootPort pciBridge7.functions = 8 vmci0.present = TRUE hpet0.present = TRUE nvram = testvmdk.nvram

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/27/2013 06:05 PM, Steven D'Aprano wrote: On Wed, 27 Feb 2013 15:20:04 -0800, rurpy wrote: As JoePie91 pointed out, reference material should describe its subject matter completely and accurately. Once documentation has archived that minimum bar of viability, its quality is determined

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread alex23
On Feb 28, 2:53 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: On Wednesday, February 27, 2013 10:18:46 PM UTC-6, alex23 wrote: You claim that no one has time to write a bug report. I point out that if they can spend the time ranting about the bug, then they have the time. And i

Re: How would you do this?

2013-02-27 Thread Dave Angel
On 02/27/2013 10:32 PM, eli m wrote: How would you find the slope, y intercept, and slope-intercept form equation for a line in python? First, I'd form a more complete description of the problem. Specify what the overall constraints are (eg. Python version, OS portability, where input is

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread Chris Angelico
On Thu, Feb 28, 2013 at 4:57 PM, alex23 wuwe...@gmail.com wrote: My biggest regret re Python is that [Ranting Rick] found it more appealing than Ruby and we got saddled with [him] instead. Having used Ruby a little this past couple of weeks (trying to install a Rails application), I fully

Re: How to edit offline vmx file using python

2013-02-27 Thread Dave Angel
On 02/28/2013 12:29 AM, sasikiran...@gmail.com wrote: Hi, I am new to python, how can we edit a .vmx file offline or just simply a file containing the data in the below format. My file sample.vmx contains data pciBridge7.virtualDev = pcieRootPort pciBridge7.functions = 8 vmci0.present = TRUE

Re: How would you do this?

2013-02-27 Thread Michael Torrie
On 02/27/2013 08:32 PM, eli m wrote: How would you find the slope, y intercept, and slope-intercept form equation for a line in python? Well, how do you do it by hand? Once you have the basic formula or algorithm down, just translate it into python. Math is math. We can answer specific

Re: Nuitka now supports Python 3.2

2013-02-27 Thread Stefan Behnel
Steven D'Aprano, 26.02.2013 13:18: Nuitka is an implementation of Python written in C++. At the moment it is claimed to be about 2.5 times as fast as CPython running the pystone benchmark. Could we please get to the habit of not citing results of benchmarks that *any* static analysis phase

Re: Python Speed

2013-02-27 Thread Steven D'Aprano
On Wed, 27 Feb 2013 21:11:25 -0500, Terry Reedy wrote: There is a problem with timer overhead for sub-microsecond operations. In interactive use, the code is compiled within a function that gets called. The string 'abc需' should be stored as a constant in the code object. To force repeated

Re: python 3 problem: how to convert an extension method into a class Method

2013-02-27 Thread Steven D'Aprano
On Wed, 27 Feb 2013 21:49:04 +1100, Chris Angelico wrote: On Wed, Feb 27, 2013 at 9:36 PM, Robin Becker ro...@reportlab.com wrote: However, in my case the method takes py C utf8 bytes50 20 usec unicode 39 15 here py refers to a native

Re: Python Speed

2013-02-27 Thread jmfauth
On 27 fév, 23:24, Terry Reedy tjre...@udel.edu wrote: On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread:   Some are building, some are destroying. We are still waiting for you to help build a better 3.3+, instead of trying to 'destroy' it with mostly irrelevant cherry-picked

[issue17303] Fix test discovery for test_future*

2013-02-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83ae10bf608c by Ezio Melotti in branch '3.3': #17303: test_future* now work with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/83ae10bf608c New changeset 5599bbc275bc by Ezio Melotti in branch 'default': #17303:

[issue17303] Fix test discovery for test_future*

2013-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! I also removed a some from test import support that were no longer necessary. test_future files could be reorganized a bit, since they are basically no-ops, and they aren't testing much. -- assignee: - ezio.melotti

[issue17304] Fix test discovery for test_hash.py

2013-02-27 Thread Roundup Robot
New submission from Roundup Robot: New changeset 619ed4ed7087 by Ezio Melotti in branch '3.3': #17304: test_hash now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/619ed4ed7087 New changeset bc4458493024 by Ezio Melotti in branch 'default': #17304:

[issue17304] Fix test discovery for test_hash.py

2013-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! Even here I removed a from test import support that was no longer needed. -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16935 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17251] LWPCookieJar load() set domain_specifed wrong

2013-02-27 Thread Maximiliano Curia
Maximiliano Curia added the comment: I've deleted my previous patch, as I found the code working as intended. The domain_specified signals whether the domain stores came from a Domain: tag inside a Set-Cookie request or is taken from the hostname of the request. The rfc2965 dictates that a

[issue17307] HTTP PUT request Example

2013-02-27 Thread Senthil Kumaran
New submission from Senthil Kumaran: I think an explicit HTTP put request example in the docs may help. Previously, I thought the POST example was enough as PUT is very similar, but given the folks are looking for it, an example of how to do a PUT request using httplib may be helpful. Here

[issue17284] create mercurial section in devguide's committing.rst

2013-02-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: Currently the section covers all the fundamental Mercurial-related operations that a committers needs to know (set up, commit, merge, push), not just committing. The point of the change in section title is to have a title so non-committers know they can

[issue16930] mention limitations and/or alternatives to hg graft

2013-02-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: Why must we mention graft at all? I've never had a need for it. It seems simpler and just as effective to run `hg import` on the original patch. I think it's preferable that the steps we recommend to work on all systems. Then we won't have to worry about

[issue16931] mention work-around to create diffs in default/non-git mode

2013-02-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: AFAICT, the recommendation to use hg git format is currently only mentioned in the Committing section (http://docs.python.org/devguide/committing.html#minimal-configuration) but not elsewhere, in particular, not http://docs.python.org/devguide/patch.html.

[issue17284] create mercurial section in devguide's committing.rst

2013-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: The point of the change in section title is to have a title so non-committers know they can skip over the section. In the first part of committing.rst there are also things for committers only, and some of the content of the working with mercurial might be

[issue16113] Add SHA-3 (Keccak) support

2013-02-27 Thread Ulrik Sverdrup
Ulrik Sverdrup added the comment: Please do not go forward until NIST publishes its SHA-3 specification document. We don't know yet what parameters they will finally choose when making Keccak SHA-3. -- nosy: +englabenny ___ Python tracker

[issue15465] Improved documentation for C API version info

2013-02-27 Thread Kushal Das
Kushal Das added the comment: Adding the updated patch with changes as suggested in the review -- Added file: http://bugs.python.org/file29260/issue15465v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15465

[issue17284] create mercurial section in devguide's committing.rst

2013-02-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: I think making the sections more focused helps because sections are the linkable units, and sections can be freely moved around once they are more stand-alone (e.g. into or out of the FAQ). In issue 16931 in response to Ned, I suggested adding a general

[issue17267] datetime.time support for '+' and 'now'

2013-02-27 Thread jbatista
jbatista added the comment: IMHO this should be safe when the timezone is UTC for example, where there is no problems with daylight savings. What should be the behavior when adding a certain timedelta() and it crosses a date where there is an hour switch due to daylight savings? The unadvised

  1   2   >