Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 23, 5:12 pm, Billy Mays no...@nohow.com wrote: On 7/23/2011 3:42 AM, Chris Angelico wrote: int(s.rstrip('0').rstrip('.')) Also, it will (in?)correct parse strings such as: '16500' to 165. -- Bill True enough. If I really wanted to be 100% safe, how

Re: Convert '165.0' to int

2011-07-24 Thread Steven D'Aprano
Billy Mays wrote: I'll probably get flak for this, but damn the torpedoes: def my_int(num): import re try: m = re.match('^(-?[0-9]+)(.0)?$', num) return int(m.group(1)) As a toy for learning about regexes, that's fine, but I trust you would never use that in

Strings show as brackets with a 'u'. Hi, ...[u'174'] ...Probably newbie question but not sure how suppress the brackets and the 'u' ? I assume pyhon is telling me it's a unicode string in the n variab

2011-07-24 Thread Saranya Sweet
http://123maza.com/65/beauty147/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert '165.0' to int

2011-07-24 Thread Steven D'Aprano
Frank Millman wrote: If I really wanted to be 100% safe, how about this - def get_int(s): if '.' in s: num, dec = s.split('.', 1) if dec != '': if int(dec) != 0: raise ValueError('Invalid literal for int')

Re: Convert '165.0' to int

2011-07-24 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: As a toy for learning about regexes, that's fine, but I trust you would never use that in production. There are less verbose ways of wasting time and memory. +1 QotW -- \ “I may disagree with what you say, but I will

Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 24, 9:34 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Frank Millman wrote: If I really wanted to be 100% safe, how about this -     def get_int(s):         if '.' in s:             num, dec = s.split('.', 1)             if dec != '':                 if

Re: Convert '165.0' to int

