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
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
http://123maza.com/65/beauty147/
--
http://mail.python.org/mailman/listinfo/python-list
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')
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
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
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
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
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.
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
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
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
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
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
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
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
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?
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
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
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
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
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
:
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 -
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
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
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
Same here for me. My traceroute seems to hang somewhere in the Netherlands.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
--
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
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.
*pew* I can't live without the docs, that really made my day now.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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!)
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
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
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
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
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
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
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.
ukraine, connection was lost also...
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
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
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
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
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
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
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.
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,
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
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
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
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
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)
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
___
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
___
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
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 */
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
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
É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
É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
___
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
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12627
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11784
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12294
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12063
___
___
Python-bugs-list mailing
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
___
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
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
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
___
Changes by Petri Lehtinen pe...@digip.org:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11869
___
___
Python-bugs-list
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:
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
Changes by Petri Lehtinen pe...@digip.org:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12448
___
___
Python-bugs-list
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
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
--
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
--
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
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
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
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
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
___
É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
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
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +ericsnow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12626
___
___
Python-bugs-list
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
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
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 - 100 of 111 matches
Mail list logo