Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
>>> import imaplib >>> imap = imaplib.IMAP4_SSL("my.server.address") If I am connected to the VPN, then it works fine. Do you know why it won't work with SSL and without the VPN? Am I missing something? Thanks a lot, Julien -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
SSL. So I'm really unsure why I can't achieve the same thing from my laptop using imaplib.IMAP4_SSL() without the VPN turned on. Thank you, Julien On Apr 2, 3:10 pm, Michael Hrivnak wrote: > That method uses the default port 993.  Can you connect to that port > at all from you

Custom dict to prevent keys from being overridden

2011-08-27 Thread Julien
>>> d = { ... 'a': 1, ... 'b': 2, ... 'a': 3 ... } Error: The key 'a' already exists. Is that possible, and if so, how? Many thanks! Kind regards, Julien -- http://mail.python.org/mailman/listinfo/python-list

Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-21 Thread Julien
s "^[[B". I've google it and it looks like it might be an issue with the readline not being installed or configured properly. Is that correct? If so, how can I fix this issue? Many thanks. Kind regards, Julien -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-24 Thread Julien
On Mar 22, 5:37 pm, Benjamin Kaplan wrote: > On Tue, Mar 22, 2011 at 2:27 AM, Julien wrote: > > Hi, > > > I'm having problems when typing the up/down arrows in the Python 2.4 > > interpreter (exact version: Python 2.4.6 (#1, Mar  3 2011, 15:45:53) > > [GC

Re: Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-26 Thread Julien
ython 3.2, to build the Python > readline module, you need to have installed a local version of the GNU > readline library, a library which is not included in Mac OS X.  Starting > with Python 2.6 and with a deployment target of Mac OS X 10.5 or higher, > the Python readline module will be

Shortcutting the function call stack

2008-03-24 Thread Julien
Here 'caller_frame' contains the frame of the caller function. Now, how can I make that frame return a particular value? By the way, I'm not really interested in 'called' throwing an exception and 'caller' catching it. In fact, I want things to remain completel

Re: Shortcutting the function call stack

2008-03-24 Thread Julien
processing can be done by the function... Any idea on how to do that, if that's even possible? Thanks! Julien On Mar 25, 2:06 am, [EMAIL PROTECTED] wrote: > On Mar 24, 9:48 am, Jason <[EMAIL PROTECTED]> wrote: > > > > > On Mar 24, 5:21 am, Julien <[EMAIL PROTECTED]

Unnormalizing normalized path in Windows

2008-06-29 Thread Julien
ir\bla.txt' I wonder if there's a standard function to do that... Thanks a lot! Julien -- http://mail.python.org/mailman/listinfo/python-list

Remove some characters from a string

2008-07-17 Thread Julien
Hi, I can't seem to find the right regular expression to achieve what I want. I'd like to remove all characters from a string that are not numbers, letters or underscores. For example: >>> magic_function('[EMAIL PROTECTED]') str: 'si_98udasgf' Would yo

Issue with regular expressions

2008-04-29 Thread Julien
#x27; p = re.compile(magic_regular_expression) $ <--- the magic happens m = p.match(query) I'd like m.groups() to return: ('some words', 'with', 'and', 'without quotes') Is that achievable with a single regular expression, and if so, what would it

Saving an audio file's waveform into an image

2008-05-09 Thread Julien
Hi, I would like to pull out the waveform of an audio file and save it into an image file, for example in GIF format. Is that achievable, and if so, how? I heard about the Snack module, but the project looks dead and un- maintained. Your advice would be greatly appreciated. Thanks! Julien

Listing modules from all installed packages

2013-06-08 Thread Julien Phalip
h that list of modules, import them and get their exact locations by fetching their __file__ attribute values. However, this feels very hackish and I don't think it's actually quite correct either. I'm sure there must be a better way. If possible I'd also like to avoid

Re: Listing modules from all installed packages

2013-06-14 Thread Julien Phalip
%s\\%s'%(ml.path,name)for ml,name,ispkg in > pkgutil.iter_modules() if ispkg] > print '\n'.join(toplevel_packages) Thanks a lot Carlos, this gives me exactly what I needed! Best wishes, Julien -- http://mail.python.org/mailman/listinfo/python-list

Preserving unicode filename encoding