2011-07-24 Thread Thomas 'PointedEars' Lahn
Billy Mays wrote: On 7/21/2011 10:40 PM, Thomas 'PointedEars' Lahn wrote: Billy Mays wrote: On 07/21/2011 08:46 AM, Web Dreamer wrote: If you do not want to use 'float()' try: int(x.split('.')[0]) This is right. Assuming that the value of `x' is in the proper format, of course. Else

Re: Convert '165.0' to int

2011-07-24 Thread Chris Angelico
On Sun, Jul 24, 2011 at 5:58 PM, Frank Millman fr...@chagford.com wrote:  if int(dec) != 0: to    if [_ for _ in list(dec) if _ != '0']: if dec.rtrim('0')!='': ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 24, 10:07 am, Chris Angelico ros...@gmail.com wrote: On Sun, Jul 24, 2011 at 5:58 PM, Frank Millman fr...@chagford.com wrote:  if int(dec) != 0: to    if [_ for _ in list(dec) if _ != '0']: if dec.rtrim('0')!='': ChrisA I think you meant 'rstrip', but yes, neater and faster.

Re: Convert '165.0' to int

2011-07-24 Thread Chris Angelico
On Sun, Jul 24, 2011 at 6:21 PM, Frank Millman fr...@chagford.com wrote: On Jul 24, 10:07 am, Chris Angelico ros...@gmail.com wrote: if dec.rtrim('0')!='': ChrisA I think you meant 'rstrip', but yes, neater and faster. Thanks Yeah, I did. Mea culpa... every language has it somewhere, but

Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 23, 8:28 pm, rantingrick rantingr...@gmail.com wrote: On Jul 23, 1:53 am, Frank Millman fr...@chagford.com wrote: -- The ideal solution is the one I sketched out earlier - modify python's 'int' function to accept strings such as

Re: Convert '165.0' to int

2011-07-24 Thread Ben Finney
Frank Millman fr...@chagford.com writes: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the integer 165.[1] I disagree entirely. Once you introduce a decimal point into the representation, you're no longer

learning another programing language

2011-07-24 Thread Benjamin Gregg
Hi python was my first language but I need to learn C++ and java for a project (No there isn't an alternative) and I want to know is there any good tutorials or tips for learning C++/java after using python? thanks Ben -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 24, 10:53 am, Ben Finney ben+pyt...@benfinney.id.au wrote: Frank Millman fr...@chagford.com writes: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the integer 165.[1] I disagree entirely. Once you

Refactor/Rewrite Perl code in Python

2011-07-24 Thread Shashwat Anand
I am working with a huge codebase of Perl. The code have zero documentation and zero unit-tests. It seems like a huge hack. The underlying database schema is horrid. So I want to rewrite the whole of it in Python. How do I start ? The idea is to rewrite module by module. But how to make sure

Re: Convert '165.0' to int

2011-07-24 Thread Ben Finney
Frank Millman fr...@chagford.com writes: On Jul 24, 10:53 am, Ben Finney ben+pyt...@benfinney.id.au wrote: Frank Millman fr...@chagford.com writes: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the

Re: learning another programing language

2011-07-24 Thread Chris Angelico
On Sun, Jul 24, 2011 at 6:59 PM, Benjamin Gregg benjamin.gr...@virginmedia.com wrote: Hi python was my first language but I need to learn C++ and java for a project (No there isn't an alternative) and I want to know is there any good tutorials or tips for learning C++/java after using python?

Re: Convert '165.0' to int

2011-07-24 Thread Chris Angelico
On Sun, Jul 24, 2011 at 6:53 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Frank Millman fr...@chagford.com writes: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the integer 165.[1] I disagree entirely. Once

Re: Refactor/Rewrite Perl code in Python

2011-07-24 Thread Chris Angelico
On Sun, Jul 24, 2011 at 7:29 PM, Shashwat Anand anand.shash...@gmail.com wrote: How do I start ? The idea is to rewrite module by module. But how to make sure code doesn't break ? How can I import perl and python codes in each other ? Can you separate the project into separate executables

Re: Refactor/Rewrite Perl code in Python

2011-07-24 Thread Steven D'Aprano
On Sun, Jul 24, 2011 at 7:29 PM, Shashwat Anand anand.shash...@gmail.com wrote: How do I start ? The idea is to rewrite module by module. But how to make sure code doesn't break ? By testing it. Read up on test driven development. At this point, you have this: Perl modules: A, B, C, D

Re: PEP 8 and extraneous whitespace

2011-07-24 Thread Michael Brown
On 2011-07-22, John Gordon wrote: In 98u00kfnf...@mid.individual.net Neil Cerutti ne...@norwich.edu writes: You can fit much more code per unit of horizontal space with a proportionally spaced font. As a result, that issue, while valid, is significantly reduced. Is it? I assume one major

Re: learning another programing language

2011-07-24 Thread Cousin Stanley
Benjamin Gregg wrote: I want to know is there any good tutorials or tips for learning C++/java after using python? You might find the following site to be useful java information http://mindprod.com/jgloss/jgloss.html -- Stanley C. Kitching Human Being Phoenix, Arizona

Re: PEP 8 and extraneous whitespace

2011-07-24 Thread Zero Piraeus
: It's also because many people report that it's easier to read text when it's not wider than ~75 characters. That rule [1] is for paragraphs of prose in proportional text; code is both written and read differently. While there most likely is an upper limit, it's going to be different -

Help with Latin Characters

2011-07-24 Thread Joao Jacome
http://pastebin.com/aMrzczt4 When the script reaches a file with latin characters (ê é ã etc) it crashes. Traceback (most recent call last): File C:\backup\ORGANI~1\teste.py, line 37, in module Retrieve(rootdir); File C:\backup\ORGANI~1\teste.py, line 25, in Retrieve

python.org is down?

2011-07-24 Thread Laszlo Nagy
Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org is down?

2011-07-24 Thread Colin J. Williams
On 24-Jul-11 03:43 AM, Laszlo Nagy wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. The same for me at Noon EST Holland where are you? Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org is down?

2011-07-24 Thread David Zerrenner
Same here for me. My traceroute seems to hang somewhere in the Netherlands. -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org is down?

2011-07-24 Thread Yash Tulsyan
David Zerrenner da...@bluenode.de writes: Same here for me. My traceroute seems to hang somewhere in the Netherlands. Confirmed here as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Refactor/Rewrite Perl code in Python

2011-07-24 Thread Dan Stromberg
On Sun, Jul 24, 2011 at 2:29 AM, Shashwat Anand anand.shash...@gmail.comwrote: I am working with a huge codebase of Perl. The code have zero documentation and zero unit-tests. It seems like a huge hack. My condolences. Er, actually, it sounds kind of fun. The underlying database schema is

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread John Nagle
On 7/19/2011 7:34 PM, Andrew Berg wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 There's PyGUI, which, at a glance, fits whit what you want. Looks like it uses OpenGL and native GUI facilities. http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ It has quite a few external

Re: python.org is down?

2011-07-24 Thread Anna Vester
On Jul 24, 2011 2:43 AM, Laszlo Nagy gand...@shopzeus.com wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. Looks like it is down for everyone according to this site: http://www.downforeveryoneorjustme.com/ . Anna http://annavester.com

Re: python.org is down?

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 3:08 AM, Anna Vester vean...@gmail.com wrote: On Jul 24, 2011 2:43 AM, Laszlo Nagy gand...@shopzeus.com wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. Looks like it is down for everyone according to this

Re: python.org is down?

2011-07-24 Thread Stefan Behnel
Laszlo Nagy, 24.07.2011 09:43: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. What's even worse is that PyPI is extremely slow in responding, even up to connection failures. I can live with www.python.org being down for a bit, but PyPI

Re: learning another programing language

2011-07-24 Thread Terry Reedy
On 7/24/2011 4:59 AM, Benjamin Gregg wrote: Hi python was my first language but I need to learn C++ and java for a project (No there isn't an alternative) and I want to know is there any good tutorials or tips for learning C++/java after using python? Learn to meditate so you can deal with the

Re: python.org is down?

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 3:34 AM, Stefan Behnel stefan...@behnel.de wrote: Laszlo Nagy, 24.07.2011 09:43: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. What's even worse is that PyPI is extremely slow in responding, even up to

Re: Help with Latin Characters

2011-07-24 Thread Terry Reedy
On 7/24/2011 11:15 AM, Joao Jacome wrote: http://pastebin.com/aMrzczt4 list = os.listdir(dir) While somewhat natural, using 'list' as a local name and masking the builtin list function is a *very bad* idea. Someday you will do this and then use 'list(args)' expecting to call the list

python.org back up ?(was Re: python.org is down?)

2011-07-24 Thread Terry Reedy
On 7/24/2011 3:43 AM, Laszlo Nagy wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. python.org, bugs.python.org, docs.python.org, pypi.python.org all work for me now. -- Terry Jan Reedy --

Re: python.org back up ?(was Re: python.org is down?)

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 4:34 AM, Terry Reedy tjre...@udel.edu wrote: On 7/24/2011 3:43 AM, Laszlo Nagy wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. python.org, bugs.python.org, docs.python.org, pypi.python.org all work for me

Re: Convert '165.0' to int

2011-07-24 Thread SigmundV
On Jul 21, 10:31 am, Frank Millman fr...@chagford.com wrote: Is there a short cut, or must I do this every time (I have lots of them!) ? I know I can write a function to do this, but is there anything built-in? I'd say that we have established that there is no shortcut, no built- in for this.

Aw: python.org back up ?(was Re: python.org is down?)

2011-07-24 Thread David Zerrenner
*pew* I can't live without the docs, that really made my day now. -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Help with Latin Characters

2011-07-24 Thread Joao Jacome
2011/7/24 Terry Reedy tjre...@udel.edu On 7/24/2011 11:15 AM, Joao Jacome wrote: http://pastebin.com/aMrzczt4 list = os.listdir(dir) While somewhat natural, using 'list' as a local name and masking the builtin list function is a *very bad* idea. Someday you will do this and then

Re: Help with Latin Characters

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome slye...@gmail.com wrote: Already tried without unicode string in rootdir, same results. What if try using raw strings? Raw strings are just another way of typing them into your source code. There are different ways of writing string literals, but

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread lkcl
On Jul 20, 3:34 am, Terry Reedy tjre...@udel.edu wrote: On 7/19/2011 10:12 PM, sturlamolden wrote: What is wrong with them: 1. Designed for other languages, particularly C++, tcl and Java. 2. Bloatware. Qt and wxWidgets are C++ application frameworks. (Python has a standard library!)

Re: Help with Latin Characters

2011-07-24 Thread Joao Jacome
2011/7/24 Chris Angelico ros...@gmail.com On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome slye...@gmail.com wrote: Already tried without unicode string in rootdir, same results. What if try using raw strings? Raw strings are just another way of typing them into your source code. There are

Re: Python for Web

2011-07-24 Thread lkcl
On Jun 15, 1:11 pm, bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote: Is Python only for server side? Is it a theoretical question or a practical one ?-) More seriously: except for the old proof-of-concept Grail

Re: Rant on web browsers

2011-07-24 Thread lkcl
On Jun 14, 7:31 am, Chris Angelico ros...@gmail.com wrote: But if anyone feels like writing an incompatible browser, please can you add Python scripting? http://wiki.python.org/moin/WebBrowserProgramming already been done, chris - you want the firefox plugin, pyxpcomext and then if you

Re: Rant on web browsers

2011-07-24 Thread lkcl
On Jun 14, 7:31 am, Chris Angelico ros...@gmail.com wrote: Random rant and not very on-topic. Feel free to hit Delete and move on. I've just spent a day coding in Javascript, and wishing browsers supported Python instead (or as well). All I needed to do was take two ok your next best thing

Re: PEP 8 and extraneous whitespace

2011-07-24 Thread Ben Finney
Zero Piraeus sche...@gmail.com writes: : It's also because many people report that it's easier to read text when it's not wider than ~75 characters. That rule [1] is for paragraphs of prose in proportional text; code is both written and read differently. While there most likely is an

Tkinter/py2exe with installer

2011-07-24 Thread Kevin Walzer
Can anyone point me in the direction of a Tkinter/Python app that has been wrapped with py2exe and is deployed on Windows as a standalone using one of the standard installer tools? (MSI, NSIS, Inno Setup, etc.) I'm working on a Tkinter app for Windows and have had a surprisingly hard time

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Tim Roberts
Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Tim Roberts wrote: I don't think your glibness is justified. There is a legitimate appeal to this notion. The fact is that MANY APIs can be completely and adequately described by HTML. My brain raises a TypeError on that statement.

Re: python.org is down?

2011-07-24 Thread shbk background
ukraine, connection was lost also... -- http://mail.python.org/mailman/listinfo/python-list

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Gregory Ewing
John Nagle wrote: There's PyGUI, which, at a glance, fits whit what you want. Looks like it uses OpenGL and native GUI facilities. http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ It still uses Tcl/Tk stuff, which is un-Pythonic. You must be thinking of something else. My PyGUI has

Re: Convert '165.0' to int

2011-07-24 Thread Gregory Ewing
Frank Millman wrote: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the integer 165.[1] Therefore, for practical purposes, it would not be wrong for python's 'int' function to accept these without complaining.

Re: Convert '165.0' to int

2011-07-24 Thread Billy Mays
On 7/24/2011 2:27 PM, SigmundV wrote: On Jul 21, 10:31 am, Frank Millmanfr...@chagford.com wrote: Is there a short cut, or must I do this every time (I have lots of them!) ? I know I can write a function to do this, but is there anything built-in? I'd say that we have established that there

Validating Entry in tkinter

2011-07-24 Thread Saul Spatz
In tcl/tk an Entry widget can be set to validate its contents with the validate option. You have to give it a validatecommand (vcmd), which is a tcl script that runs when some action triggers validation. Usually, the script would use percent substitutions so the script would be something like

Re: Python for Web

2011-07-24 Thread Dan Stromberg
On Wed, Jun 15, 2011 at 5:11 AM, bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote: Is Python only for server side? Is it a theoretical question or a practical one ?-) More seriously: except for the old proof-of-concept

Re: Validating Entry in tkinter

2011-07-24 Thread rantingrick
On Jul 24, 7:11 pm, Saul Spatz saul.sp...@gmail.com wrote: Can one do something like this in tkinter? ‡ (1) First of all what exactly do you wish return? * an integer * a float * something else? (2) Is this input part of a modal or non-modal interface? For me, input validation should

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Michael Torrie
On 07/20/2011 07:17 PM, rantingrick wrote: Please everyone, do not change the subject of someone's thread because it's considered rude. Thank you. Too funny. Says who? Changing the subject line to reflect the direction this part of the thread (a branch if you will) is going is definitely

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Grant Edwards
On 2011-07-24, John Nagle na...@animats.com wrote: On 7/19/2011 7:34 PM, Andrew Berg wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 There's PyGUI, which, at a glance, fits whit what you want. Looks like it uses OpenGL and native GUI facilities.

Re: I am fed up with Python GUI toolkits...

2011-07-24 Thread Terry Reedy
On 7/24/2011 8:51 PM, Michael Torrie wrote: Now replying to an existing thread to start an entirely new, unrelated thread is definitely rude. Rude or not, it tends to be unproductive. If someone posted Help with threading internals here, it could well not be seen by the appropriate people,

Re: Validating Entry in tkinter

2011-07-24 Thread Saul Spatz
I want to interface to the native validation of tk. If you don't know what that is, you're unlikely to be able to help me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Latin Characters

2011-07-24 Thread Benjamin Kaplan
On Sun, Jul 24, 2011 at 3:47 PM, Joao Jacome slye...@gmail.com wrote: 2011/7/24 Chris Angelico ros...@gmail.com On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome slye...@gmail.com wrote: Already tried without unicode string in rootdir, same results. What if try using raw strings? Raw strings

Re: Convert '165.0' to int

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 10:07 AM, Billy Mays no...@nohow.com wrote: if the goal is speed, then you should use generator expressions: list_of_integers = (int(float(s)) for s in list_of_strings) Clarification: This is faster if and only if you don't actually need it as a list. In spite of the

Re: Convert '165.0' to int

2011-07-24 Thread Frank Millman
On Jul 25, 2:04 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Frank Millman wrote: I know I am flogging a dead horse here, but IMHO, '165', '165.', '165.0', and '165.00' are all valid string representations of the integer 165.[1] Therefore, for practical purposes, it would not be

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Attached outputs of the following commands in the corresponding head revisions (from yesterday, as hg.python.org seems to be down today): 3.3: for x in {bytes,bytearray}.{find,rfind} str.{find,rfind}; do echo === $x ===; ./python -c help($x)

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: Added file: http://bugs.python.org/file22741/3.2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12621 ___

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: Added file: http://bugs.python.org/file22742/2.7.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12621 ___

Re: [issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-24 Thread Senthil Kumaran
Okay, got it. Thanks. I was a subtle one within the description. I missed it in the first place. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue12625] sporadic test_unittest failure

2011-07-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: No, it's a feature of the new GIL. When I look at 2.7's code, I see something different - _Py_Ticker is reset in Py_AddPendingCall(): int Py_AddPendingCall(int (*func)(void *), void *arg) { [...] /* signal main loop */

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The patch looks good to me. As for the other failures, it would probably be interesting to open a separate issue, no? -- ___ Python tracker rep...@bugs.python.org

[issue12626] run test cases based on a glob filter

2011-07-24 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I love the functionality. Running individual tests (or groups of tests) with unittest is a *pain*. I had hoped to solve this through unittest extensions, but this is taking me longer to get to than I had hoped. So I would like to add

[issue12627] Implement PEP 394: The python Command on Unix-Like Systems

2011-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some scripts are installed by setup.py I’ll find time to read the latest version of the PEP in the coming days. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You haven’t set the git option for the diff commands in your config file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394 ___

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread higery
higery shoulderhig...@gmail.com added the comment: remote repository? It's just a configuration file under the .hg directory... -- Added file: http://bugs.python.org/file22744/unnamed ___ Python tracker rep...@bugs.python.org

[issue12627] Implement PEP 394: The python Command on Unix-Like Systems

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12627 ___ ___ Python-bugs-list

[issue11784] multiprocessing.Process.join: timeout argument doesn't specify time unit.

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11784 ___ ___ Python-bugs-list

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12294 ___ ___ Python-bugs-list

[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12063 ___ ___ Python-bugs-list mailing

[issue12174] Multiprocessing logging levels unclear

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +needs review stage: - patch review versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12174 ___

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: ysj.ray: As you're on Debian, the real cause of this might be issue 11715. The Modules/Setup.dist line for zlib is commented out, so it's only an example of how to enable zlib if it's not found automatically. Can you try again now that issue

[issue11708] argparse: suggestion for formatting optional positional args

2011-07-24 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I think this is a good idea, and seems to me more like a bug than a feature request. -- stage: - needs patch type: feature request - versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - test needed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[issue11869] Include information about the bug tracker Rietveld code review tool

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11869 ___ ___ Python-bugs-list

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-24 Thread Kevin Stock
New submission from Kevin Stock teo...@gmail.com: Given the input 'xy z=o //x', HTMLParser only detects the opening x tag, and then stops parsing. Ideally this should behave like the case 'xy z= //x' which raises an error and then can continue parsing the close x tag. -- components:

[issue10731] UnicodeDecodeError in OS X tkinter when binding to MouseWheel

2011-07-24 Thread Marc Culler
Marc Culler cul...@math.uic.edu added the comment: I am running OSX 10.5.8 on this macbook. The Tcl/Tk package on the system is ActiveState Tcl/Tk 8.4.19. I just installed Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) from http://www.python.org/getit/releases/3.2/ and I am still seeing this

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12448 ___ ___ Python-bugs-list

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 33be4896003a by Charles-François Natali in branch '2.7': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/33be4896003a -- nosy: +python-dev

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1fdad36ac838 by Charles-François Natali in branch '3.2': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/1fdad36ac838 --

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a095cbed24c3 by Charles-François Natali in branch 'default': Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. http://hg.python.org/cpython/rev/a095cbed24c3 --

[issue12560] libpython.so not built on OpenBSD

2011-07-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Patch committed. Stefan, thanks for the report and the patch! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-07-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello, Actually the class asyncore.dispatcher_with_send do not handle properly disconnection. When the endpoint shutdown his sending part of the socket, but keep the socket open in reading, the current implementation of

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-07-24 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- components: +Library (Lib) -IO stage: - needs patch type: - behavior versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12498

[issue10141] SocketCan support

2011-07-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks for updating your patch. I've done a review, available here: http://bugs.python.org/review/10141/show -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22744/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394 ___

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: higery’s message was this: I have already set the option as you said earlier, but how to 'push' it to remote repository? It's just a configuration file under the .hg directory... I was mistaken; setting the diff git option is important if you

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I mentioned pipes because half of the subprocess chapter, it seems, talks about them. ASo I got the mis-impression that they are special for subprocess-started processes. But if the subprocess gets the args it needs to connect to a socket, it

[issue12626] run test cases based on a glob filter

2011-07-24 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12626 ___ ___ Python-bugs-list

[issue12630] pydoc does not remove '#'-s from doc comments

2011-07-24 Thread tkiss80
New submission from tkiss80 tkis...@gmail.com: If an entity does not have a docstring, pydoc.getdoc() reads the comment associated with that entity and uses that as the source of documentation. However, inspect.getcomments() returns the raw comment with the comment signs ('#') in it, thus the

[issue12630] pydoc does not remove '#'-s from doc comments

2011-07-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The best solution is to modify the offending code to use real docstrings. Failing that, a simple explicit '\n'.join(line.lstrip('#' for line in comment.split('\n')) (i.e. not as part of pydoc) will handle most cases. Anything more

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-07-24 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Looks good. Thx. -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12448 ___

  1   2   >