Ismar Sehic i.she...@gmail.com writes:
hello, i'm trying to make a wrapper for making xml requests to hotelbeds.com
site.
...
File /usr/lib/python2.6/urllib2.py, line 1172, in http_open
return self.do_open(httplib.HTTPConnection, req)
File /usr/lib/python2.6/urllib2.py, line 1147,
Vito De Tullio writes:
rusi wrote:
[Not everything said there is correct; eg python supports currying
better [than haskell which is surprising considering that
Haskell's surname is [Curry!]
AFAIK python does not support currying at all (if not via some
decorators or something like
On Monday, September 23, 2013 11:54:53 PM UTC+5:30, Vito De Tullio wrote:
rusi wrote:
[Not everything said there is correct; eg python supports currying better
[than haskell which is surprising considering that Haskell's surname is
[Curry!]
AFAIK python does not support currying at
hello, i have a picture and i want to merge it with an other picture which is
half transparent and the first picture will shine through it, has python the
library's to do this?
--
https://mail.python.org/mailman/listinfo/python-list
rusi writes:
Without resorting to lambdas/new-functions:
With functools.partial one can freeze any subset of a
function(callable's) parameters.
In Haskell one can only freeze the first parameter or at most with
a right section the second
You have an f of type A - B - C - D - E in
Hi. I am new to Python. I am making a script where logging in to a website is
the first step.. I am using Python 3.3 All of the help I have seen online uses
urllib2 which in Python 3 aint there. I will greatly appreciate any help
--
https://mail.python.org/mailman/listinfo/python-list
On 24/09/2013 09:09, Osumo Clement wrote:
Hi. I am new to Python. I am making a script where logging in to a website is
the first step.. I am using Python 3.3 All of the help I have seen online uses
urllib2 which in Python 3 aint there. I will greatly appreciate any help
urllib2 has been
On 9/24/2013 3:40 AM, and...@zoho.com wrote:
hello, i have a picture and i want to merge it with an other picture which is
half transparent and the first picture will shine through it, has python the
library's to do this?
Searching 'python image library' might lead one to
I'm having trouble with the BOM that is now prepended to codecs files.
The files have to be read by java servlets which expect a clean file
without any BOM.
Is there a way to stop the BOM being written?
It is seriously messing up my work as the servlets do not expect it to
be there. I could
On Mon, Sep 23, 2013 at 8:20 PM, Neil Hodgson nhodg...@iinet.net.au wrote:
Chris Friesen:
where I could highlight the stop and ask it to go to the definition.
(Where the definition is in a different file.)
I'm running into issues where my current IDE (I'm playing with Komodo)
can't seem
On Tue, 24 Sep 2013 10:42:22 +0100, J. Bagg wrote:
I'm having trouble with the BOM that is now prepended to codecs files.
The files have to be read by java servlets which expect a clean file
without any BOM.
Is there a way to stop the BOM being written?
Of course there is :-) but first we
J. Bagg wrote:
I'm having trouble with the BOM that is now prepended to codecs files.
The files have to be read by java servlets which expect a clean file
without any BOM.
Is there a way to stop the BOM being written?
I think if you specify the byte order explicitly with UTF-16-LE or
stas poritskiy stascr...@gmail.com writes:
Thanks for getting back to me, so i assume it is OK to have a very
very long file? The sample code i posted here is basically the
barebones of the main app.
so, combining the GUI-file(gui.py) with main code is acceptable?
Separating them into
On Sat, 21 Sep 2013 20:41:25 +1000, Chris Angelico wrote:
On Sat, Sep 21, 2013 at 8:15 PM, Νίκος nikos.gr...@gmail.com wrote:
On 21/9/2013 1:04 μμ, Chris Angelico wrote:
On Sat, Sep 21, 2013 at 7:58 PM, Νίκος nikos.gr...@gmail.com wrote:
Can you please tell me what alternation must be made
In article mailman.288.1380016922.18130.python-l...@python.org,
Terry Reedy tjre...@udel.edu wrote:
On 9/24/2013 3:40 AM, and...@zoho.com wrote:
hello, i have a picture and i want to merge it with an other picture which
is half transparent and the first picture will shine through it, has
On Tuesday, September 24, 2013 1:12:51 PM UTC+5:30, Jussi Piitulainen wrote:
rusi writes:
Without resorting to lambdas/new-functions:
With functools.partial one can freeze any subset of a
function(callable's) parameters.
In Haskell one can only freeze the first parameter or at
On Tue, 24 Sep 2013 11:36:16 +, Alister wrote:
To put it even more simply
If you have a legitimate reason to send me emails then you have no
legitimate reason to withhold your true Identity.
Dear Alister,
Forgive this anonymous email, but I don't wish to get fired from my job
and sued
On Tue, Sep 24, 2013 at 10:29 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 24 Sep 2013 11:36:16 +, Alister wrote:
To put it even more simply
If you have a legitimate reason to send me emails then you have no
legitimate reason to withhold your true Identity.
I'm using:
outputfile = codecs.open (fn, 'w+', 'utf-8', errors='strict')
to write as I know that the files are unicode compliant. I run the raw
files that are delivered through a Python script to check the unicode
and report problem characters which are then edited. The files use a
whole
Hi ,
Here is an example how i do yml parsing and a proper pythonic object returns ,
is it possible in XML, tried lxml,dom, but there is no straight forward
solution:
[root@linux-source pyrun]# cat x.yml
#Section for specifying test process information
Test:
commoninfo:
buildhome
On 24/09/2013 14:01, J. Bagg wrote:
I'm using:
outputfile = codecs.open (fn, 'w+', 'utf-8', errors='strict')
Well for the life of me I can't make that produce a BOM on 2.7 or 3.4.
In other words:
code
import codecs
with codecs.open(temp.txt, w+, utf-8, errors=strict) as f:
f.write(abc)
On 24/9/2013 09:01, J. Bagg wrote:
Why would you start a new thread? just do a Reply-List (or Reply-All
and remove the extra names) to the appropriate message on the existing
thread.
I'm using:
outputfile = codecs.open (fn, 'w+', 'utf-8', errors='strict')
That won't be adding a BOM. It
Thanks for the help guys! I'll definitely read up on the csv module
documentation.
Tim, that's incredibly helpful, thanks a lot! :) My CSV file doesn't have
headers, but I'm sure I can just as easily add it in manually.
--
https://mail.python.org/mailman/listinfo/python-list
Oh i thaught maybe python comes with something native, bevore i install
something new i think i might better look into if kivy can do the job - thats
allready installed...
--
https://mail.python.org/mailman/listinfo/python-list
rusi writes:
On Tuesday, September 24, 2013 1:12:51 PM UTC+5:30, Jussi Piitulainen wrote:
rusi writes:
Without resorting to lambdas/new-functions:
With functools.partial one can freeze any subset of a
function(callable's) parameters.
In Haskell one can only freeze the first
On Mon, 23 Sep 2013 19:40:47 -0700, kjakupak wrote:
Not sure if we've gotten that far in class, considering I don't know how
to go about doing that.
Which bit aren't you sure about?
(a) adding a same unit conversion to the units conversion program?
(Actually, this bit isn't needed after all,
On Tue, 24 Sep 2013 12:29:14 +, Steven D'Aprano wrote:
On Tue, 24 Sep 2013 11:36:16 +, Alister wrote:
To put it even more simply If you have a legitimate reason to send me
emails then you have no legitimate reason to withhold your true
Identity.
Dear Alister,
snip
On Tue, 24 Sep 2013 03:15:23 +, Steven D'Aprano wrote:
You don't have to use Kelvin. You could use any temperature scale, so
long as it is the same for both temperatures.
Given that he already has a handy conversion function to call, he should
be able to convert t2 into the units of t1 if
On Tuesday, September 24, 2013 8:21:19 PM UTC+5:30, Jussi Piitulainen wrote:
Would the type system get in the way of providing some analogous
function in Haskell? I don't know.
Yes.
The haskell curry
curry f x y = f (x,y)
is really only curry2
curry3 would be
curry3 f x y z = f (x,y,z)
and so
On Wed, Sep 25, 2013 at 1:07 AM, rusi rustompm...@gmail.com wrote:
And this is an old conundrum in programming language design:
In C printf is easy to write and NOT put into the language but into external
libraries
In Pascal, writeln cannot be outside the language because as a user defined
I've checked the original files using od and they don't have BOMs.
I'll remove them in the servlet. The overhead is probably small enough
unless somebody is doing a massive search. We have a limit anyway to
prevent somebody stealing the entire set of data.
I started writing the Python search
J. Bagg wrote:
I've checked the original files using od and they don't have BOMs.
I'll remove them in the servlet. The overhead is probably small enough
unless somebody is doing a massive search. We have a limit anyway to
prevent somebody stealing the entire set of data.
I started
kjaku...@gmail.com writes:
def temp(T, from_unit, to_unit):
conversion_table = {('c', 'k'):lambda x: x + 273.15,
('c', 'f'):lambda x: (x * (9.0/5)) + 32,
('k', 'c'):lambda x: x - 273.15,
('k', 'f'):lambda x: (x *
On Sep 23, 2013, at 8:06 AM, Chris Friesen cbf...@mail.usask.ca wrote:
Hi all,
I'm looking for a python IDE (for Linux) that can look at code like this:
class ConductorManager(manager.Manager):
def compute_recover(self, context, instance):
self.compute_api.stop(context,
On 24/09/2013 17:53, giacomo boffi wrote:
kjaku...@gmail.com writes:
def temp(T, from_unit, to_unit):
conversion_table = {('c', 'k'):lambda x: x + 273.15,
('c', 'f'):lambda x: (x * (9.0/5)) + 32,
('k', 'c'):lambda x: x - 273.15,
On Tuesday, September 24, 2013 8:56:21 PM UTC+5:30, Chris Angelico wrote:
On Wed, Sep 25, 2013 at 1:07 AM, rusi wrote:
And this is an old conundrum in programming language design:
In C printf is easy to write and NOT put into the language but into
external libraries
In Pascal,
chitt...@uah.edu writes:
True, I did not explain what I was trying to do.
pythontex is a package that allows the inclusion of python code within a
LaTeX document - (sort of like python.sty, but IMO, better) - I use
it along with noweb to create documents that contain documentation,
code and
Le mardi 24 septembre 2013 11:42:22 UTC+2, J. Bagg a écrit :
I'm having trouble with the BOM that is now prepended to codecs files.
The files have to be read by java servlets which expect a clean file
without any BOM.
Is there a way to stop the BOM being written?
It is
My editor is JEdit. I use it on a Win 7 machine but have everything set
up for *nix files as that is the machine I'm normally working on.
The files are mailed to me as updates. The library where the indexers
work do use MS computers but this is restricted to EndNote with an
exporter into the
On Tue, 24 Sep 2013 14:51:31 +, Denis McMahon wrote:
Question, given the original temp function as previously described by
yourself, what does the following function f which takes the same
params as comp do:
def f( t1, u1, t2, u2 ):
if u1 == u2:
return t2
else:
On Wed, Sep 25, 2013 at 4:43 AM, wxjmfa...@gmail.com wrote:
- The *mark* (once the Unicode.org terminology in FAQ) indicating
a unicode encoded raw text file is neither a byte order mark,
nor a signature, it is an encoded code point, the encoded
U+FEFF, 'ZERO WIDTH NO-BREAK SPACE', code
J. Bagg j.b...@kent.ac.uk writes:
I've checked the original files using od and they don't have BOMs.
I'll remove them in the servlet. The overhead is probably small enough
unless somebody is doing a massive search. We have a limit anyway to
prevent somebody stealing the entire set of data.
Connor Osborn added the comment:
In 2.7 there is no documented command *print, the docs are explicit on this
(it's just the built in statement). However, 3.4 treats print like a feature of
2.7. Is this to maintain backwards compatibility? I would suggest preserving
the original direction of
Tim Golden added the comment:
Closing as Works for me in the absence of any clear proposal for docs
improvement.
--
resolution: - works for me
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
Decorator sounds reasonable.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
___
Python-bugs-list
Brett Cannon added the comment:
Actually, one perk of the ranges is 2n3 can be auto-calculated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
Giampaolo Rodola' added the comment:
I believe the problem is the set of next_retr_data attribute here:
def test_retrlines_too_long(self):
self.server.handler.next_retr_data = 'x' * self.client.maxline * 2
...because self.server.handler runs in a different thread (different than
Barry A. Warsaw added the comment:
On Sep 24, 2013, at 01:12 PM, Giampaolo Rodola' wrote:
Giampaolo Rodola' added the comment:
I believe the problem is the set of next_retr_data attribute here:
def test_retrlines_too_long(self):
self.server.handler.next_retr_data = 'x' *
R. David Murray added the comment:
Looks good to me.
This seems like a mistake in the python3 port to me. I'm in favor of fixing it
as a bug. As release manager and pdb expert, what do you think, Georg?
--
___
Python tracker
New submission from Vajrasky Kok:
Lib/xmlrpc/client.py tries to connect to http://time.xmlrpc.com/RPC2 which has
been dead for a while. I see there is no light in the end of tunnel. Since
this code is meant to be a demo not a general purpose tool, I say why don't we
direct it to localhost
Changes by Vajrasky Kok sky@speaklikeaking.com:
Removed file: http://bugs.python.org/file31856/xmlrpc_server_client_demo.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19082
___
Changes by Vajrasky Kok sky@speaklikeaking.com:
Added file: http://bugs.python.org/file31857/xmlrpc_server_client_demo.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19082
___
New submission from Pepijn de Vos:
RFC 3490 states that The ACE prefix for IDNA is xn-- or any capitalization
thereof.
But the following does not work
str(bXN--pythn-mua.org., idna)
--
components: Library (Lib)
files: upper-idna.patch
keywords: patch
messages: 198360
nosy:
R. David Murray added the comment:
Sure :)
If you want some bonus points, can you figure out whether or not the test in
test_xmlrpc_net is worth moving to test_xmlrpc using a similar local-server
approach, or if it is redundant and should just be deleted?
(time.xmlrcp.com has come and gone
Gregory P. Smith added the comment:
Here's a fix (the test is now in the patch).
--
keywords: +needs review
stage: - patch review
Added file: http://bugs.python.org/file31860/issue19081-gps01.diff
___
Python tracker rep...@bugs.python.org
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19084
___
___
Python-bugs-list mailing
New submission from Karl Palsson:
OpenSSL supports TLS-PSK which some people (myself obviously) find to be
substantially easier to use than setting up certs.
However, there's no way to use PSK via the current SSL api in python. It would
be very nice to be able to use PSK from python.
For
Jesús Cea Avión added the comment:
Python 2.7 is open only for bugfixes. No new features.
Do you dare to write a patch for Python 3.4? :-). If you do, remember to sign a
Contributor Agreement.
Give it a try! :)
--
nosy: +jcea
versions: -Python 2.7
Changes by Roger Light ro...@atchoo.org:
--
nosy: +ralight
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19084
___
___
Python-bugs-list mailing
Changes by Daniel Stutzbach stutzb...@google.com:
--
nosy: +stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19081
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Is it different from TLS SRP, which already has a feature request in issue11943?
As Jesus said, feel free to propose a patch, even a proof of concept so that we
start discussing the API.
--
nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou
New submission from Serhiy Storchaka:
The proposed patch adds tests for all options of all widgets. They test that
widgets support all documented options, accepts valid values in different
formats, reject invalid values, and return values in expected format. This
would be helpful for
Serhiy Storchaka added the comment:
Most existing implementation produce just index. That is why weighted_choice()
accepts singular weights list and returns index. On the other hand, I think
working with mapping will be wished feature too (especially because Counter is
in stdlib). Indexable
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17618
___
___
Python-bugs-list mailing
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19077
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1820
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19050
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: test_ioencoding_nonascii (test_sys) fails on Snow Leopard -
test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here is a patch.
--
Added file: http://bugs.python.org/file31862/ftplib_maxline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19046
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Shouldn't FS_NONASCII be None with ASCII locale encoding?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19058
___
STINNER Victor added the comment:
Shouldn't FS_NONASCII be None with ASCII locale encoding?
See the description of the variable in test.support:
# FS_NONASCII: non-ASCII character encodable by os.fsencode(),
# or None if there is no such character.
The file system encoding an the locale
Barry A. Warsaw added the comment:
On Sep 24, 2013, at 09:59 PM, Serhiy Storchaka wrote:
Added file: http://bugs.python.org/file31862/ftplib_maxline.patch
This looks great and fixes the test failure problem. Thanks! Serhiy, please
feel free to apply this to the 2.6 branch, or let me know if
Madison May added the comment:
You have me convinced, Serhiy. I see the value in making the two functions
distinct.
For naming purposes, perhaps weighted_index() would be more descriptive.
--
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
___
Python-bugs-list mailing list
Changes by A. Jesse Jiryu Davis je...@emptysquare.net:
--
nosy: +emptysquare
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19071
___
___
R. David Murray added the comment:
Also note that on OS X I believe the fsencoding is always utf-8, but the locale
can of course be something else.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19058
Ethan Furman added the comment:
As discussed on PyDev[1], Enum members are bonafide class attributes, as in
they show on the class, not on the instances.
Documentation patch attached.
[1] https://mail.python.org/pipermail/python-dev/2013-September/128874.html
--
stage: - patch
Ethan Furman added the comment:
Doc patch is in #19011. I'll close this one when that one is closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19040
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18596
___
___
Python-bugs-list
80 matches
Mail list logo