Hi All,
Pydev and Pydev Extensions 1.4.8 have been released
Details on Pydev Extensions: http://www.fabioz.com/pydev
Details on Pydev: http://pydev.sf.net
Details on its development: http://pydev.blogspot.com
Release Highlights in Pydev Extensions:
Visual Numerics, a Rogue Wave Software Company, is pleased to announce the
release of PyIMSL Studio V1.5.
PyIMSL Studio contains both open source and proprietary components that create
a fully supported and documented platform for analytic prototyping and
production development.
- For
On Aug 21, 2009, at 7:15 PM, joy99 wrote:
Dear Group,
I like to convert some simple strings of natural language to XML. May
I use Python to do this? If any one can help me, on this.
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
use Python to help me in this regard?
On Aug 22, 10:53 am, Stefan Behnel stefan...@behnel.de wrote:
Rami Chowdhury wrote:
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
use Python to help me in this regard?
I can say from experience that Python on Windows (at least, Python 2.5
on 32-bit Vista) works
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
use Python to help me in this regard?
I can say from experience that Python on Windows (at least, Python 2.5
on 32-bit Vista) works perfectly well with UTF-8 files containing
Bangla. I have had trouble with working
On Saturday 22 August 2009 08:13:33 joy99 wrote:
On Aug 22, 10:53 am, Stefan Behnel stefan...@behnel.de wrote:
Rami Chowdhury wrote:
I am using primarily UTF-8 based strings, like Hindi or Bengali. Can I
use Python to help me in this regard?
I can say from experience that Python on
On Fri, Aug 21, 2009 at 11:44 PM, Ronn Rossronn.r...@gmail.com wrote:
I'm new to python and I'm getting a date time from a field in the database
that looks like this:
8/2/2009 8:36:16 AM (UTC)
I want to split it into two fields one with the date formatted like this:
-MM-DD 2009-08-02
Jonathan Gardner wrote:
On Aug 21, 9:09 am, alex23 wuwe...@gmail.com wrote:
On Aug 21, 11:36 pm, Jonathan Fine jf...@pytex.org wrote:
class ColourThing(object):
@apply
def rgb():
def fset(self, rgb):
self.r, self.g, self.b = rgb
def fget(self):
encoding declaration to the top of your source file if you use encoded
literal strings in your code
Any tips for how to set the encoding in IDLE? printing the Unicode
strings works -- trying to repr() the variable chokes with a
UnicodeDecodeError, and trying to enter the literals inside
To get familiar with the debugger, I have loaded this program:
import math
def s1(x, y):
a = (x + y)
print(Answer from s1), a
return
def s2(x, y):
b = (x - y)
print(This comes from s2), b
#print z
print(call from s2: ), s1(x, y)
return
I am trying to debug:
I press
Hi, if I have a string '\\303\\266', how can I convert it to '\303\266'
in a general way?
The problem I'm running into is that I'm connecting with pygresql to a
postgres database and when I get fields that are of 'char' type, I get
them in unicode, but when I get fields of 'byte' type, I get
On Sat, Aug 22, 2009 at 6:17 PM, flagmino ray.belan...@gmail.com wrote:
To get familiar with the debugger, I have loaded this program:
import math
def s1(x, y):
a = (x + y)
print(Answer from s1), a
return
def s2(x, y):
b = (x - y)
print(This comes from s2), b
#print z
Why I've personally stopped using it: I've always had the impression
that decorators were intended to provide a convenient and obvious way
of augmenting functions. Having one that automatically executes the
function at definition just runs counter to the behaviour I expect
from a decorator.
On Sat, 22 Aug 2009 08:09:52 +0100, Jonathan Fine wrote:
Jonathan Gardner wrote:
On Aug 21, 9:09 am, alex23 wuwe...@gmail.com wrote:
On Aug 21, 11:36 pm, Jonathan Fine jf...@pytex.org wrote:
class ColourThing(object):
@apply
def rgb():
def fset(self, rgb):
Il Fri, 21 Aug 2009 16:52:29 -0700 (PDT), James Harris ha scritto:
0xff 0x0e | 0b1101
16rff 16r0e | 2r1101
Hmm. Maybe a symbol would be better than a letter.
What about 2_1011, 8_7621, 16_c26h or 2;1011, 8;7621, 16;c26h ?
David
--
On Aug 22, 5:11 pm, Kushal Kumaran kushal.kumaran+pyt...@gmail.com
wrote:
On Fri, Aug 21, 2009 at 11:44 PM, Ronn Rossronn.r...@gmail.com wrote:
I'm new to python and I'm getting a date time from a field in the database
that looks like this:
8/2/2009 8:36:16 AM (UTC)
Il Fri, 21 Aug 2009 10:36:35 -0700 (PDT), Mensanator ha scritto:
Aha! Then I WAS right after all. Switch to 3.1 and you'll
soon be cured of that bad habit:
012 + 012
SyntaxError: invalid token (pyshell#4, line 1)
I have tre (four) problems:
1) I am forced to use 2.5 since the production
Steven D'Aprano wrote:
On Sat, 22 Aug 2009 04:20:23 -0400, AK wrote:
Hi, if I have a string '\\303\\266', how can I convert it to '\303\266'
in a general way?
It's not clear what you mean.
Do you mean you have a string '\\303\\266', that is:
backslash backslash three zero three backslash
2009/8/22 AK a...@nothere.com:
Steven D'Aprano wrote:
On Sat, 22 Aug 2009 04:20:23 -0400, AK wrote:
Hi, if I have a string '\\303\\266', how can I convert it to '\303\266'
in a general way?
It's not clear what you mean.
Do you mean you have a string '\\303\\266', that is:
backslash
On Sat, 22 Aug 2009 10:51:27 +0100, Jonathan Fine wrote:
Steven D'Aprano wrote:
There's a standard idiom for that, using the property() built-in, for
Python 2.6 or better.
Here's an example including a getter, setter, deleter and doc string,
with no namespace pollution, imports, or
2009/8/22 AK a...@nothere.com:
Vlastimil Brom wrote:
2009/8/22 AK a...@nothere.com:
Steven D'Aprano wrote:
On Sat, 22 Aug 2009 04:20:23 -0400, AK wrote:
Hi, if I have a string '\\303\\266', how can I convert it to '\303\266'
in a general way?
It's not clear what you mean.
Do you mean
On Sat, 22 Aug 2009 06:09:20 -0400, AK wrote:
Is pygresql quoting the backslash, or do you just think it is quoting
the backslashes? How do you know? E.g. if you have '\\303', what is the
length of that? 4 or 5?
Length is 4, and I need it to be length of 1. E.g.:
s = '\303'
s
Steven D'Aprano wrote:
On Sat, 22 Aug 2009 10:51:27 +0100, Jonathan Fine wrote:
Steven D'Aprano wrote:
There's a standard idiom for that, using the property() built-in, for
Python 2.6 or better.
Here's an example including a getter, setter, deleter and doc string,
with no namespace
When I want to issue a warning, I am uncertain
about the distinction between warnings.warn() and
logging.warning(). My naive thought is to presume
warning means the same thing in both cases, and
so if I call logging.warning(), it should take
care of making sure something equivalent to my
calling
Il Thu, 20 Aug 2009 16:59:14 -0700 (PDT), James Harris ha scritto:
It maybe made sense once but this relic of the past should have been
consigned to the waste bin of history long ago.
I perfectly agree with you!
David.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 19 Aug 2009 10:51:08 -0700, Simon Forman wrote:
(FWIW, I've always admired Humpty Dumpty's attitude to words.
When I use a word, Humpty Dumpty said in rather a scornful tone, it
means just what I choose it to mean -- neither more nor less.
When you say admired, do you mean what the
Hi,
I wrote a program that takes some user input. Many inputs are quit often
used by user, so when a user launch the program, and type in The Sha, he
wants to get wshank Redemption displayed automatically in reversed color
(black text on white background) along his cursor. When he decided to
Hi,
Any python program, even that does absolutely nothing in the code, will
cause a blank line printed out when the program exit. What's the reason?
Thanks.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371
Read this and see if it helps:
http://kvance.livejournal.com/985732.html
--
http://mail.python.org/mailman/listinfo/python-list
Justin wrote:
list 'results' from maps.google then crawl through the (engine of some
sort) space to the 'results' website and look at it html to find the
contact
Good idea. How do you know how to recognise the contact? He/she might come
disguised.
Stefan
--
Hi,
Anyone can give some help on how to generate keyboard mouse event
under windows? (python 2.5)
I tried pyhook, I only know how to monitor the keyboard/mouse events.
but don't know how to generate/send the the event.
thanks for any help.
-Ray
--
list 'results' from maps.google then crawl through the (engine of some
sort) space to the 'results' website and look at it html to find the
contact
--
http://mail.python.org/mailman/listinfo/python-list
Manuel A. Iglesias Abbatemarco schrieb:
I will apprreciate if someone could help me with the following error.
I a trying to create a grokproject application in my debian 5.0 box,
the following is the output after executing # grokproject Sample
command.
Getting distribution for
Dennis Lee Bieber wrote:
On Fri, 21 Aug 2009 16:52:29 -0700 (PDT), James Harris
james.harri...@googlemail.com declaimed the following in
gmane.comp.python.general:
So you are saying that Smalltalk has base in decimalrnumber where
r is presumably for radix? That's maybe best of all. It
David wrote:
Il Fri, 21 Aug 2009 16:52:29 -0700 (PDT), James Harris ha scritto:
0xff 0x0e | 0b1101
16rff 16r0e | 2r1101
Hmm. Maybe a symbol would be better than a letter.
What about 2_1011, 8_7621, 16_c26h or 2;1011, 8;7621, 16;c26h ?
'_': what if in the future we want to allow
If I make it work, i will send the solution. Thank you !
--
http://mail.python.org/mailman/listinfo/python-list
Albert Hopkins wrote:
On Sat, 2009-08-22 at 01:17 -0700, flagmino wrote:
[...]
I am trying to debug:
I press shift-F9 and F7. I end up in the interpreter where I enter s2
(1, 2).
From that point if I press F7, the program restart all over.
If I press Enter, the program gets out of debug
Vlastimil Brom vlastimil.b...@gmail.com (VB) wrote:
decoded = '\\303\\266'.decode(string_escape)
decoded
VB '\xc3\xb6'
print decoded
VB ö
print '\303\266'
VB ö
VB It might be an IDLE issue, but it still isn't one unicode glyph.
VB I guess, you have to ensure, that the input data is
Stef Mientki wrote:
Albert Hopkins wrote:
On Sat, 2009-08-22 at 01:17 -0700, flagmino wrote:
[...]
I am trying to debug:
I press shift-F9 and F7. I end up in the interpreter where I enter s2
(1, 2).
From that point if I press F7, the program restart all over.
If I press Enter, the program
On 2009-08-22, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Fri, 21 Aug 2009 10:45:51 -0700, John Nagle na...@animats.com
declaimed the following in gmane.comp.python.general:
And it's over. We can finally dispense with octal by default.
I've not looked at modern Intel
Hi all,
What is your favorite tool to help you debug your
code? I've been getting along with 'print' statements
but that is getting old and somewhat cumbersome.
I'm primarily interested in utilities for Linux (but
if you have recommendations for Windows, I'll take
them too :)
I use emacs as my
flagmino wrote:
To get familiar with the debugger, I have loaded this program:
import math
def s1(x, y):
a = (x + y)
print(Answer from s1), a
return
def s2(x, y):
b = (x - y)
print(This comes from s2), b
#print z
print(call from s2: ), s1(x, y)
return
I am trying to
In article mailman.227.1250951162.2854.python-l...@python.org,
Esmail ebo...@hotmail.com wrote:
What is your favorite tool to help you debug your code? I've been
getting along with 'print' statements but that is getting old and
somewhat cumbersome.
Despite the fact that I've been using Python
Steven Woody wrote:
Hi,
Any python program, even that does absolutely nothing in the code, will
cause a blank line printed out when the program exit. What's the reason?
Thanks.
I think the blank line is coming from your shell. In Windows, I
believe the shell emits a newline after
First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex: return ex the parentheses are redundant,
there's no Except Exception
On Fri, 2009-08-21 at 18:15 -0700, SeanMon wrote:
Is there a way to decompress a large (2GB) gzipped file being
retrieved over FTP on the fly?
I'm using ftplib.FTP to open a connection to a remote server, and I
have had no success connecting retrbinary to gzip without using an
intermediate
Stef Mientki wrote:
div class=moz-text-flowed style=font-family: -moz-fixedAlbert
Hopkins wrote:
On Sat, 2009-08-22 at 01:17 -0700, flagmino wrote:
[...]
I am trying to debug:
I press shift-F9 and F7. I end up in the interpreter where I enter s2
(1, 2).
From that point if I press F7, the
On Thu, Aug 20, 2009 at 01:31:14PM +0800, Steven Woody wrote:
Hi,
Any python program, even that does absolutely nothing in the code, will
cause a blank line printed out when the program exit. What's the reason?
Thanks.
Chances are it is related to whichever operating system and/or shell
Dave Angel wrote:
Stef Mientki wrote:
div class=moz-text-flowed style=font-family: -moz-fixedAlbert
Hopkins wrote:
On Sat, 2009-08-22 at 01:17 -0700, flagmino wrote:
[...]
I am trying to debug:
I press shift-F9 and F7. I end up in the interpreter where I enter s2
(1, 2).
From that point if
ryniek90 wrote:
div class=moz-text-flowed style=font-family: -moz-fixed
First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex:
On Aug 22, 2009, at 3:32 AM, Stefan Behnel wrote:
You can use both, but I suspect parsing from StringIO to be slower
than
parsing from the string directly. That's the case for lxml, at least.
Note that fromstring() behaves the same as XML(), but it reads
better when
parsing from a
Hello,
When I try to open a URL using urllib2.urlopen it returns Name or service
not known. It is not a problem with my Internet I believe, since I have
Internet access on my computer, and I have verified it is not a syntax, or
spelling, error on my part. I have also tried accessing the site
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot.
Output:
On Aug 22, 1:11 pm, bolega gnuist...@gmail.com wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the
Where to find code examples?
Or someone can post sample codes here.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Aug 22, 2009 at 10:03:35AM +1000, Ben Finney wrote:
and the former is virtually indistinguishable from 00012, O0012, or
many other combinations that someone might accidentally type (or
intentionally type, having to do this in dozens of other programming
languages).
Only if you
First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex: return ex the parentheses are redundant,
there's no Except Exception
On Sat, Aug 22, 2009 at 2:12 PM, Carlos Fabian
Ramirezcarlosfabianrami...@gmail.com wrote:
Hello,
When I try to open a URL using urllib2.urlopen it returns Name or service
not known. It is not a problem with my Internet I believe, since I have
Internet access on my computer, and I have
WTF??
Why on IDLE it works, but when i run this script in cmd.exe, the
os.getenv('HOME') goes NoneType?
I'm to newbie yet to understand this :/
HOME is simply not a standard environment variable that Windows provides.
Any program can set/add environment variables as it deems fit; in this
if you prefix number with zero, it will turn into octal number... I
too wasn't aware of it... at least in python :/
http://en.wikipedia.org/wiki/Octal
It seems like bad practice to put zeroes before any decimal number in
any language :)
Juraj
--
http://mail.python.org/mailman/listinfo/python-list
bolega wrote:
sed/awk/perl:
Better to post in the sed or perl mailing lists rather than a
Python list. I saw an awk solution flew by.
How to replace all spaces each with an underscore that occur
before a specific string ?
I really prefer a sed one liner.
Here's a one-liner sed solution:
21-08-2009 o 18:09:02 alex23 wuwe...@gmail.com wrote:
Unfortunately, apply() has been removed as a built-in in 3.x.
You can always implement it yourself :)
def apply(function, args=(), keywords={}):
return function(*args, **keywords)
--
Jan Kaliszewski (zuo) z...@chopin.edu.pl
Should I help you? If you answered my questions I am differing from your
view I do not get any problem in processing Hindi or Bangla or any Indian
language in Python it is perfectly fine.
Best Regards,
Subhabrata.
On Sat, Aug 22, 2009 at 9:48 AM, Rami Chowdhury rami.chowdh...@gmail.comwrote:
I
22-08-2009 o 21:04:17 Derek Martin c...@pizzashack.org wrote:
On Sat, Aug 22, 2009 at 10:03:35AM +1000, Ben Finney wrote:
These human programmers, whether newbies or long-experienced, also deal
with decimal numbers every day, many of which are presented as a
sequence of digits with leading
Kee Nethery k...@kagi.com (KN) wrote:
KN On Aug 22, 2009, at 3:32 AM, Stefan Behnel wrote:
You can use both, but I suspect parsing from StringIO to be slower than
parsing from the string directly. That's the case for lxml, at least.
Note that fromstring() behaves the same as XML(), but
22-08-2009 o 20:11:32 bolega gnuist...@gmail.com wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
$ rm -rf /home/bolega ; python -c 'for i in xrange(1000): print I will
never crosspost senselessly.'
;~]
--
Jan Kaliszewski (zuo)
On Aug 22, 12:16 pm, Rami Chowdhury rami.chowdh...@gmail.com wrote:
encoding declaration to the top of your source file if you use encoded
literal strings in your code
Any tips for how to set the encoding in IDLE? printing the Unicode
strings works -- trying to repr() the variable chokes
22-08-2009 o 19:46:51 Kee Nethery k...@kagi.com wrote:
I'm not sure I know the difference between a string variable and a
literal string. Is the difference as simple as:
somestring = u'stuffhello world/stuff'
fromstring(somestring) -- string variable
vs
XML(u'stuffhello world/stuff') --
mock is a Python mock object library for testing, with additional
support for runtime monkey patching.
Most mocking libraries follow the ‘record - replay’ pattern of
mocking. I prefer the ‘action - assertion’ pattern, which is more
readable and intuitive; particularly when working with the Python
On Aug 21, 8:34 am, Bev in TX countryon...@yahoo.com wrote:
Hi,
I've done some Python programming, but I still consider myself a
Python newbie. I have a Mac Pro OS X 10.5.8 system and I installed
Python 2.6.2 (the latest package available for the Mac) yesterday.
I was working through Matt
WTF??
Why on IDLE it works, but when i run this script in cmd.exe, the
os.getenv('HOME') goes NoneType?
I'm to newbie yet to understand this :/
HOME is simply not a standard environment variable that Windows
provides. Any program can set/add environment variables as it
On 22 Aug, 10:27, David 71da...@libero.it wrote:
... (snipped a discussion on languages and other systems interpreting
numbers with a leading zero as octal)
Either hexadecimal should have been 0h or octal should
have been 0t :=)
I have seen the use of Q/q instead in order to make it
I would like to create a list-like container class so that, additionally
to usual list methods, I could attach attributes to the container instances.
However, I would like it so that the items contained in the particular
instance of container somehow 'inherit' those attributes i.e.
cont =
On Thu, Aug 20, 2009 at 9:06 AM, Steven Woodynarkewo...@gmail.com wrote:
Hi,
I wrote a program that takes some user input. Many inputs are quit often
used by user, so when a user launch the program, and type in The Sha, he
wants to get wshank Redemption displayed automatically in reversed
On Aug 22, 1:11 pm, bolega gnuist...@gmail.com wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Why?
Example
Input : This is my book. It is too thick to read. The author gets
little royalty
Kreso schrieb:
I would like to create a list-like container class so that, additionally
to usual list methods, I could attach attributes to the container instances.
However, I would like it so that the items contained in the particular
instance of container somehow 'inherit' those attributes
James Harris wrote:
I have no idea why Ada which uses the # also apparently uses it to end
a number
2#1011#, 8#7621#, 16#c26b#
Interesting. They do it because of this example from
http://archive.adaic.com/standards/83rat/html/ratl-02-01.html#2.1:
2#1#E8-- an integer
On Aug 22, 12:04 pm, Derek Martin c...@pizzashack.org wrote:
On Sat, Aug 22, 2009 at 10:03:35AM +1000, Ben Finney wrote:
These human programmers, whether newbies or long-experienced, also deal
with decimal numbers every day, many of which are presented as a
sequence of digits with leading
Kreso wrote:
I would like to create a list-like container class so that, additionally
to usual list methods, I could attach attributes to the container
instances. However, I would like it so that the items contained in the
particular instance of container somehow 'inherit' those attributes
On Aug 21, 12:48 pm, Derek Martin c...@pizzashack.org wrote:
John Nagle wrote:
Yes, and making lead zeros an error as suggested in PEP 3127 is a
good idea. It will be interesting to see what bugs that flushes
out.
James Harris wrote:
It maybe made sense once but this relic of the past
In article
c82d8338-c196-400a-9c09-c8f6dbc25...@l35g2000vba.googlegroups.com,
Bev in TX countryon...@yahoo.com wrote:
On Aug 21, 8:34 am, Bev in TX countryon...@yahoo.com wrote:
Hi,
I've done some Python programming, but I still consider myself a
Python newbie. I have a Mac Pro OS X
bolega wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot.
Output:
John W. Krahn wrote:
bolega wrote:
sed/awk/perl:
How to replace all spaces each with an underscore that occur before a
specific string ?
I really prefer a sed one liner.
Example
Input : This is my book. It is too thick to read. The author gets
little royalty but the publisher makes a lot.
On Aug 22, 7:07 pm, Ned Deily n...@acm.org wrote:
The problem here is that gmail, like most modern mail services, requires
the use of an encrypted (SSL or TLS) connection for mail relaying so
that the required user name and password are not sent in the clear. The
logging SMTP handler uses
23-08-2009 Kreso kkumernott...@thatfamoussearchenginesmail.com wrote:
I would like to create a list-like container class so that, additionally
to usual list methods, I could attach attributes to the container
instances.
However, I would like it so that the items contained in the particular
PS. Erratum:
class Team(list):
A container for Player() instances.
def __init__(self, teamdata, playerdata=None):
*** Here should be added: list.__init__(self) ***
for key in teamdata:
setattr(self, key, teamdata[key])
for data in
Esmail ebo...@hotmail.com writes:
What is your favorite tool to help you debug your code?
A “print” statement (or equivalent, like logging output).
I've been getting along with 'print' statements but that is getting
old and somewhat cumbersome.
Whenever a simple output statement is too
In article
87236fb1-c09f-46e8-8492-514ba000c...@24g2000yqm.googlegroups.com,
Bev in TX countryon...@yahoo.com wrote:
On Aug 22, 7:07 pm, Ned Deily n...@acm.org wrote:
[...] Or on OS X it's
not *too* difficult to set up a local host mailer using the
Apple-supplied prefix that would accept
On Sat, Aug 22, 2009 at 02:55:51AM +, Steven D'Aprano wrote:
I can see how 012 can
be confusing to new programmers, but at least it's legible, and the
great thing about humans is that they can be taught (usually).
And the great thing is that now you get to teach yourself to stop
On Fri, Aug 21, 2009 at 04:23:57PM -0700, James Harris wrote:
You misunderstand. I was saying that taking a leading zero as
indicating octal is archaic. Octal itself is fine where appropriate.
I don't see that the leading zero is any more archaic than the use of
octal itself... Both originate
On Sat, 22 Aug 2009 14:54:41 -0700 (PDT), James Harris
james.harri...@googlemail.com wrote:
On 22 Aug, 10:27, David 71da...@libero.it wrote:
... (snipped a discussion on languages and other systems interpreting
numbers with a leading zero as octal)
Either hexadecimal should have been 0h or
On Sat, 22 Aug 2009 14:04:17 -0500, Derek Martin wrote:
These human programmers, whether newbies or long-experienced, also deal
with decimal numbers every day, many of which are presented as a
sequence of digits with leading zeros — and we continue to think of
them as decimal numbers
Hi,
Idle does not recognize PYTHONPATH set in .bashrc. Starting Python
shell in the terminal sys.path shows the PYTHONPATH, but again not
shown in IDLE. This is a common problem but I could not find a fix.
Using Ubuntu 9.04. Python 2.6.
Thanks
--
Vlastimil Brom wrote:
2009/8/22 AK a...@nothere.com:
Vlastimil Brom wrote:
2009/8/22 AK a...@nothere.com:
Steven D'Aprano wrote:
On Sat, 22 Aug 2009 04:20:23 -0400, AK wrote:
Hi, if I have a string '\\303\\266', how can I convert it to '\303\266'
in a general way?
It's not clear what you
Steven D'Aprano ste...@remove.this.cybersource.com.au writes:
According to Wikipedia, functor can be used as a synonym for function
object: ... http://en.wikipedia.org/wiki/Function_object
Hmm, I hadn't seen that usage before. I guess there's no law against
it, but it seems a bit bogus to me.
In article mailman.251.1250986082.2854.python-l...@python.org,
Ned Deily n...@acm.org wrote:
Or on OS X it's not *too* difficult to set up a local host mailer using
the Apple-supplied prefix that would accept mail locally and forward it
to a more sophisticated remote mailer.
It's also not too
Benjamin Peterson benja...@python.org added the comment:
The patch needs tests before it can be applied. Additionally, I'm not
sure if having a utf option is helpful. Is there a reason not to have
unicode support by default?
--
nosy: +benjamin.peterson
New submission from Ryan Leslie ryle...@gmail.com:
The zipfile.ZipFile.open() behavior with mode 'U' or 'rU' is not quite
as advertised in
http://docs.python.org/library/zipfile.html#zipfile.ZipFile.open
Here is an example:
$ echo -ne This is an example\r\nWhich demonstrates a problem\r\nwith
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Yes, just put it near the numerous set_XXXuid functions, protected with a
HAVE_SETRESUID macro (you will have to modify configure.in as well)
--
nosy: +amaury.forgeotdarc
___
Python tracker
kai zhu kaizhu...@gmail.com added the comment:
wrote an extension application which relies on the patch (works after
applying patch to python 3.1.1).
it converts png images to colorized ascii-art on ansi-compatible
terminal. requires the patch b/c a ctype function returns a c-string w/
1 - 100 of 140 matches
Mail list logo