2012-10-20 Thread Julien Phalip
is could result in loss of information (what if, for example, the original filename did contain combining diacritics and we wanted to preserve them). Ideally, it would be preferable to preserve the original encoding. Is that possible or is that completely out of Python's control? Thanks a lot,

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-11 Thread Julien Phalip
at all and will hang forever if the VPN is turned off. I'm really at loss there :) Julien On Apr 2, 2012, at 6:57 PM, Michael Hrivnak wrote: > Your phone may be using TLS on the normal IMAP port (143). Or, are > you sure your phone is using IMAP and not active sync? > > Michae

python distributed computing

2011-08-03 Thread julien godin
ts in real time so it is processed in real time.). My question is : is their any library or API or anything that is able to do that ? Sincerly Julien PS: This is my first time posting on any mailing list, my explanation/syntax could look a little bite, messy. -- http://mail.python.org/mailman/

Re: Lies in education [was Re: The "loop and a half"]

2017-10-13 Thread Julien Salort
ython is flawed? Julien -- https://mail.python.org/mailman/listinfo/python-list

Re: Spectre/Meltdown bug affecting Python ?

2018-01-07 Thread Julien Salort
Le 06/01/2018 à 21:49, J.O. Aho a écrit : Not just Linux, but all other OS:es, Microsoft and Apple been patching in secret as they have a closed source approach, but ms-windows needs at least one more patch before it can breath out, which will be released on Tuesday. As a matter of fact, Apple

Matplotlib scale

2021-04-04 Thread Julien Hofmann
solution but it doesn't work. Thanks import os import matplotlib.pyplot as plt import pandas as pd import numpy as np from matplotlib import colorbar, colors import matplotlib.tri as tri #os.chdir("C:/Users/Julien Hofmann/Desktop/Nano-indentation") data = pd.read_csv("Cartog

Re: Matplotlib scale

2021-04-05 Thread Julien Hofmann
Le lundi 5 avril 2021 à 21:50:49 UTC+2, David Lowry-Duda a écrit : Thank you for your response! I just tried it but it doesn't make what I want. Bassically, I would like to not put any color for every values above 0.8 times the maximum value (ie. 488). Hence, the ''maximum'' color (ie. red) woul

Re: Matplotlib scale

2021-04-06 Thread Julien Hofmann
Thank you for your response, and thank you for the different tips concerning visualisation. I'll improve it. I've tried to put vmin and vmax in contourf(). It works but the values above 80% of the maximum value still remain red which makes the cartography not really clear. I think I should i

Knowing which thread had the GIL before

2016-08-20 Thread Julien Kauffmann
or remark concerning my technique is also welcome. Thanks, Julien. -- https://mail.python.org/mailman/listinfo/python-list

Make synchronous generator from an asynchronous generator

2018-03-16 Thread Julien Salort
where concurrency is not needed) i.e. what is the equivalent of the above snippet for generators ? Thanks, Julien PS: I was surprised however that enumerate does not work when applied to an asynchronous generator, i.e.: async for ii, img in enumerate(async_gen()):     pass raises Type

Re: Make synchronous generator from an asynchronous generator

2018-03-16 Thread Julien Salort
. So, if I replace get_event_loop() with new_event_loop(), then it's fine ? Well, it's not pretty, but this seems to work: [...] Thanks ! Julien -- https://mail.python.org/mailman/listinfo/python-list

Re: Asynchronous processing is more efficient -- surely not?

2018-04-04 Thread Julien Salort
it takes for the WaitFrame C function to run... When the C function ends, the asynchronous task resumes... There is no need to adjust some timeout by hand. Bests, Julien -- https://mail.python.org/mailman/listinfo/python-list

Re: Asynchronous processing is more efficient -- surely not?

2018-04-04 Thread Julien Salort
atively straightforward. Again, my problem is that it leads to code duplication. But that probably means that I should separate the logic into separate functions more. Bests, Julien -- https://mail.python.org/mailman/listinfo/python-list

Re: I'm wrong or Will we fix the ducks limp?

2016-06-09 Thread Julien Salort
= A; B->x = 3; B->y = 4; which backs indeed the C pointer analogy... -- Julien Salort Entia non sunt multiplicanda praeter necessitatem http://www.juliensalort.org -- https://mail.python.org/mailman/listinfo/python-list

Re: Bulk Adding Methods Pythonically

2016-06-16 Thread Julien Salort
s > Yes, returning the class namespace is a language gaurantee. But that says: "Note The contents of this dictionary should not be modified; changes may not affect the values of local and free variables used by the interpreter." -- Julien Salort Entia non sunt multiplicanda

