Re: strptime for different languages

2019-12-17 Thread Ulrich Goebel
użytkownik Ulrich Goebel napisał: 13. Januar 1965 13. January 1965 13.01.1965 1965-01-13 02.03.2000 Is it Mar, 2nd 2000 or Feb, 3rd 2000? -- Ulrich Goebel Am Büchel 57, 53173 Bonn -- https://mail.python.org/mailman/listinfo/python-list

Re: strptime for different languages

2019-12-17 Thread Ulrich Goebel
That's absolutely great, thank You! Am 17.12.19 um 11:53 schrieb Jon Ribbens via Python-list: On 2019-12-17, Ulrich Goebel wrote: I need to interpret a date string to get a datetime object. That should be done with strptime from the module datetime. But I don't know enough about the locale

strptime for different languages

2019-12-17 Thread Ulrich Goebel
languages.) Best regards Ulrich -- Ulrich Goebel Am Büchel 57, 53173 Bonn -- https://mail.python.org/mailman/listinfo/python-list

Re: os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
Sorry for the wrong spelling. In fact subprocess.call('./Test.py') works. The raising error was my error too, using ['./', 'Test.py'] instead of './Test.py' Sorry... Am 28.11.19 um 11:05 schrieb Ulrich Goebel: Hi, I have to call commands from inside a python skript. These commands

os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
python3.5/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg) PermissionError: [Errno 13] Permission denied Using subprocess.call(['./', 'Test.py'], shell=True) I get Test.py: 1: Test.py: ./: Permission denied Is there a simple way to use subprocess in this

Function to call a extern command as a filter

2019-09-25 Thread Ulrich Goebel
read the outputfile into the string l return (l) What would be nice: I would like to avoid the extra steps writing an reading extern files. Can anybody help me? Thanks Ulrich -- Ulrich Goebel Am Büchel 57, 53173 Bonn -- https://mail.python.org/mailman/listinfo/python-list

Escape-Sequenzen in einem String identifizieren

2017-10-01 Thread Ulrich Goebel
herauszufinden, suche ich eine Funktion zeige_escape(string), die mir liefert: s = 'Hallo\nNeue Zeile' zeige_escape(s) Hallo\nNeue Zeile print hilft nicht, denn print(s) Hallo Neue Zeile Hat jemand eine Idee? Dank und Gruß Ulrich -- Ulrich Goebel Am Büchel 57, 53173 Bonn -- https

Making Labels from python

2014-03-09 Thread Ulrich Goebel
the pagesize (labelsize) and a minimum format (boldface). But may be there is another light-weight-format besides PDF? Any idea? Ulrich -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn -- https://mail.python.org/mailman/listinfo/python-list

Re: Making Labels from python

2014-03-09 Thread Ulrich Goebel
Many thanks for the moment. I will try reportlab the next days. Am 09.03.2014 22:29, schrieb Ulrich Goebel: Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip

Trouble with utf-8 values

2013-11-04 Thread Ulrich Goebel
: ordinal not in range(128) The position 6 is exactly the position of the special character, ß in this case. What to do? Ulrich -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn -- https://mail.python.org/mailman/listinfo/python-list

Re: Backward-Iterator - Beginners question

2013-11-01 Thread Ulrich Goebel
Hi Am 31.10.2013 23:35, schrieb Terry Reedy: On 10/31/2013 5:29 PM, Ulrich Goebel wrote: I'm locking for an iterator type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions

Backward-Iterator - Beginners question

2013-10-31 Thread Ulrich Goebel
). Any help will be wellcome! Ulrich -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn -- https://mail.python.org/mailman/listinfo/python-list

sorting german characters äöü...

2013-10-30 Thread Ulrich Goebel
== bb: return 0 else: return 1 That works, but my be there is a more intelligent way? Especially there could be much more r.replace to handle all the accents as ^ ° ´ ` and so on. Any ideas? That would be great! Ulrich -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn -- https

Re: sorting german characters äöü... solved

2013-10-30 Thread Ulrich Goebel
. There is also a rather long-ish recent topic on a similar topic that might be worth scanning as well. Sorry, I didn't find that. I've no direct/recent experience with this topic. I'm just an interested bystander. But even a helpful bystander. Thank You! Ulrich -- Ulrich Goebel Paracelsusstr. 120