Stefan Krah writes:
> cdecimal is a complete implementation of IBM's General Decimal Arithmetic
> Specification. With the appropriate context parameters, cdecimal will also
> conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic.
Cool. I wonder when we'll start seeing this in non-I
On Fri, Feb 3, 2012 at 4:04 PM, Steven D'Aprano
wrote:
> No matter what Python did, somebody would complain.
+1
This is, I think, the ultimate truth of the matter.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
Ariel wrote:
>
>Hi everybody I have a question, here is my problem I want to send an
>email with content in html with an image embed so I converted the
>image binary in mime text and then I put the mime code inside the src
>attribute of the html like this:
>
>/>
Do email readers actually implemen
Andrea Crotti wrote:
>
>So suppose I want to modify the sys.path on the fly before running some code
>which imports from one of the modules added.
>
>at run time I do
>sys.path.extend(paths_to_add)
>
>but it still doesn't work and I get an import error.
Are you actually adding multiple paths? On
On Fri, 03 Feb 2012 14:08:06 +1100, John O'Hagan wrote:
> I think we're 12 years late on this one. It's PEP 203 from 2000 and the
> key phrase was:
>
> "The in-place function should always return a new reference, either to
> the old `x' object if the operation was indeed performed in-place, or to
> Base module: http://pastebin.com/nQCG5CRC
> Another module: http://pastebin.com/FFzCCjwG
> Application: http://pastebin.com/370cWJtT
>
> I have a module that will provide base functionality, such as logging
> and authentication.
> I have other specialized modules that provide additional
> func
Okay, I am crossposting this from the eventlet dev mailing list since I am
in urgent need of some help.
I am running eventlet 0.9.16 on a Small (not micro) reserved ubuntu
11.10 aws instance.
I have a socketserver that is similar to the echo server from the examples
in the eventlet documentation.
On 2/2/2012 8:09 PM, Emmanuel Mayssat wrote:
Hello all,
I would like to instantiate my class as follow
QObject(, )
QObject()
an example would be
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html
How can I do this without have to specify parent= in the second
version
(I al
On Thu, 02 Feb 2012 12:25:00 -0500
Terry Reedy wrote:
> On 2/2/2012 9:17 AM, John O'Hagan wrote:
>
> > It's not so much about the type of x but that of x[1]. Wouldn't it
> > be possible to omit the assignment simply if the object referred to
> > by x[1] uses "+=" without creating a new object? T
On Fri, Feb 3, 2012 at 9:53 AM, andrea crotti wrote:
> Mm I don't think it's what the OP is asking (unless I misunderstood...).
> I think he wants to compile some syntax TO Python.
> But I don't really see why you would something like this (if not for fun).
>
> Then how are you going to maintain t
On Thu, Feb 2, 2012 at 5:09 PM, Emmanuel Mayssat wrote:
> Hello all,
>
> I would like to instantiate my class as follow
>
> QObject(, )
> QObject()
>
> an example would be
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html
>
> How can I do this without have to specify parent=
On Thu, Feb 2, 2012 at 3:53 PM, andrea crotti wrote:
> 2012/2/2 Amirouche Boubekki :
>> They are solution to write Python code that translates to javascript see
>> this thread
>> http://mail.python.org/pipermail/python-list/2011-November/1283110.html
>>
>
> Mm I don't think it's what the OP is ask
>>> If you understand what zip does, it should be obvious.
>>
>> Nobody likes to be told the thing they're confused about is trivial.
>Nobody likes to be told to brush their teeth, eat their vegetables or clean
>their room. Then they grow up and learn that life is full of things that you
>do be
Hello all,
I would like to instantiate my class as follow
QObject(, )
QObject()
an example would be
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html
How can I do this without have to specify parent= in the second
version
(I always need to supply the parent parameter, but I
Base module: http://pastebin.com/nQCG5CRC
Another module: http://pastebin.com/FFzCCjwG
Application: http://pastebin.com/370cWJtT
I have a module that will provide base functionality, such as logging
and authentication.
I have other specialized modules that provide additional
functionality. One
On 2/2/2012 6:37 PM, Сергей Владимирович wrote:
Hello. Please help me to import python module in my application that
has python 2.7.2 embeded.
I tried example from this link
http://docs.python.org/extending/embedding.html#embedding-python-in-c
paragraph 5.3.
If i place program in folder D:\temp\t
Hello. Please help me to import python module in my application that
has python 2.7.2 embeded.
I tried example from this link
http://docs.python.org/extending/embedding.html#embedding-python-in-c
paragraph 5.3.
If i place program in folder D:\temp\test_python\test_pythonævnes
på\Debug I will get er
2012/2/2 Amirouche Boubekki :
> They are solution to write Python code that translates to javascript see
> this thread
> http://mail.python.org/pipermail/python-list/2011-November/1283110.html
>
Mm I don't think it's what the OP is asking (unless I misunderstood...).
I think he wants to compile so
On 01/-10/-28163 01:59 PM, 8 Dihedral wrote:
If you're working in C++ and overload your operators so that 'a +='
and 'a = + b' have different observable behaviors (besides perhaps
time), then either your implementation is buggy or your design is very
bad-mannered.
Evan
Do you mean the resu
IMO you can have different versions of Python on the same machine. So it's two
windows machines. (Assuming you're going with *one* OS version :)
Also note there is some legal mambo jumbo around distributing MSVC DLLs (unless
you plan to use mingw).
--
http://mail.python.org/mailman/listinfo/pyt
Hi,
I'm pleased to announce the release of cdecimal-2.3. cdecimal is a fast
drop-in replacement for the decimal module in Python's standard library.
Blurb
=
cdecimal is a complete implementation of IBM's General Decimal Arithmetic
Specification. With the appropriate context parameters, cdec
Dennis Lee Bieber wrote:
> On Wed, 1 Feb 2012 23:25:36 -0800 (PST), oleg korenevich
> wrote:
>
>
>>Thanks for help. In first case all vars is python integers, maybe
>>math.floor is redundant, but i'm afraid that same error with math
>>module call will occur in other places of app, where math is
I assume this is an appropriate solution to my problem:
http://docs.python.org/distutils/setupscript.html#installing-additional-files
On Thu, 2012-02-02 at 13:42 -0500, Vince Forgetta wrote:
> Hi,
>
> I have developed a python program that contains multiple python modules
> and static content
Hi,
I have developed a python program that contains multiple python modules
and static content in the form of fonts (pil,pbm and tff files), html,
images, css and javascript.
I want to share the program with others as a python package. I have
followed the instructions at
http://guide.python-di
They are solution to write Python code that translates to javascript see
this thread
http://mail.python.org/pipermail/python-list/2011-November/1283110.html
2012/2/2 Michal Hantl
> Hello,
> I've been looking for something similar to CoffeeScript, but for python.
>
> Does anyone know of such pro
There are several at www.accu.org and select (strangely enough :) book
reviews for anyone who may be interested.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 2/2/2012 9:17 AM, John O'Hagan wrote:
It's not so much about the type of x but that of x[1]. Wouldn't it be
possible to omit the assignment simply if the object referred to by
x[1] uses "+=" without creating a new object? That way, some_tuple[i]
+= y will succeed if some_tuple[i] is a list bu
On Thu, Feb 2, 2012 at 11:28 AM, MRAB wrote:
> Should failed assignment be raising TypeError? Is it really a type
> error?
A failed setitem should be a TypeError as much as a failed getitem
should. Should 1[0] be a TypeError?
-- Devin
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Feb 2, 2012 at 11:30 AM, Paul Moore wrote:
> Isn't CoffeeScript just a compiler to convert a cleaner syntax into
> Javascript? If so, why would you need such a thing for Python, where
> the syntax is already clean and simple? :-)
Coffeescript is a more functional syntax. On that note, Py
On Feb 2, 2:09 pm, Michal Hantl wrote:
> I've been looking for something similar to CoffeeScript, but for python.
>
> Does anyone know of such project?
Isn't CoffeeScript just a compiler to convert a cleaner syntax into
Javascript? If so, why would you need such a thing for Python, where
the syn
I've got a build of Python (3.3) on my Windows PC. Everything is
built, I believe (core, all modules, HTML help, etc). I want to
"install" it on my PC (because tools like virtualenv expect a standard
install layout, and the checkout basically isn't).
I tried using Tools/msi/msi.py to build an inst
On 02/02/2012 10:53, Hrvoje Niksic wrote:
Steven D'Aprano writes:
Perhaps you are thinking that Python could determine ahead of time
whether x[1] += y involved a list or a tuple, and not perform the
finally assignment if x was a tuple. Well, maybe, but such an approach
(if possible!) is fr
On 01/02/2012 18:38, Jennifer Turliuk wrote:
My name is Jennifer Turliuk. I'm currently in Santiago, Chile for the
next 6 months as part of the Startup Chile program. I think you may be
able to help me out. We are looking to bring on a developer ASAP (see
description below).
Please don't spam t
EXAMPLES OF PROPHET’S MERCY UPON NON MUSLIMS
Ex. No. (1)
It was narrated that ‘Aisha, May Allah be pleased with her, said to
the Prophet, Peace be upon him: "Have you ever come across a day
harder than the day ofUhod (one of the battles with the polytheists,
in which Muslims were defeated failing
On 02 Feb 2012 09:16:40 GMT
Steven D'Aprano wrote:
> On Thu, 02 Feb 2012 19:11:53 +1100, John O'Hagan wrote:
>
> > You're right, in fact, for me the surprise is that "t[1] +=" is
> > interpreted as an assignment at all, given that for lists (and other
> > mutable objects which use "+=") it is a
On 2 fév, 11:03, Andrea Crotti wrote:
> On 02/02/2012 12:51 AM, Steven D'Aprano wrote:
>
>
>
> > On Wed, 01 Feb 2012 17:47:22 +, Andrea Crotti wrote:
>
> >> Yes they are exactly the same, because in that file I just write exactly
> >> the same list,
> >> but when modifying it at run-time it do
Hello,
I've been looking for something similar to CoffeeScript, but for python.
Does anyone know of such project?
So far I haven't found any attempt to do this, so I took few regular
expressions and hacked this:
https://plus.google.com/116702779841286800811/posts/56sBdwiZ4fT
Any advice on wh
I am trying to write a python script to read data from a printer port
using python sockets, but it seems I am locking up the port.
Is there a way to ensure that I do not block the port to other
applications?
My knowledge of python sockets is minimal, so any help would be
appreciated.
--
http://m
在 2012年1月14日星期六UTC+8上午6时48分29秒,Evan Driscoll写道:
> On 01/13/2012 03:20 PM, Neil Cerutti wrote:
> > They perform the same action, but their semantics are different.
> > operator+ will always return a new object, thanks to its
> > signature, and operator+= shall never do so. That's the main
> > differ
Am 02.02.2012 12:02, schrieb Peter Otten:
Ulrich Eckhardt wrote:
>>> u'abc'.translate({u'a': u'A'})
u'abc'
I would call this a chance to improve Python. According to the
documentation, using a string [as key] is invalid, but it neither raises
an exception nor does it do the obvious and acce
Not that I'll lose any sleep over it, but section 2.1 of the tutorial
for both versions doesn't reflect the minor difference between the
behavior shown below. Which is correct, the docs or what actually happens?
c:\Users\Mark\Sudoku>c:\Python27\python.exe
Python 2.7.1 (r271:86832, Nov 27 2010,
Steven D'Aprano writes:
> Perhaps you are thinking that Python could determine ahead of time
> whether x[1] += y involved a list or a tuple, and not perform the
> finally assignment if x was a tuple. Well, maybe, but such an approach
> (if possible!) is fraught with danger and mysterious errors e
Ulrich Eckhardt wrote:
> Am 01.02.2012 10:32, schrieb Peter Otten:
>> It doesn't matter for the OP (see Stefan Behnel's post), but If you want
>> to replace characters in a unicode string the best way is probably the
>> translate() method:
>>
> print u"\xa9\u2122"
>> ©™
> u"\xa9\u2122".tra
Am 13.01.2012 13:30 schrieb Chris Angelico:
It seems there's a distinct difference between a+=b (in-place
addition/concatenation) and a=a+b (always rebinding),
There is indeed.
a = a + b is a = a.__add__(b), while
a += b is a = a.__iadd__(b).
__add__() is supposed to leave the original obje
On 02/02/2012 12:51 AM, Steven D'Aprano wrote:
On Wed, 01 Feb 2012 17:47:22 +, Andrea Crotti wrote:
Yes they are exactly the same, because in that file I just write exactly
the same list,
but when modifying it at run-time it doesn't work, while if at the
application start
there is this file
On 2/2/2012 1:42 AM, Devin Jeanpierre wrote:
On Wed, Feb 1, 2012 at 2:53 PM, Terry Reedy wrote:
And it bothers me that you imput such ignorance to me. You made what I think
was a bad analogy and I made a better one of the same type, though still
imperfect. I acknowledged that the transition wil
On Thu, 02 Feb 2012 19:11:53 +1100, John O'Hagan wrote:
> You're right, in fact, for me the surprise is that "t[1] +=" is
> interpreted as an assignment at all, given that for lists (and other
> mutable objects which use "+=") it is a mutation. Although as Steven
> says elsewhere, it actually is a
http://123maza.com/46/dos754/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 2 Feb 2012 01:34:48 -0500
Devin Jeanpierre wrote:
> On Wed, Feb 1, 2012 at 10:18 PM, John O'Hagan
> wrote:
> > On Fri, 13 Jan 2012 10:40:47 -0800
> > Ethan Furman wrote:
> >
> >> Steven D'Aprano wrote:
> >> > Normally this is harmless, but there is one interesting little
> >> > glitch y
On 2 February 2012 00:28, Mark Hammond wrote:
> For setting PYTHONPATH it uses both - HKEY_CURRENT_USER is added before
> HKEY_LOCAL_MACHINE. I can't recall which one distutils generated
> (bdist_wininst) installers will use - it may even offer the choice.
[...]
> Yep, I think that is correct.
T
50 matches
Mail list logo