Re: Why not allow empty code blocks?

2016-08-02 Thread Julien Salort
ufficiently complex programs for it to become totally unreadable. -- Julien Salort Entia non sunt multiplicanda praeter necessitatem http://www.juliensalort.org -- https://mail.python.org/mailman/listinfo/python-list

getting data off a CDrom

2005-12-04 Thread julien . lord
specific drive. Any ideas/suggestions/flames? Thanks, Julien -- http://mail.python.org/mailman/listinfo/python-list

mod_python and Internal Server Error ...

2005-06-28 Thread Julien Cigar
Hello, I'm using mod_python 3.1.3 with Apache 2.0.54 on a Debian box with the publisher handler and the Clearsilver template engine, and from time to time apache returns an 500 error code (Internal Server Error). Apache errog.log file looks like : [Tue Jun 28 14:42:12 2005] [error] [client 164.x

Re: [code-quality] [ANN] Pylint 1.4 released

2014-11-27 Thread Julien Cristau
hat url came from, afaik the tracker is https://bitbucket.org/logilab/pylint/issues Cheers, Julien -- Julien Cristau Logilab http://www.logilab.fr/ Informatique scientifique & gestion de connaissances -- https://mail.python.org/mailman/listinfo/python-list

PythonMagick on Windows DLL load failed

2015-02-18 Thread julien levasseur
low.com/questions/28538973/pythonmagick-on-windows-dll-load-failed -- Julien Levasseur -- https://mail.python.org/mailman/listinfo/python-list

list of indices

2006-07-24 Thread Julien Ricard
hi,is there any method to get only some elements of a list from a list of indices. Something like:indices=[0,3,6]new_list=list[indices]which would create a new list containing 0th, 3rd and 6th elements from the original list? I do this with a loop but I'd like to know if there is a simpler way.than

web searching scripts

2006-08-04 Thread julien . lord
Does anyone know of a freely available script that can take a given URL and follow every link within it? Ideally, I would like to start with this to build a quick application to grab all the content off a website to publish it to a CD. Thanks, jul -- http://mail.python.org/mailman/listinfo/pyt

dbm

2006-12-27 Thread Julien Cigar
(or more) processes can open the dbm file and write in the same time without errors/corruptions/segfaults/... ? Thanks, Julien -- http://mail.python.org/mailman/listinfo/python-list

Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Julien Fiore
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva --- ### A) Pyrex installation on Windows XP

problems installling scipy.weave on windows

2006-04-19 Thread Julien Fiore
. Julien Fiore >>> import scipy.weave >>> scipy.weave.test() Found 16 tests for scipy.weave.slice_handler Found 0 tests for scipy.weave.c_spec Found 2 tests for scipy.weave.blitz_tools building extensions here: c:\docume~1\julien~1\locals~1\temp\Julien\python24_compiled\m10

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Julien Fiore
To install Pyton, I simply used the python Windows installer (python-2.4.2.msi) available at python.org. Julien -- http://mail.python.org/mailman/listinfo/python-list

Read and extract text from pdf

2006-04-21 Thread Julien ARNOUX
Hi, I have a problem :), I just want to extract text from pdf file with python. There is differents libraries for that but it doesn't work... pyPdf and pdfTools, I don't know why but it doesn't works with some pdf... For example space chars are delete in the text.. Pdf playground : I don't unders

Read and extract text from pdf

