Jasper Siepkes added the comment:
I'm another Illumos user that has crawled from under a rock ;-) to request not
to drop Illumos support.
--
nosy: +siepkes
___
Python tracker
<https://bugs.python.org/issue42
Change by Jasper Spaans :
--
keywords: +patch
pull_requests: +17149
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17695
___
Python tracker
<https://bugs.python.org/issu
New submission from Jasper Spaans :
When creating multipart/signed messages, this currently require two
serialisation passes: once to extract the flattened contents to be signed, and
once to actually serialise the message.
The PR this ticket will be linked to contains a new class
Jasper Spaans added the comment:
As can be seen above, 3.5 wraps the realname in a double quote, but 3.8 fails
to do so. Note that 3.5 also does not add a whitespace in front of the line
starting with "X:", so it is also not merged with the previous line when
parsing.
I guess
New submission from Jasper Spaans :
big-bob:t spaans$ cat fak.py
import sys
from email.message import EmailMessage
from email.policy import SMTP
from email.headerregistry import Address
msg = EmailMessage(policy=SMTP)
a = Address(display_name='Extra Extra Read All About It This Line Does
Jasper Trooster added the comment:
Hey, thanks for the quick response. I have to add that, when going to the
download page to download site (https://www.python.org/downloads/) the big
yellow button that says "Download Python 3.6.5" downloads the 64-/32-bit
installer (at least,
New submission from Jasper Trooster :
Sometimes when I type print in my code, the application crashes. Then a window
pops up, saying that the program suddenly stopped (description of error
message below). When I click on the option to reopen IDLE, nothing happens, I
have to manually reopen
Jasper St. Pierre jstpie...@mecheye.net added the comment:
The documentation is just flat out wrong, actually:
if ' ' in typename:
parts = typename.split()
typename = '_'.join(parts)
The documentation is claiming the inverse.
I don't know why we would ever have a space
Jasper St. Pierre jstpie...@mecheye.net added the comment:
Yes. Yes it would. In my opinion, it really shouldn't do this sort of name
mangling, as it's a terrible idea, but whatever.
--
___
Python tracker rep...@bugs.python.org
http
New submission from Jasper St. Pierre jstpie...@mecheye.net:
http://docs.python.org/dev/library/reprlib.html
Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, TYPE is replaced by
string.join(string.split(type(obj
Thanks for those suggestions.
I tried something last night before I got your ideas.
1. I added a line to send a copy of the report just to me, 2 lines
before the line where it emails the report to all the recipients.
2. I also added a timer.sleep(5) pause just before the line that
emails the
Just to add a little bit to the mix, I have started having these
problems since I rebuilt my machine (Xubuntu 11) and I changed the
disc formats to ext4 without even thinking about it ... I was
wondering if maybe that had something to do with it?
--
I have a laptop that wakes up and then runs a script that collects
info and sends an email with a spreadsheet (zipped and about 350KB)
report to a number of people. However, every time I get the following
error:
File /usr/lib/python2.7/smtplib.py, line 343, in getreply
raise
, 2011 at 5:46 PM, Astley Le Jasper astley.lejas...@gmail.com
wrote:
Any ideas?
Is it possible that the first email is sent before the network connection
has been properly established?
--
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek
www: http://dstanek.com
New submission from Jasper van den Bosch jap...@gmail.com:
urlparse.urljoin successfully joins 'http://localhost/repo1' with a filename,
but not 'svn://localhost/repo1' (only scheme different). But the documentation
states that the svn: scheme is supported:
http://docs.python.org/library
Jasper St. Pierre jstpie...@mecheye.net added the comment:
Oh man, attaching the wrong diff and getting the diff wrong.
The issue I found with Python 2.7:
when creating a simple link in tar:
$ mkdir tar_test
$ cd tar_test
$ touch one
$ ln -s one two
$ cd ..
$ tar czf tar_test.tgz tar_test
Jasper St. Pierre jstpie...@mecheye.net added the comment:
Uh, I just noticed the python2.6 in the traceback.
Looks like I *was* using 2.6 because Cygwin decided
to downgrade for some reason.
Uh, sorry about that.
--
___
Python tracker rep
My query isn't specific to Python, but some of you might have been in
a similar position and if there are any technical solutions, I'd
prefer to do it in Python.
I have developed an application using Django and the supporting
documentation needs to be multilingual. This isn't at code level,
Thanks for the pointer. I'll have a look into it.
--
http://mail.python.org/mailman/listinfo/python-list
jasper jas...@humppa.nl added the comment:
FYI, the issue has been fixed now in the mips64 port of OpenBSD by replacing
the previous/old floating point completion code with a C interface to the MI
softfloat code, implementing all MIPS IV specified floating point
operations
Thanks for the feedback both. I'll have a look at these.
One of the frustrating things I find about python is that there are so
many modules. There have been times when I've spend ages doing
something and then some has said, Oh yeah, there is a module for
that.
Anyway. Nearly finished.
Cheers
Thanks all. I was playing around with this and came up with another
solution using dictionaries (... comfort zone ...!!)
Code
from operator import itemgetter
def group_stuff(data):
group_dic = {}
group_id = 0
for line in data:
i = 0
for ref in line:
I think you have the same bug as Alf's code, you never merge existing
groups. Have you tried Arnaud's counterexample?
By the way, are ('a', 'b') and ('b', 'a') to be considered equivalent for
your problem?
Peter
Hi Peter,
Yes. I realise that this doesn't take into account existing
I have a list of tuples that indicate a relationship, ie a is related
to b, b is related to c etc etc. What I want to do is cluster these
relationships into groups. An item will only be associated with a
single cluster.
Before I started, I wondered if there was any particular tool within
Python
I'm creating excel docs on the fly using XLWT. However, I need to
include filters which I believe can only be done with pywin32.
Does pywin32 use elements from Windows itself, or excel when
dispatching?
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 15, 10:44 am, Tim Golden m...@timgolden.me.uk wrote:
On 15/06/2010 09:32, Astley Le Jasper wrote:
Does pywin32 use elements from Windows itself, or excel when
dispatching?
Yes: it's simply exposing to the Python user the API provided
by MS Office (or whatever other app) via
On May 29, 4:10 pm, superpollo ute...@esempio.net wrote:
Astley Le Jasper ha scritto:
This is probably a really silly question but, given the example code
at the bottom, how would I get a single list?
What I currently get is:
('id', 20, 'integer')
('companyname', 50, 'text
This is probably a really silly question but, given the example code
at the bottom, how would I get a single list?
What I currently get is:
('id', 20, 'integer')
('companyname', 50, 'text')
[('focus', 30, 'text'), ('fiesta', 30, 'text'), ('mondeo', 30,
'text'), ('puma', 30, 'text')]
('contact',
I realise I could roll my own here, but I wondered if there was an
inbuilt version of this?
.
def default_if_none(*args):
for arg in args:
if arg:
return arg
return None
x = None
y = 5
z = 6
print default_if_none(x,y,z)
5
--
... oh ... that simple. Now I feel dumb.
Thanks!
ALJ
--
http://mail.python.org/mailman/listinfo/python-list
Hi Robin,
It looks like you've been busy. I'm sorry but you are well over my
head at the moment!
:-)
If you need me to test an install then I'd be happy to help. However,
I just received an email from Christoph Gohlke saying:
... There are 64 bit versions of Reportlab and PIL for Python 2.6
I have a Windows 7 (64bit AMD) machine and am having quite a lot of
problems installing Reportlabs and Pil. I wondered if anyone else has
had the same issues and what the best way of dealing with it.
So far I've tried:
1. Reportlabs / Pil 32 installers - I've tried using these but they
can't
@Robin
Thanks. I thought that this seemed to be a general python thing
because it was effecting both installs. However, after also reading
Martin's comments ...
@Martin
This is somewhat imprecise: is it
a) that your CPU is AMD64, and thus supports 64-bit mode, or
b) that *in addition*, your
Cheers for the responses.
ALJ
--
http://mail.python.org/mailman/listinfo/python-list
When you say don't forget about the GIL, what should I not be
forgetting? I'm using sqlite and the following:
code
thread_lock = threading.RLock()
def db_execute(sql):
thread_lock.acquire()
try:
connection = sqlite3.connect(database_name)
cursor = connection.cursor()
I have a number of threads that write to a database. I have created a
thread lock, but my question is this:
- If one thread hits a lock, do a) all the other threads stop, or b)
just the ones that come to the same lock?
- I presume that the answer is b. In which case do the threads stop
only if
jasper jas...@humppa.nl added the comment:
Removing --with-fpectl makes no difference.
I'll try the _PyHash_Double-thing later this weekend.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7296
jasper jas...@humppa.nl added the comment:
After properly compiling with -O0, it actually gets a lot further in the
build. It crashes elsewhere though:
PYTHONPATH=/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6
./python -Wi -tt
/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib
jasper jas...@humppa.nl added the comment:
this little test program:
#include unistd.h
int main(int argc, char*argv[])
{
printf(short = %d\n, sizeof(short));
printf(int = %d\n, sizeof(int));
printf(float = %d\n, sizeof(float));
printf(long = %d\n, sizeof(long));
printf(double = %d\n
New submission from jasper jas...@humppa.nl:
While trying to get Python 2.6 working on OpenBSD/sgi (64-bit port)
I ran into the following during build:
OverflowError: signed integer is greater than maximum
I ran the command that triggered this by hand with -v added:
(sgi Python-2.6.3 40
jasper jas...@humppa.nl added the comment:
And the build log on OpenBSD/sgi.
--
Added file: http://bugs.python.org/file15301/Python-2.6.3.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7296
Gosh ... it's all gone quite busy about logging in, gui etc.
Certainly, I would try to make it clearer what is free and what isn't.
But flash ... using that doesn't bother me. Loggin in ... fine ... I
don't care as long as it's quick and there is something I might want.
i just wanted to know if
Hi,
I've just stumbled over this (http://showmedo.com/) and being the very
visual person I am, it seems like it could be a good way to learn
about python. However, before I smack down $60, I wondered if anyone
had any opinions on it. My gut feel is that it could be pretty good.
ALJ
--
I want to batch extract files from a directory of zips. The thing is
that the files are excel spreadsheets. I don't want to read them in
python, just dump them as extracted files in another directory.
However, when I do a test the excel file becomes corrupted. Any clues?
import zipfile
zf =
Thanks MRAB.
What do you mean about backslashes?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 4, 12:34 am, Lawrence D'Oliveiro [EMAIL PROTECTED]
central.gen.new_zealand wrote:
In message [EMAIL PROTECTED], Philip
Semanchuk wrote:
In my experience, the environment in which a cron job runs is
different from the environment in which some command line scripts run...
Which is
Ok ... this is odd.
I tried gregory's suggestion of redirecting the stdout stderr to a
text file. This worked. I could see all the logging information.
However, there was no error to see this time ... the application
worked completely without any problems.
I also then tried Jon's suggestion of
I've included a switch to include or exclude the logging to console.
When logging only to file, the script runs fine.
Of course, I still don't understand why dual logging, and specifically
to the console, causes a problem and if anyone has any comments about
the dual output logging code above
On 3 Dec, 16:41, Philip Semanchuk [EMAIL PROTECTED] wrote:
On Dec 3, 2008, at 10:29 AM, Astley Le Jasper wrote:
I've included a switch to include or exclude theloggingto console.
Whenloggingonly to file, the script runs fine.
Of course, I still don't understand whyduallogging
On 3 Dec, 19:49, Philip Semanchuk [EMAIL PROTECTED] wrote:
On Dec 3, 2008, at 1:33 PM, Astley Le Jasper wrote:
On 3 Dec, 16:41, Philip Semanchuk [EMAIL PROTECTED] wrote:
On Dec 3, 2008, at 10:29 AM, Astley Le Jasper wrote:
I've included a switch to include or exclude theloggingto
I need help ... I've been looking at this every evening for over a
week now. I'd like to see my kids again!
I have script that runs fine in the terminal but when I try to run it
in a crontab for either myself or root, it bails out.
The trouble is that obviously I get no console when using
James ... thanks for the suggestion. I have done this and the error
logging usually catches all my errors and logs them. I wondered if
logging itself was failing!
Philip ... thanks also. I did wonder about making the everything
explicit. I've seen that mentioned elsewhere. Writing out the stdout
Sorry ... that should be:
for sitename in mysites:
log.info(define thread)
thread_list[sitename]=threading.Thread(name=sitename,target=myproceedure,
args=(sitename,))
log.info(done)
thread_list[sitename].start()
log.info(Started)
--
On 10 Nov, 11:07, Astley Le Jasper [EMAIL PROTECTED] wrote:
Sorry ... that should be:
for sitename in mysites:
log.info(define thread)
thread_list[sitename]=threading.Thread(name=sitename,target=myproceedure,
args=(sitename,))
log.info(done)
thread_list[sitename].start
On 8 Nov, 05:39, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Fri, 07 Nov 2008 14:36:52 +0100, Gerhard Häring [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
Astley Le Jasper wrote:
I've been getting errors recently when using pysqlite. I've declared
the table columns
I have an application that put on an old machine with a fresh Xubuntu
installation (with Python 2.5). But I can't get the threading to work
The application was written on a combination of Windows XP and
OpenSuse and has been running without any problems using Eclipse/
Pydev. However, now that I
On 10 Nov, 16:20, Terry Reedy [EMAIL PROTECTED] wrote:
Astley Le Jasper wrote:
I have an application that put on an old machine with a fresh Xubuntu
installation (with Python 2.5). But I can't get the threading to work
The application was written on a combination of Windows XP
On Nov 7, 6:36 am, Dan Bishop [EMAIL PROTECTED] wrote:
On Nov 6, 3:46 pm, Astley Le Jasper [EMAIL PROTECTED] wrote:
I've been getting errors recently when using pysqlite. I've declared
the table columns as real numbers to 2 decimal places (I'm dealing
with money), but when doing division
I've been getting errors recently when using pysqlite. I've declared
the table columns as real numbers to 2 decimal places (I'm dealing
with money), but when doing division on two numbers that happen to
have no decimal fractions, the results through pysqlite are coming
through as integers. The
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob = modulename.objectname()
how do i find that the name is 'bob'
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Oct, 16:52, Carsten Haese [EMAIL PROTECTED] wrote:
Astley Le Jasper wrote:
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob = modulename.objectname()
how do i find that the name is 'bob'
Why do you need to find
On 16 Oct, 18:53, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Astley Le Jasper schrieb:
On 16 Oct, 16:52, Carsten Haese [EMAIL PROTECTED] wrote:
Astley Le Jasper wrote:
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob
Thanks for all the responses. That helps.
Ta
ALJ
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Sep, 12:44, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
Astley Le Jasper a écrit :
I'm still learning python and would like to know what's a good way of
organizing code.
I am writing some scripts to scrape a number of different website that
hold similar information
Can anyone suggest something inthat can process an XPath like the
following:
/html/body/table[2]/tbody/tr/td[5]/table/tbody/tr[3]/td/table[3]/
tbody/tr[5]/td
Cheers
--
http://mail.python.org/mailman/listinfo/python-list
, but I can't shake the sensation that this
fix just masks some deeper flaw in my code.
Arg!
-Jasper
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 18, 1:49 am, Simon Brunning [EMAIL PROTECTED] wrote:
2008/8/18 Jasper [EMAIL PROTECTED]:
I'm stumped. I'm calling a method that has keyword args, but not
setting them, and yet one of them starts off with data?!
http://www.python.org/doc/faq/general/#why-are-default-values-shared
On Aug 18, 2:40 am, Fredrik Lundh [EMAIL PROTECTED] wrote:
Jasper wrote:
Uggg! /That's/ an intuitive side-effect/wart. :-/
it's done that way on purpose, of course, because evaluating a full
closure for each default argument at every call would greatly hurt
performance (and lead
-plate code all over.
-Jasper
--
http://mail.python.org/mailman/listinfo/python-list
is weak. :-(
Can anyone help me out here? There must be something simple.
-Jasper
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 24, 10:02 am, Jonathan Gardner [EMAIL PROTECTED]
wrote:
On Apr 24, 7:16 am, Jasper [EMAIL PROTECTED] wrote:
I'm stuck using a library based on old style classes, and need to find
a class's parent at runtime.
With new style classes you can use .__base__ to inspect a parent, but
I
Hi,
I was a bit limited with time so in the end used an online service
with an API which is great for the limited number of look-ups I
needed. It can be found at:
http://www.nearby.org.uk/
It was also very useful for site for other conversions and lookups.
I manage to find a couple of other
they would use
the servers for.
I encourage any project who could make good use of some free servers to
get in touch, as this opportunity will not last.
Thanks for your time.
--
Jasper Bryant-Greene [EMAIL PROTECTED]
Album Limited
--
http://mail.python.org/mailman/listinfo/python-list
73 matches
Mail list logo