Hi Sia,
Thanks for the problem! I hope you find these examples understandable.
Below, find an inflexible but fairly fast single-digit method and a slower (but
still respectable) multi-digit method that copes with entirely absent digits
after +/- and multi-digit skips such as 12 or 37 or 186 fo
Informatics Outsourcing is an Offshore Intellectual Property Services company.
They are providing Intellectual Property services for Bio Technology,
Biochemistry, Drug Discovery, Chemistry, etc
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 4 Jan 2013, Roy Smith wrote:
In article ,
Cameron Simpson wrote:
On 01/04/13 01:34, Anssi Saari wrote:
| Just curious since I read the same thing in a programming book recently
| (21st century C). So what's the greatness that terminal multiplexors
| offer over tabbed terminals? Especi
On Saturday, January 5, 2013 12:35:26 AM UTC-8, Sia wrote:
> I have strings such as:
>
> tA.-2AG.-2AG,-2ag
>
> .+3ACG.+5CAACG.+3ACG.+3ACG
Just curious, do these strings represent DNA sequences?
--
http://mail.python.org/mailman/listinfo/python-list
Oops!
"You skip 2 + 11 characters, 2 digits in "12" and 11 letters following. And
incidentally in: "
should read:
"You skip 2 + 11 characters, 2 digits in "11" and 11 letters following. And
incidentally in: "
N
On Saturday, 5 January 2013 19:35:26 UTC+11, Sia wrote:
> I have strings such as
Note that the multi-line version above tolerates missing digits: if the number
is missing after the '+/-' it doesn't skip any letters.
Brief explanation of the multi-digit version:
+/- are converted to spaces and used to split the string into sections. The
split process effectively swallows the
On Mon, 07 Jan 2013 02:29:27 +, Oscar Benjamin wrote:
> On 7 January 2013 01:46, Steven D'Aprano
> wrote:
>> On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote:
>>
>>> I have a dataset that consists of a dict with text descriptions and
>>> values that are integers. If required, I coll
Hi Sia,
Find a multi-digit method in this version:
from string import maketrans
from itertools import takewhile
def is_digit(s): return s.isdigit()
class redux:
def __init__(self):
intab = '+-'
outtab = ' '
self.trantab = maketrans(intab, outtab)
def reduce_plus
Here are instructor's solutions manuals to the scientific textbooks in PDF
format. They cover solutions to all problems. If you need any, let me know its
title, edition and author.
If your title is not listed here don't worry because it is a list of some..
NOTE: This service is NOT free, and Do
Hi Sia,
Here's another variation. It's within my tolerance for readability :-) and also
quick, if that's an issue. It does 100,000 of your longer string in a couple of
seconds on my venerable laptop.
It handles only single-digit numbers. For multi-digit, I'd be inclined to have
a look at takew
On Sat, 5 Jan 2013 08:44:17 -0500
"D'Arcy J.M. Cain" wrote:
> We will probably get version 4.2 released shortly and then branch 5.x
> and start working on Python 3 support.
In fact, we found a few buglets and will be releasing 4.1.1 on Tuesday.
--
D'Arcy J.M. Cain | Democracy is three
On 7 January 2013 01:46, Steven D'Aprano
wrote:
> On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote:
>
>> I have a dataset that consists of a dict with text descriptions and
>> values that are integers. If required, I collect the values into a list
>> and create a numpy array running it t
"Steven D'Aprano" wrote in message
news:50ea28e7$0$30003$c3e8da3$54964...@news.astraweb.com...
> On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote:
>
>> I have a dataset that consists of a dict with text descriptions and
>> values that are integers. If required, I collect the values int
On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote:
> I have a dataset that consists of a dict with text descriptions and
> values that are integers. If required, I collect the values into a list
> and create a numpy array running it through a simple routine:
>
> data[abs(data - mean(d
On 1/6/2013 3:21 PM, Lee Harr wrote:
On 1/6/2013 8:42 AM, Lee Harr wrote:
I am using:
Ubuntu 12.10
Python 3.2.3
import has been considerably redone, and hopefully upgraded, in 3.3.
Ok, so now I tried python3.3-dbg but I don't think the pyqt
modules are compiled for 3.3 and that may be pr
* Tetsuya [130106 14:43]:
> On 01/06/2013 11:13 PM, Tim Johnson wrote:
> > Now I use vim for all of my work. I pretty-much hand-rolled my own
> > IDE, which is typical of vimmers.
>
> I did like you, too.
> I use vim for everything: coding in python, django, js, html, C/C++,
> bash, even ema
On 1/6/2013 6:12 PM, chaouche yacine wrote:
booleans
ints, floats, longs, complexes
strings, unicode strings
lists, tuples, dictionaries, dictionary views, sets, frozensets,
buffers, bytearrays, slices
functions, methods, code objects,modules,classes, instances, types,
nulls (there is exactly on
Tetsuya writes:
> BTW, vim is available also under Windows.
And this is one of the best reasons to learn either Vim or Emacs (or
both, eventually): one should not be tied to any particular OS for
access to one's development tools.
Vim and Emacs are both general-purpose, highly-extensible and -e
I have solutions manuals to all problems and exercises in these textbooks. To
get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com
and let me know its title, author and edition. Please this service is NOT free.
INSTRUCTOR SOLUTIONS MANUAL :: Field and Wave Electromagnetic
On 6 January 2013 15:12, Grant Edwards wrote:
> On 2013-01-05, Oscar Benjamin wrote:
>> On 4 January 2013 15:53, Grant Edwards wrote:
>>> On 2013-01-04, Steven D'Aprano wrote:
On Thu, 03 Jan 2013 23:25:51 +, Grant Edwards wrote:
* But frankly, you should avoid eval, and write
It looks like the following issue:
http://bugs.python.org/issue14094
Victor
Le 6 janv. 2013 07:59, "iMath" <2281570...@qq.com> a écrit :
> os.path.realpath(path) bug on win7 ?
>
> Temp.link is a Symbolic link
> Its target location is C:\test\test1
> But
> >>> os.path.realpath(r'C:\Users\SAMSUNG\
On 01/06/2013 11:13 PM, Tim Johnson wrote:
Now I use vim for all of my work. I pretty-much hand-rolled my own
IDE, which is typical of vimmers.
I did like you, too.
I use vim for everything: coding in python, django, js, html, C/C++,
bash, even email (inside mutt, of course).
Start with
On 01/06/2013 06:12 PM, chaouche yacine wrote:
> booleans
> ints, floats, longs, complexes
> strings, unicode strings
> lists, tuples, dictionaries, dictionary views, sets, frozensets, buffers,
> bytearrays, slices
> functions, methods, code objects,modules,classes, instances, types, nulls
> (the
On Sun, 06 Jan 2013 12:28:55 -0500, Roy Smith wrote:
> I've been doing some log analysis. It's been taking a grovelingly long
> time, so I decided to fire up the profiler and see what's taking so
> long. I had a pretty good idea of where the ONLY TWO POSSIBLE hotspots
> might be (looking up IP a
On Mon, Jan 7, 2013 at 10:12 AM, chaouche yacine
wrote:
>
> booleans
> ints, floats, longs, complexes
> strings, unicode strings
> lists, tuples, dictionaries, dictionary views, sets, frozensets, buffers,
> bytearrays, slices
> functions, methods, code objects,modules,classes, instances, types, nu
On 2013-01-06 22:33, Hans Mulder wrote:
On 6/01/13 20:44:08, Joseph L. Casale wrote:
I have a dataset that consists of a dict with text descriptions and values that
are integers. If
required, I collect the values into a list and create a numpy array running it
through a simple
routine: data[ab
>Assuming your data and the dictionary are keyed by a common set of keys:
>
>for key in descriptions:
> if abs(data[key] - mean(data)) >= m * std(data):
> del data[key]
> del descriptions[key]
Heh, yeah sometimes the obvious is too simple to see. I used a dict comp to
rebuild
On Sun, 06 Jan 2013 16:44:47 -0500, Mitya Sirenef wrote:
> On Sun 06 Jan 2013 04:38:29 PM EST, andydtay...@gmail.com wrote:
>> Hi all,
>>
>> I'm trying to create a process which will create a new table and
>> populate it.
>>
>> But something is preventing this from working, and I don't know enough
On Sun, 06 Jan 2013 14:33:26 -0700, Jason Friedman wrote:
>> def double(value):
>> result return result
>>
>> number=input('type a number')
>> print (double(int(number)))
>>
>>
> I think what was meant:
>
> def double(value):
> result = 2 * value return result
yes indeed
thanks for c
On 6/01/13 20:44:08, Joseph L. Casale wrote:
> I have a dataset that consists of a dict with text descriptions and values
> that are integers. If
> required, I collect the values into a list and create a numpy array running
> it through a simple
> routine: data[abs(data - mean(data)) < m * std(da
IEP has support for integrating the event loops of both GTK and Qt:
https://code.google.com/p/iep/ No version control support though.
- Almar
On 6 January 2013 19:06, Monte Milanuk wrote:
> Lots of good options out there... currently I'm liking spyder or eclipse a
> lot.
>
> --
> http://mail.
On Mon, Jan 7, 2013 at 9:14 AM, Mitya Sirenef wrote:
> On Sun 06 Jan 2013 04:53:32 PM EST, andydtay...@gmail.com wrote:
>>
>> Wow it's as simple as that! I'm afraid my database experience is in
>> Microsoft Access in Windows and not at the command line, so that wasn't
>> intuitive for me.
>>
> IIR
* Sourabh Mhaisekar [130106 07:11]:
> Hello All,
> I am recently started couple of projects in Python, one in Python GTK and one
> in Python Qt. I want a good IDE (For Windows ) for Python which gives support
> for Python as well as PyGtk and PyQt.
>
> Features I am looking for
> * Support f
On Sun 06 Jan 2013 04:53:32 PM EST, andydtay...@gmail.com wrote:
Wow it's as simple as that! I'm afraid my database experience is in Microsoft
Access in Windows and not at the command line, so that wasn't intuitive for me.
Thanks again,
Andy
IIRC I made the same mistake when I was using psy
On Sun, Jan 6, 2013 at 4:33 PM, Jason Friedman wrote:
> > def double(value):
> > result
> > return result
> >
> > number=input('type a number')
> > print (double(int(number)))
> >
>
> I think what was meant:
>
> def double(value):
> result = 2 * value
> return result
> --
Wow it's as simple as that! I'm afraid my database experience is in Microsoft
Access in Windows and not at the command line, so that wasn't intuitive for me.
Thanks again,
Andy
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jan 7, 2013 at 8:38 AM, wrote:
> But something is preventing this from working, and I don't know enough to
> figure it out, despite having spent most of today reading up. The code
> executes with no error, yet no table is created or populated.
Standard databasing requirement: You need
On Sun 06 Jan 2013 04:38:29 PM EST, andydtay...@gmail.com wrote:
Hi all,
I'm trying to create a process which will create a new table and populate it.
But something is preventing this from working, and I don't know enough to
figure it out, despite having spent most of today reading up. The cod
Hi all,
I'm trying to create a process which will create a new table and populate it.
But something is preventing this from working, and I don't know enough to
figure it out, despite having spent most of today reading up. The code executes
with no error, yet no table is created or populated.
> def double(value):
> result
> return result
>
> number=input('type a number')
> print (double(int(number)))
>
I think what was meant:
def double(value):
result = 2 * value
return result
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 06 Jan 2013 12:26:40 -0800, kofi wrote:
> Using python 3.1, I have written a function called "isEvenDigit"
>
> Below is the code for the "isEvenDigit" function:
>
> def isEvenDigit():
> ste=input("Please input a single character string: ")
> li=["0","2","4", "6", "8"]
> if st
On Jan 6, 2013 12:33 PM, "kofi" wrote:
>
> Using python 3.1, I have written a function called "isEvenDigit"
>
> Below is the code for the "isEvenDigit" function:
>
> def isEvenDigit():
> ste=input("Please input a single character string: ")
> li=["0","2","4", "6", "8"]
> if ste in li:
Using python 3.1, I have written a function called "isEvenDigit"
Below is the code for the "isEvenDigit" function:
def isEvenDigit():
ste=input("Please input a single character string: ")
li=["0","2","4", "6", "8"]
if ste in li:
print("True")
else:
print("False")
> On 1/6/2013 8:42 AM, Lee Harr wrote:
>>
>> I am using:
>> Ubuntu 12.10
>> Python 3.2.3
>
> import has been considerably redone, and hopefully upgraded, in 3.3.
Ok, so now I tried python3.3-dbg but I don't think the pyqt
modules are compiled for 3.3 and that may be preventing
the import there.
On 01/06/2013 01:32 AM, Mitya Sirenef wrote:
On 01/05/2013 03:35 AM, Sia wrote:
I have strings such as:
>
> tA.-2AG.-2AG,-2ag
> or
> .+3ACG.+5CAACG.+3ACG.+3ACG
>
> The plus and minus signs are always followed by a number (say, i). I
want python to find each single plus or minus, remove the sig
I have a dataset that consists of a dict with text descriptions and values that
are integers. If
required, I collect the values into a list and create a numpy array running it
through a simple
routine: data[abs(data - mean(data)) < m * std(data)] where m is the number of
std deviations
to includ
On 1/6/2013 8:42 AM, Lee Harr wrote:
I am using:
Ubuntu 12.10
Python 3.2.3
import has been considerably redone, and hopefully upgraded, in 3.3.
Qt 4.8.2
PyQt 4.9.3
I also have the ubuntu -dbg packages:
python3-dbg
python3-pyqt4-dbg
I don't understand why python3-dbg cannot import the PyQ
I have solutions manuals to all problems and exercises in these textbooks. To
get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com
and let me know its title, author and edition. Please this service is NOT free.
SOLUTIONS MANUAL TO Probability & Statistics for Engineers &
I want to configure the Python logging module to manage two separate log files,
allowing me to do something like this:
import logging
import logging.config
logging.config.fileConfig("mylogging.conf")
root = logging.getLogger()
test = logging.getLogger("test")
root.debug("This is a message target
Lots of good options out there... currently I'm liking spyder or eclipse
a lot.
--
http://mail.python.org/mailman/listinfo/python-list
? when was jesus christ born
http://www.youtube.com/v/Qxjk3FGy71g?rel=0
than you
--
http://mail.python.org/mailman/listinfo/python-list
In article <_dudntfyxdvclhtnnz2dnuvz_ocdn...@giganews.com>,
RueTheDay wrote:
> On Sun, 06 Jan 2013 11:45:34 -0500, Roy Smith wrote:
>
> > In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>,
> > RueTheDay wrote:
> >
> >> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote:
> >>
> >
In article ,
Roy Smith wrote:
> It's rare to find applications these days that are truly CPU bound.
> Once you've used some reasonable algorithm, i.e. not done anything in
> O(n^2) that could have been done in O(n) or O(n log n), you will more
> often run up against I/O speed, database speed
On Sun, Jan 6, 2013, at 11:43 AM, Franck Ditter wrote:
> Hi !
> I work on MacOS-X Lion and IDLE/Python 3.3.0
> I can't get the treble key (U1D11E) !
>
> >>> "\U1D11E"
> SyntaxError: (unicode error) 'unicodeescape' codec can't
> decode bytes in position 0-6: end of string in escape sequence
>
On Sun, 06 Jan 2013 11:45:34 -0500, Roy Smith wrote:
> In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>,
> RueTheDay wrote:
>
>> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote:
>>
>> > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote:
>> >> I am getting the followi
Franck Ditter wrote:
> I work on MacOS-X Lion and IDLE/Python 3.3.0
> I can't get the treble key (U1D11E) !
>
"\U1D11E"
> SyntaxError: (unicode error) 'unicodeescape' codec can't
> decode bytes in position 0-6: end of string in escape sequence
>
> How can I display musical keys ?
Try
>>> "
In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>,
RueTheDay wrote:
> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote:
>
> > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote:
> >> I am getting the following error when running on Python 2.7 on Ubuntu
> >> 12.04:
> >> >
Hi !
I work on MacOS-X Lion and IDLE/Python 3.3.0
I can't get the treble key (U1D11E) !
>>> "\U1D11E"
SyntaxError: (unicode error) 'unicodeescape' codec can't
decode bytes in position 0-6: end of string in escape sequence
How can I display musical keys ?
Thanks,
franck
--
http://mail.pytho
On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote:
> On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote:
>> I am getting the following error when running on Python 2.7 on Ubuntu
>> 12.04:
>> >>
>> >>
>> AttributeError: 'Series' object has no attribute 'str'
> I would *guess*
On Sunday, January 6, 2013 8:03:43 AM UTC-8, marc.assin wrote:
> I wonder how I could specify a parameter on the command line from
> within the interpreter.
Guido wrote some advice a while back -
http://www.artima.com/weblogs/viewpost.jsp?thread=4829
Import your module and call its main.
The oth
On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote:
> I am getting the following error when running on Python 2.7 on Ubuntu
> 12.04:
> >>
>
> AttributeError: 'Series' object has no attribute 'str'
I would *guess* that you have an older version of pandas on your Linux machine.
Try "p
Hello,
I've just installed Python 2.7 on Windows 7
I've been able to write and run a script "Hello world"
I wonder how I could specify a parameter on the command line from
within the interpreter.
Specifying a parameter on the DOS command line is no problem.
Any hint, please ?
--
http://mail.py
On 2013-01-05, Oscar Benjamin wrote:
> On 4 January 2013 15:53, Grant Edwards wrote:
>> On 2013-01-04, Steven D'Aprano wrote:
>>> On Thu, 03 Jan 2013 23:25:51 +, Grant Edwards wrote:
>>>
>>> * But frankly, you should avoid eval, and write your own mini-integer
>>> arithmetic evaluator whic
I'm not confident this would run on gedit. It works on a python interpreter if
you have a file named data.txt in the same directory containing your sample
data.
It surely has to do with how gedit works then, because the "$" sign isn't used
in python, this business should be a gedit convention.
Den 06/01/13 15.52, Chris Angelico skrev:
On Mon, Jan 7, 2013 at 1:40 AM, Kurt Hansen wrote:
failed: cannot concatenate 'str' and 'tuple' objects
The problem is this line:
output += '', line, ''
Change it to:
output += '' + line + ''
:-)
Something happened allright, but ...
Output with
On Mon, Jan 7, 2013 at 1:40 AM, Kurt Hansen wrote:
> failed: cannot concatenate 'str' and 'tuple' objects
The problem is this line:
output += '', line, ''
Change it to:
output += '' + line + ''
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
Den 06/01/13 15.22, Subimal Deb wrote:
Kurt,
Try this:
[cut]
I've tested it on my original example:
Price table
1 Green apple $1
5 Green apples$4
10 Green apples$7
With all four lines selected it makes an error. With only three (without
the first line) it works
On Mon, Jan 7, 2013 at 1:30 AM, Kurt Hansen wrote:
> Den 06/01/13 15.20, Chris Angelico wrote:
>
>> On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen wrote:
>>>
>>> I'm sorry to bother you, Chris, but applying the snippet with your code
>>> in
>>> Gedit still just deletes the marked, tab-separated text
Den 06/01/13 15.20, Chris Angelico wrote:
On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen wrote:
I'm sorry to bother you, Chris, but applying the snippet with your code in
Gedit still just deletes the marked, tab-separated text in the editor.
Ah, whoops. That would be because I had a bug in the
Kurt,
Try this:
$<
lines = $GEDIT_SELECTED_TEXT.split("\n");
output = '\n';
for line in lines:
output += '';
columns = line.split("\t");
if len(columns)==1:
output += '', line, ''
else:
for item in columns:
Den 06/01/13 15.01, chaouche yacine wrote:
Well, I'm not answering your question since I am rewriting the script,
because I prefer it this way :)
def addline(line):
return "%s\n" % line
[cut]
I surpose I shall put your code between $< and >?
printed
>>>
Price table
1 Green apple $1
On Sun, 6 Jan 2013 05:26:19 -0800 (PST)
chaouche yacine wrote:
> Oh :) sorry I didn't know they were references to monty python
> sketches. That explains it then :)
The name of the language itself is a reference to Monty Python. That
is specifically what it was named after.
--
D'Arcy J.M. Cain
On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen wrote:
> I'm sorry to bother you, Chris, but applying the snippet with your code in
> Gedit still just deletes the marked, tab-separated text in the editor.
Ah, whoops. That would be because I had a bug in the code (that's why
I commented that it was un
Den 06/01/13 14.44, Chris Angelico wrote:
On Mon, Jan 7, 2013 at 12:34 AM, Kurt Hansen wrote:
"innermost"? I have replaced this with yours, but all the marked text are
deleted:
Here's the full code, with my change:
$<
lines = $GEDIT_SELECTED_TEXT.split("\n");
output = '\n';
I'm sorry to bo
Well, I'm not answering your question since I am rewriting the script, because
I prefer it this way :)
def addline(line):
return "%s\n" % line
def addcolumn(item,nb_columns):
if nb_columns != 3:
return "%s" % (3 - nb_columns + 1, item)
return "%s" % item
output = "\n"
for
I'm working my way through the examples in the O'Reilly book Python For
Data Analysis and have encountered a snag.
The following code is supposed to analyze some web server log data and
produces aggregate counts by client operating system.
###
import json # used to process json
On Mon, Jan 7, 2013 at 12:34 AM, Kurt Hansen wrote:
> "innermost"? I have replaced this with yours, but all the marked text are
> deleted:
Here's the full code, with my change:
$<
lines = $GEDIT_SELECTED_TEXT.split("\n");
output = '\n';
for line in lines:
output += '';
columns
Den 06/01/13 13.58, chaouche yacine skrev:
if len(columns) != 3:
colspan = 3 - len(columns) + 1
output += '' % (colspan) + item + ' '
I did not test. Use with caution.
I've tried to put it in several different places in the script, but with
no luck; remember that I'm not experienced,
I am using:
Ubuntu 12.10
Python 3.2.3
Qt 4.8.2
PyQt 4.9.3
I also have the ubuntu -dbg packages:
python3-dbg
python3-pyqt4-dbg
I don't understand why python3-dbg cannot import the PyQt4 modules...
$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "
Den 06/01/13 13.52, Chris Angelico skrev:
On Sun, Jan 6, 2013 at 11:42 PM, Kurt Hansen wrote:
Since there's only one "field" in the first line, I want this output:
Price table
- insted of
Price table
How to? Thank you i advance.
It's actually quite simple, as long as you don't mind the j
On Mon, Jan 7, 2013 at 12:26 AM, chaouche yacine
wrote:
> Oh :) sorry I didn't know they were references to monty python sketches.
> That explains it then :)
Check out the Argument Clinic some time :)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
Oh :) sorry I didn't know they were references to monty python sketches. That
explains it then :)
From: Chris Angelico
To: python-list@python.org
Sent: Sunday, January 6, 2013 2:14 PM
Subject: Re: Proof that nobody reads the tests
On Mon, Jan 7, 2013 at 12
On Mon, Jan 7, 2013 at 12:01 AM, chaouche yacine
wrote:
> Has anybody read the source code of
> /usr/lib/python2.7/test/inspect_fodder.py ?
>
> I wonder how did they let this into the official python distribution. I
> thought Guido was serious :) people of the PSF seem to have a certain sense
> of
On 06/01/2013 7:48 AM, Tetsuya wrote:
On 01/06/2013 05:45 AM, Sourabh Mhaisekar wrote:
Hello All,
I am recently started couple of projects in Python, one in Python GTK
> and one in Python Qt. I want a good IDE (For Windows ) for Python which
> gives support for Python as well as PyGtk and PyQ
if len(columns) != 3:
colspan = 3 - len(columns) + 1
output += '' % (colspan) + item + ' '
I did not test. Use with caution.
From: Kurt Hansen
To: python-list@python.org
Sent: Sunday, January 6, 2013 1:42 PM
Subject: How to modify this script?
http:/
On Sun, Jan 6, 2013 at 11:42 PM, Kurt Hansen wrote:
> Since there's only one "field" in the first line, I want this output:
>
> Price table
>
> - insted of
>
> Price table
>
> How to? Thank you i advance.
It's actually quite simple, as long as you don't mind the junk of
colspan="1" on all the oth
On 01/06/2013 05:45 AM, Sourabh Mhaisekar wrote:
Hello All,
I am recently started couple of projects in Python, one in Python GTK
> and one in Python Qt. I want a good IDE (For Windows ) for Python which
> gives support for Python as well as PyGtk and PyQt.
Features I am looking for
* Support
On 01/06/2013 12:37 PM, alex23 wrote:
On Jan 6, 5:49 am, someone wrote:
I thought that python also used "true" pass-by-reference, although I
haven't figured out exactly when I have this problem. I can just see
that sometimes I get this problem and then I need to copy the variable,
if I don't wa
http://www.tuxradar.com/content/save-time-gedit-snippets:
To convert tab-separated text lines into a HTML-table:
$<
lines = $GEDIT_SELECTED_TEXT.split("\n");
output = '\n';
for line in lines:
output += '';
columns = line.split("\t");
for item in columns:
On Jan 6, 5:49 am, someone wrote:
> I thought that python also used "true" pass-by-reference, although I
> haven't figured out exactly when I have this problem. I can just see
> that sometimes I get this problem and then I need to copy the variable,
> if I don't want the original data of the varia
On Jan 6, 6:35 am, chaouche yacine wrote:
> Hi. In the standard pytohon interpreter and in ipython, __builtins__ is a
> module, but in bpython it's a dictionnary. Was it redefined ?
I'd say it's a result of however bpython works and this:
"By default, when in the __main__ module, __builtins__ i
在 2013年1月6日星期日UTC+8下午3时06分10秒,Chris Rebert写道:
> On Sat, Jan 5, 2013 at 10:55 PM, iMath <2281570...@qq.com> wrote:
>
> >
>
> > os.path.realpath(path) bug on win7 ?
>
> >
>
> > Temp.link is a Symbolic link
>
> > Its target location is C:\test\test1
>
> > But
>
> > >>> os.path.realpath(r'C:\Us
92 matches
Mail list logo