2006-04-24 Thread Julien ARNOUX
Hi, Thanks I use that and is all right :) import commands txt = commands.getoutput('ps2ascii tmp.pdf') print txt -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread Julien Fiore
Thanks for your remark, Sturlamolden. Is there a free version of the "Visual C++ 2003" compiler available on the web? I have found "Visual C++ 2005 Express edition" (http://msdn.microsoft.com/vstudio/express/visualc/). According to Micrsoft, it replaces VC++2003 (http://msdn.microsoft.com/visualc/

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-27 Thread Julien Fiore
sturlamolden wrote: > edit the text file "c:\mingw\lib\gcc\mingw32\3.2.4\specs" > and change "-lmsvcrt" to "-lmsvcr71". Thank you very much sturlamolden, This procedure should be added to the "step-by-step" guide (see 1st message of this thread) as "step A.5". For ignorant people like me, CRT =

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-28 Thread Julien Fiore
I added "step A.5" to the guide and published it on the Python wiki, so that anyone can update it easily: http://wiki.python.org/moin/PyrexOnWindows -- http://mail.python.org/mailman/listinfo/python-list

Python sqlite and regex.

2006-05-19 Thread Julien ARNOUX
Hi, I'd like to use regular expressions in sqlite query, I using apsw module but it doesn't work...Can you help me ? My script: import apsw import re path = 'db/db.db3' #regexp function (extract from python-list discusion) def regexp(expr, item): reg = re.compile(expr) return reg.match(i

Use of Python with GDAL. How to speed up ?

2006-03-17 Thread Julien Fiore
the output raster. It runs very slowly and I suspect the raster access to be the main bottleneck. Do you have any idea to speed-up the process ? Thanks for any help. Julien Here is the code: # ## openness.py ## ## Julien Fiore, UNIGE ## ## code i

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Julien Fiore
Thanks for the psyco information, Serge. > 2) Rewrite the code to be vectorized (don't use psyco) Right now your > code *doesn't* get any speed benefit from numpy I do not understand this point. How to rewrite the code ? Do you mean in C ? Julien -- http://mail.python.org/

Re: Use of Python with GDAL. How to speed up ?

2006-03-22 Thread Julien Fiore
Thanks Caleb for the advice, I profiled my code with the following lines: import profile, pstats profile.runctx('openness(infile,outfile,R)',globals(),locals(),'profile.log') p = pstats.Stats('profile.log') p.sort_stats('time') p.print_stats(10) The outputs tells me that the ope

Re: Use of Python with GDAL. How to speed up ?

2006-03-23 Thread Julien Fiore
ed to access the array values in the openness function. As regards array.array, it seems a bit complicated to reduce all my 2D arrays to 1D arrays because I am working with the gdal library, which works only with 'numeric' arrays. Julien -- http://mail.python.org/mailman/listinfo/python-list

Using PyImport_ExtendInittab with package

2009-12-18 Thread Julien Danjou
llo.foobar") returns correctly that the module is found, but import hello.foobar fails badly. Is . notation supported in inittab? Am I doing something wrong? -- Julien Danjou // ᐰhttp://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Don't give up. sign

Python 2.7, tkinter problem on OSX

2010-06-25 Thread Julien Pauty
y knows what is the good combination of installer / libraries to install to run a ttk application on OSX 8.5 ? Ideally, I would like to document the setup procedure for 8.5 users. Cheers, Julien -- http://mail.python.org/mailman/listinfo/python-list

Random and fork

2013-02-06 Thread Julien Le Goff
Hi everyone, Today I came accross a behaviour I did not expect in python (I am using 2.7). In my program, random.random() always seemed to return the same number; it turned out to be related to the fact that I was using os.fork. See below a small program that illustrates this. It is easily fixe

Re: Random and fork

2013-02-07 Thread Julien Le Goff
Thank you for the answers! It was much simpler than I thought. On Wednesday, 6 February 2013 17:49:06 UTC+1, Alain Ketterlin wrote: > Julien Le Goff writes: > > > > > Today I came accross a behaviour I did not expect in python (I am > > > using 2.7). In my prog

Subprocess Startup Error

2018-03-06 Thread Jeremy Jamar St. Julien
Whenever I try to open the python shell it says IDLE’s subprocess didn’t make a connection. Everything worked fine yesterday and I haven’t done anything I think would cause this problem. Any way to fix this? I’ve tried repairing and redownloading -- https://mail.python.org/mailman/listinfo/pyth

Python 3.6

2018-03-07 Thread Jeremy Jamar St. Julien
How do i open python 3.6 in a console and how do i see the binary its running with -- https://mail.python.org/mailman/listinfo/python-list

Console

2018-03-07 Thread Jeremy Jamar St. Julien
I had an problem when trying to start the python GUI. It said there was a subprocess startup error. I was told to start IDLE in a console with idlelib and see what python binary i was runnning IDLE with. Im using windows 10 and i guess console refers to the terminal window and i have no idea wha

Re: Console

2018-03-07 Thread Jeremy Jamar St. Julien
7, 2018 8:55:30 AM Subject: Re: Console On 07/03/18 14:41, Jeremy Jamar St. Julien wrote: > I had an problem when trying to start the python GUI. It said there was a > subprocess startup error. I was told to start IDLE in a console with idlelib > and see what python binary i was run