On Fri, 30 Dec 2011 20:58:10 -0800, Niklas Rosencrantz wrote:
> I'm upgrading from python 2.5 to python 2.7 and then I'm starting to get
> this error:
>
> InvalidResponseError: headers must be str
Please show the ENTIRE traceback, not just the error message. The
traceback is very informative: i
Hello All,
I have a dictionary object I would like to convert to xml.
Could some assist with the link to libs to use? Or good examples.
Regards,
Janus
--
*Satajanus Nig. Ltd
*
--
http://mail.python.org/mailman/listinfo/python-list
I'm upgrading from python 2.5 to python 2.7 and then I'm starting to get this
error:
InvalidResponseError: headers must be str
I think it is because somewhere my HTTP headers are cast to unicode instead of
string but I can't find where in the code? The example code I'm trying to
upgrade to pyt
On 12/29/11 23:17 , Paulo da Silva wrote:
Hi,
Sorry if this is a FAQ, but I have googled and didn't find any
satisfatory answer.
Is there a simple way, preferably multiplataform (or linux), of
generating sinusoidal/square waves sound in python?
Thanks for any answers/suggestions.
I just poste
On 12/29/11 05:55 , Jérôme wrote:
I'm writing a small application that plays sound through the speakers. The
sounds are juste sine waves of arbitrary frequency I create in the code, not
sample .wav files.
I didn't expect the choice for an audio library to be that complicated. There
are several l
On Sat, Dec 31, 2011 at 10:39 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> You know a Python programmer's been at your C++ code when it opens:
>> #define class struct
>
> Why stop there?
>
> #define private public
Probably yeah, do both. Anyway, life's so much easier when yo
In article ,
Chris Angelico wrote:
> On Sat, Dec 31, 2011 at 10:24 AM, Roy Smith wrote:
> > "But!", some C++/Java type bondage addicts might cry, "there's nothing
> > to prevent somebody from creating a DirectionIndicatingThingie directly,
> > bypassing the factory functions. There's no way to
On Sat, Dec 31, 2011 at 10:24 AM, Roy Smith wrote:
> "But!", some C++/Java type bondage addicts might cry, "there's nothing
> to prevent somebody from creating a DirectionIndicatingThingie directly,
> bypassing the factory functions. There's no way to make the constructor
> private!". To which t
In article ,
Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or fro
On Fri, 30 Dec 2011 21:18:29 +, Jason Friedman wrote:
> class azimuth:
> def __init__(self, bearing, heading):
It is conventional, and recommended, to use an initial capital letter for
classes. (Yes, Python built-ins violate that rule, and indeed so do some
non-built-ins.) See PEP 8 for
On Fri, 30 Dec 2011 20:40:16 +, Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
On Fri, Dec 30, 2011 at 11:43 AM, dmitrey wrote:
> Thank you. And what should I do to get function by itself instead of
> its string name, e.g. I want to know does this function is my_func or
> any other? For example, I would like to check is this function Python
> sum(), or maybe numpy.sum(), or
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or from a number indicating the angle in degrees as
> usually measured in trigonometry (65.5, measured counter-clockwise
> from the x-axis). The class
On 30 December 2011 20:40, Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30
Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or from a number indi
Adam Funk wrote:
>Suppose I'm creating a class that represents a bearing or azimuth,
>created either from a string of traditional bearing notation
>("N24d30mE") or from a number indicating the angle in degrees as
>usually measured in trigonometry (65.5, measured counter-clockwise
>from the x-axis
(Warning: this question obviously reflects the fact that I am more
accustomed to using Java than Python.)
Suppose I'm creating a class that represents a bearing or azimuth,
created either from a string of traditional bearing notation
("N24d30mE") or from a number indicating the angle in degrees as
On 12/30/2011 03:37 PM, Steven D'Aprano wrote:
On Fri, 30 Dec 2011 10:57:06 -0800, Roy Smith wrote:
Ah, cool. I didn't know you could do that. Thanks.
Who are you talking to, and what is "that"?
Replies with no context are somewhat less than useful. It might have made
sense in your head whe
On Fri, 30 Dec 2011 10:57:06 -0800, Roy Smith wrote:
> Ah, cool. I didn't know you could do that. Thanks.
Who are you talking to, and what is "that"?
Replies with no context are somewhat less than useful. It might have made
sense in your head when you wrote the reply, but to those reading, it
Ah, cool. I didn't know you could do that. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 30, 8:35 pm, Tim Chase wrote:
> On 12/30/11 11:51, dmitrey wrote:
>
> > how to get string name of a function that is n levels above
> > the current Python interpreter position?
>
> Use the results of traceback.extract_stack()
>
> from traceback import extract_stack
> def one(x):
>
On 12/30/11 11:51, dmitrey wrote:
how to get string name of a function that is n levels above
the current Python interpreter position?
Use the results of traceback.extract_stack()
from traceback import extract_stack
def one(x):
print "one", x
stk = extract_stack()
for mod, line
Hi,
I have a extension module in C which I want to distribute in binary
format, ideally an rpm. Additionally, I want to include some python
files (examples on how to use the extension module) and source for a
library the module dynamically links to (c,h, and make files).
How do I specify the exam
Hi,
On 12/30/2011 12:01 PM, Roy Smith wrote:
Is there some way to make urllib2.urlopen() perform a DELETE instead of a GET
or POST?
I'm hoping I don't have to dip way down into httplib. I've got an
application test framework built on top of urllib2. It makes heavy use of
HTTPCookieProces
On Fri, Dec 30, 2011 at 9:51 AM, lars van gemerden wrote:
> I still wonder whether it might be easier to add the class to the
> namespace. Can anyone help me with that?
from mypackage import mymodule
setattr(mymodule, myclass.__name__, myclass)
--
http://mail.python.org/mailman/listinfo/python-
Is there some way to make urllib2.urlopen() perform a DELETE instead of a GET
or POST?
I'm hoping I don't have to dip way down into httplib. I've got an application
test framework built on top of urllib2. It makes heavy use of
HTTPCookieProcessor. If I need to use the httplib calls directly
On Dec 30, 4:56 pm, lars van gemerden wrote:
> On Dec 30, 12:16 pm, lars van gemerden wrote:
>
>
>
>
>
>
>
>
>
> > On Dec 29, 8:55 pm, Ian Kelly wrote:
>
> > > On Thu, Dec 29, 2011 at 2:55 AM, lars van gemerden
> > > wrote:
>
> > > > Hello,
>
> > > > Can someone help me with the following:
>
>
On Dec 30, 12:16 pm, lars van gemerden wrote:
> On Dec 29, 8:55 pm, Ian Kelly wrote:
>
>
>
>
>
>
>
>
>
> > On Thu, Dec 29, 2011 at 2:55 AM, lars van gemerden
> > wrote:
>
> > > Hello,
>
> > > Can someone help me with the following:
>
> > > I am using metaclasses to make classes and these classe
hi Everyone,
it seems http://in.pycon.org/2011/ is also down :(
Regards
Vikash Agrawal
--
sent via HTC Sensation
--
http://mail.python.org/mailman/listinfo/python-list
On 30 dec, 14:48, Chris Angelico wrote:
> On Sat, Dec 31, 2011 at 12:21 AM, Mario Menezes wrote:
> > Hi,
>
> > I´m trying to access pypi.python.org as well aswww.python.organd none of
> > them is up?
>
> > Anybody else having problems with python.org today? Is there a scheduled
> > downtime?
A good tool for determining whether a site is down or just unavailable
to you:
http://downorisitjustme.com
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Yeah! www.python.org is up now.
pypi.python.org still with problems (502 Bad Gateway).
will wait couple time. somebody seems to be working on this.
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Dec 31, 2011 at 12:21 AM, Mario Menezes wrote:
> Hi,
>
> I´m trying to access pypi.python.org as well as www.python.org and none of
> them is up?
>
> Anybody else having problems with python.org today? Is there a scheduled
> downtime?
>
> Thanks
Appears to be up now, for me at least.
Fri, 30 Dec 2011 05:39:37 -0800 (PST)
tistje a écrit:
> On 30 dec, 14:21, Mario Menezes wrote:
> > Hi,
> >
> > I´m trying to access pypi.python.org as well as www.python.org and none
> > of them is up?
> >
> > Anybody else having problems with python.org today? Is there a
> > scheduled downtim
On 30 dec, 14:21, Mario Menezes wrote:
> Hi,
>
> I´m trying to access pypi.python.org as well as www.python.org and none of
> them is up?
>
> Anybody else having problems with python.org today? Is there a scheduled
> downtime?
>
> Thanks
>
> Mario Menezes
> Brazil
Seems like it is down ...
Hi,
I´m trying to access pypi.python.org as well as www.python.org and none of
them is up?
Anybody else having problems with python.org today? Is there a scheduled
downtime?
Thanks
Mario Menezes
Brazil
--
http://mail.python.org/mailman/listinfo/python-list
lars van gemerden wrote:
> On Dec 29, 8:55 pm, Ian Kelly wrote:
>> On Thu, Dec 29, 2011 at 2:55 AM, lars van gemerden
>> wrote:
>>
>> > Hello,
>>
>> > Can someone help me with the following:
>>
>> > I am using metaclasses to make classes and these classes to make
>> > instances. Now I want to us
Am Fri, 30 Dec 2011 07:17:13 + schrieb Paulo da Silva:
> Hi,
> Sorry if this is a FAQ, but I have googled and didn't find any
> satisfatory answer.
>
> Is there a simple way, preferably multiplataform (or linux), of
> generating sinusoidal/square waves sound in python?
>
> Thanks for any ans
On Dec 29, 8:55 pm, Ian Kelly wrote:
> On Thu, Dec 29, 2011 at 2:55 AM, lars van gemerden
> wrote:
>
> > Hello,
>
> > Can someone help me with the following:
>
> > I am using metaclasses to make classes and these classes to make
> > instances. Now I want to use multiprocessing, which needs to pi
In article <4efb9d6d.3080...@gmail.com>,
Dilara Ally wrote:
> I'm trying to import the MySQLdb for python. I downloaded the proper
> setuptools egg (ver2.7) for a Mac with OSX10.6
>
> I then downloaded the MySQL-python-1.2.3 and ran the following commands
>
> python setup.py build
> sudo pyth
On 12/30/2011 02:17 AM, Paulo da Silva wrote:
Hi,
Sorry if this is a FAQ, but I have googled and didn't find any
satisfatory answer.
Is there a simple way, preferably multiplataform (or linux), of
generating sinusoidal/square waves sound in python?
Thanks for any answers/suggestions.
If you're
On Dec 29, 8:55 pm, Ian Kelly wrote:
> On Thu, Dec 29, 2011 at 2:55 AM, lars van gemerden
> wrote:
>
> > Hello,
>
> > Can someone help me with the following:
>
> > I am using metaclasses to make classes and these classes to make
> > instances. Now I want to use multiprocessing, which needs to pi
Please check PYGAME and Simple Directmedia library.
Python is used as the director like role and functions in SDL
do most of the jobs in Pygame.
--
http://mail.python.org/mailman/listinfo/python-list
43 matches
Mail list logo